/* =============================================================
   Insolvencia Jurídica — Cristian Camilo Pita Sánchez
   Arquetipo: Editorial Dark (adaptado a la marca negro + morado)
   Mobile-first · sin build · HTML + CSS + JS clásico
   ============================================================= */

/* =============================================================
   0. Fuentes propias (servidas desde el mismo hosting: sin esperar a Google)
   Archivos variables: cada uno cubre todos los grosores.
   ============================================================= */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("assets/fonts/manrope.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant-italic.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("assets/fonts/cinzel.woff2") format("woff2"); }

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  color-scheme: dark;

  --bg: #0A0710;
  --bg-2: #0F0A17;
  --bg-3: #160F20;
  --bg-4: #1E1429;

  --ink: #F3EEF8;
  --ink-2: #CDC2DA;
  --ink-3: #998BAA;

  --line: rgba(243, 238, 248, .09);
  --line-2: rgba(243, 238, 248, .17);

  /* Morados del logo (muestreados de la marca) */
  --violet-900: #1C0A2B;
  --violet-800: #2D0F44;
  --violet-700: #5B147E;
  --violet-600: #6A0982;
  --violet-500: #8242A6;
  --violet-400: #A966C3;
  --lilac: #B97AF0;
  --lilac-2: #D9BBFB;
  --glow: #D966FF;

  --grad: linear-gradient(120deg, #63107E 0%, #8236C2 55%, #A452E6 100%);
  --grad-text: linear-gradient(100deg, #F3DDFF 0%, #CB8DFA 42%, #9C4FDC 100%);
  --ok: #3DDC84;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mark: "Cinzel", "Cormorant Garamond", Georgia, serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-soft: cubic-bezier(.25, .46, .45, .94);

  --gutter: 20px;
  --max: 1200px;
  --nav-h: 64px;
  --radius: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--bg);
}
html.is-locked { overflow: hidden; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -.015em; font-weight: 600; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--violet-500); color: #fff; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex: none; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .7rem 1rem; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--lilac-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55; }

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 9.4vw, 72px);
  line-height: 1.0;
  letter-spacing: -.018em;
  margin-top: 14px;
}
.h2 em, .hero-title em, .statement em, .relief-title em, .footer-tag em {
  font-style: italic;
  font-weight: 500;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.lead {
  color: var(--ink-2);
  font-size: clamp(16px, 2.3vw, 18.5px);
  line-height: 1.65;
  max-width: 54ch;
  margin-top: 16px;
}

.section { position: relative; padding: clamp(84px, 14vw, 150px) 0; }
.section-head { max-width: 760px; }

/* Reveal (solo con JS; sin JS todo se ve) */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Defensa: si algún día se combina reveal + split, el texto nunca queda invisible */
[data-reveal][data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Components — botones
   ============================================================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: .005em; line-height: 1.1;
  text-align: center;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s, background-color .3s, color .3s;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 14px 34px -14px rgba(164, 82, 230, .85), inset 0 1px 0 rgba(255, 255, 255, .22);
  text-shadow: 0 1px 1px rgba(40, 0, 60, .3);
  overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 6s var(--ease-in-out) 2.4s infinite;
}
@keyframes sheen { 0%, 72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .025);
}
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 13.5px; gap: 8px; }
.btn-sm .ico { width: 17px; height: 17px; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(185, 122, 240, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
  .btn-ghost:hover { border-color: var(--lilac); background: rgba(185, 122, 240, .08); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14.5px; color: var(--lilac-2);
  border-bottom: 1px solid rgba(217, 187, 251, .25);
  padding-bottom: 4px;
  transition: color .3s, border-color .3s, gap .4s var(--ease-out);
}
.link-arrow .ico { width: 17px; height: 17px; }
@media (hover: hover) { .link-arrow:hover { color: #fff; border-color: var(--lilac); gap: 14px; } }

.online { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.online i, .dock-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, .55);
  animation: pulseDot 2.6s ease-out infinite;
}
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } }

/* =============================================================
   5. Splash — el monograma se dibuja
   ============================================================= */
.splash { display: none; }
.js .splash {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: radial-gradient(60% 46% at 50% 46%, #1E0B2E 0%, var(--bg) 72%);
  animation: splashSafety .01s 2.4s forwards;
}
.js.no-splash .splash { display: none; }
.splash.is-out { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-in-out); pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-inner { display: grid; justify-items: center; gap: 20px; }
.splash-mark { width: 78px; height: 98px; overflow: visible; }
.splash-stroke path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw .95s var(--ease-in-out) forwards;
  animation-delay: calc(var(--d) * 70ms);
}
.splash-fill { opacity: 0; animation: fadeIn .7s var(--ease-out) .85s forwards; }
.splash-word {
  display: grid; justify-items: center; gap: 2px;
  font-family: var(--mark); font-weight: 600; font-size: 13px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--lilac-2);
  opacity: 0; animation: fadeUp .9s var(--ease-out) .55s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =============================================================
   6. Navegación
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .45s, border-color .45s, transform .5s var(--ease-out);
}
.nav.is-solid { background: rgba(10, 7, 16, .94); border-color: var(--line); }
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .nav.is-solid { background: rgba(10, 7, 16, .7); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
}
.menu-open .nav { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-inner {
  width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 24px; height: 30px; flex: none; }
.brand-word {
  display: grid; line-height: 1.12;
  font-family: var(--mark); font-weight: 600; font-size: 12px; letter-spacing: .17em; text-transform: uppercase;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-word span:last-child { padding-left: .95em; }
.nav-links { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta .ico { width: 16px; height: 16px; }
.burger {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(10, 7, 16, .35);
}
.burger span { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .45s var(--ease-out); }
.menu-open .burger span:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* Menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 18px) var(--gutter) calc(22px + var(--safe-b));
  background: radial-gradient(110% 70% at 100% 0%, #2D0F44 0%, rgba(10, 7, 16, 0) 60%), var(--bg);
  clip-path: circle(0% at calc(100% - 42px) 32px);
  visibility: hidden;
  transition: clip-path .75s var(--ease-out), visibility 0s linear .75s;
  overflow-y: auto;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 42px) 32px); visibility: visible; transition: clip-path .75s var(--ease-out), visibility 0s; }
.menu-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 9vw, 48px); line-height: 1.08;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
.menu-link .ico { color: var(--lilac); width: 22px; height: 22px; }
.menu-foot { margin-top: 28px; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.menu.is-open .menu-link, .menu.is-open .menu-foot { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .05s); }
.menu-meta { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 14px) 0 34px;
  display: flex; flex-direction: column;
  isolation: isolate;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-aura {
  position: absolute; left: 50%; top: 30%;
  width: 150vw; max-width: 1200px; aspect-ratio: 1;
  translate: -50% -50%;
  background:
    radial-gradient(closest-side at 50% 44%, rgba(194, 102, 245, .5), transparent 72%),
    radial-gradient(closest-side at 34% 62%, rgba(106, 9, 130, .62), transparent 70%),
    radial-gradient(closest-side at 68% 60%, rgba(130, 66, 166, .5), transparent 72%);
  animation: auraSpin 26s linear infinite;
}
@keyframes auraSpin { to { rotate: 360deg; } }
.hero-flutes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(185, 122, 240, .075) calc(12.5% - 1px) 12.5%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 55%, transparent 92%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 55%, transparent 92%);
  overflow: hidden;
}
.hero-flutes::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(217, 102, 255, .16), transparent);
  animation: fluteSweep 7s var(--ease-in-out) infinite;
}
@keyframes fluteSweep { from { transform: translateY(260%); } to { transform: translateY(-120%); } }

.hero-inner {
  flex: 1;
  width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; align-content: center; justify-items: center; gap: 26px;
}

/* Retrato: la foto original dentro de un arco (eco de la columna del logo) */
.hero-figure {
  position: relative;
  height: clamp(290px, 44svh, 560px);
  aspect-ratio: 4 / 5;
  margin-top: 10px;
}
.hero-figure::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50% 50% 22px 22px / 40% 40% 22px 22px;
  box-shadow: 0 0 0 1px rgba(217, 102, 255, .45), 0 0 0 9px rgba(130, 66, 166, .09), 0 40px 110px -30px rgba(150, 60, 210, .8);
}
.portrait {
  position: absolute; inset: 0;
  border-radius: 50% 50% 22px 22px / 40% 40% 22px 22px;
  overflow: hidden;
  background: #3B0F5C;
}
.portrait-media { position: absolute; inset: -4% 0; }
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
/* Pared teñida de morado: el tinte cubre todo menos la cara, que conserva su color natural.
   Va dentro de .portrait-media para moverse junto con la foto en el parallax. */
.portrait-tint, .portrait-shade { position: absolute; inset: 0; pointer-events: none; }
.portrait-tint {
  background: linear-gradient(160deg, #B467E6 0%, #7A22B8 45%, #3B0F5C 100%);
  mix-blend-mode: color;
  -webkit-mask-image: radial-gradient(ellipse 19.1% 17% at 50% 37.5%, transparent 0%, transparent 50%, #000 100%);
  mask-image: radial-gradient(ellipse 19.1% 17% at 50% 37.5%, transparent 0%, transparent 50%, #000 100%);
}
.portrait-shade {
  background: linear-gradient(160deg, rgba(120, 40, 180, 0) 0%, rgba(60, 15, 95, .55) 100%);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 20.7% 18.5% at 50% 37.5%, transparent 40%, #000 100%);
  mask-image: radial-gradient(ellipse 20.7% 18.5% at 50% 37.5%, transparent 40%, #000 100%);
}
/* Base oscura para fundir el arco con la página */
.portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 7, 16, .92) 0%, rgba(10, 7, 16, .4) 20%, rgba(10, 7, 16, 0) 42%);
}
.portrait-ring {
  position: absolute; inset: -13px -13px 18px;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  border: 1px solid rgba(217, 102, 255, .2);
  border-bottom: 0;
  pointer-events: none;
}

.badge {
  position: absolute; z-index: 2; left: -9%; bottom: 7%;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 15px 8px 8px;
  border-radius: 999px;
  background: rgba(15, 10, 23, .9);
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 36px -16px rgba(0, 0, 0, .8);
  max-width: 116%;
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .badge { background: rgba(15, 10, 23, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.badge-mark {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: #0A0710; border: 1px solid rgba(217, 102, 255, .38);
}
.badge-mark svg { width: 15px; height: 19px; }
.badge-text strong { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.badge-text span { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.3; white-space: nowrap; }

.hero-play {
  position: absolute; z-index: 2; right: -11%; top: 40%;
  width: 104px; height: 104px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.hero-play-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero-play-ring text { font: 700 9.4px var(--sans); letter-spacing: .1em; fill: var(--ink-2); }
.hero-play-btn {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(185, 122, 240, .9);
  transition: transform .45s var(--ease-out);
}
.hero-play-btn .ico { width: 22px; height: 22px; margin-left: 3px; }
.hero-play-btn::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(217, 102, 255, .55);
  animation: ring 2.8s var(--ease-out) infinite;
}
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }
@media (hover: hover) { .hero-play:hover .hero-play-btn { transform: scale(1.08); } }

.hero-copy { text-align: center; max-width: 640px; }
.hero-copy .eyebrow { letter-spacing: .2em; }
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 10.6vw, 96px);
  line-height: .98;
  letter-spacing: -.02em;
  margin-top: 12px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.hero-title .line > span { display: block; }
.hero-sub {
  max-width: 37ch; margin: 16px auto 0;
  color: var(--ink-2); font-size: 15.5px; line-height: 1.6;
}
.hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.hero-ctas .btn { padding: 0 12px; font-size: 14px; }
.hero-proof {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px;
  margin-top: 20px; font-size: 12px; color: var(--ink-3);
}
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 10px var(--glow); }

.scroll-cue { display: none; }

/* Estados de entrada del hero (solo con JS) */
.js .portrait { clip-path: inset(100% 0 0 0); }
.js .portrait-media { scale: 1.14; }
.js .hero-figure::before, .js .portrait-ring { opacity: 0; }
.js .hero-title .line > span { transform: translateY(108%); }
.js .hero-copy .eyebrow, .js .hero-sub, .js .hero-ctas, .js .hero-proof, .js .badge, .js .hero-play {
  opacity: 0; transform: translateY(16px);
}
.is-loaded .portrait { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease-out); }
.is-loaded .portrait-media { scale: 1; transition: scale 1.9s var(--ease-out); }
.is-loaded .hero-figure::before, .is-loaded .portrait-ring { opacity: 1; transition: opacity 1.2s var(--ease-out) .5s; }
.is-loaded .hero-title .line > span { transform: none; transition: transform 1.05s var(--ease-out) calc(.3s + var(--i) * .1s); }
.is-loaded .hero-copy .eyebrow, .is-loaded .hero-sub, .is-loaded .hero-ctas, .is-loaded .hero-proof, .is-loaded .badge, .is-loaded .hero-play {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
}
.is-loaded .hero-copy .eyebrow { transition-delay: .2s; }
.is-loaded .hero-sub { transition-delay: .62s; }
.is-loaded .hero-ctas { transition-delay: .74s; }
.is-loaded .hero-proof { transition-delay: .86s; }
.is-loaded .badge { transition-delay: .95s; }
.is-loaded .hero-play { transition-delay: 1.05s; }

/* =============================================================
   8. Ticker
   ============================================================= */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.ticker-group { display: flex; align-items: center; gap: 26px; padding-right: 26px; }
.ticker-group li:not(.ticker-sep) {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(24px, 6.4vw, 34px); line-height: 1.2;
  color: var(--ink-2); white-space: nowrap;
}
.ticker-sep { width: 7px; height: 7px; transform: rotate(45deg); background: var(--lilac); box-shadow: 0 0 12px var(--glow); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   9. Enfoque (manifiesto)
   ============================================================= */
.manifesto { background: var(--bg); overflow: clip; }
.manifesto::before {
  content: ""; position: absolute; right: -18%; top: 8%;
  width: 70vw; max-width: 620px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(106, 9, 130, .32), transparent 70%);
  pointer-events: none;
}
.statement {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(44px, 12.6vw, 118px);
  line-height: .96;
  letter-spacing: -.025em;
  margin-top: 18px;
}
.statement .s { display: block; }
.statement.is-scrub .w { opacity: .14; }
.manifesto-lead { margin-top: 26px; }

/* ---- Balanza de la justicia ---- */
.manifesto-top { display: grid; gap: 34px; }
.justice {
  --t: 0deg;
  position: relative; justify-self: center;
  width: min(320px, 84%); margin: 0;
}
.justice::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: 120%; aspect-ratio: 1; z-index: -1;
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(185, 122, 240, .26), rgba(106, 9, 130, .12) 55%, transparent);
}
.justice svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 12px rgba(217, 102, 255, .45)); }
.j-beam { transform-origin: 100px 58px; transform: rotate(var(--t)); }
.j-pan-l { transform-origin: 44px 58px; transform: rotate(calc(var(--t) * -1)); }
.j-pan-r { transform-origin: 156px 58px; transform: rotate(calc(var(--t) * -1)); }
.j-pivot { fill: url(#jg); stroke: none; }
.j-label { font: 700 7.6px var(--sans); letter-spacing: .04em; fill: var(--lilac-2, #D9BBFB); stroke: none; }
/* se dibuja con una línea de luz al aparecer */
.js .justice .j-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .justice.is-in .j-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s var(--ease-out); }
.js .justice.is-in .j-stand .j-draw:nth-child(2) { transition-delay: .1s; }
.js .justice.is-in .j-stand .j-draw:nth-child(3), .js .justice.is-in .j-stand .j-draw:nth-child(4) { transition-delay: .35s; }
.js .justice.is-in .j-beam > .j-draw { transition-delay: .55s; }
.js .justice.is-in .j-pan .j-draw { transition-delay: .85s; }
.js .justice .j-label, .js .justice .j-pivot { opacity: 0; }
.js .justice.is-in .j-label, .js .justice.is-in .j-pivot { opacity: 1; transition: opacity .8s var(--ease-out) 1.4s; }
/* con GSAP arranca inclinada hacia las deudas y se equilibra al bajar */
.js-gsap .justice { --t: -14deg; }
/* cuando queda en equilibrio: flota y el eje brilla */
.justice.is-balanced svg { animation: justiceFloat 5s ease-in-out infinite; }
.justice.is-balanced .j-pivot { animation: justicePulse 2.4s ease-in-out infinite; }
@keyframes justiceFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes justicePulse { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 6px #D966FF) drop-shadow(0 0 12px #D966FF); } }
.pillars { display: grid; gap: 12px; margin-top: 46px; }
.pillar {
  position: relative; overflow: hidden;
  padding: 24px 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
}
.pillar::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  background: radial-gradient(closest-side, rgba(185, 122, 240, .22), transparent);
  pointer-events: none;
}
.pillar-n { font-family: var(--mark); font-size: 12px; letter-spacing: .24em; color: var(--lilac); }
.pillar h3 { font-family: var(--serif); font-size: 30px; margin-top: 12px; }
.pillar p { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; }

/* ---- Animación de las tarjetas (celular y computador) ---- */
.pillar {
  /* destello que cruza la tarjeta cada pocos segundos */
  background:
    linear-gradient(105deg, transparent 38%, rgba(217, 187, 251, .085) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  transition: border-color .5s var(--ease-out), box-shadow .5s var(--ease-out), translate .5s var(--ease-out);
}
.pillar.is-in { animation: pillarShine 6.5s ease-in-out calc(1.4s + var(--d, 0) * .9s) infinite; }
@keyframes pillarShine {
  0% { background-position: 160% 0, 0 0; }
  38%, 100% { background-position: -60% 0, 0 0; }
}
/* el brillo morado de la esquina flota suavemente */
.pillar::before { animation: pillarGlow 7s ease-in-out calc(var(--d, 0) * -2.3s) infinite alternate; }
@keyframes pillarGlow {
  0% { transform: translate(0, 0) scale(1); opacity: .75; }
  50% { transform: translate(-46px, 26px) scale(1.25); opacity: 1; }
  100% { transform: translate(-90px, 6px) scale(.95); opacity: .8; }
}
/* línea de luz que se dibuja arriba al aparecer */
.pillar::after {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow, #D966FF), transparent);
  transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}
.pillar.is-in::after { transform: scaleX(1); transition: transform 1.2s var(--ease-out) calc(.35s + var(--d, 0) * 120ms); }
/* entrada: la tarjeta sube y crece; luego número, título y texto, uno tras otro */
.js .pillar[data-reveal] {
  transform: translate3d(0, 48px, 0) scale(.95);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out), translate .5s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 120ms), calc(var(--d, 0) * 120ms), 0s, 0s, 0s;
}
.js .pillar[data-reveal].is-in { transform: none; }
.js .pillar > * { opacity: 0; translate: 0 16px; }
.js .pillar.is-in > * { opacity: 1; translate: 0 0; transition: opacity .7s var(--ease-out), translate .8s var(--ease-out); }
.js .pillar.is-in > :nth-child(1) { transition-delay: calc(.25s + var(--d, 0) * 90ms); }
.js .pillar.is-in > :nth-child(2) { transition-delay: calc(.38s + var(--d, 0) * 90ms); }
.js .pillar.is-in > :nth-child(3) { transition-delay: calc(.52s + var(--d, 0) * 90ms); }
.pillar-n { display: inline-block; }
.pillar.is-in .pillar-n { animation: pillarNum 3.2s ease-in-out calc(1.2s + var(--d, 0) * .4s) infinite; }
@keyframes pillarNum { 0%, 100% { color: var(--lilac); text-shadow: none; } 50% { color: #E9CCFF; text-shadow: 0 0 14px rgba(217, 102, 255, .8); } }
/* al pasar el mouse (computador) o tocar (celular) */
@media (hover: hover) {
  .pillar:hover { translate: 0 -6px; border-color: rgba(217, 102, 255, .38); box-shadow: 0 24px 60px -28px rgba(164, 82, 230, .75); }
}
.pillar:active { border-color: rgba(217, 102, 255, .38); }

/* =============================================================
   10. Videos (signature: historias del abogado)
   ============================================================= */
.videos {
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(106, 9, 130, .28), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.reel-rail {
  display: flex; gap: 14px;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 34px var(--gutter) 30px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.reel-rail::-webkit-scrollbar { display: none; }
.reel {
  position: relative;
  display: block;
  flex: 0 0 74%; max-width: 330px;
  scroll-snap-align: start;
  transition: transform .6s var(--ease-out);
}
.reel-media {
  position: relative; isolation: isolate;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -32px rgba(0, 0, 0, .9);
  transition: box-shadow .6s var(--ease-out);
}
.reel-media img, .reel-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.reel-media img { transition: transform 1.2s var(--ease-out); }
.reel-preview { opacity: 0; transition: opacity .7s var(--ease-out); }
.reel.is-previewing .reel-preview { opacity: 1; }
.reel-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 7, 16, .55) 0%, transparent 20%, transparent 80%, rgba(10, 7, 16, .5) 100%);
}
.reel-top {
  position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 11px; font-weight: 700;
}
.reel-chip, .reel-time {
  padding: 6px 10px; border-radius: 999px;
  background: rgba(10, 7, 16, .6); border: 1px solid var(--line-2);
}
.reel-chip { letter-spacing: .14em; text-transform: uppercase; }
.reel-time { font-variant-numeric: tabular-nums; }
.reel-badge {
  position: absolute; z-index: 2; right: 14px; bottom: 14px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 26px -10px rgba(185, 122, 240, .95), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .5s var(--ease-out);
}
.reel-badge .ico { width: 19px; height: 19px; margin-left: 3px; }
.reel-info { display: block; padding: 16px 4px 0; }
.reel-title {
  display: block;
  font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.08;
  text-wrap: balance;
}
.reel-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px;
  font-size: 13.5px; font-weight: 700; color: var(--lilac-2);
  transition: gap .4s var(--ease-out), color .3s;
}
.reel-cta .ico { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .reel:hover { transform: translateY(-6px); }
  .reel:hover .reel-media { box-shadow: 0 0 0 1px rgba(217, 102, 255, .45), 0 40px 70px -30px rgba(106, 9, 130, .9); }
  .reel:hover .reel-media img { transform: scale(1.05); }
  .reel:hover .reel-badge { transform: scale(1.1); }
  .reel:hover .reel-cta { gap: 12px; color: #fff; }
}
.rail-progress {
  width: 120px; height: 2px; margin: 0 auto;
  background: var(--line-2); border-radius: 2px; overflow: hidden;
}
.rail-progress span {
  display: block; height: 100%; width: 100%;
  background: var(--grad);
  transform-origin: left; transform: scaleX(.33);
  transition: transform .2s linear;
}
.videos-foot { display: grid; gap: 22px; justify-items: start; margin-top: 34px; }
.transcript {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .02);
}
.transcript summary {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: 14.5px; color: var(--ink-2);
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary .ico { color: var(--lilac); }
.transcript-body { padding: 0 18px 20px; color: var(--ink-2); font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.transcript-body p + p { margin-top: 12px; }
.transcript-note { font-family: var(--sans); font-size: 12px; color: var(--ink-3); }

/* =============================================================
   11. Test interactivo
   ============================================================= */
.test { background: var(--bg); overflow: clip; }
.test::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(16.66% - 1px), rgba(185, 122, 240, .045) calc(16.66% - 1px) 16.66%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 60%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 60%, #000, transparent);
}
.test-grid { position: relative; display: grid; gap: 34px; }
.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px; }
.req-item {
  display: grid; align-content: start; gap: 6px;
  padding: 16px 10px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  text-align: center;
}
.req-num {
  font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: lining-nums tabular-nums;
}
.req-label { font-size: 11.5px; line-height: 1.3; color: var(--ink-3); }

/* ---- Animación de los requisitos (celular y computador) ---- */
@property --req-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.req-item { position: relative; isolation: isolate; overflow: hidden; }
/* borde de luz que gira alrededor de cada tarjeta */
.req-item::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--req-a), transparent 0 62%, rgba(217, 102, 255, .9) 78%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .8s var(--ease-out);
  animation: reqSpin 5s linear calc(var(--i, 0) * -1.6s) infinite;
}
@keyframes reqSpin { to { --req-a: 360deg; } }
/* halo que respira detrás del número */
.req-item::after {
  content: ""; position: absolute; left: 50%; top: 34%; width: 110px; height: 110px; z-index: -1;
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(185, 122, 240, .28), transparent);
  opacity: 0; scale: .6;
}
.req.is-in .req-item::before { opacity: 1; }
.req.is-in .req-item::after { animation: reqHalo 3.6s ease-in-out calc(.8s + var(--i, 0) * .5s) infinite; }
@keyframes reqHalo { 0%, 100% { opacity: .35; scale: .75; } 50% { opacity: 1; scale: 1.15; } }
/* el número brilla con un reflejo que lo recorre */
.req-num { background-size: 220% 100%; background-position: 100% 0; }
.req.is-in .req-num { animation: reqShimmer 4.5s ease-in-out calc(1.6s + var(--i, 0) * .35s) infinite; }
@keyframes reqShimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.req-plus, .req-l { display: inline-block; background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* entrada: cada tarjeta salta en cascada; luego cuenta, aparece el "+" y la etiqueta */
.js .req[data-reveal] { opacity: 1; transform: none; }
.js .req .req-item { opacity: 0; transform: translateY(28px) scale(.88); }
.js .req.is-in .req-item {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .9s cubic-bezier(.2, 1.35, .4, 1);
  transition-delay: calc(var(--i, 0) * 180ms);
}
.js .req .req-plus { opacity: 0; transform: scale(0) rotate(-90deg); }
.js .req .is-counted .req-plus { opacity: 1; transform: none; transition: transform .55s cubic-bezier(.2, 1.6, .4, 1), opacity .25s; }
.js .req .req-l { opacity: 0; transform: translateY(.45em) rotateX(80deg); filter: blur(6px); }
.js .req.is-in .req-l {
  opacity: 1; transform: none; filter: none;
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), filter .6s var(--ease-out);
  transition-delay: calc(.75s + var(--l, 0) * 160ms);
}
.js .req .req-label { opacity: 0; translate: 0 8px; }
.js .req.is-in .req-label { opacity: 1; translate: 0 0; transition: opacity .6s var(--ease-out), translate .6s var(--ease-out); transition-delay: calc(.45s + var(--i, 0) * 180ms); }

.quiz {
  position: relative;
  padding: 22px 18px 18px;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #181024 0%, #110B1A 100%);
  box-shadow: 0 40px 90px -50px rgba(106, 9, 130, .9);
}
.quiz-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.quiz-count { color: var(--lilac-2); font-variant-numeric: tabular-nums; }
.quiz-progress { height: 3px; margin-top: 12px; border-radius: 3px; background: var(--line); overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 33.34%; background: var(--grad); border-radius: 3px; transition: width .7s var(--ease-out); }
.quiz-form { position: relative; }
.quiz-step { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.js .quiz-step { display: none; }
.js .quiz-step.is-current { display: block; animation: stepIn .6s var(--ease-out); }
.js .quiz.is-done .quiz-form { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.quiz-q { font-family: var(--serif); font-weight: 600; font-size: 29px; line-height: 1.08; padding: 0; text-wrap: balance; }
.quiz-hint { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.quiz-opts { display: grid; gap: 10px; margin-top: 20px; }
.opt {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .025);
  font-weight: 600; font-size: 15.5px;
  cursor: pointer;
  transition: border-color .3s, background-color .3s, transform .35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt::before {
  content: ""; flex: none;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--ink-3);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.opt:active { transform: scale(.98); }
.opt.is-checked, .opt:has(input:checked) { border-color: var(--lilac); background: rgba(185, 122, 240, .11); }
.opt.is-checked::before, .opt:has(input:checked)::before {
  border-color: var(--glow);
  background: radial-gradient(circle, var(--glow) 0 38%, transparent 44%);
  box-shadow: 0 0 14px rgba(217, 102, 255, .5);
}
.opt:has(input:focus-visible) { outline: 2px solid var(--lilac); outline-offset: 2px; }
@media (hover: hover) { .opt:hover { border-color: rgba(185, 122, 240, .55); } }
.quiz-back {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 16px; padding: 8px 4px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3);
}
.quiz-back .ico { width: 16px; height: 16px; }
.quiz-result { text-align: center; padding-top: 8px; }
.quiz.is-done .quiz-result { animation: stepIn .6s var(--ease-out); }
.quiz-ring { position: relative; width: 126px; height: 126px; margin: 18px auto 0; }
.quiz-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.quiz-ring circle { fill: none; stroke-width: 7; }
.quiz-ring .track { stroke: var(--line-2); }
.quiz-ring .fill { stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.5s var(--ease-out) .15s; }
.quiz-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 36px; }
.quiz-tag { margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lilac-2); }
.quiz-title { font-family: var(--serif); font-size: 31px; line-height: 1.05; margin-top: 8px; outline: none; }
.quiz-text { margin: 10px auto 22px; max-width: 40ch; color: var(--ink-2); font-size: 15px; }
.quiz-reset { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); text-decoration: underline; text-underline-offset: 4px; }
.quiz-note { margin-top: 16px; font-size: 12px; color: var(--ink-3); text-align: center; }

/* =============================================================
   12. Proceso
   ============================================================= */
.process { background: var(--bg-2); border-top: 1px solid var(--line); }
.process-grid { display: grid; gap: 46px; margin-top: 46px; }
.steps-wrap { position: relative; padding-left: 60px; }
.steps { display: grid; gap: 38px; }
.steps-line {
  position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px;
  background: var(--line-2); border-radius: 2px;
}
.steps-line i {
  position: absolute; inset: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, #D966FF, #8236C2 60%, #63107E);
  box-shadow: 0 0 14px rgba(217, 102, 255, .55);
  transform-origin: top;
}
.js-gsap .steps-line i { transform: scaleY(0); }
.step { position: relative; }
.step-dot {
  position: absolute; left: -60px; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mark); font-weight: 600; font-size: 13px; letter-spacing: .04em;
  color: var(--ink-3);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  transition: color .5s, background .6s var(--ease-out), border-color .5s, box-shadow .6s var(--ease-out);
}
.step.is-active .step-dot, .no-gsap .step-dot {
  color: #fff;
  border-color: rgba(217, 102, 255, .8);
  background: radial-gradient(circle at 32% 28%, #9B4FDC, #4A0F66 80%);
  box-shadow: 0 0 0 6px rgba(185, 122, 240, .12), 0 0 26px rgba(217, 102, 255, .45);
}
.step h3 { font-family: var(--serif); font-size: 29px; line-height: 1.08; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

.relief {
  position: relative; overflow: hidden;
  padding: 26px 22px;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: radial-gradient(120% 90% at 0% 0%, rgba(130, 66, 166, .34), transparent 60%), var(--bg-3);
}
.relief-title { font-family: var(--serif); font-size: clamp(30px, 7.6vw, 44px); line-height: 1.02; margin-top: 12px; }
.relief-list { display: grid; gap: 18px; margin: 22px 0 24px; }
.relief-item { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; font-size: 15px; color: var(--ink-2); }
.relief-item strong { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 2px; }
.relief-ico {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(185, 122, 240, .13); color: var(--lilac-2);
  border: 1px solid rgba(185, 122, 240, .2);
}

/* =============================================================
   13. Caso real
   ============================================================= */
.case { background: var(--bg); }
.case-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 30px 22px 28px;
  border-radius: 30px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, #1B1027 0%, #0F0A17 62%);
}
.case-glow {
  position: absolute; z-index: -1; right: -30%; bottom: -40%;
  width: 90%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(194, 102, 245, .35), transparent 70%);
}
.case-card::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(185, 122, 240, .05) 39px 40px);
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%);
  mask-image: linear-gradient(200deg, #000, transparent 60%);
}
.stamp {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding: 9px 13px;
  border: 1.5px solid var(--lilac); border-radius: 10px;
  font-family: var(--sans); font-weight: 800; font-size: clamp(10px, 2.8vw, 12px); letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--lilac-2);
  transform: rotate(-3deg);
  box-shadow: 0 0 24px rgba(185, 122, 240, .18), inset 0 0 18px rgba(185, 122, 240, .08);
}
.stamp .ico { width: 16px; height: 16px; }
.js .stamp { opacity: 0; transform: rotate(-3deg) scale(1.7); }
.js .stamp.is-in { opacity: 1; transform: rotate(-3deg) scale(1); transition: transform .55s cubic-bezier(.2, 1.5, .4, 1), opacity .25s; }

/* ---- Mazo del juez (sello del caso y contacto) ---- */
.gavel { position: relative; display: inline-block; flex: none; width: 22px; height: 22px; color: var(--lilac-2); }
.gavel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gavel-head { transform-origin: 79% 79%; filter: drop-shadow(0 0 4px rgba(217, 102, 255, .6)); }
.gavel-wave {
  position: absolute; left: 33%; top: 88%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; border: 1.5px solid var(--glow, #D966FF);
  opacity: 0; transform: scale(.3); pointer-events: none;
}
/* da un golpe al aparecer y vuelve a golpear cada pocos segundos */
.is-in .gavel-head { animation: gavelStrike 6s cubic-bezier(.5, 0, .3, 1) .45s infinite both; }
.is-in .gavel-wave { animation: gavelWave 6s ease-out .45s infinite both; }
@keyframes gavelStrike {
  0%, 8% { transform: rotate(22deg); }
  13% { transform: rotate(-7deg); }
  18%, 88% { transform: rotate(0deg); }
  100% { transform: rotate(22deg); }
}
@keyframes gavelWave {
  0%, 12% { opacity: 0; transform: scale(.3); }
  13% { opacity: .95; transform: scale(.4); }
  32%, 100% { opacity: 0; transform: scale(2.8); }
}
.js .gavel-head { transform: rotate(22deg); }
.stamp .gavel { width: 20px; height: 20px; margin-right: 2px; }

/* Contacto: mazo junto al título pequeño y templo tenue en la esquina */
.eyebrow-gavel::before { display: none; }
.eyebrow-gavel .gavel { width: 20px; height: 20px; }
.contact-head { position: relative; isolation: isolate; }
.temple-mark {
  position: absolute; z-index: -1; right: -6px; top: -26px;
  width: clamp(96px, 26vw, 170px); height: auto;
  color: var(--lilac); pointer-events: none;
}
.temple-mark path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .temple-mark path { stroke-dashoffset: 1; }
.js .temple-mark.is-in { opacity: .24; }
.js .temple-mark.is-in path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease-out); }
.js .temple-mark.is-in path:nth-child(2) { transition-delay: .3s; }
.js .temple-mark.is-in path:nth-child(3) { transition-delay: .6s; }
.js .temple-mark.is-in path:nth-child(4) { transition-delay: .9s; }
.case-title { font-size: clamp(32px, 8.4vw, 60px); margin-top: 18px; }
.case-list { display: grid; gap: 14px; margin-top: 26px; }
.case-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 16px; color: var(--ink-2); }
.case-check {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(61, 220, 132, .12); color: var(--ok);
  border: 1px solid rgba(61, 220, 132, .3);
}
.case-check .ico { width: 15px; height: 15px; }
.case-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }

/* =============================================================
   14. El abogado
   ============================================================= */
.about { background: var(--bg-2); border-top: 1px solid var(--line); }
.about-grid { display: grid; gap: 30px; }
.about-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; }
.avatar {
  width: 92px; height: 92px; border-radius: 50%;
  overflow: hidden; flex: none;
  border: 1px solid rgba(217, 102, 255, .45);
  box-shadow: 0 0 0 6px rgba(130, 66, 166, .12), 0 20px 40px -20px rgba(106, 9, 130, .9);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-name { font-size: clamp(32px, 8.2vw, 64px); margin-top: 8px; }
.about-role { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.about-text { font-size: clamp(17px, 2.5vw, 20px); color: var(--ink-2); max-width: 56ch; }
.quote { margin-top: 28px; padding-left: 20px; position: relative; }
.quote::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #D966FF, #63107E); }
.quote p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(27px, 6.8vw, 42px); line-height: 1.12; }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.values { display: grid; gap: 10px; margin-top: 28px; }
.values li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15.5px; }
.values .ico { width: 18px; height: 18px; color: var(--lilac); }
.chips-static { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips-static li {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2);
  background: rgba(255, 255, 255, .02);
}

/* =============================================================
   15. Preguntas
   ============================================================= */
.faq { background: var(--bg); }
.faq-grid { display: grid; gap: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0;
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.15;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
  position: relative; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background .4s var(--ease-out), border-color .4s;
}
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.6px; border-radius: 2px;
  background: var(--ink);
  translate: -50% -50%;
  transition: rotate .45s var(--ease-out);
}
.faq-plus::after { rotate: 90deg; }
.faq-item[open] .faq-plus { background: var(--grad); border-color: transparent; }
.faq-item[open] .faq-plus::after { rotate: 0deg; }
.faq-a { padding: 0 44px 24px 0; color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0; overflow: clip;
    transition: height .55s var(--ease-out), content-visibility .55s allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}

/* =============================================================
   16. Contacto
   ============================================================= */
.contact {
  background:
    radial-gradient(80% 50% at 50% 100%, rgba(106, 9, 130, .3), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact-grid { display: grid; gap: 26px; margin-top: 38px; }
.form {
  position: relative;
  padding: 24px 18px 20px;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
}
.field { border: 0; padding: 0; min-width: 0; }
.field + .field { margin-top: 18px; }
.field label, .field legend {
  display: block; padding: 0; margin-bottom: 8px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.optional { font-weight: 500; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; min-height: 54px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  font-size: 16px;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(205, 194, 218, .42); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--lilac);
  background: rgba(185, 122, 240, .06);
  box-shadow: 0 0 0 4px rgba(185, 122, 240, .16);
}
.field.has-error input { border-color: #FF86A6; }
.field-error { margin-top: 6px; font-size: 12.5px; color: #FFA3BC; }
.field-error:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease-out);
}
.chip span:active { transform: scale(.96); }
.chip input:checked + span { color: #fff; border-color: var(--lilac); background: rgba(185, 122, 240, .18); }
.chip input:checked + span::before { content: "✓"; font-size: 12px; color: var(--lilac-2); }
.chip input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }
.form .btn-block { margin-top: 22px; }
.form-note { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.form-success {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  padding: 24px; text-align: center;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 50% 40%, #241433, var(--bg-3));
  animation: fadeIn .5s var(--ease-out);
}
.form-success[hidden] { display: none; }
.success-check { width: 84px; height: 84px; }
.success-check circle { fill: none; stroke: var(--line-2); stroke-width: 2; }
.success-check path {
  fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: checkDraw .7s var(--ease-out) .15s forwards;
}
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
.success-title { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; outline: none; }
.success-text { color: var(--ink-2); font-size: 15px; max-width: 32ch; }
.success-text a { color: var(--lilac-2); text-decoration: underline; text-underline-offset: 3px; }

.contact-side { display: grid; gap: 14px; align-content: start; }
.channels { display: grid; gap: 10px; }
.channel {
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  transition: border-color .3s, background-color .3s, transform .4s var(--ease-out);
  min-width: 0;
}
.channel > span:nth-child(2) { min-width: 0; }
.channel:active { transform: scale(.985); }
.channel-ico {
  width: 46px; height: 46px; border-radius: 15px;
  display: grid; place-items: center;
  background: rgba(185, 122, 240, .13); color: var(--lilac-2);
  border: 1px solid rgba(185, 122, 240, .2);
}
.channel small { display: block; font-size: 12px; color: var(--ink-3); }
.channel strong { display: block; font-size: 15.5px; font-weight: 700; overflow-wrap: anywhere; }
.channel strong.email { overflow-wrap: normal; font-size: 15px; }
.channel-go { width: 18px; height: 18px; color: var(--ink-3); transition: transform .4s var(--ease-out), color .3s; }
@media (hover: hover) {
  .channel:hover { border-color: rgba(185, 122, 240, .45); background: rgba(185, 122, 240, .06); }
  .channel:hover .channel-go { color: var(--lilac); transform: translate(2px, -2px); }
}
.place { border-radius: 24px; border: 1px solid var(--line); overflow: hidden; background: rgba(255, 255, 255, .02); }
.map { position: relative; aspect-ratio: 16 / 11; background: var(--bg-3); }
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  pointer-events: none; /* solo de referencia: que nadie salga de la página hacia Google Maps */
  filter: invert(.92) hue-rotate(180deg) saturate(.75) contrast(.9) brightness(.95);
}
.map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(106, 9, 130, .16), rgba(10, 7, 16, 0) 40%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.place-info { display: grid; gap: 14px; padding: 18px; }
.place-info p { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--ink-3); }
.place-info p .ico { color: var(--lilac); margin-top: 2px; }
.place-info strong { display: block; color: var(--ink); font-size: 15px; }
.place-info .btn { justify-self: start; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer {
  padding: 64px 0 calc(44px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: #07050B;
}
.footer-grid { display: grid; gap: 34px; }
.footer-tag { margin-top: 16px; color: var(--ink-3); font-size: 14px; line-height: 1.7; }
.footer-tag em { font-family: var(--serif); font-size: 19px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { order: -1; } /* WhatsApp primero; Instagram y Facebook son solo decorativos */
.social-deco { cursor: default; }
.social a, .social-deco {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--ink-2);
  transition: color .3s, border-color .3s, background-color .3s;
}
.social .ico { width: 18px; height: 18px; }
@media (hover: hover) { .social a:hover { color: #fff; border-color: var(--lilac); background: rgba(185, 122, 240, .12); } }
.footer-h { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lilac-2); margin-bottom: 12px; }
.footer-col p { font-size: 14.5px; color: var(--ink-3); line-height: 1.9; }
.footer-col a { transition: color .3s; }
@media (hover: hover) { .footer-col a:hover { color: var(--ink); } }
.footer-legal { display: grid; gap: 6px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* =============================================================
   18. Dock (barra fija de contacto en móvil)
   ============================================================= */
.dock {
  position: fixed; z-index: 70;
  left: 12px; right: 12px; bottom: calc(12px + var(--safe-b));
  display: flex; gap: 8px;
  transform: translateY(150%);
  transition: transform .65s var(--ease-out);
  pointer-events: none;
}
.dock.is-visible { transform: none; pointer-events: auto; }
.dock-wa { flex: 1; min-height: 56px; font-size: 15px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8), 0 10px 30px -12px rgba(164, 82, 230, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
.dock-wa .ico { width: 21px; height: 21px; }
.dock-dot { margin-left: 2px; }
.dock-call {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(22, 15, 32, .94);
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8);
}
.no-js-dock .dock { transform: none; }

/* =============================================================
   19. Reproductor tipo historias
   ============================================================= */
.story {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink);
  overflow: hidden;
}
.story[open] { display: grid; place-items: center; }
.story::backdrop { background: rgba(5, 3, 8, .94); }
.story-stage {
  position: relative;
  width: 100%; height: 100%;
  background: #000;
  overflow: hidden;
  touch-action: none;
  animation: storyIn .5s var(--ease-out);
}
.story-sheet-body { touch-action: pan-y; }
@keyframes storyIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.story-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.story-stage::before, .story-stage::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none;
}
.story-stage::before { top: 0; height: 150px; background: linear-gradient(180deg, rgba(0, 0, 0, .65), transparent); }
.story-stage::after { bottom: 0; height: 200px; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); }
.story-bars {
  position: absolute; z-index: 3; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top, 0px));
  display: flex; gap: 5px;
}
.story-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.story-bars i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.story-head {
  position: absolute; z-index: 3; left: 12px; right: 8px; top: calc(22px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 10px;
}
.story-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: #0A0710; border: 1.5px solid var(--glow);
}
.story-avatar svg { width: 16px; height: 20px; }
.story-who { flex: 1; min-width: 0; line-height: 1.25; }
.story-who strong { display: block; font-size: 14px; }
.story-who small { display: block; font-size: 12px; color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
}
.story-btn .ico { width: 22px; height: 22px; }
.story-btn .i-mute { display: none; }
.story.is-muted .story-btn .i-vol { display: none; }
.story.is-muted .story-btn .i-mute { display: block; }
.story-tap { position: absolute; z-index: 2; top: 90px; bottom: 120px; -webkit-tap-highlight-color: transparent; }
.story-tap:focus-visible { outline-offset: -6px; }
.story-tap-prev { left: 0; width: 28%; }
.story-tap-mid { left: 28%; width: 44%; }
.story-tap-next { right: 0; width: 28%; }
.story-state {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 7, 16, .55); color: #fff;
  opacity: 0; transform: scale(.8);
  transition: opacity .3s, transform .4s var(--ease-out);
  pointer-events: none;
}
.story-state .ico { width: 30px; height: 30px; margin-left: 4px; }
.story.is-paused .story-state { opacity: 1; transform: none; }
.story-unmute {
  position: absolute; z-index: 3; left: 50%; top: calc(84px + env(safe-area-inset-top, 0px));
  translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #120B1A;
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.story-unmute .ico { width: 18px; height: 18px; }
.story-unmute[hidden] { display: none; }
.story-foot {
  position: absolute; z-index: 3; left: 12px; right: 12px; bottom: calc(14px + var(--safe-b));
  display: flex; gap: 8px; align-items: center;
}
.story-wa { flex: 1; min-height: 52px; }
.story.is-ended .story-wa { animation: nudge 1.6s var(--ease-out) infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateY(-4px); } 60% { transform: none; } }
.story-chip {
  height: 52px; padding: 0 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 14px; font-weight: 700; color: #fff;
}
.story-chip[hidden] { display: none; }
.story-sheet {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  max-height: 62%;
  display: flex; flex-direction: column;
  border-radius: 24px 24px 0 0;
  background: rgba(15, 10, 23, .97);
  border-top: 1px solid var(--line-2);
  animation: sheetIn .5s var(--ease-out);
}
.story-sheet[hidden] { display: none; }
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
.story-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 4px 20px; font-size: 14px; }
.story-sheet-body {
  overflow-y: auto; padding: 4px 20px calc(24px + var(--safe-b));
  font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--ink-2);
}
.story-sheet-body p + p { margin-top: 12px; }
.story-nav { display: none; }

/* =============================================================
   20. Grain
   ============================================================= */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   21. Responsive (mobile-first)
   ============================================================= */
@media (max-height: 700px) and (max-width: 719px) {
  .hero-inner { gap: 18px; }
  .hero-figure { height: clamp(250px, 38svh, 420px); margin-top: 6px; }
  .hero-play { top: 36%; right: -14%; width: 92px; height: 92px; }
  .hero-play-btn { width: 52px; height: 52px; }
  .badge { bottom: 1%; }
  .hero-title { font-size: clamp(34px, 9.6vw, 60px); }
  .hero-sub { font-size: 15px; margin-top: 12px; }
  .hero-ctas { margin-top: 18px; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .hero-ctas { grid-template-columns: 1fr; }
  .badge { left: -4%; }
  .badge-text strong { font-size: 11.5px; }
  .hero-play { right: -8%; }
}

@media (min-width: 540px) {
  :root { --gutter: 28px; }
  .reel { flex-basis: 46%; }
  .req-item { padding: 20px 12px; }
}

@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .hero-figure { height: clamp(340px, 50svh, 600px); }
  .hero-ctas { display: flex; justify-content: center; }
  .hero-ctas .btn { padding: 0 26px; font-size: 15px; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .reel-rail { justify-content: center; }
  .reel { flex-basis: 30%; }
  .rail-progress { display: none; }
  .quiz { padding: 30px 28px 24px; }
  .opt { min-height: 60px; }
  .case-card { padding: 48px 46px 40px; }
  .stamp { font-family: var(--mark); font-weight: 600; font-size: 13px; letter-spacing: .16em; }
  .form { padding: 30px 28px 26px; }
  .faq-item summary { font-size: 26px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-legal { grid-template-columns: 1fr 1fr; }
  .story-stage {
    width: auto; height: min(92vh, 860px);
    aspect-ratio: 9 / 16;
    border-radius: 26px;
    box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -30px rgba(106, 9, 130, .6);
  }
  .story-bars { top: 12px; }
  .story-head { top: 24px; }
  .story-unmute { top: 86px; }
  .story-foot { bottom: 14px; }
  .story-nav {
    position: absolute; top: 50%; z-index: 5;
    width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
    transition: background-color .3s;
  }
  .story-nav:hover { background: rgba(255, 255, 255, .2); }
  .story-nav-prev { left: calc(50% - (min(92vh, 860px) * 9 / 32) - 76px); }
  .story-nav-next { right: calc(50% - (min(92vh, 860px) * 9 / 32) - 76px); }
}

@media (min-width: 960px) {
  :root { --nav-h: 76px; }
  .nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
  .nav-links a { position: relative; padding: 6px 0; transition: color .3s; }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--grad); transform: scaleX(0); transform-origin: right;
    transition: transform .5s var(--ease-out);
  }
  .nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
  .nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
  .burger { display: none; }
  .nav-cta { min-height: 44px; padding: 0 18px; }
  .brand-mark { width: 28px; height: 35px; }
  .brand-word { font-size: 13px; }

  .hero { padding-bottom: 48px; }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch; align-items: center;
    gap: 56px;
  }
  .hero-copy { order: -1; text-align: left; max-width: 640px; }
  .hero-title { font-size: clamp(54px, 5.4vw, 82px); }
  .hero-sub { margin-left: 0; font-size: 17.5px; max-width: 40ch; }
  .hero-ctas { justify-content: flex-start; }
  .hero-proof { justify-content: flex-start; }
  .hero-figure { justify-self: center; height: min(70svh, 640px); margin-top: 0; margin-right: 40px; }
  .badge { left: -10%; bottom: 9%; padding: 10px 18px 10px 10px; }
  .badge-mark { width: 40px; height: 40px; }
  .badge-text strong { font-size: 14px; }
  .badge-text span { font-size: 12px; }
  .hero-play { width: 120px; height: 120px; right: -13%; top: 34%; }
  .hero-play-btn { width: 66px; height: 66px; }
  .scroll-cue {
    display: block; position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
    width: 24px; height: 38px; border-radius: 14px; border: 1px solid var(--line-2);
  }
  .scroll-cue span {
    position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px;
    background: var(--lilac); animation: cue 2.2s var(--ease-in-out) infinite;
  }
  @keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

  .reel-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1080px; margin-inline: auto; padding: 46px var(--gutter) 16px; overflow: visible; }
  .reel { max-width: none; }
  .reel-title { font-size: 28px; }

  .test-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
  .process-grid { grid-template-columns: 1.15fr .85fr; align-items: start; gap: 70px; }
  .relief { position: sticky; top: calc(var(--nav-h) + 30px); padding: 34px 30px; }
  .about-grid { grid-template-columns: .9fr 1.1fr; align-items: start; gap: 70px; }
  .about-head { grid-template-columns: 1fr; gap: 26px; }
  .avatar { width: 150px; height: 150px; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
  .faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 40px); }
  .contact-grid { grid-template-columns: 1.05fr .95fr; align-items: start; gap: 30px; }

  .dock { left: auto; right: 26px; bottom: 26px; }
  .dock-wa { min-height: 58px; padding: 0 24px; }
}

@media (min-width: 1280px) {
  .hero-inner { gap: 60px; }
  .statement { font-size: 124px; }
}

/* Computador: el templo del contacto va en la esquina derecha, lejos del título */
@media (min-width: 960px) {
  .contact-head { max-width: none; }
  .contact-head > :not(.temple-mark) { max-width: 760px; }
  .temple-mark { right: 10px; top: -10px; }
}

/* Computador: la balanza va a la derecha de la frase */
@media (min-width: 1100px) {
  .manifesto-top { grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 420px); gap: 48px; align-items: center; }
  .manifesto-top .statement { font-size: clamp(76px, 7vw, 104px); }
  .justice { width: 100%; }
}

/* =============================================================
   22. Movimiento reducido — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-play-btn::before, .online i, .dock-dot { animation: none; }
  .hero-flutes::after { animation: none; opacity: 0; }
  .story.is-ended .story-wa { animation: none; }
  .scroll-cue span { animation: none; }
  .pillar.is-in, .pillar::before, .pillar.is-in .pillar-n { animation: none; }
  .req-item::before, .req.is-in .req-item::after, .req.is-in .req-num { animation: none; }
  .js-gsap .justice { --t: 0deg; }
  .is-in .gavel-head, .is-in .gavel-wave { animation: none; }
  .js .gavel-head { transform: none; }
  .justice.is-balanced svg, .justice.is-balanced .j-pivot { animation: none; }
  .js .req .req-plus { opacity: 1; transform: none; }
}
