/* =========================================================
   Centro Privado de Mediación · conveniomediacion.com.mx
   Identidad: azul noche #0B2D4F · grafito #4D4D4D · dorado suave #D4AF7C
   Tipografía: Cinzel SemiBold (nombre y títulos) · Cinzel Regular espaciada (lema)
   ========================================================= */
:root {
  --navy: #0B2D4F;
  --navy-2: #123A62;
  --ivory: #FAFAF8;
  --ivory-2: #F2F0EB;
  --slate: #4D4D4D;
  --ink: #20242A;
  --gold: #D4AF7C;
  --gold-2: #E2C79E;
  --line: rgba(11, 45, 79, .1);
  --line-dark: rgba(250, 250, 248, .14);
  --wa: #25D366;
  --pain: #C8645A;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 18px;
  --shadow: 0 24px 60px -28px rgba(11, 45, 79, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hh: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: .01em; overflow-wrap: break-word; }
h1 em, h2 em { font-style: normal; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
em { font-style: italic; color: var(--gold); }
svg.ic, .ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; margin-top: 52px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow { font: 400 .74rem/1.2 var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.center-head .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.link .ic { transition: transform .25s var(--ease); }
.link:hover .ic { transform: translateX(4px); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 .97rem/1 var(--sans); text-decoration: none; cursor: pointer; padding: 17px 28px; border-radius: 999px; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s; }
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ic:not(.wa) { transform: translateX(3px); }
.btn .wa { width: 20px; height: 20px; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 12px 30px -14px rgba(212, 175, 124, .9); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { color: var(--ivory); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--navy); border-color: #D8D6D0; }
.btn-line:hover { border-color: var(--navy); }
.btn-sm { padding: 12px 22px; font-size: .88rem; white-space: nowrap; }
.btn-block { width: 100%; }

/* ---------- Encabezado y menú ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ivory); transition: background .35s, box-shadow .35s; }
.site-header.scrolled, .site-header.solid, .site-header.open { background: rgba(11, 45, 79, .96); backdrop-filter: blur(12px); box-shadow: 0 8px 30px -14px rgba(0,0,0,.45); }
.site-header .wrap { width: min(1240px, 100% - 32px); }
.header-in { display: flex; align-items: center; gap: 22px; height: var(--hh); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; flex: none; }
.brand img { width: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 4px; line-height: 1.1; min-width: 0; }
.brand-text strong { font: 600 .94rem/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.brand-text small { font: 400 .6rem/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Logotipo vertical (isotipo + nombre + lema) */
.lockup { display: grid; justify-items: center; text-align: center; gap: 10px; }
.lockup img { width: 96px; }
.lk-name { font: 600 1.45rem/1.12 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--ivory); }
.lk-tag { display: flex; align-items: center; gap: 12px; font: 400 .66rem/1 var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.lk-tag::before, .lk-tag::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.lockup-mnav { padding: 18px 0 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line-dark); }
.lockup-mnav img { width: 72px; }
.lockup-mnav .lk-name { font-size: 1.15rem; }
.nav { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.nav > a, .dd-link, .dd-btn { font: 500 .88rem/1 var(--sans); color: inherit; text-decoration: none; padding: 10px 14px; border-radius: 999px; opacity: .85; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: opacity .2s, background .2s; }
.nav > a:hover, .dd:hover .dd-link, .dd-link:hover, .dd-btn:hover, .dd-btn[aria-expanded="true"] { opacity: 1; background: rgba(250,250,248,.08); }
.nav > a[aria-current], .dd.is-current .dd-link, .dd.is-current .dd-btn { opacity: 1; color: var(--gold-2); }
/* El producto estrella resalta en el menú */
.nav > a.nav-star { opacity: 1; color: var(--gold-2); border: 1px solid rgba(212, 175, 124, .45); padding: 9px 15px; }
.nav > a.nav-star .ic { width: 16px; height: 16px; }
.nav > a.nav-star:hover, .nav > a.nav-star[aria-current] { background: rgba(212, 175, 124, .14); border-color: var(--gold); }
.dd { position: relative; display: flex; align-items: center; }
.dd-link { padding-right: 6px; border-radius: 999px 0 0 999px; }
.dd .dd-btn { padding: 10px 10px 10px 4px; border-radius: 0 999px 999px 0; }
.dd:hover .dd-btn { background: rgba(250,250,248,.08); opacity: 1; }
.dd-btn .ic { transition: transform .3s var(--ease); }
.dd-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.dd-panel { z-index: 2; white-space: normal; position: absolute; top: calc(100% + 12px); left: 50%; width: 520px; translate: -50% 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; background: var(--ivory); color: var(--ink); border-radius: var(--r); box-shadow: 0 30px 70px -20px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.dd-panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.dd:hover .dd-panel, .dd-btn[aria-expanded="true"] + .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-item { display: flex; gap: 14px; padding: 14px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.dd-item:hover, .dd-item[aria-current] { background: var(--ivory-2); }
.dd-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); flex: none; }
.dd-ic .ic { width: 22px; height: 22px; }
.dd-item b { display: block; font-size: .92rem; color: var(--navy); }
.dd-item small { display: block; font-size: .78rem; color: var(--slate); line-height: 1.35; margin-top: 3px; }
.dd-all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 13px; border-radius: 12px; background: var(--navy); color: var(--gold-2); font-weight: 600; font-size: .88rem; text-decoration: none; transition: background .2s; }
.dd-all:hover { background: var(--navy-2); }
.dd-all .ic { transition: transform .25s var(--ease); }
.dd-all:hover .ic { transform: translateX(4px); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; color: inherit; cursor: pointer; place-items: center; }
.burger .ic { width: 22px; height: 22px; }
.mnav { padding: 8px 16px 22px; max-height: calc(100dvh - var(--hh)); overflow-y: auto; border-top: 1px solid var(--line-dark); }
.mnav a:not(.btn) { display: flex; align-items: center; gap: 14px; padding: 14px 6px; text-decoration: none; font-size: 1rem; border-bottom: 1px solid var(--line-dark); }
.mnav a:not(.btn) .ic { width: 22px; height: 22px; color: var(--gold-2); }
.mnav a[aria-current] { color: var(--gold-2); }
.mnav a.mnav-sub { padding: 11px 6px 11px 30px; font-size: .94rem; opacity: .85; }
.mnav a.mnav-sub .ic { width: 18px; height: 18px; }
.mnav a.mnav-star { margin: 8px 0 4px; padding: 16px 14px; border: 1px solid rgba(212, 175, 124, .5); border-radius: 14px; background: rgba(212, 175, 124, .1); color: var(--gold-2); }
.mnav-star span { display: grid; gap: 4px; font-weight: 600; }
.mnav-star small { font: 400 .62rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: rgba(250,250,248,.65); }
.mnav-label { font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding: 20px 6px 4px; }
.mnav .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--ivory); padding: calc(var(--hh) + 80px) 0 110px; overflow: clip; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg span { position: absolute; border-radius: 50%; border: 1px solid rgba(212, 175, 124, .16); }
.hero-bg span:nth-child(1) { width: 820px; aspect-ratio: 1; right: -260px; top: -160px; animation: breathe 9s ease-in-out infinite; }
.hero-bg span:nth-child(2) { width: 560px; aspect-ratio: 1; right: -130px; top: -30px; animation: breathe 9s ease-in-out infinite 1.5s; }
.hero-bg span:nth-child(3) { width: 420px; aspect-ratio: 1; left: -200px; bottom: -220px; border: 0; background: radial-gradient(circle, rgba(212, 175, 124,.16), transparent 70%); animation: drift 14s ease-in-out infinite; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: 24px; }
.hero h1 em { color: var(--gold-2); }
.lead { font-size: 1.12rem; color: rgba(250, 250, 248, .8); max-width: 540px; }
.lead strong { color: var(--ivory); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: .86rem; color: rgba(250,250,248,.7); }
.hero-trust .ic { width: 20px; height: 20px; color: var(--gold-2); }
.crumbs { font-size: .8rem; color: rgba(250,250,248,.6); margin-bottom: 18px; display: flex; gap: 8px; }
.crumbs a { text-decoration: none; color: var(--gold-2); }

/* Texto que entra palabra por palabra */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.split.in .w > span { transform: none; }

/* Documento animado */
.hero-visual { display: grid; justify-items: center; gap: 34px; }
.doc { position: relative; width: min(350px, 100%); background: var(--ivory); color: var(--ink); border-radius: 12px; padding: 28px 28px 24px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); transform: rotate(-2deg); animation: floaty 7s ease-in-out infinite; }
.doc::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(212, 175, 124,.35); border-radius: 7px; pointer-events: none; }
.doc-head { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.doc-head b { display: block; font: 700 .76rem/1.2 var(--sans); letter-spacing: .14em; color: var(--navy); }
.doc-head span { font-size: .72rem; color: var(--slate); }
.doc-lines { display: grid; gap: 10px; padding: 20px 0; }
.doc-lines i { height: 7px; border-radius: 4px; background: #E4E2DC; transform-origin: left; transform: scaleX(0); animation: grow .7s var(--ease) forwards; }
.doc-lines i.short { width: 62%; }
.doc-lines i:nth-child(1) { animation-delay: .5s; } .doc-lines i:nth-child(2) { animation-delay: .65s; }
.doc-lines i:nth-child(3) { animation-delay: .8s; }  .doc-lines i:nth-child(4) { animation-delay: .95s; }
.doc-lines i:nth-child(5) { animation-delay: 1.1s; } .doc-lines i:nth-child(6) { animation-delay: 1.25s; }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.doc-sign svg { width: 100%; height: 40px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; border-bottom: 1px solid var(--slate); }
.sig { stroke-dasharray: 260; stroke-dashoffset: 260; animation: dash 1.4s ease forwards 1.6s; }
.sig.s2 { animation-delay: 2.4s; }
.doc-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-size: .64rem; color: var(--slate); text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
.seal { position: absolute; right: -24px; top: -24px; width: 96px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #E8D2AC, var(--gold) 55%, #A8875A); display: grid; place-items: center; align-content: center; gap: 2px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.55), inset 0 0 0 5px rgba(255,255,255,.14); opacity: 0; transform: scale(2.4) rotate(-30deg); animation: stamp .55s cubic-bezier(.3,1.6,.5,1) forwards 3.4s; }
.seal img { width: 42px; filter: brightness(.6) contrast(1.2); mix-blend-mode: multiply; }
.seal span { font: 700 .54rem/1 var(--sans); letter-spacing: .2em; color: #4A3B22; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.badges li { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: .84rem; font-weight: 500; background: rgba(250,250,248,.07); border: 1px solid var(--line-dark); opacity: 0; animation: chipIn .7s var(--ease) forwards; }
.badges li:nth-child(1) { animation-delay: 4s; } .badges li:nth-child(2) { animation-delay: 4.2s; } .badges li:nth-child(3) { animation-delay: 4.4s; }
.badges .ic { width: 17px; height: 17px; color: var(--gold-2); }

/* Órbita de íconos (páginas de materia) */
.orbit { position: relative; width: min(400px, 82vw); aspect-ratio: 1; justify-self: center; }
.orbit-ring { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(212, 175, 124,.4); animation: spin 60s linear infinite; }
.orbit-spin { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.orbit-i { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-2); border: 1px solid rgba(212, 175, 124,.4); color: var(--gold-2); transform: rotate(var(--a)) translateY(calc(min(400px, 82vw) * -.41)) rotate(calc(var(--a) * -1)); }
.orbit-i .ic { width: 26px; height: 26px; animation: spin 40s linear infinite reverse; }
.orbit-core { position: absolute; inset: 28%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #E8D2AC, var(--gold) 60%, #A8875A); color: var(--navy); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 14px rgba(212, 175, 124,.1), 0 0 0 28px rgba(212, 175, 124,.05); animation: pulse 4s ease-in-out infinite; }
.orbit-core .ic { width: 44%; height: 44%; stroke-width: 1.4; }
.hero-photo { margin: 0; justify-self: center; width: min(320px, 70vw); border-radius: 200px 200px var(--r) var(--r); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); border: 1px solid rgba(212, 175, 124,.4); }
.hero-photo img { width: 100%; aspect-ratio: 3/4.2; object-fit: cover; }

/* ---------- Carrusel de acreditación ---------- */
.marquee { background: #fff; padding: 30px 0 34px; border-block: 1px solid var(--line); overflow: hidden; }
.mq-title { display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 .74rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); text-align: center; padding: 0 16px 22px; }
.mq-title .ic { width: 18px; height: 18px; color: var(--gold); }
.mq-viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-group { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.mq-group img { height: 58px; width: auto; }
.mq-group img[src*="consejo"] { height: 66px; }
.mq-txt { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font: 600 1.25rem/1 var(--serif); color: var(--navy); }
.mq-txt .ic { width: 22px; height: 22px; color: var(--gold); }

/* ---------- Secciones ---------- */
.sec { padding: 120px 0; overflow-x: clip; }
.sec-dark { background: var(--navy); color: var(--ivory); }
.sec-soft { background: var(--ivory-2); }
.sec-head { max-width: 720px; margin-bottom: 60px; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head p { color: var(--slate); font-size: 1.05rem; }
.center-head { text-align: center; margin-inline: auto; }
.sec-dark .sec-head p { color: rgba(250,250,248,.72); }
.sec-dark .sec-head strong { color: var(--ivory); }

/* Trazo animado de íconos */
.ic.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .ic.draw, .ic.draw.in { animation: dash 1.6s var(--ease) forwards .25s; }

/* Trío */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.trio-item h3, .two-card h3 { font: 600 1.55rem/1.15 var(--serif); color: var(--navy); margin: 22px 0 6px; }
.trio-item p, .two-card p { color: var(--slate); }
.ring { position: relative; width: 104px; height: 104px; margin-inline: auto; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: var(--ivory-2); }
.ring::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--gold); border-right-color: transparent; border-bottom-color: transparent; animation: spin 6s linear infinite; }
.ring .ic { width: 44px; height: 44px; stroke-width: 1.4; }

/* Beneficios */
.bens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.ben-ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: rgba(212, 175, 124,.12); color: var(--gold-2); margin-bottom: 20px; transition: transform .4s var(--ease), background .4s; }
.ben:hover .ben-ic { transform: translateY(-4px) rotate(-6deg); background: rgba(212, 175, 124,.22); }
.ben-ic .ic { width: 30px; height: 30px; }
.ben h3 { font: 600 1.45rem/1.15 var(--serif); margin-bottom: 8px; }
.ben p { color: rgba(250,250,248,.68); font-size: .95rem; }

/* Comparativo cara a cara */
.vs { max-width: 980px; margin-inline: auto; }
.vs-head { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; margin-bottom: 14px; }
.vs-col { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px; border-radius: var(--r) var(--r) 0 0; font: 600 1.35rem/1.2 var(--serif); text-align: center; }
.vs-col .ic { width: 26px; height: 26px; }
.vs-col-bad { background: #E9E7E2; color: var(--slate); }
.vs-col-good { background: var(--navy); color: var(--ivory); }
.vs-col-good .ic { color: var(--gold-2); }
.vs-badge { justify-self: center; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font: 700 1.5rem/1 var(--serif); color: var(--navy); background: var(--gold); box-shadow: 0 0 0 10px var(--ivory), 0 0 0 11px rgba(212, 175, 124,.4); animation: pulse 3s ease-in-out infinite; }
.vs-row { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: stretch; }
.vs-row + .vs-row { margin-top: 6px; }
.vs-bad, .vs-good { display: flex; align-items: center; gap: 12px; padding: 22px 24px; font-size: .98rem; transition: transform .8s var(--ease), opacity .8s var(--ease); opacity: 0; }
.vs-bad { justify-content: flex-end; text-align: right; background: #F1EFEA; color: var(--slate); transform: translateX(-40px); }
.vs-good { background: rgba(11, 45, 79,.94); color: var(--ivory); font-weight: 500; transform: translateX(40px); }
.vs-row:last-child .vs-bad { border-radius: 0 0 0 var(--r); }
.vs-row:last-child .vs-good { border-radius: 0 0 var(--r) 0; }
.vs-mark { width: 22px !important; height: 22px !important; padding: 4px; border-radius: 50%; }
.vs-bad .vs-mark { color: #A9776F; background: rgba(169,119,111,.12); }
.vs-good .vs-mark { color: var(--navy); background: var(--gold); stroke-width: 2.4; }
.vs-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); position: relative; }
.vs-label::before { content: ""; position: absolute; inset: 0 50%; width: 1px; background: var(--line); z-index: -1; }
.vs-label .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--ivory); border: 1px solid rgba(212, 175, 124,.5); color: var(--navy); }
.vs-row.in .vs-bad, .vs-row.in .vs-good { opacity: 1; transform: none; }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; top: 36px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line); }
.steps::after { background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
.step { position: relative; z-index: 1; text-align: center; opacity: .45; transition: opacity .5s; }
.step.on { opacity: 1; }
.step-dot { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory-2); border: 2px solid var(--line); color: var(--slate); transition: all .5s var(--ease); }
.step-dot .ic { width: 28px; height: 28px; }
.step.on .step-dot { background: var(--navy); border-color: var(--gold); color: var(--gold-2); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(212, 175, 124,.16); }
.step h3 { font: 600 1.4rem/1.2 var(--serif); color: var(--navy); margin-bottom: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step h3 span { font: 700 .7rem/1 var(--sans); letter-spacing: .16em; color: var(--gold); }
.step h3 span::before { content: "PASO "; }
.step p { color: var(--slate); font-size: .94rem; max-width: 250px; margin-inline: auto; }
.docs { margin-top: 70px; text-align: center; }
.docs h3 { font: 600 1.5rem/1 var(--serif); color: var(--navy); margin-bottom: 22px; }
.docs ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.docs li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 16px; background: #fff; border-radius: 14px; font-size: .9rem; color: var(--slate); transition: transform .3s var(--ease), box-shadow .3s; }
.docs li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.docs li .ic { width: 30px; height: 30px; color: var(--gold); }

/* Para quién */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.who-card { text-align: center; padding: 44px 34px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.who-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.who-art { position: relative; width: 150px; height: 150px; margin: 0 auto 26px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; }
.who-art > .ic { width: 64px; height: 64px; stroke-width: 1.3; }
.orb { position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); box-shadow: 0 10px 20px -8px rgba(0,0,0,.4); animation: bob 4s ease-in-out infinite; }
.orb .ic { width: 22px; height: 22px; }
.orb.o1 { top: -4px; right: -14px; }
.orb.o2 { bottom: 0; left: -16px; animation-delay: 1.4s; }
.who-card h3 { font: 600 1.6rem/1.15 var(--serif); color: var(--navy); margin-bottom: 10px; }
.who-card p { color: var(--slate); max-width: 400px; margin-inline: auto; }

/* Tarjetas de materia */
.mats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mats:has(.mat-feature) { grid-template-columns: repeat(5, 1fr); }
.mat { display: flex; flex-direction: column; padding: 30px 24px; border-radius: var(--r); background: #fff; text-decoration: none; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.mat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(212, 175, 124,.6); }
.mat-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); margin-bottom: 22px; }
.mat-ic .ic { width: 28px; height: 28px; }
.mat h3 { font: 600 1.4rem/1.15 var(--serif); color: var(--navy); margin-bottom: 6px; }
.mat > p { color: var(--slate); font-size: .9rem; flex: 1; }
.mat-more { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: .88rem; }
.mat-more .ic { transition: transform .25s var(--ease); }
.mat:hover .mat-more .ic { transform: translateX(4px); }
.mat-feature { background: var(--navy); border-color: var(--navy); }
.mat-feature h3 { color: var(--ivory); }
.mat-feature p { color: rgba(250,250,248,.7); }
.mat-feature .mat-ic { background: var(--gold); color: var(--navy); }

/* Casos de uso */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { display: flex; flex-direction: column; padding: 34px 30px 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case h3 { font: 600 1.45rem/1.15 var(--serif); color: var(--navy); margin-bottom: 8px; }
.case > p { color: var(--slate); font-size: .95rem; }
.case > p.case-ex { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--ivory-2); font-size: .88rem; border-left: 3px solid var(--gold); flex: 1; }
.case-ex b { color: var(--navy); }
.case-cta { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: #128C4A; text-decoration: none; }
.case-cta .ic { width: 20px; height: 20px; }
.case-cta:hover { text-decoration: underline; }

.msteps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: m; }
.mstep { position: relative; padding: 30px 24px; border-radius: var(--r); border: 1px solid var(--line-dark); counter-increment: m; }
.mstep::after { content: "0" counter(m); position: absolute; top: 24px; right: 24px; font: 600 .78rem/1 var(--sans); color: rgba(212, 175, 124,.6); letter-spacing: .1em; }
.mstep-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(212, 175, 124,.14); color: var(--gold-2); margin-bottom: 18px; }
.mstep-ic .ic { width: 24px; height: 24px; }
.mstep b { display: block; font: 600 1.35rem/1.2 var(--serif); margin-bottom: 4px; }
.mstep small { color: rgba(250,250,248,.68); font-size: .92rem; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin-inline: auto; }
.two-card { text-align: center; padding: 44px 34px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }

/* Cotizador */
.quote-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.quote-copy h2 { margin-bottom: 16px; }
.quote-copy > p { color: rgba(250,250,248,.72); }
.check { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.check li { display: flex; align-items: center; gap: 12px; }
.check .ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--gold); color: var(--navy); stroke-width: 2.4; }
.quote { background: var(--ivory); color: var(--ink); border-radius: 22px; padding: 36px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.field { display: block; margin-bottom: 18px; }
.lbl { display: block; font-size: .84rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #D8D6D0; border-radius: 12px; padding: 14px; transition: border-color .2s, box-shadow .2s; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586472' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 124,.18); }
.field .bad { border-color: #B5574B; animation: shake .35s; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; border: 1px solid #D8D6D0; font-size: .86rem; font-weight: 500; background: #fff; transition: all .25s var(--ease); }
.chips span .ic { width: 24px; height: 24px; color: var(--gold); }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--ivory); transform: translateY(-2px); }
.chips input:checked + span .ic { color: var(--gold-2); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips-4 { grid-template-columns: repeat(4, 1fr); }
.chips-txt span { padding: 14px 6px; text-align: center; font-size: .82rem; line-height: 1.25; }
.chips.bad span { border-color: #B5574B; }
.chips.bad { animation: shake .35s; }
.q-note { margin: 12px 0 0; font-size: .78rem; color: var(--slate); text-align: center; }
.q-note a { color: var(--navy); font-weight: 600; }
.q-error { color: #A5483D; font-size: .88rem; min-height: 1.2em; margin-bottom: 8px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: rgba(212, 175, 124,.6); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font: 600 1.3rem/1.3 var(--serif); color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 400 1.2rem/1 var(--sans); color: var(--navy); background: var(--ivory-2); transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); }
.faq details p { padding: 0 0 22px; color: var(--slate); animation: fadeUp .4s var(--ease); }
.faq a { color: var(--navy); font-weight: 600; }

/* CTA final */
.final { background: linear-gradient(160deg, var(--navy) 0%, #061C33 100%); color: var(--ivory); padding: 110px 0; text-align: center; }
.final-in { display: grid; justify-items: center; gap: 26px; }
.lockup-final { margin-bottom: 8px; }
.lockup-final img { width: 120px; animation: floaty 6s ease-in-out infinite; }
.final h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }

/* Pie */
.site-footer { background: var(--ink); color: rgba(250,250,248,.7); padding: 70px 0 28px; font-size: .92rem; }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.foot-brand { display: grid; gap: 22px; align-content: start; }
.lockup-foot { grid-template-columns: auto 1fr; grid-template-rows: auto auto; justify-items: start; text-align: left; column-gap: 16px; row-gap: 8px; }
.lockup-foot img { width: 64px; grid-row: 1 / 3; align-self: center; }
.lockup-foot .lk-name { font-size: 1.1rem; align-self: end; }
.lockup-foot .lk-tag { align-self: start; font-size: .58rem; }
.lockup-foot .lk-tag::before, .lockup-foot .lk-tag::after { display: none; }
.foot-brand strong { color: var(--ivory); font: 600 1.15rem/1.4 var(--serif); }
.foot-col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot-col h3 { color: var(--gold); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.foot-col a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: color .2s; }
.foot-col a .ic { width: 16px; height: 16px; }
.foot-col a:hover { color: var(--gold-2); }
.social { display: flex; gap: 10px; margin: 6px 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; justify-content: center; border: 1px solid var(--line-dark); }
.social a .ic { width: 18px; height: 18px; }
.social a[data-pending] { opacity: .4; cursor: default; }
.legal { padding-top: 24px; font-size: .78rem; color: rgba(250,250,248,.42); }

/* Aviso */
.legal-page { padding: calc(var(--hh) + 64px) 0 90px; }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy); margin-bottom: 10px; }
.legal-page .updated { color: var(--slate); font-size: .9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.6rem; color: var(--navy); margin: 38px 0 12px; }
.legal-page p, .legal-page li { color: #3A414B; }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { padding-left: 20px; margin: 10px 0; }
.legal-page li { margin-bottom: 8px; }
.legal-page .note { margin-top: 36px; font-size: .88rem; color: var(--slate); font-style: italic; }
.pending { background: #F3E9D6; padding: 0 4px; border-radius: 3px; }
.back { margin-top: 40px; }

/* WhatsApp flotante (escritorio) y barra inferior (móvil) */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 14px; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(37,211,102,.6); transform: translateY(120px); transition: transform .5s var(--ease); }
.wa-float.show { transform: none; }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease), padding .4s; }
.wa-float:hover span, .wa-float.pulse span { max-width: 200px; padding-right: 6px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: ring 2.4s ease-out infinite; }
.mbar { display: none; }

/* ---------- Aparición ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1s; }
.hero-copy > .reveal:nth-child(3) { transition-delay: .35s; }
.hero-copy > .reveal:nth-child(4) { transition-delay: .5s; }
.hero-copy > .reveal:nth-child(5) { transition-delay: .65s; }
.trio .reveal:nth-child(2), .bens .reveal:nth-child(3n+2), .cases .reveal:nth-child(3n+2), .mats .reveal:nth-child(2), .msteps .reveal:nth-child(2) { transition-delay: .12s; }
.trio .reveal:nth-child(3), .bens .reveal:nth-child(3n), .cases .reveal:nth-child(3n), .mats .reveal:nth-child(3), .msteps .reveal:nth-child(3) { transition-delay: .24s; }
.mats .reveal:nth-child(4), .msteps .reveal:nth-child(4) { transition-delay: .36s; }
.mats .reveal:nth-child(5) { transition-delay: .48s; }

/* ---------- Animaciones ---------- */
@keyframes grow { to { transform: scaleX(1); } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes stamp { to { opacity: 1; transform: scale(1) rotate(-12deg); } }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.04; opacity: .6; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 60px -40px; } }
@keyframes pulse { 0%, 100% { scale: 1; } 50% { scale: 1.05; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes shake { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }

/* ---------- Navegación fluida entre páginas ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
html:has(.subnav) { scroll-padding-top: 150px; }

.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.05); transform: translateY(-2px); }
.link-light { color: var(--ivory); }

/* ---------- Inicio: cotizador en el encabezado ---------- */
.hero-home { padding-bottom: 96px; }
.hero-home .hero-in { grid-template-columns: 1fr minmax(0, 500px); gap: 56px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.hero-points li { display: flex; align-items: center; gap: 12px; color: rgba(250,250,248,.92); }
.hero-points .ic { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--gold); color: var(--navy); stroke-width: 2.4; }
.hero-quote { scroll-margin-top: 30px; }
.hero-quote .quote { padding: 30px; }
.q-head { margin-bottom: 22px; }
.q-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8A6B3E; background: rgba(212, 175, 124, .2); padding: 7px 12px; border-radius: 999px; margin-bottom: 12px; }
.q-kicker .ic { width: 14px; height: 14px; }
.q-title { font: 600 1.4rem/1.2 var(--display); color: var(--navy); margin-bottom: 6px; }
.q-sub { color: var(--slate); font-size: .92rem; }
.lbl i { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--navy); color: var(--gold-2); font: 700 .66rem/1 var(--sans); vertical-align: 1px; }
.hero-more { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: .88rem; color: rgba(250,250,248,.75); text-decoration: none; text-align: center; }
.hero-more:hover { color: var(--gold-2); }
.hero-more .ic { flex: none; transition: transform .25s var(--ease); }
.hero-more:hover .ic { transform: translateX(4px); }

/* ---------- Historia con scroll: "¿Y si tu inquilino deja de pagar?" ---------- */
/* app.js fija la sección y marca la escena activa (.on) con su avance --lp (0 a 1) */
.story { --pain: #C8645A; position: relative; height: calc(100vh + var(--n) * 75vh); background: #15181D; color: var(--ivory); transition: background .8s var(--ease); }
.story.won { background: var(--navy); }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: var(--hh); overflow: hidden; }
.story-pin::before, .story-pin::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity .8s; }
.story-pin::before { background: radial-gradient(55% 60% at 74% 50%, rgba(200, 100, 90, .2), transparent 70%); }
.story-pin::after { background: radial-gradient(55% 60% at 74% 50%, rgba(212, 175, 124, .22), transparent 70%); opacity: 0; }
.won .story-pin::before { opacity: 0; }
.won .story-pin::after { opacity: 1; }
.story-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-copy .eyebrow { margin-bottom: 26px; }
.ss-wrap { display: grid; }
.ss { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ss.on { opacity: 1; transform: none; pointer-events: auto; }
.ss-k { margin-bottom: 14px; font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--pain); }
.ss-win .ss-k { color: var(--gold); }
.ss h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.ss p:not(.ss-k) { max-width: 480px; font-size: 1.08rem; color: rgba(250,250,248,.75); }
.ss strong { color: var(--gold-2); }
.ss .btn { margin-top: 26px; }
.meters { display: grid; gap: 14px; max-width: 440px; margin-top: 40px; }
.meter span { display: block; margin-bottom: 6px; font-size: .78rem; letter-spacing: .04em; color: rgba(250,250,248,.6); }
.meter i { position: relative; display: block; height: 6px; overflow: hidden; border-radius: 3px; background: rgba(250,250,248,.1); }
.meter i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #E08A6E, var(--pain)); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform .7s var(--ease); }
.won .meter i::after { background: var(--gold); }

.story-stage { position: relative; justify-self: center; width: min(460px, 100%); aspect-ratio: 1; }
.sc { --lp: 0; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: scale(.94); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.sc.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

/* 0 · Meses sin cobrar */
.cal { width: min(380px, 92%); padding: 22px; border-radius: 18px; background: #F4F1EA; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); transform: rotate(-2deg); }
.cal-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid rgba(0,0,0,.08); }
.cal-head .ic { width: 22px; height: 22px; color: var(--navy); }
.cal-head b { flex: 1; font-size: .92rem; color: var(--navy); }
.cal-due { padding: 6px 9px; border-radius: 999px; background: var(--pain); color: #fff; font: 700 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cal-grid span { --a: clamp(0, calc(var(--lp) * 13 - var(--k)), 1); position: relative; display: grid; place-items: center; aspect-ratio: 1.15; border-radius: 10px; background: #fff; border: 1px solid rgba(0,0,0,.06); }
.cal-grid small { font: 600 .66rem/1 var(--sans); letter-spacing: .1em; color: var(--slate); }
.cal-grid b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; background: rgba(200, 100, 90, .16); color: var(--pain); opacity: var(--a); transform: scale(calc(1.6 - .6 * var(--a))); }
.cal-grid b .ic { width: 58%; height: 58%; stroke-width: 2.2; }
.cal-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-size: .85rem; color: var(--slate); }
.cal-total b { font: 600 1.9rem/1 var(--display); color: var(--pain); }

/* 1 · Demanda */
.paper { --in: clamp(0, calc(var(--lp) * 3), 1); --st: clamp(0, calc((var(--lp) - .55) * 6), 1); position: absolute; width: min(320px, 74%); aspect-ratio: .78; padding: 26px 24px; border-radius: 6px; background: #FBFAF7; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); opacity: var(--in); transform: translateY(calc((1 - var(--in)) * 80px)) rotate(calc(-4deg + 2deg * var(--in))); }
.paper.paper-back { background: #DCD7CC; opacity: calc(var(--in) * .6); transform: translate(22px, 14px) rotate(5deg); }
.paper-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.paper-top .ic { width: 30px; height: 30px; }
.paper-top b { display: block; font: 600 1.2rem/1 var(--display); letter-spacing: .08em; }
.paper-top span { font-size: .72rem; color: var(--slate); }
.paper-lines { display: grid; gap: 11px; padding-top: 20px; }
.paper-lines i { height: 6px; border-radius: 3px; background: #DAD6CE; transform-origin: left; transform: scaleX(clamp(0, calc(var(--lp) * 16 - var(--k) - 2), 1)); }
.paper-lines i:nth-child(3n) { width: 68%; }
.paper-stamp { position: absolute; right: 16px; bottom: 24px; padding: 10px 14px; border: 3px solid var(--pain); border-radius: 8px; color: var(--pain); text-align: center; font: 700 1.05rem/1 var(--sans); letter-spacing: .14em; opacity: var(--st); transform: rotate(-14deg) scale(calc(2.2 - 1.2 * var(--st))); }
.paper-stamp small { display: block; margin-top: 4px; font-size: .5rem; letter-spacing: .12em; }

/* 2 · Abogado y gastos */
.rcpt { position: relative; z-index: 1; width: min(300px, 74%); padding: 22px 22px 20px; border-radius: 6px; background: #FBFAF7; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.rcpt-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.rcpt-head .ic { width: 28px; height: 28px; }
.rcpt-head b { display: block; font-size: .95rem; }
.rcpt-head span { font-size: .72rem; color: var(--slate); }
.rcpt-rows p { --a: clamp(0, calc(var(--lp) * 9 - var(--k)), 1); display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(0,0,0,.14); font-size: .82rem; opacity: var(--a); transform: translateY(calc((1 - var(--a)) * -8px)); }
.rcpt-rows b { color: var(--pain); letter-spacing: .1em; }
.rcpt-total { display: flex; justify-content: space-between; margin-top: 12px; font-weight: 700; opacity: clamp(0, calc(var(--lp) * 9 - 6), 1); }
.rcpt-total b { color: var(--pain); }
.coins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.coin { --a: clamp(0, calc(var(--lp) * 7 - var(--k) - 1), 1); position: absolute; left: calc(50% + var(--x)); top: 4%; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem/1 var(--sans); color: #6B5330; background: radial-gradient(circle at 35% 30%, #F0DCB8, var(--gold) 60%, #A8875A); box-shadow: 0 10px 20px -8px rgba(0,0,0,.6); opacity: calc(1 - var(--a)); transform: translateY(calc(var(--a) * 340px)) rotate(calc(var(--a) * 260deg)); }

/* 3 · Audiencias */
.pages { position: relative; width: min(250px, 58%); aspect-ratio: .9; perspective: 900px; }
.pg { --a: clamp(0, calc(var(--lp) * 6 - var(--k) - .3), 1); position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; text-align: center; border-radius: 14px; border-top: 24px solid var(--pain); background: #FBFAF7; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); transform-origin: top; transform: rotateX(calc(var(--a) * -100deg)); opacity: calc(1 - var(--a)); }
.pg:last-child { --a: 0; }
.pg small { font: 600 .66rem/1 var(--sans); letter-spacing: .16em; color: var(--slate); }
.pg b { font: 600 4rem/1 var(--display); color: var(--navy); }
.pg span { font-size: .8rem; letter-spacing: .14em; color: var(--slate); }
.pg .pg-st { position: absolute; left: 50%; bottom: 14%; translate: -50% 0; rotate: -10deg; padding: 5px 10px; border: 2px solid var(--pain); border-radius: 6px; color: var(--pain); font: 700 .72rem/1 var(--sans); letter-spacing: .16em; }
.clock { position: absolute; right: 6%; top: 6%; width: 92px; height: 92px; border-radius: 50%; background: #FBFAF7; box-shadow: 0 0 0 6px rgba(250,250,248,.12), 0 20px 40px -16px rgba(0,0,0,.7); }
.clock::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--ink); }
.clock i { position: absolute; left: 50%; bottom: 50%; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink); transform-origin: bottom; }
.clock-h { height: 24px; transform: rotate(calc(var(--lp) * 300deg)); }
.clock i.clock-m { height: 36px; background: var(--pain); transform: rotate(calc(var(--lp) * 2160deg)); }

/* 4 · Sentencia */
.gavel { --hit: clamp(0, calc((var(--lp) - .3) * 5), 1); width: min(340px, 80%); overflow: visible; margin-bottom: 18%; }
.gv-block { fill: #6B4F33; }
.gv-base { fill: #4E3925; }
.gv-arm { transform-box: view-box; transform-origin: 215px 110px; transform: rotate(calc(38deg * (1 - var(--hit)))); }
.gv-handle { fill: #8A6440; }
.gv-head { fill: #6B4F33; }
.gv-band { fill: var(--gold); }
.gv-shock { fill: none; stroke: var(--gold-2); stroke-width: 4; stroke-linecap: round; opacity: calc(clamp(0, calc((var(--hit) - .95) * 20), 1) * (1 - clamp(0, calc((var(--lp) - .6) * 4), 1))); }
.verdict { --a: clamp(0, calc((var(--lp) - .45) * 4), 1); position: absolute; left: 50%; bottom: 6%; translate: -50% 0; padding: 14px 24px; border-radius: 10px; background: #FBFAF7; color: var(--ink); text-align: center; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); opacity: var(--a); transform: translateY(calc((1 - var(--a)) * 20px)); white-space: nowrap; }
.verdict b { display: block; font: 600 1.1rem/1 var(--display); letter-spacing: .1em; color: var(--navy); }
.verdict span { display: inline-block; margin-top: 8px; font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pain); }

/* 5 · Ejecución: el reloj de arena */
.hg { width: min(170px, 40%); overflow: visible; margin-bottom: 16%; }
.hg-glass { fill: none; stroke: rgba(250,250,248,.85); stroke-width: 3; stroke-linecap: round; }
.hg-sand-t, .hg-sand-b { fill: var(--gold); transform-box: fill-box; transform-origin: bottom; }
.hg-sand-t { transform: scaleY(calc(1 - var(--lp) * .95)); }
.hg-sand-b { transform: scaleY(calc(.04 + var(--lp) * .96)); }
.hg-stream { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 3 5; animation: sand .6s linear infinite; opacity: calc(1 - clamp(0, calc((var(--lp) - .92) * 12), 1)); }
.hg-tag { position: absolute; bottom: 6%; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; background: rgba(250,250,248,.08); border: 1px solid rgba(250,250,248,.16); opacity: clamp(0, calc((var(--lp) - .5) * 4), 1); }
.hg-tag .ic { width: 26px; height: 26px; color: var(--gold-2); }
.hg-tag span { font-weight: 600; font-size: .92rem; }
.hg-tag small { display: block; font-weight: 400; font-size: .76rem; opacity: .7; }

/* 6 · Con convenio: se firma conforme bajas */
.doc.doc-story { width: min(340px, 84%); animation: none; }
.doc-story .doc-lines i { animation: none; transform: scaleX(clamp(0, calc(var(--lp) * 12 - var(--k)), 1)); }
.doc-story .sig { animation: none; stroke-dashoffset: calc(260px - 260px * clamp(0, calc((var(--lp) - .3) * 4), 1)); }
.doc-story .sig.s2 { stroke-dashoffset: calc(260px - 260px * clamp(0, calc((var(--lp) - .45) * 4), 1)); }
.doc-story .seal { --st: clamp(0, calc((var(--lp) - .62) * 6), 1); animation: none; opacity: var(--st); transform: scale(calc(2.4 - 1.4 * var(--st))) rotate(calc(-30deg + 18deg * var(--st))); }
.sc-0 .cal { margin-bottom: 18%; }
.chat { position: absolute; left: 2%; bottom: 0; display: grid; gap: 8px; justify-items: start; width: 74%; }
.chat p { --a: clamp(0, calc(var(--lp) * 5 - var(--k) * 1.3 - .6), 1); position: relative; padding: 9px 12px 7px; border-radius: 12px 12px 12px 3px; background: #DCF8C6; color: #1F2C24; font-size: .8rem; line-height: 1.35; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); opacity: var(--a); transform: translateY(calc((1 - var(--a)) * 14px)) scale(calc(.9 + .1 * var(--a))); transform-origin: left bottom; }
.chat small { display: flex; align-items: center; justify-content: flex-end; margin-top: 2px; font-size: .64rem; color: #53BDEB; }
.chat small .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.chat small .ic + .ic { margin-left: -7px; margin-right: 4px; }

/* 7 · Directo al juez */
.sc-7 { place-content: center; gap: 0; }
.route { display: flex; align-items: center; width: min(420px, 94%); }
.rt-node { --a: clamp(0, calc(var(--lp) * 4 - var(--k) * 1.2), 1); flex: none; display: grid; justify-items: center; gap: 10px; font-size: .82rem; font-weight: 600; color: rgba(250,250,248,calc(.4 + .6 * var(--a))); }
.rt-node .ic { width: 64px; height: 64px; padding: 16px; border-radius: 50%; border: 1px solid rgba(212, 175, 124, .5); color: var(--gold-2); background: rgba(212, 175, 124, calc(.06 + .2 * var(--a))); transform: scale(calc(.85 + .15 * var(--a))); }
.rt-end .ic { background: rgba(212, 175, 124, calc(.06 + .94 * var(--a))); color: var(--navy); }
.rt-line { flex: 1; height: 3px; margin: 0 8px 26px; border-radius: 2px; background: rgba(250,250,248,.14); position: relative; overflow: hidden; }
.rt-line::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(clamp(0, calc(var(--lp) * 4 - var(--k) * 1.2 - .5), 1)); }
.skip-t { margin: 42px 0 12px; text-align: center; font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(250,250,248,.55); opacity: clamp(0, calc((var(--lp) - .4) * 5), 1); }
.skipped { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; max-width: 420px; }
.skipped li { --a: clamp(0, calc(var(--lp) * 10 - var(--k) - 4.5), 1); position: relative; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(250,250,248,.18); font-size: .82rem; color: rgba(250,250,248,.7); opacity: clamp(0, calc((var(--lp) - .4) * 5), 1); }
.skipped li::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--pain); transform-origin: left; transform: scaleX(var(--a)); }

.story-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; padding-bottom: 26px; padding-right: 72px; }
.rail { flex: 1; display: flex; list-style: none; padding: 0; margin: 0; }
.rail li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: .7rem; letter-spacing: .06em; color: rgba(250,250,248,.4); transition: color .4s; }
.rail li i { position: relative; height: 3px; margin-right: 6px; overflow: hidden; border-radius: 2px; background: rgba(250,250,248,.14); }
.rail li i::after { content: ""; position: absolute; inset: 0; background: var(--pain); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.rail li.on { color: var(--ivory); }
.rail li.on i::after { transform: scaleX(1); }
.won .rail li.on i::after { background: var(--gold); }
.story-skip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 2px; border-bottom: 1px solid rgba(250,250,248,.25); color: rgba(250,250,248,.7); text-decoration: none; font-size: .84rem; }
.story-skip:hover { color: var(--gold-2); }
@keyframes sand { to { stroke-dashoffset: -8; } }

/* Sin JavaScript: se muestra solo el desenlace, sin fijar la sección */
html:not(.js) .story { height: auto; background: var(--navy); }
html:not(.js) .story-pin { position: relative; height: auto; padding: 110px 0 60px; }
html:not(.js) .story .ss-win, html:not(.js) .story .sc-6 { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
html:not(.js) .story .sc-6 { --lp: 1; }
html:not(.js) .meters, html:not(.js) .rail { display: none; }

/* ---------- Figuras ilustradas (materias) ---------- */
/* --lp registrado como número para poder animarlo fuera de las historias */
@property --lp { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes lpPlay { from { --lp: 0; } to { --lp: 1; } }
.fig { display: grid; place-items: center; font: 400 16px/1.65 var(--sans); text-align: left; }
.fig-box { position: relative; width: 420px; height: 420px; display: grid; place-items: center; }
.fig.play.in .fig-box { animation: lpPlay 2.8s cubic-bezier(.3, .7, .3, 1) .15s both; }
.with-chat > .paper { translate: 0 -16%; }

/* Personas */
.pp circle, .pp path { stroke: none; }
.pp-a { fill: #8FB0D3; }
.pp-b { fill: #E7B8A8; }
.pp-m { fill: var(--gold); }
.pp-k { fill: #F4F1EA; }

/* Discusión */
.argue { width: min(400px, 96%); overflow: visible; }
.ar-l, .ar-r { transform-box: fill-box; transform-origin: bottom center; }
.ar-l { transform: rotate(calc(6deg * var(--lp))); }
.ar-r { transform: rotate(calc(-6deg * var(--lp))); }
.bub path { fill: #FBFAF7; }
.bub text { fill: var(--pain, #C8645A); font: 700 15px var(--sans); text-anchor: middle; }
.bub { transform-box: fill-box; transform-origin: bottom center; }
.bub-l { --a: clamp(0, calc((var(--lp) - .1) * 5), 1); opacity: var(--a); transform: scale(calc(.6 + .4 * var(--a))); }
.bub-r { --a: clamp(0, calc((var(--lp) - .35) * 5), 1); opacity: var(--a); transform: scale(calc(.6 + .4 * var(--a))); }
.ar-bolt { fill: var(--gold); opacity: clamp(0, calc((var(--lp) - .6) * 5), 1); animation: flick 1.4s steps(2) infinite; }
@keyframes flick { 50% { fill: #F3DDB4; } }

/* Mesa de mediación */
.table { width: min(400px, 96%); overflow: visible; margin-top: 10%; }
.tb-top { fill: #7A5A3A; }
.tb-edge { fill: #573F28; }
.tb-b rect { fill: #FBFAF7; }
.tb-b circle { fill: var(--slate); animation: dots 1.2s ease-in-out infinite; }
.tb-b circle:nth-child(3) { animation-delay: .2s; } .tb-b circle:nth-child(4) { animation-delay: .4s; }
.tb-1 { opacity: clamp(0, calc((var(--lp) - .1) * 5), 1); }
.tb-2 { opacity: clamp(0, calc((var(--lp) - .35) * 5), 1); }
@keyframes dots { 50% { opacity: .3; } }
.tb-ok { --a: clamp(0, calc((var(--lp) - .62) * 5), 1); position: absolute; top: 6%; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 12px 20px 12px 12px; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 700; box-shadow: 0 0 0 calc(10px * var(--a)) rgba(212, 175, 124, .18), 0 20px 40px -16px rgba(0,0,0,.6); opacity: var(--a); transform: scale(calc(.6 + .4 * var(--a))); }
.tb-ok .ic { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--navy); color: var(--gold-2); }

/* Civil: pagaré vencido */
.paper.pagare { aspect-ratio: auto; width: min(300px, 72%); }
.pagare-t { margin-top: 16px; font-size: .78rem; color: var(--slate); }
.pagare-a { margin: 4px 0 6px; font: 600 1.6rem/1.2 var(--display); color: var(--navy); }
.pagare .paper-lines { padding-top: 10px; }
.pagare-sig { width: 46%; margin-top: 14px; border-bottom: 1px solid var(--slate); fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; }
.pagare-sig .sig { animation: none; stroke-dashoffset: calc(260px - 260px * clamp(0, calc(var(--lp) * 3 - .3), 1)); }

/* Mercantil: facturas vencidas */
.invs { position: relative; width: min(220px, 52%); aspect-ratio: .74; margin-bottom: 8%; }
.inv { --a: clamp(0, calc(var(--lp) * 3 - var(--k) * .4), 1); position: absolute; inset: 0; z-index: var(--k); padding: 18px 16px; border-radius: 6px; background: #FBFAF7; color: var(--ink); box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); transform: translate(calc((var(--k) - 1) * 70px * var(--a)), calc(var(--a) * -8px)) rotate(calc((var(--k) - 1) * 9deg * var(--a))); }
.inv-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.inv-h b { font: 600 .95rem/1 var(--display); letter-spacing: .08em; }
.inv-h span { font-size: .66rem; color: var(--slate); }
.inv .paper-lines { gap: 9px; padding-top: 14px; }
.inv .paper-lines i { transform: none; }
.inv-t { display: flex; justify-content: space-between; margin-top: 16px; font-size: .8rem; font-weight: 700; }
.inv-st { --st: clamp(0, calc((var(--lp) - .4 - var(--k) * .12) * 6), 1); position: absolute; left: 50%; bottom: 22%; translate: -50% 0; padding: 6px 10px; border: 2px solid var(--pain, #C8645A); border-radius: 6px; color: var(--pain, #C8645A); text-align: center; font: 700 .78rem/1 var(--sans); letter-spacing: .12em; opacity: var(--st); transform: rotate(-12deg) scale(calc(2 - var(--st))); }
.inv-st small { display: block; margin-top: 3px; font-size: .52rem; }
.flow { position: absolute; right: 3%; bottom: 4%; z-index: 5; width: 170px; padding: 12px 14px 10px; border-radius: 12px; background: #FBFAF7; color: var(--ink); box-shadow: 0 20px 40px -18px rgba(0,0,0,.7); }
.flow p { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
.flow p .ic { width: 15px; height: 15px; color: var(--pain, #C8645A); }
.flow svg { width: 100%; height: 56px; overflow: visible; }
.flow-l { fill: none; stroke: var(--pain, #C8645A); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--lp)); }

/* Familiar: dos casas y un calendario en disputa */
.fam { width: min(400px, 96%); overflow: visible; margin-bottom: 18%; }
.fh-b { fill: rgba(250,250,248,.06); stroke: rgba(250,250,248,.85); stroke-width: 3; stroke-linejoin: round; }
.fh-w { fill: var(--gold); }
.fh-d { fill: rgba(250,250,248,.22); }
.fam-path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: .02 .025; opacity: .8; }
.kid { --t: clamp(0, calc(var(--lp) * 1.6), 1); transform: translate(calc(var(--t) * 60px), calc(var(--t) * -40px)); }
.fam-q { --a: clamp(0, calc((var(--lp) - .55) * 5), 1); opacity: var(--a); transform-box: fill-box; transform-origin: center; transform: scale(calc(.5 + .5 * var(--a))); }
.fam-q circle { fill: #FBFAF7; }
.fam-q text { fill: var(--pain, #C8645A); font: 700 24px var(--sans); text-anchor: middle; }
.week { position: absolute; bottom: 4%; left: 50%; translate: -50% 0; padding: 12px 14px; border-radius: 14px; background: #FBFAF7; color: var(--ink); box-shadow: 0 20px 40px -18px rgba(0,0,0,.7); }
.week p { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: .72rem; font-weight: 600; color: var(--slate); }
.week p .ic { width: 15px; height: 15px; color: var(--pain, #C8645A); }
.week div { display: flex; gap: 6px; }
.week span { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--ivory-2); font-size: .74rem; font-weight: 600; color: var(--slate); }
.week span.we { background: linear-gradient(135deg, #8FB0D3 50%, #E7B8A8 50%); color: var(--navy); }
.week b { --a: clamp(0, calc((var(--lp) - .5 - (var(--k) - 5) * .15) * 6), 1); position: absolute; top: -9px; right: -7px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--pain, #C8645A); color: #fff; font-size: .7rem; opacity: var(--a); transform: scale(var(--a)); }

/* Condominal: el edificio */
.condo { width: min(300px, 72%); overflow: visible; }
.cb { fill: #1E3550; stroke: rgba(250,250,248,.25); stroke-width: 2; }
.cb-roof { stroke: var(--gold); stroke-width: 5; stroke-linecap: round; }
.cw { fill: var(--gold); opacity: calc(.12 + .88 * clamp(0, calc(var(--lp) * 7 - var(--k)), 1)); }
.cb-door { fill: #A8875A; }
.c-notes text { fill: var(--gold-2); font: 600 24px var(--sans); animation: note 2.4s ease-in-out infinite; }
.c-notes text:nth-child(2) { animation-delay: .5s; } .c-notes text:nth-child(3) { animation-delay: 1s; }
.c-notes { opacity: clamp(0, calc((var(--lp) - .3) * 5), 1); }
@keyframes note { 50% { transform: translateY(-8px); } }
.c-drip { fill: #7FB7E6; opacity: clamp(0, calc((var(--lp) - .45) * 5), 1); animation: drip 1.8s ease-in infinite; }
@keyframes drip { 0% { transform: translateY(0); } 80% { transform: translateY(46px); opacity: 1; } 100% { transform: translateY(52px); opacity: 0; } }
.c-sign { --a: clamp(0, calc((var(--lp) - .62) * 5), 1); opacity: var(--a); transform-box: view-box; transform-origin: 160px 44px; animation: swing 3s ease-in-out infinite; }
.c-sign rect { fill: var(--pain, #C8645A); }
.c-sign text { fill: #fff; font: 700 13px var(--sans); letter-spacing: .1em; text-anchor: middle; }
.c-rope { fill: none; stroke: rgba(250,250,248,.6); stroke-width: 2; }
@keyframes swing { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }

/* Dónde aparecen las figuras */
.hero-fig { justify-self: center; }
.hubs .hub { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.hub-body { padding: 26px 30px 30px; }
.hub-art { --pain: #C8645A; height: 240px; background: radial-gradient(70% 90% at 50% 40%, #173E66, var(--navy) 70%); overflow: hidden; }
.hub-art .fig-box { zoom: .56; }
.hub-quick { --pain: #C8645A; }
.hub-quick .hq { aspect-ratio: auto; padding: 10px 10px 16px; gap: 6px; overflow: hidden; }
.hq-fig .fig-box { zoom: .36; }
.mat-art { overflow: hidden; }
.mat-fig { --pain: #C8645A; height: 180px; margin: -30px -24px 22px; background: radial-gradient(70% 90% at 50% 40%, #173E66, var(--navy) 70%); overflow: hidden; }
.mat-fig .fig-box { zoom: .42; }
.hero-sub .hero-fig { --pain: #C8645A; }

/* Casos con más forma */
.case { position: relative; overflow: hidden; }
.case::before { content: ""; position: absolute; width: 200px; aspect-ratio: 1; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 124, .22), transparent 70%); transition: transform .6s var(--ease); pointer-events: none; }
.case:hover::before { transform: scale(1.5); }

/* Ilustración de cada caso (materias) */
.case-fig { position: relative; margin: -34px -30px 24px; height: 190px; background: linear-gradient(160deg, #F5F2EC, #ECE7DE); border-bottom: 1px solid var(--line); overflow: hidden; }
.case-fig svg { position: absolute; inset: 6px 0 0; width: 100%; height: calc(100% - 6px); overflow: visible; }
.case-fig .cf-t { font: 700 9px/1 var(--sans); letter-spacing: .08em; text-anchor: middle; fill: var(--navy); }
.case-fig .cf-tb { text-anchor: start; font-size: 8px; letter-spacing: .14em; fill: var(--navy); }
.case-fig .cf-tl { text-anchor: start; font-weight: 500; letter-spacing: 0; font-size: 9px; fill: var(--slate); }
.case-fig .cf-tw { fill: var(--ivory); font-size: 8px; letter-spacing: .12em; }
.case-fig .cf-big { font: 600 34px/1 var(--serif); fill: var(--navy); }
.case-fig .cf-big2 { font: 700 24px/1 var(--sans); fill: var(--gold-2); }
.cf-blob { fill: rgba(212, 175, 124, .18); }
.cf-ring { fill: none; stroke: rgba(11, 45, 79, .14); stroke-width: 1.5; stroke-dasharray: 4 5; transform-box: fill-box; transform-origin: center; animation: spin 30s linear infinite; }
.cf-dots circle { fill: rgba(11, 45, 79, .14); }
.cf-gd { stroke: rgba(11, 45, 79, .22); stroke-width: 2; stroke-linecap: round; fill: none; }
.cf-p circle, .cf-p path { stroke: none; }
.cf-a { fill: var(--navy); } .cf-b { fill: var(--gold); } .cf-c { fill: #8193A8; }
.cf-paper { fill: #fff; filter: drop-shadow(0 6px 10px rgba(11, 45, 79, .16)); }
.cf-ln { fill: #E6E2DA; }
.cf-coin circle { fill: var(--gold); stroke: #B8925C; stroke-width: 1.5; }
.cf-coin text { fill: #6E5530; font-weight: 800; }
.cf-ok circle { fill: var(--gold); } .cf-ok path { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cf-bad circle { fill: #F3DCD7; } .cf-bad path { fill: none; stroke: #B0574B; stroke-width: 2.2; stroke-linecap: round; }
.cf-stamp rect { fill: rgba(255,255,255,.75); stroke-width: 2.4; }
.cf-sred rect { stroke: #B0574B; } .cf-sred text { fill: #B0574B; }
.cf-sgold rect { stroke: #A8875A; fill: rgba(212, 175, 124, .2); } .cf-sgold text { fill: #8A6B3E; }
.cf-h .cf-hb, .cf-hb { fill: #fff; stroke: rgba(11, 45, 79, .18); stroke-width: 1.5; }
.cf-hr { fill: var(--navy); } .cf-hd { fill: var(--gold); }
.cf-hn .cf-hr { fill: #8193A8; }
.cf-car > path:first-child { fill: var(--navy); } .cf-cw { fill: #BFD0E2; } .cf-wh { fill: #2A2F36; stroke: #fff; stroke-width: 3; }
.cf-car2 > path:first-child { fill: #8193A8; }
.cf-dash { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1; stroke-linecap: round; }
.cf-key { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.cf-bar { fill: var(--gold); } .cf-bar2 { fill: #C9D3DF; } .cf-trend { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cf-sig { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; }
.cf-brick { fill: #E7CDBF; stroke: #fff; stroke-width: 1; }
.cf-crack { fill: none; stroke: #B0574B; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cf-patch { fill: var(--gold); opacity: .9; }
.cf-pie0 { fill: #C9D3DF; } .cf-pie1 { fill: var(--gold); } .cf-pie2 { fill: var(--navy); }
.cf-wall { fill: #E3DED4; } .cf-paint { fill: #F6EBD9; }
.cf-roll { fill: var(--gold); } .cf-handle { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.cf-cell { fill: #EFECE6; } .cf-ca { fill: var(--gold); } .cf-cb { fill: var(--navy); }
.cf-table { fill: #A8875A; }
.cf-truck rect, .cf-truck path { fill: var(--navy); } .cf-box { fill: #D9B98A; stroke: #B8925C; } .cf-boxq { fill: #F3DCD7; stroke: #B0574B; }
.cf-boxq + text { fill: #B0574B; font-size: 14px; }
.cf-pill { fill: var(--navy); }
.cf-awn { fill: var(--gold); } .cf-win { fill: #DCE5EF; }
.cf-frame { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-dasharray: 6 3; }
.cf-crane { fill: none; stroke: #A8875A; stroke-width: 3; stroke-linecap: round; }
.cf-jar { fill: rgba(255,255,255,.8); stroke: var(--navy); stroke-width: 2; } .cf-jarl { fill: var(--navy); }
.cf-calh { fill: var(--navy); }
.cf-ring1, .cf-ring2 { fill: none; stroke-width: 6; } .cf-ring1 { stroke: var(--gold); } .cf-ring2 { stroke: var(--navy); }
.cf-split { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1; }
.cf-heart { fill: #C9645A; }
.cf-lit { fill: #F4D79C; }
.cf-moon { fill: #C9D3DF; }
.cf-note { fill: #B0574B; font-size: 16px; animation: note 2.4s ease-in-out infinite; animation-delay: var(--d2, 0s); }
.cf-dog > *, .cf-dog ellipse, .cf-dog circle { fill: #8A6B3E; } .cf-tail { fill: none !important; stroke: #8A6B3E; stroke-width: 6; stroke-linecap: round; }
.cf-paw * { fill: rgba(138, 107, 62, .55); }
.cf-lot { fill: #E3E6EA; }
.cf-tub { fill: #fff; stroke: var(--navy); stroke-width: 2; } .cf-drop { fill: #6FA3D8; } .cf-stain { fill: rgba(111, 163, 216, .35); }
.cf-wrench { fill: var(--navy); }
.cf-picket { fill: #D9B98A; stroke: #B8925C; }
.cf-tape { fill: none; stroke: var(--gold); stroke-width: 4; } .cf-ticks path { stroke: #8A6B3E; stroke-width: 1.5; }

/* Entrada en orden cuando la tarjeta aparece; después, movimiento suave */
.case-fig g[class^="cf-"][style] { transform-box: fill-box; transform-origin: center; }
.cf-pop, .cf-st, .cf-left, .cf-right, .cf-park, .cf-drop, .cf-drip { opacity: 0; transition: opacity .5s var(--ease), transform .7s var(--ease); transition-delay: var(--d); }
.cf-pop { transform: translateY(10px) scale(.92); }
.cf-st { transform: scale(1.8) rotate(-8deg); transition-timing-function: ease, cubic-bezier(.3, 1.6, .5, 1); }
.cf-left { transform: translateX(26px); } .cf-right { transform: translateX(-26px); }
.cf-park { transform: translateX(150px); }
.cf-drop { transform: translateY(-70px); }
.cf-dr .cf-dash, .cf-dr .cf-crack, .cf-dr .cf-trend, .cf-dr .cf-split, .cf-sig { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); transition-delay: var(--d, .9s); }
.cf-dr .cf-tape, .cf-dr .cf-ticks { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); transition-delay: var(--d); }
.cf-grow { transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: calc(.6s + var(--d2, 0s)); }
.cf-fill { opacity: .15; transition: opacity .3s; transition-delay: var(--d2); }
.case.in .cf-pop, .case.in .cf-st, .case.in .cf-left, .case.in .cf-right, .case.in .cf-park, .case.in .cf-drop { opacity: 1; transform: none; }
.case.in .cf-dr .cf-dash, .case.in .cf-dr .cf-crack, .case.in .cf-dr .cf-trend, .case.in .cf-dr .cf-split, .case.in .cf-sig { stroke-dashoffset: 0; }
.case.in .cf-dr .cf-tape, .case.in .cf-dr .cf-ticks { clip-path: inset(0); }
.case.in .cf-grow { transform: none; }
.case.in .cf-fill { opacity: 1; }
.case.in .cf-drip { animation: drip 2.2s ease-in infinite; animation-delay: var(--d); }
.cf-fl { animation: bob 3.2s ease-in-out infinite; }
.cf-fl:nth-of-type(2n) { animation-duration: 4s; }
.case:hover .cf-blob { transform: scale(1.15); }
.cf-blob { transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease); }
@keyframes drip { 0% { opacity: 0; transform: translateY(-4px); } 15% { opacity: 1; } 80% { opacity: 1; transform: translateY(48px); } 100% { opacity: 0; transform: translateY(52px); } }
@keyframes note { 0%, 100% { opacity: .3; translate: 0 4px; } 50% { opacity: 1; translate: 0 -6px; } }

/* Producto estrella */
.spot-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.spot-copy h2 { margin-bottom: 18px; }
.spot-copy h2 em { color: var(--gold-2); }
.spot-copy > p { color: rgba(250,250,248,.75); }
.spot-list { list-style: none; padding: 0; margin: 28px 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.spot-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; }
.spot-list .ic { width: 22px; height: 22px; flex: none; color: var(--gold-2); margin-top: 1px; }
/* La animación del documento espera a que la sección sea visible */
.spot-visual:not(.in), .spot-visual:not(.in) * { animation-play-state: paused !important; }

/* Mediación en tres pasos */
.s3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.s3::before { content: ""; position: absolute; top: 52px; left: 17%; right: 17%; border-top: 2px dashed rgba(212, 175, 124, .55); }
.s3-i { position: relative; text-align: center; padding: 0 8px; }
.s3-ic { position: relative; width: 104px; height: 104px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); box-shadow: 0 0 0 10px var(--ivory); }
.s3-ic .ic { width: 44px; height: 44px; stroke-width: 1.4; }
.s3-ic i { position: absolute; top: -4px; right: -4px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); font: 700 .95rem/1 var(--sans); }
.s3-i h3 { font: 600 1.6rem/1.15 var(--serif); color: var(--navy); margin-bottom: 8px; }
.s3-i p { color: var(--slate); max-width: 300px; margin-inline: auto; }
.s3 .reveal:nth-child(2) { transition-delay: .15s; } .s3 .reveal:nth-child(3) { transition-delay: .3s; }

/* Preguntas rápidas del inicio */
.qchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.qchip { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 500; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, opacity .8s var(--ease); }
.qchip:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow); }
.qchip .ic { width: 18px; height: 18px; color: var(--gold); }

/* Venta cruzada del convenio de arrendamiento */
.sec-band { padding: 100px 0; }
.band { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; padding: 44px 48px; border-radius: 26px; background: linear-gradient(135deg, var(--navy), #061C33); color: var(--ivory); box-shadow: var(--shadow); }
.band::after { content: ""; position: absolute; width: 340px; aspect-ratio: 1; right: -120px; top: -150px; border-radius: 50%; border: 1px solid rgba(212, 175, 124, .25); pointer-events: none; }
.band-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); }
.band-ic .ic { width: 40px; height: 40px; stroke-width: 1.5; }
.band-copy .eyebrow { margin-bottom: 10px; }
.band-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.band-copy h2 em { color: var(--gold-2); }
.band-copy p { color: rgba(250,250,248,.75); }
.band-cta { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: center; }
.band-cta .link { border-color: var(--gold); }

/* Mediación por materia */
.hub-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(420px, 100%); justify-self: center; }
.hq { aspect-ratio: 1.15; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 12px; border-radius: 22px; border: 1px solid rgba(212, 175, 124, .35); background: rgba(250,250,248,.05); color: var(--ivory); text-decoration: none; text-align: center; font: 600 1.15rem/1.2 var(--serif); transition: transform .3s var(--ease), background .3s, border-color .3s; }
.hq > .ic { width: 44px; height: 44px; color: var(--gold-2); stroke-width: 1.4; }
.hq:hover { transform: translateY(-4px); background: rgba(212, 175, 124, .14); border-color: var(--gold); }
.hubs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hub { display: flex; gap: 24px; padding: 34px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s, opacity .8s var(--ease); }
.hub:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(212, 175, 124, .6); }
.hub-ic { width: 76px; height: 76px; flex: none; border-radius: 22px; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); }
.hub-ic .ic { width: 38px; height: 38px; stroke-width: 1.4; }
.hub-body { flex: 1; display: flex; flex-direction: column; }
.hub h3 { font: 600 1.6rem/1.15 var(--serif); color: var(--navy); margin-bottom: 4px; }
.hub-body > p { color: var(--slate); font-size: .95rem; }
.hub-ex { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; flex: 1; }
.hub-ex li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink); }
.hub-ex .ic { width: 18px; height: 18px; color: var(--gold); }
.hub:hover .mat-more .ic { transform: translateX(4px); }
.hubs .reveal:nth-child(2n) { transition-delay: .12s; }

/* Cómo funciona: juicio o mediación, mitos */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin-inline: auto; }
.duo-c { padding: 36px; border-radius: var(--r); }
.duo-c h3 { display: flex; align-items: center; gap: 12px; font: 600 1.75rem/1.1 var(--serif); margin-bottom: 24px; }
.duo-c h3 .ic { width: 30px; height: 30px; }
.duo-c ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.duo-c li { display: flex; align-items: center; gap: 12px; }
.duo-mark { width: 24px !important; height: 24px !important; padding: 5px; border-radius: 50%; }
.duo-bad { background: #fff; border: 1px solid var(--line); color: var(--slate); }
.duo-bad .duo-mark { color: #A9776F; background: rgba(169,119,111,.12); }
.duo-good { background: var(--navy); color: var(--ivory); }
.duo-good h3 .ic { color: var(--gold-2); }
.duo-good .duo-mark { color: var(--navy); background: var(--gold); stroke-width: 2.4; }
.duo .reveal:nth-child(2) { transition-delay: .12s; }
.myths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.myth { overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: transform .4s var(--ease), box-shadow .4s, opacity .8s var(--ease); }
.myth:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.myth p { display: flex; align-items: flex-start; gap: 14px; padding: 22px 26px; }
.myth b { display: block; margin-bottom: 8px; font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.myth-m { background: #F1EFEA; color: var(--slate); font: 600 1.25rem/1.3 var(--serif); }
.myth-m b { color: #A9776F; }
.myth-r { color: var(--ink); font-size: .96rem; }
.myth-r b { color: #8A6B3E; }
.myth-r a { color: var(--navy); font-weight: 600; }
.myth-mark { width: 26px !important; height: 26px !important; padding: 6px; border-radius: 50%; margin-top: 2px; }
.myth-m .myth-mark { color: #A9776F; background: rgba(169,119,111,.14); }
.myth-r .myth-mark { color: var(--navy); background: var(--gold); stroke-width: 2.4; }
.myths .reveal:nth-child(2n) { transition-delay: .12s; }
.gloss { display: flex; align-items: center; gap: 28px; margin-top: 40px; padding: 30px 34px; border-radius: var(--r); background: var(--ivory-2); border-left: 4px solid var(--gold); }
.gloss-tag { flex: none; padding: 22px 20px; border-radius: 16px; background: #fff; border: 1px solid rgba(212, 175, 124, .5); font: 600 1.5rem/1 var(--display); letter-spacing: .12em; color: var(--navy); }
.gloss h3 { font: 600 1.4rem/1.2 var(--serif); color: var(--navy); margin-bottom: 6px; }
.gloss p { color: var(--slate); }
.gloss b { color: var(--ink); }

/* Submenú de la página del convenio */
.subnav { position: sticky; top: var(--hh); z-index: 40; background: rgba(250,250,248,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav-in { display: flex; align-items: center; gap: 6px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 9px 16px; border-radius: 999px; color: var(--slate); text-decoration: none; font-size: .88rem; font-weight: 500; transition: background .2s, color .2s; }
.subnav a:hover, .subnav a.on { background: var(--ivory-2); color: var(--navy); }
.subnav a.subnav-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--navy); font-weight: 600; }
.subnav-cta .ic { width: 16px; height: 16px; }

/* ---------- Panel de preguntas (sin salir de la página) ---------- */
.fd { position: fixed; inset: 0; z-index: 90; visibility: hidden; transition: visibility 0s .45s; }
.fd:target, .fd.open { visibility: visible; transition: none; }
.fd-scrim { position: absolute; inset: 0; background: rgba(6, 28, 51, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s; }
.fd:target .fd-scrim, .fd.open .fd-scrim { opacity: 1; }
.fd-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); display: flex; flex-direction: column; background: var(--ivory); color: var(--ink); box-shadow: -30px 0 80px -30px rgba(0,0,0,.5); transform: translateX(100%); transition: transform .45s var(--ease); outline: none; }
.fd:target .fd-panel, .fd.open .fd-panel { transform: none; }
.fd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 28px 28px 18px; border-bottom: 1px solid var(--line); }
.fd-head .eyebrow { margin-bottom: 10px; }
.fd-head h2 { font-size: 1.6rem; color: var(--navy); }
.fd-x { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory-2); color: var(--navy); transition: background .2s; }
.fd-x:hover { background: var(--gold); }
.fd-x .ic { width: 20px; height: 20px; }
.fd-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 28px 28px; }
.fd-group { margin: 26px 0 12px; font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.fd .faq { gap: 10px; }
.fd .faq details { padding: 0 18px; }
.fd .faq summary { font-size: 1.14rem; padding: 17px 36px 17px 0; }
.fd .faq details p { padding-bottom: 18px; font-size: .95rem; }
.fd .faq details.hl { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 124, .22); }
.fd-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 28px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.fd-foot p { width: 100%; font-weight: 600; font-size: .92rem; color: var(--navy); }
.fd-foot .btn { flex: 1 1 200px; }

/* ---------- Tableta ---------- */
@media (max-width: 1280px) {
  .nav, .hide-m { display: none; }
  .burger { display: grid; }
}
@media (max-width: 1080px) {
  .bens { grid-template-columns: 1fr 1fr; }
  .mats, .mats:has(.mat-feature) { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: 1fr 1fr; }
  .msteps { grid-template-columns: 1fr 1fr; }
  .docs ul { grid-template-columns: 1fr 1fr; }
}

/* ---------- Móvil ---------- */
@media (max-width: 860px) {
  :root { --hh: 66px; }
  body { padding-bottom: 76px; }
  .sec { padding: 84px 0; }
  .sec-head { margin-bottom: 44px; }
  .hero { padding: calc(var(--hh) + 44px) 0 80px; }
  .hero-in, .quote-in { grid-template-columns: 1fr; gap: 54px; }
  .hero-bg span:nth-child(1) { width: 520px; right: -300px; top: -120px; }
  .hero-bg span:nth-child(2) { width: 360px; right: -220px; }
  .trio { grid-template-columns: 1fr; gap: 44px; }
  .who, .two { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before, .steps::after { top: 36px; bottom: 36px; left: 35px; right: auto; width: 2px; height: auto; }
  .steps::after { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; text-align: left; align-items: start; }
  .step-dot { margin: 0; }
  .step h3 { align-items: flex-start; }
  .step p { margin: 0; max-width: none; }

  /* Comparativo en móvil: cada fila es una tarjeta cara a cara */
  .vs-head { grid-template-columns: 1fr 56px 1fr; }
  .vs-col { flex-direction: column; gap: 8px; padding: 16px 10px; font-size: 1.05rem; }
  .vs-badge { width: 48px; height: 48px; font-size: 1.05rem; box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px rgba(212, 175, 124,.4); }
  .vs-row { grid-template-columns: 1fr 1fr; grid-template-areas: "lab lab" "bad good"; }
  .vs-row + .vs-row { margin-top: 10px; }
  .vs-label { grid-area: lab; flex-direction: row; padding: 10px 0 8px; }
  .vs-label::before { display: none; }
  .vs-label .ic { width: 32px; height: 32px; padding: 7px; }
  .vs-bad { grid-area: bad; border-radius: 12px 0 0 12px; justify-content: flex-start; text-align: left; flex-direction: row-reverse; padding: 16px 14px; font-size: .9rem; }
  .vs-good { grid-area: good; border-radius: 0 12px 12px 0; padding: 16px 14px; font-size: .9rem; }
  .vs-row:last-child .vs-bad { border-radius: 12px 0 0 12px; }
  .vs-row:last-child .vs-good { border-radius: 0 12px 12px 0; }

  .foot-in { grid-template-columns: 1fr; gap: 34px; }
  .foot-brand { justify-items: center; text-align: center; }
  .lockup-foot { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lockup-foot img { grid-row: auto; width: 84px; }
  .lockup-foot .lk-tag::before, .lockup-foot .lk-tag::after { display: block; }
  .wa-float { display: none; }
  .mbar { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(250,250,248,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .45s var(--ease); }
  .mbar.show { transform: none; }
  .site-header.open ~ main ~ .mbar, body:has(.site-header.open) .mbar { transform: translateY(110%); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: .95rem; }
  .mbar .ic { width: 22px; height: 22px; }
  .mbar-call { border: 1px solid var(--line); color: var(--navy); }
  .mbar-main { background: var(--gold); color: var(--navy); }
  .mbar-wa { background: var(--wa); color: #fff; }
}

@media (max-width: 560px) {
  .brand-text strong { font-size: .84rem; }
  .brand-text small { font-size: .5rem; letter-spacing: .18em; }
  .brand img { width: 40px; }
  .header-in { gap: 12px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .bens, .mats, .mats:has(.mat-feature), .cases, .msteps, .grid2 { grid-template-columns: 1fr; }
  .bens { gap: 40px; }
  .docs ul { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quote { padding: 26px 18px; }
  .chips-4 { grid-template-columns: repeat(2, 1fr); }
  .doc { padding: 22px 20px 20px; }
  .seal { width: 80px; right: -8px; top: -30px; }
  .seal img { width: 32px; }
  .mq-group { gap: 40px; padding-right: 40px; }
  .mq-group img { height: 44px; }
  .mq-group img[src*="consejo"] { height: 50px; }
  .mq-txt { font-size: 1.1rem; }
  .orbit-i { width: 46px; height: 46px; margin: -23px; }
  .orbit-i .ic { width: 20px; height: 20px; }
}

@media (max-width: 380px) {
  .brand { gap: 9px; }
  .brand img { width: 32px; }
  .brand-text strong { font-size: .7rem; letter-spacing: .01em; }
  .brand-text small { font-size: .42rem; letter-spacing: .16em; }
}

@media (max-width: 1080px) {
  .hubs { grid-template-columns: 1fr; }
  .band { grid-template-columns: auto 1fr; }
  .band-cta { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: center; gap: 24px; }
}
@media (max-width: 860px) {
  .hero-home .hero-in, .spot-in { grid-template-columns: 1fr; gap: 48px; }
  .s3 { grid-template-columns: 1fr; gap: 44px; }
  .s3::before { display: none; }
  .duo, .myths { grid-template-columns: 1fr; }
  .sec-band { padding: 70px 0; }
  .band { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 38px 24px; gap: 22px; }
  .band-copy .eyebrow { justify-content: center; }
  .band-cta { grid-auto-flow: row; justify-content: center; }
  .gloss { flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px 22px; }
  .hq { font-size: 1.02rem; }
  .hq .ic { width: 34px; height: 34px; }
  .fd-panel { top: auto; height: 88dvh; width: 100%; border-radius: 22px 22px 0 0; transform: translateY(100%); box-shadow: 0 -30px 80px -30px rgba(0,0,0,.5); }
  .fd-head { padding: 22px 20px 14px; }
  .fd-head h2 { font-size: 1.35rem; }
  .fd-body { padding: 0 16px 24px; }
  .fd-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
  .fd-foot p { display: none; }
}
@media (max-width: 560px) {
  .hero-quote .quote { padding: 24px 16px; }
  .q-title { font-size: 1.2rem; }
  .spot-list { grid-template-columns: 1fr; }
  .hub { flex-direction: column; gap: 18px; padding: 28px 22px; }
  .hub-ic { width: 64px; height: 64px; border-radius: 18px; }
  .myth p { padding: 20px; }
  .qchip { width: 100%; justify-content: flex-start; }
}

@media (max-width: 860px) {
  .story { height: calc(100svh + var(--n) * 70svh); }
  .story-in { grid-template-columns: 1fr; align-content: start; gap: 6px; padding-top: 22px; }
  .story-stage { order: -1; width: min(320px, 82vw, 40svh); }
  .story-copy .eyebrow { display: none; }
  .ss-k { margin-bottom: 8px; font-size: .66rem; }
  .ss h2 { font-size: 1.45rem; margin-bottom: 8px; }
  .ss p:not(.ss-k) { font-size: .94rem; }
  .ss .btn { margin-top: 14px; padding: 14px 22px; }
  .meters { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
  .meter span { min-height: 2.5em; font-size: .6rem; line-height: 1.25; }
  .story-foot { padding-bottom: calc(86px + env(safe-area-inset-bottom)); padding-right: 0; gap: 14px; }
  .rail li span { display: none; }
  .story-skip { font-size: .76rem; }
  .cal { padding: 14px; }
  .cal-head { padding-bottom: 10px; margin-bottom: 10px; }
  .cal-grid { gap: 6px; }
  .cal-total { margin-top: 10px; }
  .cal-total b { font-size: 1.5rem; }
  .paper { padding: 18px 16px; }
  .rcpt { padding: 16px 16px 14px; }
  .rcpt-rows p { padding: 6px 0; font-size: .74rem; }
  .pg b { font-size: 3rem; }
  .clock { width: 64px; height: 64px; }
  .clock-h { height: 16px; }
  .clock i.clock-m { height: 25px; }
  .doc.doc-story { width: 80%; margin-bottom: 0; padding: 16px 16px 14px; }
  .doc-story .doc-lines { padding: 12px 0; gap: 8px; }
  .hg-tag { font-size: .8rem; padding: 10px 14px; }
  .chat p { font-size: .72rem; padding: 7px 10px 5px; }
  .rt-node .ic { width: 52px; height: 52px; padding: 13px; }
  .skip-t { margin-top: 26px; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .meters { display: none; }
}
@media (max-width: 860px) {
  .hero-fig .fig-box { zoom: .74; }
  .hq-fig .fig-box { zoom: .3; }
  .hub-art .fig-box { zoom: .5; }
  .hub-art { height: 214px; }
  .flow { width: 140px; padding: 10px; }
  .week span { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .split .w > span, .vs-bad, .vs-good { opacity: 1; transform: none; }
  .ic.draw { stroke-dashoffset: 0; }
  .cf-pop, .cf-st, .cf-left, .cf-right, .cf-park, .cf-drop, .cf-fill { opacity: 1; transform: none; }
  .cf-dr .cf-dash, .cf-dr .cf-crack, .cf-dr .cf-trend, .cf-dr .cf-split, .cf-sig { stroke-dashoffset: 0; }
  .cf-dr .cf-tape, .cf-dr .cf-ticks { clip-path: none; }
  .cf-grow { transform: none; }
}
