/* =========================================================
   Fabricio Ogas · Contador Público — estilos del sitio
   Basado en el manual de marca (tokens Noche / Claro)
   ========================================================= */

:root, [data-theme="noche"] {
  --surface: #0e1f3d;
  --surface-deep: #08132a;
  --surface-raised: #14284a;
  --glow: #265296;
  --ink: #edeae3;
  --ink-muted: #c3cbd8;
  --ink-subtle: #a9b3c4;
  --ink-faint: #8a96ac;
  --accent: #d9b676;
  --gold-light: #e7c987;
  --gold: #d9b676;
  --gold-deep: #c69a55;
  --on-gold: #1b1a17;
  --on-gold-muted: #4f3f20;
  --rule: rgba(237,234,227,0.16);
  --ring: rgba(212,178,110,0.16);
  --focus: #e7c987;
  --field: rgba(237,234,227,0.06);
  --shadow-cta: 0 24px 60px rgba(0,0,0,0.35);
  --shadow-card: none;
}
[data-theme="claro"] {
  --surface: #faf8f3;
  --surface-deep: #f1ede4;
  --surface-raised: #ffffff;
  --glow: #dce5f2;
  --ink: #0e1f3d;
  --ink-muted: #3e4a5e;
  --ink-subtle: #4a566b;
  --ink-faint: #5b677a;
  --accent: #7a5c24;
  --rule: rgba(14,31,61,0.14);
  --ring: rgba(122,92,36,0.18);
  --focus: #7a5c24;
  --field: #ffffff;
  --shadow-card: 0 8px 24px rgba(8,19,42,0.08);
}
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
  --space-5: 32px; --space-6: 48px; --space-7: 64px; --space-8: 96px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 18px;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 700px) { :root { --gutter: 48px; } }
@media (min-width: 1100px) { :root { --gutter: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font: 400 17px/1.6 var(--font-sans);
  background: var(--surface-deep); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.calc > *, .form-grid > *, .grid > *, .cards > *, .split-2 > *, .lead-box > *, .about > *, .hero > .container > *, .field, .panel, form { min-width: 0; }
input, select, textarea { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 400; color: var(--ink); text-wrap: balance; }
h1 em, h2 em, h3 em, .em { font-style: italic; color: var(--accent); }
strong { font-weight: 500; color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--on-gold); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(1200px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(780px + var(--gutter) * 2); }

section, .section { position: relative; background: var(--surface); color: var(--ink); padding: 64px 0; }
@media (min-width: 900px) { section, .section { padding: var(--space-8) 0; } }
.section--deep { background: var(--surface-deep); }
.section--tight { padding: 40px 0; }

/* ---------- Tipografía de marca ---------- */
.kicker { display: flex; align-items: center; gap: var(--space-3); font: italic 400 19px/1.3 var(--font-serif); color: var(--accent); }
.kicker::before { content: ""; width: 48px; height: 1.5px; background: var(--accent); flex: none; transform-origin: left; }
@media (min-width: 700px) { .kicker { font-size: 21px; } .kicker::before { width: 64px; } }
.eyebrow { font: 600 12px/1.4 var(--font-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-subtle); }
.eyebrow--gold { color: var(--accent); }
.display { font-size: clamp(44px, 8vw, 76px); line-height: 1.04; letter-spacing: -.015em; }
.h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -.01em; }
.h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; }
.h3 { font-size: clamp(22px, 2.4vw, 26px); line-height: 1.2; }
.lead { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; color: var(--ink-muted); max-width: 62ch; }
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }
.small { font-size: 14px; line-height: 1.5; }
.faint { color: var(--ink-faint); }
.head { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.head .lead { margin-top: var(--space-1); }
.head--center { justify-items: center; text-align: center; }
.head--center .kicker::after { content: ""; width: 48px; height: 1.5px; background: var(--accent); }
.head--center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--rule);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius-md);
  font: 500 16px/1 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--b); background: transparent; color: var(--ink);
  transition: border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn:hover { --b: var(--accent); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--primary { background: var(--gold); --b: var(--gold); color: var(--on-gold); box-shadow: 0 10px 30px -10px rgba(217,182,118,.55); }
.btn--primary:hover { background: var(--gold-deep); --b: var(--gold-deep); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.link { color: var(--accent); text-decoration: none; font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.link:hover { background-size: 100% 1.5px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, height .35s, transform .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(8,19,42,.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 rgba(237,234,227,.08); --header-h: 64px; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
@media (max-width: 380px) { .brand img { height: 35px; } }
.nav { display: none; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 12px; font: 500 15px/1 var(--font-sans); color: var(--ink-muted); text-decoration: none; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: none; }
@media (min-width: 1060px) { .nav { display: block; } .header-cta { display: inline-flex; } .menu-btn { display: none !important; } }

.menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--rule); background: transparent; border-radius: var(--radius-md); color: var(--ink); cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; grid-area: 1/1; }
.menu-btn span:nth-child(1) { transform: translateY(-6px); }
.menu-btn span:nth-child(3) { transform: translateY(6px); }
.menu-open .menu-btn span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--surface-deep);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: var(--space-5);
  clip-path: circle(0 at calc(100% - 44px) 36px); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s; overflow-y: auto;
}
.mobile-menu::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 50% at 0% 100%, rgba(38,82,150,.45), transparent 70%); pointer-events: none; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; transition: clip-path .6s var(--ease); }
.menu-open { overflow: hidden; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; position: relative; }
.mobile-menu li { border-bottom: 1.5px solid var(--rule); opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease); }
.menu-open .mobile-menu li { opacity: 1; transform: none; }
.menu-open .mobile-menu li:nth-child(2) { transition-delay: .05s; } .menu-open .mobile-menu li:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu li:nth-child(4) { transition-delay: .15s; } .menu-open .mobile-menu li:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu li:nth-child(6) { transition-delay: .25s; } .menu-open .mobile-menu li:nth-child(7) { transition-delay: .3s; }
.mobile-menu a.mm-link { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; font: 400 28px/1.15 var(--font-serif); color: var(--ink); text-decoration: none; }
.mobile-menu a.mm-link small { font: 400 15px/1 var(--font-serif); color: var(--accent); }
.mobile-menu .btn { position: relative; }

/* ---------- Fondo de marca (anillos + glow) ---------- */
.brand-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.brand-bg::before { content: ""; position: absolute; left: -20%; bottom: -30%; width: 90%; height: 90%; background: radial-gradient(closest-side, rgba(38,82,150,.55), transparent 72%); filter: blur(10px); animation: glow 14s ease-in-out infinite alternate; }
.rings { position: absolute; top: -180px; right: -180px; width: 620px; height: 620px; }
.rings circle { fill: none; stroke: var(--ring); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.rings .orbit { transform-origin: 310px 310px; animation: spin 38s linear infinite; }
.rings .orbit--slow { animation-duration: 64s; animation-direction: reverse; }
.rings .sat { fill: var(--gold); stroke: none; }
@media (max-width: 700px) { .rings { width: 420px; height: 420px; top: -150px; right: -190px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow { from { transform: translate(0,0) scale(1); opacity: .9; } to { transform: translate(6%,-6%) scale(1.12); opacity: 1; } }
.grain { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 48px) 0 72px; min-height: min(100svh, 940px); display: flex; align-items: center; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1000px) { .hero > .container { grid-template-columns: 1.15fr .85fr; gap: var(--space-7); } }
.hero .display { margin-top: var(--space-4); }
.hero .lead { margin-top: var(--space-4); }
.hero .actions { margin-top: var(--space-5); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: var(--space-5); padding: 0; list-style: none; }
.hero-proof li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-subtle); }
.hero-proof svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.page-hero { padding: calc(var(--header-h) + 56px) 0 56px; overflow: hidden; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .h1 { margin-top: var(--space-3); }
.page-hero .lead { margin-top: var(--space-4); }
@media (min-width: 900px) { .page-hero { padding: calc(var(--header-h) + 80px) 0 80px; } }

/* Palabras del título que entran */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.is-ready .split .w > span { transform: none; }

/* ---------- Mini calculadora del hero ---------- */
.quick {
  position: relative; background: linear-gradient(160deg, rgba(20,40,74,.92), rgba(14,31,61,.92));
  border: 1.5px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-5);
  backdrop-filter: blur(6px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
}
.quick::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; background: linear-gradient(140deg, rgba(231,201,135,.7), transparent 40%, transparent 70%, rgba(231,201,135,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.quick h2 { font-size: 26px; line-height: 1.2; margin-top: 10px; }
.quick .field { margin-top: var(--space-4); }
.quick-out { margin-top: var(--space-4); display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center; padding-top: var(--space-4); border-top: 1.5px solid var(--rule); }
.quick-letter { grid-row: span 2; font: 400 64px/1 var(--font-serif); color: var(--accent); min-width: 54px; text-align: center; }
.quick-cuota { font: 400 24px/1.2 var(--font-serif); }
.quick-note { font-size: 13px; color: var(--ink-subtle); }
.quick .btn { margin-top: var(--space-4); }

/* ---------- Ticker ---------- */
.ticker { background: var(--surface-deep); border-block: 1.5px solid var(--rule); overflow: hidden; padding: 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 14px; padding: 18px 28px; white-space: nowrap; font-size: 14px; color: var(--ink-muted); }
.ticker-item b { font: 400 18px/1 var(--font-serif); color: var(--ink); font-weight: 400; }
.ticker-item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-left: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Ítems numerados ---------- */
.grid { display: grid; gap: 0 var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.item { position: relative; border-top: 1.5px solid var(--rule); padding: var(--space-4) 0 var(--space-5); }
.item::before { content: ""; position: absolute; left: 0; top: -1.5px; height: 1.5px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.item:hover::before, .item.is-in::before { transform: scaleX(1); }
.item.is-in::before { transition-delay: .25s; }
.item:not(:hover).is-in::before { transform: scaleX(.18); }
.item-num { font: 400 20px/1 var(--font-serif); color: var(--accent); }
.item h3 { margin-top: var(--space-2); font-size: clamp(22px, 2.3vw, 26px); line-height: 1.2; }
.item p { margin-top: var(--space-2); font-size: 15.5px; line-height: 1.6; color: var(--ink-subtle); }
.item .link { display: inline-block; margin-top: var(--space-3); font-size: 15px; }

/* ---------- Tarjetas ---------- */
.cards { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--surface-raised); border: 1.5px solid var(--rule); border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4); text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-card); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
  overflow: hidden;
}
@media (min-width: 700px) { .card { padding: var(--space-5); } }
a.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 20px 40px -20px rgba(8,19,42,.35); }
.card h3 { font-size: 24px; line-height: 1.22; }
.card p { color: var(--ink-subtle); font-size: 15.5px; }
.card .meta { margin-top: auto; padding-top: var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-faint); }
.card .arrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--rule); display: grid; place-items: center; color: var(--accent); transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease); flex: none; }
.card .arrow svg { width: 16px; height: 16px; }
a.card:hover .arrow { background: var(--gold); border-color: var(--gold); color: var(--on-gold); transform: rotate(-45deg); }
.tag { display: inline-flex; align-self: flex-start; padding: 5px 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--rule); font: 600 11px/1.2 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }

/* ---------- Por qué / pasos ---------- */
.split-2 { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 960px) { .split-2 { grid-template-columns: .9fr 1.1fr; gap: var(--space-7); } .sticky { position: sticky; top: calc(var(--header-h) + 32px); } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 var(--space-5) 64px; }
.steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; font: 400 17px/1 var(--font-serif); color: var(--accent); background: var(--surface); z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1.5px; background: var(--rule); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 24px; }
.steps p { margin-top: 6px; color: var(--ink-subtle); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-4); margin-top: var(--space-5); }
.stat { border-top: 1.5px solid var(--rule); padding-top: var(--space-3); }
.stat b { display: block; font: 400 clamp(30px,4vw,40px)/1.1 var(--font-serif); color: var(--accent); }
.stat span { font-size: 14px; color: var(--ink-subtle); }

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 380px 1fr; gap: var(--space-7); } }
.portrait { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(80% 60% at 20% 100%, rgba(38,82,150,.6), transparent 70%), var(--surface-raised); border: 1.5px solid var(--rule); display: grid; place-items: center; }
.portrait img.mono { width: 46%; opacity: .95; }
.portrait img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait::after { content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(231,201,135,.28); border-radius: var(--radius-md); pointer-events: none; }
.signature { margin-top: var(--space-4); font: italic 400 22px/1.3 var(--font-serif); color: var(--accent); }

/* ---------- Tarjeta CTA dorada ---------- */
.cta-card {
  position: relative; display: grid; gap: var(--space-4); align-items: center;
  padding: var(--space-5); border-radius: var(--radius-lg); color: var(--on-gold); text-decoration: none;
  background: linear-gradient(110deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow: var(--shadow-cta); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s;
}
@media (min-width: 760px) { .cta-card { grid-template-columns: 1fr auto; padding: 40px 48px; } }
.cta-card::after { content: ""; position: absolute; inset: 8px; border-radius: var(--radius-md); border: 1.5px solid rgba(255,255,255,.35); pointer-events: none; }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.cta-card:hover { transform: translateY(-4px) scale(1.005); box-shadow: 0 34px 70px rgba(0,0,0,.4); }
.cta-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.cta-label { font: 600 11px/1.4 var(--font-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--on-gold-muted); }
.cta-phrase { margin-top: var(--space-2); font: 400 clamp(26px,3.4vw,34px)/1.12 var(--font-serif); }
.cta-phrase em { font-style: italic; }
.cta-right { position: relative; }
@media (min-width: 760px) { .cta-right { text-align: right; } }
.cta-phone { display: flex; align-items: center; gap: 12px; margin-top: var(--space-2); font: 400 clamp(26px,3vw,32px)/1 var(--font-serif); }
@media (min-width: 760px) { .cta-phone { justify-content: flex-end; } }
.cta-phone svg { width: 26px; height: 26px; transition: transform .4s var(--ease); }
.cta-card:hover .cta-phone svg { transform: translateX(6px); }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 8px; }
.field label, .label { font: 500 14px/1.3 var(--font-sans); color: var(--ink-muted); }
.field .hint { font-size: 13px; color: var(--ink-faint); }
.input, select.input, textarea.input {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--rule); background: var(--field); color: var(--ink);
  font: 400 17px/1.4 var(--font-sans); transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 120px; resize: vertical; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a9b3c4' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
[data-theme="claro"] select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%234a566b' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); }
.input::placeholder { color: var(--ink-faint); }
.input:hover { border-color: rgba(217,182,118,.5); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,182,118,.22); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-subtle); font-size: 17px; pointer-events: none; }
.money .input { padding-left: 32px; font-variant-numeric: tabular-nums; }
.form-grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1/-1; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-subtle); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; margin-top: var(--space-3); padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; border: 1.5px solid var(--rule); }
.form-msg.ok { display: block; border-color: var(--accent); }
.form-msg.err { display: block; border-color: #d97a6c; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: var(--radius-md); border: 1.5px solid var(--rule); background: var(--field); position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { position: relative; z-index: 1; display: grid; place-items: center; min-height: 44px; padding: 6px 10px; border-radius: 8px; font: 500 15px/1.2 var(--font-sans); color: var(--ink-muted); cursor: pointer; text-align: center; transition: color .25s, background .25s; }
.seg input:checked + label { background: var(--gold); color: var(--on-gold); }
.seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Calculadora ---------- */
.calc { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 1000px) { .calc { grid-template-columns: 1fr 1fr; gap: var(--space-6); } .calc-result { position: sticky; top: calc(var(--header-h) + 24px); } }
.panel { background: var(--surface-raised); border: 1.5px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-card); }
@media (min-width: 640px) { .panel { padding: var(--space-5); } }
.panel + .panel { margin-top: var(--space-4); }
.panel-title { display: flex; align-items: center; gap: 12px; font: 400 22px/1.25 var(--font-serif); margin-bottom: var(--space-4); }
.panel-title .n { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; font-size: 15px; color: var(--accent); flex: none; }
details.more { border-top: 1.5px solid var(--rule); margin-top: var(--space-4); padding-top: var(--space-3); }
details.more summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-weight: 500; color: var(--ink); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font: 400 26px/1 var(--font-serif); color: var(--accent); transition: transform .3s; }
details.more[open] summary::after { transform: rotate(45deg); }
.months { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: var(--space-3); }
@media (min-width: 520px) { .months { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.months .input { min-height: 46px; font-size: 16px; padding-block: 10px; }
.months label { font-size: 12.5px; }

.result { position: relative; overflow: hidden; }
.result-empty { text-align: center; padding: var(--space-5) 0; color: var(--ink-subtle); }
.result-empty .big { font: 400 88px/1 var(--font-serif); color: var(--rule); }
.result-head { display: flex; align-items: center; gap: var(--space-4); }
.result-letter { position: relative; width: 104px; height: 104px; flex: none; display: grid; place-items: center; font: 400 60px/1 var(--font-serif); color: var(--on-gold); background: linear-gradient(140deg, var(--gold-light), var(--gold-deep)); border-radius: 50%; box-shadow: 0 16px 40px -14px rgba(217,182,118,.7); }
.result-letter::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid var(--ring); }
.result-letter.pop { animation: pop .7s var(--ease); }
@keyframes pop { 0% { transform: scale(.6) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
.result-letter.excl { background: linear-gradient(140deg, #e6a493, #c36a58); font-size: 32px; }
.result-cuota { font: 400 clamp(30px,4vw,40px)/1.1 var(--font-serif); font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 10px; border-radius: 99px; background: var(--rule); overflow: hidden; margin-top: 10px; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-light), var(--gold-deep)); transition: width 1.1s var(--ease); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: var(--space-4) 0 0; padding: var(--space-4) 0 0; border-top: 1.5px solid var(--rule); font-size: 15px; }
.kv dt { color: var(--ink-subtle); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.kv .total { font-weight: 500; padding-top: 10px; border-top: 1.5px dashed var(--rule); }
.alert { margin-top: var(--space-4); padding: 14px 16px 14px 18px; border-left: 3px solid var(--accent); background: rgba(217,182,118,.08); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 15px; color: var(--ink-muted); }
.alert strong { color: var(--ink); }
.alert--warn { border-left-color: #d97a6c; background: rgba(217,122,108,.09); }
.reasons { margin: 10px 0 0; padding-left: 18px; font-size: 14.5px; color: var(--ink-subtle); }

/* ---------- Tabla ---------- */
.table-wrap { position: relative; overflow-x: auto; border: 1.5px solid var(--rule); border-radius: var(--radius-md); background: var(--surface-raised); -webkit-overflow-scrolling: touch; box-shadow: var(--shadow-card); }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; min-width: 760px; }
.t th, .t td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.t thead th { font: 600 11.5px/1.3 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); background: var(--surface-deep); position: sticky; top: 0; vertical-align: bottom; white-space: normal; }
.t th:first-child, .t td:first-child { text-align: center; position: sticky; left: 0; background: var(--surface-raised); z-index: 1; }
.t thead th:first-child { background: var(--surface-deep); z-index: 2; }
.t tbody th { font: 400 22px/1 var(--font-serif); color: var(--accent); }
.scroll-hint svg { width: 18px; height: 18px; flex: none; }
.t tbody tr { transition: background .2s; }
.t tbody tr:hover td { background: rgba(217,182,118,.08); }
.t tbody tr:last-child td { border-bottom: 0; }
.scroll-hint { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink-faint); }
@media (min-width: 1000px) { .scroll-hint { display: none; } }

/* ---------- Acordeón FAQ ---------- */
.faq { border-top: 1.5px solid var(--rule); }
.faq details { border-bottom: 1.5px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; padding: 22px 0; font: 400 clamp(19px,2vw,22px)/1.3 var(--font-serif); color: var(--ink); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq .pm { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--rule); flex: none; transition: transform .4s var(--ease), background .3s, border-color .3s; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--accent); transform: translate(-50%,-50%); }
.faq .pm::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] .pm { background: var(--gold); border-color: var(--gold); transform: rotate(180deg); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: var(--on-gold); }
.faq details[open] .pm::after { transform: translate(-50%,-50%) rotate(0); }
.faq .ans { overflow: hidden; }
.faq .ans-in { padding: 0 0 24px; color: var(--ink-muted); max-width: 70ch; }
.faq .ans-in p + p, .faq .ans-in ul { margin-top: 12px; }
.faq .ans-in ul { padding-left: 20px; }
.faq-group { margin-top: var(--space-6); }
.faq-group:first-child { margin-top: 0; }
.faq-group > h2 { font-size: 26px; margin-bottom: var(--space-3); display: flex; align-items: baseline; gap: 12px; }
.faq-group > h2 small { font: 400 18px/1 var(--font-serif); color: var(--accent); }

/* ---------- Chips / filtros ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--rule); background: transparent; color: var(--ink-muted); font: 500 14px/1 var(--font-sans); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-faint); }
.search .input { padding-left: 46px; }

/* ---------- Comunidad ---------- */
.thread { border: 1.5px solid var(--rule); border-radius: var(--radius-md); background: var(--surface-raised); padding: var(--space-4); box-shadow: var(--shadow-card); }
@media (min-width: 700px) { .thread { padding: var(--space-5); } }
.thread + .thread { margin-top: var(--space-3); }
.thread .q { display: flex; gap: 14px; align-items: flex-start; }
.thread .q .who { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-deep); border: 1.5px solid var(--rule); display: grid; place-items: center; font: 400 17px/1 var(--font-serif); color: var(--ink-subtle); flex: none; }
.thread h3 { font-size: 21px; line-height: 1.3; }
.thread .q-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-faint); }
.thread .a { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-deep); position: relative; }
.thread .a::before { content: ""; position: absolute; left: 32px; top: -8px; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); }
.thread .a-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.thread .a-head img { width: 32px; height: 32px; border-radius: 50%; background: #0e1f3d; padding: 4px; }
.thread .a-head span { color: var(--accent); font-weight: 400; font-size: 13px; }
.thread .a p { margin-top: 10px; color: var(--ink-muted); font-size: 16px; }
.thread .a p + p { margin-top: 10px; }
.thread .a .link { font-size: 15px; display: inline-block; margin-top: 12px; }
.empty-state { display: none; text-align: center; padding: var(--space-6) 0; color: var(--ink-subtle); }

/* ---------- Artículos ---------- */
.prose { font-size: 18px; line-height: 1.7; color: var(--ink-muted); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(27px,3vw,34px); line-height: 1.2; }
.prose h3 { margin-top: 1.6em; font-size: 23px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose blockquote { margin-left: 0; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--surface-deep); border-radius: 0 var(--radius-md) var(--radius-md) 0; color: var(--ink); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: var(--space-4); font-size: 14px; color: var(--ink-subtle); }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta svg { width: 16px; height: 16px; color: var(--accent); }
.source { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1.5px solid var(--rule); font-size: 14px; color: var(--ink-faint); }
.toc { padding: var(--space-4); border: 1.5px solid var(--rule); border-radius: var(--radius-md); background: var(--surface-raised); }
.toc ol { margin: 10px 0 0; padding-left: 20px; font-size: 15.5px; }
.toc li + li { margin-top: 6px; }
.toc a { color: var(--ink-muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.inline-cta { margin: 2em 0; padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); border: 1.5px solid var(--rule); display: grid; gap: 14px; }
@media (min-width: 640px) { .inline-cta { grid-template-columns: 1fr auto; align-items: center; } }
.inline-cta p { color: var(--ink); font: 400 21px/1.3 var(--font-serif); }
.inline-cta p em { color: var(--accent); }
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60; background: linear-gradient(90deg, var(--gold-light), var(--gold-deep)); transform-origin: left; transform: scaleX(0); }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 var(--space-4); padding: 0; font-size: 13.5px; color: var(--ink-faint); }
.crumbs a { color: var(--ink-subtle); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

/* ---------- Lead magnet ---------- */
.lead-box { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 960px) { .lead-box { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }
.benefits { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: 12px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-muted); }
.benefits svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- Pie ---------- */
.site-footer { position: relative; background: var(--surface-deep); padding: 72px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1.5px solid var(--rule); overflow: hidden; }
.footer-grid { position: relative; display: grid; gap: var(--space-5); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font: 600 12px/1.4 var(--font-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { display: inline-block; padding: 7px 0; color: var(--ink-muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.site-footer ul a:hover { color: var(--accent); }
.footer-brand img { width: 220px; height: auto; }
.footer-brand p { margin-top: var(--space-3); color: var(--ink-subtle); font-size: 15px; max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: var(--space-4); }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rule); display: grid; place-items: center; color: var(--ink-muted); transition: all .25s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.legal { position: relative; margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1.5px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--ink-faint); }
.legal a { color: inherit; }
.footer-mark { position: absolute; right: -40px; bottom: -60px; width: 340px; opacity: .05; pointer-events: none; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--on-gold);
  display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(0,0,0,.55);
  transform: scale(0); transition: transform .5s var(--ease); text-decoration: none;
}
.wa-float.is-on { transform: scale(1); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.wa-bubble { position: absolute; right: 70px; top: 50%; transform: translateY(-50%) translateX(8px); background: var(--ink); color: var(--surface-deep); padding: 10px 14px; border-radius: 12px; font: 500 14px/1.2 var(--font-sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--ease); }
.wa-bubble::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; background: inherit; transform: translateY(-50%) rotate(45deg); }
.wa-float.show-bubble .wa-bubble, .wa-float:hover .wa-bubble { opacity: 1; transform: translateY(-50%); }
@media (max-width: 420px) { .wa-bubble { display: none; } }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-l.is-in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .reveal-l { opacity: 1; transform: none; }
.no-js .split .w > span { transform: none; }

/* ---------- Varios ---------- */
.center { text-align: center; }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.divider-dot { display: flex; align-items: center; justify-content: center; gap: 0; margin: var(--space-5) auto; width: 120px; height: 10px; position: relative; }
.divider-dot::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px; background: var(--accent); }
.divider-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); position: relative; }
.disclaimer { font-size: 13.5px; color: var(--ink-faint); margin-top: var(--space-4); }
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.notfound .big { font: 400 clamp(120px, 22vw, 220px)/1 var(--font-serif); color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-l { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .ticker-track { animation: none; }
}
@media print { .site-header, .wa-float, .site-footer, .cta-card { display: none !important; } body, section { background: #fff; color: #000; } }
