/* =========================================================
   Centro Privado de Justicia Alternativa · conveniomediacion.com.mx
   Paleta: 45% navy · 30% marfil · 15% pizarra · 7% grafito · 3% dorado
   ========================================================= */
:root {
  --navy: #14263D;
  --navy-2: #1B3250;
  --ivory: #FAFAF8;
  --ivory-2: #F2F0EB;
  --slate: #586472;
  --ink: #20242A;
  --gold: #B59B74;
  --gold-2: #CDB690;
  --line: rgba(20, 38, 61, .1);
  --line-dark: rgba(250, 250, 248, .14);
  --wa: #25D366;
  --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(20, 38, 61, .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(--serif); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
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: 600 .72rem/1 var(--sans); letter-spacing: .2em; 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(181, 155, 116, .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; }
.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(20, 38, 61, .96); backdrop-filter: blur(12px); box-shadow: 0 8px 30px -14px rgba(0,0,0,.45); }
.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; }
.brand img { width: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font: 600 1.1rem/1.1 var(--serif); }
.brand-text small { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.nav > a, .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-btn:hover, .dd-btn[aria-expanded="true"] { opacity: 1; background: rgba(250,250,248,.08); }
.nav > a[aria-current], .dd.is-current .dd-btn { opacity: 1; color: var(--gold-2); }
.dd { position: relative; }
.dd-btn .ic { transition: transform .3s var(--ease); }
.dd-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.dd-panel { 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; }
.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-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: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg span { position: absolute; border-radius: 50%; border: 1px solid rgba(181, 155, 116, .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(181,155,116,.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.5rem, 5.6vw, 4.4rem); 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(181,155,116,.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%, #D8C39E, var(--gold) 55%, #8F774F); 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: 40px; filter: sepia(1) saturate(.6) brightness(.55) contrast(1.3); 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(181,155,116,.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(181,155,116,.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%, #D8C39E, var(--gold) 60%, #8F774F); color: var(--navy); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 14px rgba(181,155,116,.1), 0 0 0 28px rgba(181,155,116,.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(181,155,116,.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(181,155,116,.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(181,155,116,.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(181,155,116,.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(20,38,61,.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(181,155,116,.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(181,155,116,.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(181,155,116,.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-art { position: relative; width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); margin-bottom: 24px; }
.case-art::after { content: ""; position: absolute; inset: -6px; border-radius: 28px; border: 1px solid rgba(181,155,116,.35); transition: inset .4s var(--ease); }
.case:hover .case-art::after { inset: -11px; }
.case-art .ic { width: 40px; height: 40px; stroke-width: 1.4; }
.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(181,155,116,.6); letter-spacing: .1em; }
.mstep-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(181,155,116,.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); }
.q-progress { height: 4px; border-radius: 4px; background: var(--ivory-2); overflow: hidden; margin-bottom: 14px; }
.q-progress span { display: block; height: 100%; width: 50%; background: var(--gold); transition: width .5s var(--ease); }
.q-step-label { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 24px; }
.q-step { border: 0; padding: 0; margin: 0; min-width: 0; animation: fadeUp .45s var(--ease); }
.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(181,155,116,.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; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--slate); margin: 6px 0 14px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.consent a { color: var(--navy); font-weight: 600; }
.q-error { color: #A5483D; font-size: .88rem; min-height: 1.2em; margin-bottom: 8px; }
.q-actions { display: flex; gap: 12px; }
.q-actions .btn-gold { flex: 1; }

/* 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(181,155,116,.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%, #0F1D2F 100%); color: var(--ivory); padding: 110px 0; text-align: center; }
.final-in { display: grid; justify-items: center; gap: 26px; }
.final img { width: 84px; animation: floaty 6s ease-in-out infinite; }
.final h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }

/* 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: flex; gap: 18px; align-items: flex-start; }
.foot-brand img { width: 52px; flex: 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(2.2rem, 5vw, 3.2rem); 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; } }

/* ---------- Tableta ---------- */
@media (max-width: 1200px) {
  .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(181,155,116,.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; }
  .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: .96rem; }
  .brand-text small { font-size: .6rem; }
  .brand img { width: 36px; }
  .header-in { gap: 12px; }
  .hero h1 { font-size: 2.45rem; }
  .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; }
  .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; }
  .q-actions .btn-line { padding-inline: 18px; }
}

@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; }
}
