:root {
  --bg: #05090f;
  --surface: #0b121d;
  --surface-2: #101b29;
  --line: rgba(255,255,255,.11);
  --text: #f3f7fb;
  --muted: #9eacbd;
  --blue: #2e9bff;
  --blue-light: #78c4ff;
  --blue-dark: #0968bd;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 999; background: #fff; color: #000; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 5.25rem;
  padding: 0 clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(180deg, rgba(4,8,14,.96), rgba(4,8,14,.72));
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  font-size: 1.25rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.06em;
  color: var(--blue-light);
  text-shadow: 0 0 20px rgba(46,155,255,.5);
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: .78rem; letter-spacing: .18em; }
.brand-copy small { color: var(--muted); font-size: .68rem; margin-top: .25rem; letter-spacing: .04em; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
nav a { text-decoration: none; color: #cbd5e1; font-size: .9rem; font-weight: 650; }
nav a:hover, nav a:focus-visible { color: var(--blue-light); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3.4rem;
  padding: .85rem 1.3rem;
  border: 1px solid rgba(120,196,255,.5);
  border-radius: .4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  box-shadow: 0 12px 32px rgba(17,126,222,.27), inset 0 1px rgba(255,255,255,.2);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(17,126,222,.38); filter: brightness(1.08); }
.button-small { min-height: 2.75rem; padding: .55rem 1rem; font-size: .86rem; }

.hero { position: relative; min-height: 48rem; height: 100svh; display: grid; align-items: center; isolation: isolate; }
.hero-image { position: absolute; inset: 0; z-index: -3; background: url('assets/law-hero.webp') 63% center / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(3,7,12,.98) 0%, rgba(3,7,12,.86) 33%, rgba(3,7,12,.30) 66%, rgba(3,7,12,.22) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 27%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(46,155,255,.9), transparent); opacity: .55; }
.hero-content { width: min(42rem, calc(100% - 2rem)); margin-left: clamp(1rem, 8vw, 8rem); padding-top: 5rem; }
.eyebrow { margin: 0 0 1rem; color: var(--blue-light); font-size: .78rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: balance; }
h1 { margin: 0; max-width: 12ch; font-size: clamp(3rem, 7.2vw, 7rem); line-height: .93; letter-spacing: -.055em; text-transform: uppercase; }
h1 span { color: transparent; background: linear-gradient(180deg, #dbedff 0%, #2e9bff 60%, #0a5caa 100%); background-clip: text; -webkit-background-clip: text; }
.hero-text { max-width: 36rem; margin: 1.6rem 0 2rem; color: #c5d0dc; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.text-link { color: #d5e5f5; font-weight: 750; text-underline-offset: .3rem; text-decoration-color: rgba(120,196,255,.5); }
.hero-meta { margin-top: 3rem; padding-top: 1.35rem; border-top: 1px solid var(--line); display: flex; gap: 1.5rem; color: var(--muted); font-size: .86rem; font-weight: 650; }
.hero-meta span::before { content: ''; display: inline-block; width: .35rem; height: .35rem; margin-right: .55rem; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); vertical-align: .1rem; }

.section { padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 7vw, 7rem); }
.section-heading { max-width: 48rem; margin-bottom: 3rem; }
.section-heading h2, .headlight-copy h2, .cta-section h2 { margin: 0 0 1rem; font-size: clamp(2.2rem, 4.5vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p:last-child { color: var(--muted); max-width: 40rem; font-size: 1.08rem; }
.services { position: relative; background: radial-gradient(circle at 80% 0%, rgba(46,155,255,.09), transparent 30%), var(--bg); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 25rem; padding: 2rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); transition: background .25s ease, transform .25s ease; }
.service-card:hover { background: rgba(46,155,255,.055); transform: translateY(-4px); }
.service-card.featured { background: linear-gradient(160deg, rgba(46,155,255,.17), rgba(9,104,189,.05)); }
.service-number { color: #556272; font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.service-icon { width: 3.2rem; height: 3.2rem; margin: 2.4rem 0 1.4rem; display: grid; place-items: center; border: 1px solid rgba(120,196,255,.35); border-radius: 50%; color: var(--blue-light); font-size: 1.4rem; box-shadow: inset 0 0 20px rgba(46,155,255,.1); }
.service-card h3 { margin: 0 0 .8rem; font-size: 1.35rem; line-height: 1.15; }
.service-card p { margin: 0 0 1.5rem; color: var(--muted); font-size: .96rem; }
.service-card a { margin-top: auto; color: var(--blue-light); font-weight: 800; font-size: .9rem; text-decoration: none; }
.card-tag { position: absolute; top: 1.6rem; right: 1.4rem; padding: .35rem .55rem; color: #d9efff; border: 1px solid rgba(120,196,255,.32); border-radius: 99px; background: rgba(46,155,255,.10); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.headlight-section { background: linear-gradient(180deg, #060a11, #09101a); }
.headlight-panel { min-height: 38rem; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid rgba(120,196,255,.2); border-radius: 1rem; background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); box-shadow: var(--shadow); }
.headlight-copy { padding: clamp(2rem, 6vw, 6rem); align-self: center; }
.headlight-copy p:not(.eyebrow) { max-width: 42rem; color: var(--muted); font-size: 1.05rem; }
.headlight-copy ul { list-style: none; margin: 1.7rem 0 2.2rem; padding: 0; display: grid; gap: .8rem; }
.headlight-copy li { color: #d7e2ed; }
.headlight-copy li::before { content: '✓'; margin-right: .65rem; color: var(--blue-light); font-weight: 900; }
.headlight-visual { position: relative; min-height: 27rem; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, rgba(46,155,255,.30), transparent 30%), linear-gradient(145deg, #101c29, #04070c 70%); }
.lens { position: absolute; left: 50%; top: 44%; width: clamp(14rem, 28vw, 26rem); aspect-ratio: 2.1; transform: translate(-50%,-50%) skewX(-10deg); border: 2px solid rgba(173,220,255,.75); border-radius: 48% 12% 48% 15% / 45% 20% 55% 30%; box-shadow: 0 0 12px rgba(120,196,255,.75), inset 0 0 44px rgba(46,155,255,.30), 0 0 80px rgba(46,155,255,.30); }
.lens::before { content: ''; position: absolute; inset: 17% 8%; border: 2px solid rgba(255,255,255,.68); border-radius: inherit; box-shadow: inset 0 0 30px rgba(120,196,255,.28); }
.lens span { position: absolute; width: 28%; aspect-ratio: 1; left: 52%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; border: 5px solid rgba(194,229,255,.85); box-shadow: 0 0 35px rgba(46,155,255,.9); }
.beam { position: absolute; left: 46%; top: 42%; width: 80%; height: 2px; transform-origin: left center; background: linear-gradient(90deg, rgba(180,224,255,.9), transparent); box-shadow: 0 0 16px rgba(46,155,255,.8); }
.beam-one { transform: rotate(-14deg); }
.beam-two { transform: rotate(14deg); }
.headlight-visual p { position: absolute; inset: auto 2.3rem 2rem auto; margin: 0; text-align: right; color: #7890a8; font-size: .72rem; letter-spacing: .16em; }
.headlight-visual p strong { color: var(--blue-light); font-size: .9rem; }

.process { background: var(--bg); }
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.process-grid li { min-height: 12rem; padding: 2rem; display: flex; gap: 1.2rem; background: var(--bg); }
.process-grid li > span { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid rgba(46,155,255,.35); color: var(--blue-light); font-weight: 900; }
.process-grid h3 { margin: .25rem 0 .45rem; font-size: 1.18rem; }
.process-grid p { margin: 0; color: var(--muted); }

.cta-section { margin: 0 clamp(1rem, 7vw, 7rem) clamp(4rem, 7vw, 7rem); padding: clamp(2rem, 5vw, 5rem); display: flex; align-items: end; justify-content: space-between; gap: 3rem; border: 1px solid rgba(120,196,255,.28); border-radius: 1rem; background: radial-gradient(circle at 90% 15%, rgba(46,155,255,.24), transparent 34%), linear-gradient(135deg, #0d1a28, #070b12); box-shadow: var(--shadow); }
.cta-section > div:first-child { max-width: 48rem; }
.cta-section h2 { margin-bottom: 0; }
.cta-actions { min-width: 17rem; }
.cta-actions .button { width: 100%; }
.cta-actions p { margin: 1rem 0 0; color: var(--muted); font-size: .9rem; }
.cta-actions strong { color: #fff; font-size: 1.05rem; }

footer { padding: 2.2rem clamp(1rem, 7vw, 7rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #ccd8e4; text-underline-offset: .25rem; }
footer > p { margin: 0; }

.whatsapp-float { position: fixed; right: 1.15rem; bottom: 1.15rem; z-index: 30; min-height: 3.3rem; padding: .75rem 1rem; display: flex; align-items: center; gap: .55rem; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; color: #fff; background: #167d3e; box-shadow: 0 14px 38px rgba(0,0,0,.38); text-decoration: none; }
.whatsapp-float span { font-size: 1.3rem; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { background: #1c934b; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  nav { display: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .headlight-panel { grid-template-columns: 1fr; }
  .headlight-visual { min-height: 22rem; }
  .cta-section { align-items: start; flex-direction: column; }
}

@media (max-width: 680px) {
  .site-header { height: 4.6rem; padding: 0 1rem; }
  .brand-copy small { display: none; }
  .site-header .button-small { padding: .55rem .7rem; font-size: .76rem; }
  .hero { min-height: 46rem; height: auto; padding: 7rem 0 4rem; align-items: end; }
  .hero-image { background-position: 65% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(3,7,12,.99) 12%, rgba(3,7,12,.72) 70%, rgba(3,7,12,.34) 100%); }
  .hero-content { width: calc(100% - 2rem); margin: 0 1rem; padding-top: 14rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-text { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .text-link { text-align: center; }
  .hero-meta { flex-direction: column; gap: .55rem; }
  .section { padding: 4.5rem 1rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 21rem; }
  .headlight-copy { padding: 2rem 1.3rem; }
  .headlight-visual { min-height: 18rem; }
  .headlight-visual p { right: 1.3rem; bottom: 1.3rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li { min-height: auto; }
  .cta-section { margin: 0 1rem 4rem; padding: 2rem 1.3rem; }
  .cta-actions { min-width: 0; width: 100%; }
  footer { align-items: flex-start; flex-direction: column; }
  .footer-brand { display: none; }
  .whatsapp-float strong { display: none; }
  .whatsapp-float { width: 3.4rem; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
