/* ============================================================
   SIERRA LEGAL — Design System
   Cinematic, editorial, empathetic. Dark-mode primary.
   ============================================================ */

:root {
  /* ============================================================
     BRAND PALETTE — from Sierra Legal Manual de Marca 2025
     Exact hex codes from Paleta de Color (pg 39)
     ============================================================ */
  --coral:         #EE7E53;   /* Primary brand — RGB 238,126,83 */
  --coral-2:       #F1926D;   /* Hover / lighter */
  --coral-deep:    #D96538;   /* Pressed / darker */
  --coral-glow:    rgba(238,126,83,0.20);

  --navy:          #193744;   /* Primary brand secondary — RGB 25,55,68 */
  --navy-2:        #204656;   /* Elevated navy surfaces */
  --navy-3:        #12262F;   /* Deepest navy — hero base */
  --ink:           #0B1A22;   /* Absolute deepest — vignette anchor */

  --sand:          #E8DDD1;   /* Warm neutral — RGB 232,221,209 */
  --off:           #F4F3F2;   /* Off-white — RGB 244,243,242 */
  --steel:         #61808E;   /* Muted blue accent — RGB 97,128,142 */

  /* Semantic aliases mapped to brand tokens */
  --obsidian:      var(--navy-3);   /* base surface (was near-black; now brand navy) */
  --obsidian-2:    var(--navy-2);   /* elevated */
  --obsidian-3:    #1C3B4C;         /* card surface */
  --cream:         var(--off);      /* light on dark */
  --cream-2:       var(--sand);

  --text:          #EDEBE8;
  --text-dim:      #A9B5BC;         /* navy-tinted muted text */
  --text-mute:     #6E7F88;
  --border:        rgba(244,243,242,0.09);
  --border-2:      rgba(244,243,242,0.16);

  /* ============================================================
     TYPOGRAPHY — Commissioner (single family, weights differentiate)
     Bold 700 → Títulos · Medium 500 → Subtítulos · Light 300 → Párrafos
     ============================================================ */
  --font-sans:    "Commissioner", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif:   "Commissioner", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Note: brand uses Commissioner for EVERYTHING — no serif secondary */

  /* Space scale — density 4 (spacious) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 640ms;

  /* Layout */
  --container: 1240px;
}

/* ==== RESET ==== */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  /* Body copy = Commissioner Light (300) per Manual pg 43 */
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
/* Headlines = Commissioner Bold (700) — modern editorial law-firm voice */
h1,h2,h3,h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
}
p {
  margin: 0;
  /* Justified body copy sitewide. text-align-last keeps the final line of
     each paragraph left-aligned (the default justify behavior everywhere
     else would otherwise stretch it too, which looks broken on short last
     lines). hyphens:auto softens the word-spacing gaps justify can create
     in narrow columns — html[lang="es-CO"] gives browsers the dictionary
     they need for Spanish hyphenation. Single-line paragraphs are
     unaffected either way, since there's no second line to justify against. */
  text-align: justify;
  text-align-last: left;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}
a { color: inherit; text-decoration: none; }

/* ==== A11Y ==== */
.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 2000;
  background: var(--cream); color: var(--obsidian);
  padding: 10px 16px; border-radius: var(--r-sm);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 3px; }

/* ==== CONTAINER ==== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ==== EYEBROW ==== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--coral);
  font-weight: 500;
}

/* ==== BUTTONS ==== */
.btn {
  --btn-bg: var(--coral);
  --btn-fg: var(--cream);
  --btn-border: transparent;
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: transform var(--dur-med) var(--ease-out),
              background-color var(--dur-med) var(--ease-out),
              color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.22), transparent 55%);
  opacity: 0; transition: opacity var(--dur-med) var(--ease-out);
  z-index: -1; border-radius: inherit;
}
.btn:hover::before { opacity: 1; }
.btn:hover { box-shadow: 0 12px 40px -12px var(--coral-glow); }
.btn svg { transition: transform var(--dur-med) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  --btn-bg: var(--coral);
  --btn-fg: var(--cream);
}
.btn--primary:hover { --btn-bg: var(--coral-2); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--border-2);
}
.btn--ghost:hover { --btn-bg: rgba(244,238,228,0.06); }

.btn--sm { padding: 10px 16px; font-size: 13.5px; }
.btn--full { width: 100%; justify-content: center; }
.btn--link {
  background: none; color: var(--text);
  padding: 14px 6px; border-radius: 0;
  border-bottom: 1px solid var(--border-2);
}
.btn--link:hover { color: var(--coral); border-color: var(--coral); box-shadow: none; }

/* ==== NAV ==== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color var(--dur-med) var(--ease-out),
              backdrop-filter var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              padding var(--dur-med) var(--ease-out);
  border-bottom: 1px solid transparent;
  padding-block: 20px;
}
.nav.is-scrolled {
  background: rgba(10,10,11,0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--border);
  padding-block: 12px;
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  display: flex; align-items: center; gap: 32px;
}
.nav__brand {
  display: flex; align-items: center;
  color: var(--cream);
  margin-right: auto;
}
/* Official brand lockup — icon + wordmark from brand kit. Kept at every
   width (just scaled down) instead of swapping to the bare icon mark,
   which read as a downgrade on mobile without the wordmark for context. */
.nav__brand-full {
  height: 40px;
  width: auto;
  display: block;
}
.nav__brand-icon { display: none; }
@media (max-width: 480px) {
  .nav__brand-full { height: 30px; }
}
/* .nav__word / .nav__title / .nav__sub — legacy text wordmark, superseded by full-lockup SVG */

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  position: relative;
  font-size: 14px; color: var(--text-dim);
  transition: color var(--dur-med) var(--ease-out);
  padding: 8px 2px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--coral);
  transition: right var(--dur-med) var(--ease-out);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { right: 0; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav__toggle span {
  width: 22px; height: 1.5px; background: var(--cream);
  transition: transform var(--dur-med) var(--ease-out),
              opacity var(--dur-med) var(--ease-out);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  padding: 32px 24px 40px;
  flex-direction: column; gap: 20px;
  background: rgba(10,10,11,0.98);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
}
.nav__mobile a { font-size: 20px; font-family: var(--font-serif); color: var(--cream); }
.nav__mobile.is-open { display: flex; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions .btn:not(.btn--primary) { display: none; }
  .nav__toggle { display: flex; }
}
@media (max-width: 560px) {
  .nav__actions .btn { display: none; }
  .nav__sub { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  /* Not min-height:100vh anymore: the hero now holds a lot of content (title,
     lead, CTA, 9-card carousel) that's usually taller than one screen, and
     forcing a full-viewport floor left large dead space below the content
     on big/tall monitors where it wasn't. A smaller floor just keeps the
     section from ever looking cramped on very short viewports. */
  min-height: 640px;
  /* Override the generic `section { padding: clamp(...) 0 }` rule further
     down — .hero is a <section> too, so it was silently getting that
     padding-top ON TOP OF .hero__content's own padding this whole time.
     Hero manages its own spacing entirely via .hero__content. */
  padding: 0;
  display: grid;
  align-items: start;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero__scene {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  will-change: transform;
  transform-origin: center 30%;
}

.hero__content {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  /* Fixed (not vh-scaled) top padding: just enough to clear the fixed nav
     (~80px tall) with minimal breathing room — a vh-based value kept
     growing back into a big gap on tall/large screens. */
  padding: 90px clamp(20px, 5vw, 48px) clamp(64px, 8vh, 100px);
  width: 100%;
  min-width: 0; /* grid item: allow shrinking below the carousel's intrinsic content width */
}
/* ============================================================
   EDITORIAL MARKER — replaces the pill eyebrow
   Two-line typographic block with coral rule and live index
   ============================================================ */
.marker {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  gap: 18px;
  padding: 4px 0;
  margin-bottom: 32px;
  font-family: var(--font-sans);
  color: var(--text-dim);
  max-width: 100%;
}

/* Left vertical rule — the visual anchor */
.marker__rule {
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--coral) 15%,
    var(--coral) 85%,
    transparent 100%);
  border-radius: 1px;
  position: relative;
}
.marker__rule::after {
  /* Subtle glow trailing down the rule */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(233,106,58,0.5), transparent);
  filter: blur(3px);
  opacity: 0.6;
  animation: markerGlow 3.6s ease-in-out infinite;
}
@keyframes markerGlow {
  0%,100% { opacity: 0.35; transform: translateY(-20%); }
  50% { opacity: 0.7; transform: translateY(20%); }
}

/* Body: two stacked lines */
.marker__body {
  display: flex; flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 2px 0;
}

/* Top line: static positioning label */
.marker__label {
  display: inline-flex; align-items: baseline; gap: 8px;
  flex-wrap: wrap;
  row-gap: 4px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.5;
}
.marker__label-text { color: var(--coral); }
.marker__label-text--muted { color: var(--text-mute); font-weight: 500; }
.marker__sep {
  color: var(--text-mute);
  transform: translateY(-1px);
  font-weight: 300;
}

/* Bottom line: rotating proof track */
.marker__track {
  position: relative;
  display: block;
  min-height: 1.5em;
  min-width: 280px; /* JS locks final value from widest item */
  font-size: 15px;
  line-height: 1.4;
  color: var(--cream);
  letter-spacing: 0.005em;
}
.marker__item {
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  filter: blur(1.5px);
  transition:
    opacity 500ms var(--ease-out),
    transform 650ms var(--ease-out),
    filter 500ms var(--ease-out);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 19px;
  letter-spacing: 0.005em;
  color: var(--cream);
}
.marker__item em {
  font-style: normal;
  color: var(--coral);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding-right: 3px;
}
.marker__item.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.marker__item.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  filter: blur(1.5px);
}
/* First item in flow so container has intrinsic height */
.marker__item:first-child {
  position: relative;
  top: auto; left: auto;
}

/* Mobile: tighten spacing, allow wrap */
@media (max-width: 640px) {
  .marker { gap: 14px; }
  .marker__track { min-width: 0; font-size: 15px; }
  .marker__item { font-size: 16px; white-space: normal; }
  .marker__label { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .marker__rule::after { animation: none; opacity: 0.4; }
  .marker__item {
    transition: none; filter: none;
    transform: translateY(0);
  }
}

.hero__title {
  /* Commissioner Bold — brand-standard for titles */
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(38px, 6.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--cream);
  max-width: 14ch;
  margin-bottom: 32px;
}
.hero__title em {
  /* Emphasis via coral color, not italic (brand-neutral) */
  font-style: normal;
  color: var(--coral);
  font-weight: 700;
}

.hero__lead {
  max-width: 52ch;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.hero__cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* Hero SVG animation groups (JS controls) */
.hero__group { transform-box: fill-box; transform-origin: center; }
.hero__hands { transform-box: fill-box; transform-origin: 1000px 580px; }

@media (prefers-reduced-motion: reduce) {
  .hero__dot { animation: none; }
}

/* ============================================================
   HERO — CASOS REALES CAROUSEL
   ============================================================ */
.casos-hero {
  position: relative;
  margin-top: clamp(40px, 6vh, 64px);
  max-width: 100%;
}
.casos-hero__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.casos-hero__eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600;
  color: var(--coral);
}
.casos-hero__eyebrow--link {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  transition: color var(--dur-med) var(--ease-out);
}
.casos-hero__eyebrow--link svg {
  transition: transform var(--dur-med) var(--ease-out);
  flex-shrink: 0;
}
.casos-hero__eyebrow--link:hover { color: var(--cream); }
.casos-hero__eyebrow--link:hover svg { transform: translateX(3px); }
.casos-hero__nav { display: flex; gap: 8px; }
.casos-hero__arrow {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-2);
  background: rgba(244,243,242,0.04);
  color: var(--cream);
  cursor: pointer;
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              background-color var(--dur-med) var(--ease-out);
}
.casos-hero__arrow:hover { background: rgba(244,243,242,0.09); border-color: var(--coral); }
.casos-hero__arrow:disabled { opacity: 0.35; cursor: default; }
.casos-hero__arrow:disabled:hover { background: rgba(244,243,242,0.04); border-color: var(--border-2); }

.casos-hero__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  /* No scroll-snap-type here — confirmed by direct testing that it silently
     reverts small scrollLeft deltas back to the nearest snap point on every
     write, which fully cancels the marquee's sub-pixel per-frame drift (it
     never visibly moves). Arrow buttons already jump a full card-width step,
     so they still land cleanly on card boundaries without native snapping. */
  /* scroll-behavior intentionally NOT smooth — the JS marquee sets scrollLeft
     every animation frame; CSS smoothing would queue/fight those and stutter.
     Explicit { behavior: 'smooth' } is still passed for the arrow-button jumps. */
  padding-bottom: 6px;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.casos-hero__track:active { cursor: grabbing; }
.casos-hero__track::-webkit-scrollbar { display: none; }

.casos-hero__card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(320px, 82vw);
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.casos-hero__card:hover { transform: translateY(-3px); border-color: var(--border-2); }

.casos-hero__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--obsidian-3);
  overflow: hidden;
  padding: 0; margin: 0; border: 0;
  font: inherit; color: inherit;
  cursor: zoom-in;
}
.casos-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* Cinematic grade — matches .sobre__portrait-img treatment */
  filter: saturate(0.78) contrast(1.12) brightness(0.86) sepia(0.06);
  transition: transform 900ms var(--ease-out), filter 900ms var(--ease-out);
}
.casos-hero__card:hover .casos-hero__media img {
  transform: scale(1.045);
  filter: saturate(0.85) contrast(1.14) brightness(0.9) sepia(0.06);
}
.casos-hero__media::after {
  /* Soft gradient so the photo settles into the card body below it */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--obsidian-2) 100%);
  pointer-events: none;
}

.casos-hero__body {
  padding: 24px 22px;
  display: flex; flex-direction: column;
  flex-grow: 1;
}

.casos-hero__tag {
  align-self: flex-start;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral);
  padding: 4px 9px;
  border: 1px solid var(--coral);
  border-radius: var(--r-full);
  margin-bottom: 14px;
}
.casos-hero__name {
  color: var(--cream);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.25;
}
.casos-hero__desc {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}
.casos-hero__links {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.casos-hero__links a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500;
  color: var(--cream);
  padding: 6px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  transition: color var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              background-color var(--dur-med) var(--ease-out);
}
.casos-hero__links a:hover { color: var(--coral); border-color: var(--coral); background: var(--coral-glow); }
.casos-hero__links a svg { flex-shrink: 0; opacity: 0.7; }

/* Document variant — sentencia/conciliación scans. Shown uncropped (contain) instead of cropped. */
.casos-hero__media--doc {
  background: var(--ink);
}
.casos-hero__media--doc img {
  object-fit: contain;
  filter: none;
}
.casos-hero__media--doc:hover img { transform: none; filter: none; }

/* "Click to enlarge" affordance — shown on every case image, doc or photo */
.casos-hero__zoom {
  position: absolute; inset: auto 10px 10px auto;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--cream);
  background: rgba(11,26,34,0.72);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  padding: 6px 12px;
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.casos-hero__media:hover .casos-hero__zoom,
.casos-hero__media:focus-visible .casos-hero__zoom { opacity: 1; transform: translateY(0); }

/* ============================================================
   LIGHTBOX — full-size document viewer
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  padding: 40px clamp(16px, 6vw, 80px);
  background: rgba(6,14,18,0.92);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
}
.lightbox.is-open {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-med) var(--ease-out), visibility 0s;
}
.lightbox__frame {
  margin: 0;
  max-width: min(720px, 82vw);
  max-height: 86vh;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
}
.lightbox__img {
  max-width: 100%; max-height: 78vh;
  width: auto; height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border-2);
  background: var(--obsidian-2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.lightbox__caption {
  font-size: 13px; color: var(--text-dim); text-align: center;
}
.lightbox__close {
  position: fixed; top: 24px; right: 24px;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-2);
  background: rgba(244,243,242,0.06);
  color: var(--cream);
  cursor: pointer;
  transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.lightbox__close:hover { background: rgba(244,243,242,0.12); border-color: var(--coral); }
.lightbox__nav {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-2);
  background: rgba(244,243,242,0.06);
  color: var(--cream);
  cursor: pointer;
  transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.lightbox__nav:hover { background: rgba(244,243,242,0.12); border-color: var(--coral); }
.lightbox__nav[hidden] { visibility: hidden; }

@media (max-width: 640px) {
  .casos-hero__nav { display: none; }
  .lightbox { padding: 24px 16px; gap: 8px; }
  .lightbox__nav { width: 36px; height: 36px; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust {
  background: var(--obsidian-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 8vh, 88px) 0;
}
.trust__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust__cell { text-align: left; padding-right: 12px; border-right: 1px solid var(--border); }
.trust__cell:last-child { border-right: 0; }
.trust__num {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  font-feature-settings: "tnum" 1;
}
.trust__label {
  font-size: 13px; letter-spacing: 0.05em;
  color: var(--text-dim);
  max-width: 22ch; display: block;
}
@media (max-width: 900px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__cell:nth-child(2) { border-right: 0; }
}
@media (max-width: 520px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__cell { border-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
  .trust__cell:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
/* Was clamp(80px, 14vh, 160px) — on taller monitors the 14vh term pushed
   both sides toward the 160px cap, so two adjacent sections could stack
   up to ~320px of dead space at their shared boundary. Tightened so the
   vh term tops out well below the cap on realistic viewport heights. */
section { padding: clamp(56px, 8vh, 96px) 0; }
.section-head {
  max-width: 780px;
  margin-bottom: clamp(48px, 8vh, 88px);
}
.section-head__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 18px 0 20px;
}
.section-head__title em { font-style: normal; color: var(--coral); font-weight: 700; }
/* Standalone variant: used when the heading IS the whole section-head
   (no eyebrow label, no lead paragraph above/below it) — sized up so it
   still reads as a strong section marker on its own. */
.section-head__title--standalone {
  margin: 0;
  font-size: clamp(42px, 6.5vw, 76px);
  letter-spacing: -0.03em;
}
.section-head__lead {
  font-size: clamp(15.5px, 1.15vw, 18px);
  color: var(--text-dim);
  max-width: 62ch;
}

/* ============================================================
   ÁREAS
   ============================================================ */
.areas__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.area-card {
  position: relative;
  padding: 36px 30px 32px;
  background: var(--obsidian-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              background-color var(--dur-med) var(--ease-out);
  overflow: hidden;
}
.area-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}
.area-card::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  top: var(--my, 50%); left: var(--mx, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--coral-glow), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
  pointer-events: none;
}
.area-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  background: var(--obsidian-3);
}
.area-card:hover::before, .area-card:hover::after { opacity: 1; }
.area-card__icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: rgba(233,106,58,0.08);
  color: var(--coral);
  margin-bottom: 24px;
}
.area-card__icon svg { width: 22px; height: 22px; }
.area-card h3 {
  font-size: 22px; color: var(--cream);
  margin-bottom: 12px;
  font-weight: 500;
}
.area-card p {
  font-size: 15px; line-height: 1.65;
  color: var(--text-dim);
}
/* 4 cards in a 3-column grid leaves the last one alone on row 2 —
   center it instead of letting it sit stuck to the left edge. */
.areas .areas__grid > .area-card:nth-child(4):last-child { grid-column: 2; }

@media (max-width: 900px) {
  .areas__grid { grid-template-columns: repeat(2, 1fr); }
  .areas .areas__grid > .area-card:nth-child(4):last-child { grid-column: auto; }
}
@media (max-width: 620px) {
  .areas__grid { grid-template-columns: 1fr; }
  .areas .areas__grid > .area-card:nth-child(4):last-child { grid-column: auto; }
}

/* Honorarios: same card component, 2-up instead of 3-up */
.pricing__grid { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
@media (max-width: 620px) { .pricing__grid { grid-template-columns: 1fr; } }

/* ============================================================
   POR QUÉ ELEGIRNOS — motion checklist
   Each item "checks off" independently as it scrolls into view:
   the ring and checkmark draw in via stroke-dashoffset, the icon
   pops slightly once "confirmed", text lifts in alongside it.
   ============================================================ */
.why { background: var(--obsidian-2); }
.why__list {
  list-style: none; margin: 0; padding: 0;
}
.why__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  align-items: flex-start;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), background-color 400ms var(--ease-out);
}
.why__item:first-child { padding-top: 4px; }
.why__item:last-child { border-bottom: 0; }
.why__item.is-in { opacity: 1; transform: translateY(0); }

.why__check {
  width: 56px; height: 56px;
  flex-shrink: 0;
  color: var(--coral);
  transition: transform 380ms var(--ease-out) 420ms;
}
.why__item.is-in .why__check { transform: scale(1.08); }
.why__check svg { width: 100%; height: 100%; overflow: visible; }
.why__check-ring {
  fill: none; stroke: currentColor; stroke-width: 1.6;
  opacity: 0.9;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 650ms var(--ease-out) 120ms;
}
.why__check-mark {
  fill: none; stroke: currentColor; stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 450ms var(--ease-out) 420ms;
}
.why__item.is-in .why__check-ring,
.why__item.is-in .why__check-mark { stroke-dashoffset: 0; }

.why__body h3 {
  font-size: clamp(19px, 2vw, 24px);
  color: var(--cream);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.why__body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 64ch;
}

@media (prefers-reduced-motion: reduce) {
  .why__item { opacity: 1; transform: none; transition: none; }
  .why__check { transition: none; }
  .why__check-ring, .why__check-mark { stroke-dashoffset: 0; transition: none; }
}

@media (max-width: 640px) {
  .why__item { grid-template-columns: 44px 1fr; gap: 18px; padding: 26px 0; }
  .why__check { width: 44px; height: 44px; }
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios { background: var(--obsidian-2); }
.testimonios__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.testimonio {
  margin: 0;
  padding: 40px 34px;
  background: var(--obsidian);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  display: flex; flex-direction: column; gap: 24px;
}
.testimonio__quote {
  width: 34px; height: 34px;
  color: var(--coral);
  opacity: 0.35;
}
.testimonio p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--cream);
  letter-spacing: -0.005em;
  margin: 0;
}
.testimonio footer {
  display: flex; flex-direction: column; gap: 3px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.testimonio cite {
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--cream);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.testimonio footer span { font-size: 13px; color: var(--text-mute); }
@media (max-width: 900px) { .testimonios__grid { grid-template-columns: 1fr; } }

/* ============================================================
   SOBRE
   ============================================================ */
.sobre__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.sobre__portrait { position: sticky; top: 120px; }
.sobre__portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ink);
  isolation: isolate;
}
.sobre__portrait-frame svg { width: 100%; height: 100%; }

/* Real portrait image — editorial treatment */
.sobre__portrait-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  /* Cinematic grade: warm desaturation, gentle contrast, subtle black point lift */
  filter:
    saturate(0.78)
    contrast(1.12)
    brightness(0.86)
    sepia(0.06);
  transform: scale(1.02);
  transition: transform 900ms var(--ease-out), filter 900ms var(--ease-out);
  will-change: transform;
  z-index: 0;
}
.sobre__portrait-frame:hover .sobre__portrait-img {
  transform: scale(1.045);
  filter: saturate(0.85) contrast(1.14) brightness(0.9) sepia(0.06);
}

/* Warm coral rim/wash — pushes the neutral gray backdrop into the site palette */
.sobre__portrait-warm {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 78% 22%, rgba(240,168,120,0.32), transparent 55%),
    radial-gradient(ellipse 100% 100% at 20% 90%, rgba(20,10,6,0.55), transparent 60%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

/* Vignette — anchors the portrait against dark surroundings */
.sobre__portrait-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Fine film grain overlay */
.sobre__portrait-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.11 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 4;
}
.sobre__portrait-caption {
  display: block;
  margin-top: 16px;
  font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
}
.sobre__body p { color: var(--text-dim); margin-bottom: 20px; }
.sobre__body p strong { color: var(--cream); font-weight: 500; }
.sobre__lead { font-size: 18px; line-height: 1.7; }

@media (max-width: 900px) {
  .sobre__grid { grid-template-columns: 1fr; }
  .sobre__portrait { position: static; max-width: 360px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { list-style: none; margin: 0; padding: 0; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-child { border-top: 1px solid var(--border); }
.faq__q {
  width: 100%; text-align: left;
  background: none; border: 0;
  padding: 32px 8px 32px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.8vw, 24px);
  color: var(--cream);
  letter-spacing: -0.005em;
  transition: color var(--dur-med) var(--ease-out);
}
.faq__q:hover { color: var(--coral); }
.faq__icon {
  position: relative; flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1px solid var(--border-2); border-radius: 50%;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out), background-color var(--dur-med) var(--ease-out);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: currentColor;
  transition: transform var(--dur-med) var(--ease-out);
}
.faq__icon::before { width: 10px; height: 1px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 1px; height: 10px; transform: translate(-50%, -50%); }
.faq__q[aria-expanded="true"] .faq__icon {
  background: var(--coral); border-color: var(--coral); color: var(--cream);
  transform: rotate(180deg);
}
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-in-out);
}
.faq__a p {
  padding: 0 8px 32px 0;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  max-width: 72ch;
}
.faq__a p strong { color: var(--cream); font-weight: 500; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto {
  background: linear-gradient(180deg, var(--obsidian) 0%, #08080A 100%);
  position: relative;
}
.contacto::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, var(--coral-glow), transparent 40%);
  pointer-events: none;
}
.contacto__grid {
  position: relative;
  display: grid; grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contacto__intro p { color: var(--text-dim); margin-bottom: 32px; }
.contacto__intro p strong { color: var(--cream); font-weight: 500; }

.contacto__meta {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.contacto__meta li { display: flex; gap: 16px; align-items: center; }
.contacto__meta-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--coral);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contacto__meta-icon svg { width: 20px; height: 20px; }
.contacto__meta strong { display: block; color: var(--cream); font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.04em; margin-bottom: 2px; }
.contacto__meta a, .contacto__meta span { color: var(--text-dim); font-size: 15px; transition: color var(--dur-med) var(--ease-out); }
.contacto__meta a:hover { color: var(--coral); }

/* Form */
.contacto__form {
  background: rgba(16,16,18,0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}
.field input,
.field textarea,
.select select {
  padding: 14px 16px;
  background: var(--obsidian);
  border: 1px solid var(--border-2);
  color: var(--cream);
  border-radius: var(--r-md);
  transition: border-color var(--dur-med) var(--ease-out), background-color var(--dur-med) var(--ease-out);
  font-family: var(--font-sans);
  font-size: 15px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus,
.select select:focus {
  border-color: var(--coral);
  background: rgba(233,106,58,0.06);
  outline: none;
}
.field input:not(:placeholder-shown):invalid,
.field textarea:not(:placeholder-shown):invalid { border-color: rgba(220, 38, 38, 0.5); }
.field__help {
  font-size: 12px; color: var(--text-mute); margin-top: 4px;
}

.select { position: relative; }
.select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}
.select svg {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-dim);
  pointer-events: none;
}

.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-dim); line-height: 1.5;
  cursor: pointer;
  padding: 6px 0;
}
.check input {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  background: var(--obsidian);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
  transition: all var(--dur-fast) var(--ease-out);
}
.check input:checked {
  background: var(--coral);
  border-color: var(--coral);
}
.check input:checked::after {
  content: "";
  position: absolute; top: 45%; left: 50%;
  width: 4px; height: 8px;
  border: solid var(--cream);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}
.check a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }

.contacto__form-note {
  font-size: 14px;
  color: var(--sand);
  text-align: center;
  min-height: 20px;
  margin-top: 4px;
}
.contacto__form-note.is-success { color: #7CB981; }
.contacto__form-note.is-error { color: #E68A8A; }

@media (max-width: 900px) {
  .contacto__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--ink);
  border-top: 1px solid var(--border);
  padding: clamp(64px, 10vh, 96px) 0 32px;
}
.foot__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.4fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.foot__brand { display: flex; align-items: center; color: var(--cream); }
.foot__brand-full { height: 46px; width: auto; display: block; }
.foot__nav { display: flex; flex-direction: column; gap: 10px; }
.foot__nav h4 { font-family: var(--font-sans); font-weight: 500; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.foot__nav a, .foot__nav span { font-size: 14px; color: var(--text-dim); transition: color var(--dur-med) var(--ease-out); line-height: 1.5; }
.foot__nav a:hover { color: var(--cream); }
.foot__legal h4 { font-family: var(--font-sans); font-weight: 500; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); margin-bottom: 12px; }
.foot__legal p { font-size: 13px; color: var(--text-mute); line-height: 1.6; }

.foot__base {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-top: 24px;
  font-size: 12px; color: var(--text-mute);
}
.foot__base a { color: var(--text-dim); transition: color var(--dur-med) var(--ease-out); }
.foot__base a:hover { color: var(--coral); }

.foot__base > span:first-child { grid-column: 1; justify-self: start; }
.foot__credit { grid-column: 2; justify-self: center; display: flex; align-items: center; gap: 6px; }
.foot__credit-link { display: inline-flex; align-items: center; gap: 6px; }
.foot__credit-logo { height: 26px; width: auto; display: block; opacity: 0.85; transition: opacity var(--dur-med) var(--ease-out); }
.foot__credit-link:hover .foot__credit-logo { opacity: 1; }

@media (max-width: 900px) {
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot__grid { grid-template-columns: 1fr; }
  .foot__base { grid-template-columns: 1fr; justify-items: center; gap: 8px; text-align: center; }
  .foot__base > span:first-child { grid-column: 1; justify-self: center; }
  .foot__credit { grid-column: 1; }
}

/* ============================================================
   REVEAL ANIMATION STATES
   ============================================================ */
[data-reveal], [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
[data-reveal].is-in, [data-reveal-group] > .is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * {
    opacity: 1; transform: none; transition: none;
  }
  .hero__scene { animation: none !important; }
}

/* Split-text char reveal */
.split-word {
  display: inline-block;
  white-space: nowrap;
}
.split-char {
  display: inline-block;
  transform: translateY(0.6em);
  opacity: 0;
  will-change: transform, opacity;
}

/* Marker: JS mounted */
html.js .no-js-only { display: none; }

/* Custom cursor removed per user feedback — it was reported uncomfortable
   to use. Native system cursor now shows everywhere (no cursor:none
   overrides), including the default pointer on links/buttons. */

/* ============================================================
   MOUSE PARALLAX GROUPS
   ============================================================ */
.hero__group,
.hero__rays,
.hero__rim {
  will-change: transform;
  transition: transform 900ms var(--ease-out);
}

/* ============================================================
   CARD 3D TILT
   ============================================================ */
.area-card, .testimonio {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ============================================================
   PORTRAIT SPOTLIGHT
   ============================================================ */
.sobre__portrait-frame {
  position: relative;
  isolation: isolate;
}
.sobre__portrait-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle 220px at var(--px, 50%) var(--py, 40%),
              rgba(240,168,120,0.42), transparent 60%);
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;  /* above vignette, below grain */
}
.sobre__portrait-frame:hover::after { opacity: 1; }

/* ============================================================
   CTA SHIMMER SWEEP
   ============================================================ */
.btn--primary {
  --shimmer-x: -100%;
}
.btn--primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,255,255,0.28) 50%,
    transparent 70%);
  transform: translateX(var(--shimmer-x));
  transition: transform 800ms var(--ease-out);
  pointer-events: none;
  border-radius: inherit;
}
.btn--primary:hover { --shimmer-x: 100%; }

/* ============================================================
   HERO EYEBROW: subtle glow ring around dot
   ============================================================ */
.hero__eyebrow {
  position: relative;
  overflow: hidden;
  transition: border-color 400ms var(--ease-out), background-color 400ms var(--ease-out);
}
.hero__eyebrow:hover {
  border-color: rgba(233,106,58,0.35);
  background: rgba(233,106,58,0.06);
}

/* ============================================================
   NAV LINK: refined underline wipe
   ============================================================ */
.nav__links a {
  overflow: hidden;
}
.nav__links a::before {
  content: attr(data-label);
  position: absolute; inset: 8px 2px auto 2px;
  color: var(--cream);
  transform: translateY(120%);
  transition: transform 400ms var(--ease-out);
  pointer-events: none;
}
.nav__links a:hover { color: transparent; }
.nav__links a:hover::before { transform: translateY(0); }

/* Section headings: no blur — was causing readability issues on non-group reveals */

/* ============================================================
   TRUST NUMBERS: hover-scrub effect handled in JS
   ============================================================ */
.trust__cell {
  transition: transform 400ms var(--ease-out);
}
.trust__cell:hover { transform: translateY(-2px); }
.trust__num { display: inline-block; will-change: transform; }

/* ============================================================
   FOOTER MARK: soft rotate on hover (subtle mark of life)
   ============================================================ */
.foot__mark svg { transition: transform 900ms var(--ease-out); }
.foot__mark:hover svg { transform: rotate(-3deg) scale(1.06); }

/* ============================================================
   FAQ: icon rotation smoother + chevron ease
   ============================================================ */
.faq__item { transition: background-color 400ms var(--ease-out); }
.faq__item:hover { background: rgba(233,106,58,0.02); }

/* ============================================================
   WHY CHECKLIST: gentle hover lift on the row's check icon
   ============================================================ */
.why__item:hover { background: rgba(233,106,58,0.03); }
.why__item:hover .why__check { transform: translateY(-2px) scale(1.08); }

/* ============================================================
   FLOATING WHATSAPP BUTTON — fixed, always visible while scrolling
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px;
  background: #25D366;
  color: #fff;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: 14.5px; font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  box-shadow: 0 10px 30px -6px rgba(0,0,0,0.5);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              background-color var(--dur-med) var(--ease-out);
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  background: #20bd5c;
  box-shadow: 0 14px 38px -6px rgba(0,0,0,0.55);
}
.whatsapp-float svg { flex-shrink: 0; }

@media (max-width: 560px) {
  /* Icon-only FAB on small screens — a full text pill is too wide to float
     over content without covering it; the WhatsApp mark alone reads fine.
     Lifted higher than a plain 16px so it clears mobile browser chrome /
     the home-indicator area, with extra safe-area padding on notched phones. */
  .whatsapp-float {
    padding: 16px;
    right: 16px;
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .whatsapp-float span { display: none; }
}

/* ============================================================
   REDUCED-MOTION overrides for all micro-motions
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
