/* Dinero al Claro · diseño v2 (oscuro + verde menta)
   Radios: tarjetas 28px exterior / 22px interior (doble bisel), botones y chips en píldora, campos 14px. */
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #0d1012;
  --bg-2: #111517;
  --surface: #15191c;
  --surface-2: #1b2024;
  --line: rgb(255 255 255 / .08);
  --line-strong: rgb(255 255 255 / .14);
  --text: #e8ecea;
  --muted: #9aa4a0;
  --faint: #6b7571;
  --mint: #7ee3b8;
  --mint-strong: #a8f0d0;
  --mint-ink: #062a1c;
  --mint-soft: rgb(126 227 184 / .12);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --max: 1240px;
  --r-outer: 28px;
  --r-inner: 22px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  font-feature-settings: "ss01", "tnum" 0; -webkit-font-smoothing: antialiased;
}
body::after { /* grano sutil, fijo y sin eventos */
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .035;
  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");
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 999px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; font: 600 15px/1 var(--font); padding: 6px 6px 6px 22px; min-height: 52px; cursor: pointer; border: 0; white-space: nowrap; transition: transform .5s var(--ease), background-color .4s var(--ease), color .4s var(--ease); }
.btn:active { transform: scale(.98); }
.btn .bubble { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; transition: transform .5s var(--ease); }
.btn:hover .bubble { transform: translate(3px, -1px) scale(1.05); }
.btn-mint { background: var(--mint); color: var(--mint-ink); }
.btn-mint:hover { background: var(--mint-strong); }
.btn-mint .bubble { background: rgb(6 42 28 / .12); }
.btn-ghost { background: rgb(255 255 255 / .04); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgb(255 255 255 / .08); }
.btn-ghost .bubble { background: rgb(255 255 255 / .07); }

/* ---------- Navegación isla ---------- */
.nav-shell { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: 6px; height: 60px; padding: 0 8px 0 18px; border-radius: 999px; background: rgb(17 21 23 / .72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .06), 0 20px 50px -20px rgb(0 0 0 / .6); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; font-size: 16px; margin-right: 10px; }
.logo-mark { width: 26px; height: 26px; }
.logo b { color: var(--mint); font-weight: 650; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-trigger { display: flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font: 500 14.5px/1 var(--font); padding: 12px 14px; border-radius: 999px; cursor: pointer; transition: color .3s var(--ease), background-color .3s var(--ease); }
.nav-trigger .ico { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.nav-item:hover .nav-trigger, .nav-item:focus-within .nav-trigger, .nav-trigger[aria-expanded="true"] { color: var(--text); background: rgb(255 255 255 / .05); }
.nav-item:hover .nav-trigger .ico, .nav-trigger[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav-tools { margin-left: 8px; min-height: 44px; padding: 4px 4px 4px 18px; font-size: 14px; }
.nav-tools .bubble { width: 36px; height: 36px; }
.mega { position: absolute; top: calc(100% + 14px); left: 50%; width: 560px; padding: 6px; border-radius: var(--r-outer); background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line); background: rgb(27 32 36 / .92); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .35s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-item:hover .mega, .nav-item:focus-within .mega, .nav-item.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega-core { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px; border-radius: var(--r-inner); background: var(--surface); box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 30px 60px -20px rgb(0 0 0 / .7); padding: 18px; }
.mega h4 { margin: 0 0 8px; font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: .02em; }
.mega a { display: block; padding: 9px 10px; margin: 0 -10px; border-radius: 12px; font-size: 14.5px; color: var(--text); transition: background-color .25s var(--ease); }
.mega a:hover { background: rgb(255 255 255 / .05); }
.mega a small { display: block; color: var(--muted); font-size: 13px; }
.mega .mega-side { border-left: 1px solid var(--line); padding-left: 16px; }
.mega .mega-side a { display: flex; align-items: center; gap: 10px; }
.mega .mega-side .ico { color: var(--mint); }
.burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .06); position: relative; cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .5s var(--ease), opacity .3s var(--ease); }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 45; background: rgb(13 16 18 / .9); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.sheet.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.sheet-scroll { flex: 1; min-height: 0; margin-top: calc(88px + env(safe-area-inset-top, 0px)); padding: 16px 24px calc(32px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px); mask-image: linear-gradient(to bottom, transparent 0, #000 20px); }
.sheet details { border-bottom: 1px solid var(--line); }
.sheet summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 26px; font-weight: 600; letter-spacing: -.02em; padding: 18px 0; cursor: pointer; }
.sheet summary::-webkit-details-marker { display: none; }
.sheet details[open] summary .ico { transform: rotate(180deg); }
.sheet summary .ico { transition: transform .4s var(--ease); color: var(--muted); }
.sheet details a { display: block; padding: 10px 0; color: var(--muted); font-size: 17px; }
.sheet details div { padding-bottom: 14px; }
.sheet .btn { margin-top: 28px; }
.sheet-scroll > * { transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.sheet.open .sheet-scroll > * { transform: none; opacity: 1; }
.sheet.open .sheet-scroll > *:nth-child(2) { transition-delay: .05s; } .sheet.open .sheet-scroll > *:nth-child(3) { transition-delay: .1s; }
.sheet.open .sheet-scroll > *:nth-child(4) { transition-delay: .15s; } .sheet.open .sheet-scroll > *:nth-child(5) { transition-delay: .2s; }
@media (max-width: 960px) {
  .nav-links, .nav-tools { display: none; }
  .burger { display: block; }
  .nav { width: 100%; justify-content: space-between; }
}

/* ---------- Hero ---------- */
.hero { padding: 168px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -300px; top: -340px; background: radial-gradient(closest-side, rgb(126 227 184 / .14), transparent); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.045em; font-weight: 640; margin: 0; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero-side p { color: var(--muted); font-size: 18.5px; line-height: 1.55; max-width: 30ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .hero { padding-top: 128px; } .hero-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- La curva (scroll) ---------- */
.story { position: relative; }
.story-pin { min-height: 100dvh; display: flex; align-items: center; padding: 96px 0 40px; }
.bezel { padding: 6px; border-radius: var(--r-outer); background: rgb(255 255 255 / .025); box-shadow: inset 0 0 0 1px var(--line); }
.bezel-core { border-radius: var(--r-inner); background: linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
.story-card { width: 100%; transform-origin: 50% 0; }
.story-core { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); min-height: min(620px, 78dvh); overflow: hidden; }
.story-copy { padding: 44px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; border-right: 1px solid var(--line); }
.story-label { display: inline-flex; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--mint-soft); color: var(--mint); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.steps { position: relative; min-height: 190px; }
.step { position: absolute; inset: 0; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.step.on { opacity: 1; transform: none; }
.step h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 620; margin: 0 0 12px; }
.step p { color: var(--muted); margin: 0; max-width: 34ch; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fig { padding: 14px 16px; border-radius: 16px; background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line); }
.fig span { display: block; font-size: 12.5px; color: var(--muted); }
.fig strong { display: block; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 620; letter-spacing: -.02em; }
.fig.total strong { color: var(--mint); }
.story-chart { position: relative; padding: 32px 28px 20px 12px; display: flex; flex-direction: column; }
.story-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-year { position: absolute; top: 28px; left: 36px; z-index: 1; }
.chart-year span { display: block; font-size: 12.5px; color: var(--muted); }
.chart-year strong { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.story-cta { display: flex; justify-content: flex-end; padding: 18px 0 0; }
@media (max-width: 860px) {
  .story-pin { padding-top: 88px; }
  .story-core { grid-template-columns: 1fr; min-height: 0; }
  .story-copy { border-right: 0; border-top: 1px solid var(--line); padding: 22px 20px 24px; order: 2; gap: 16px; }
  .story-label { display: none; }
  .story-chart { height: 38dvh; min-height: 230px; padding: 20px 14px 10px 4px; }
  .chart-year { top: 16px; left: 20px; }
  .steps { min-height: 150px; }
  .step h3 { font-size: 1.45rem; }
  .step p { font-size: 15.5px; }
  .story-cta { justify-content: flex-start; }
}

/* ---------- Secciones ---------- */
.section { padding: 120px 0; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 620; margin: 0 0 16px; max-width: 16ch; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 0 48px; }
@media (max-width: 760px) { .section { padding: 80px 0; } .section-lead { margin-bottom: 32px; } }

/* Bento de los 4 caminos */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; }
.tile .bezel-core { position: relative; flex: 1; padding: 30px; display: flex; flex-direction: column; overflow: hidden; transition: transform .6s var(--ease); }
.tile:hover .bezel-core { transform: translateY(-3px); }
.tile .ico-badge { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--mint); margin-bottom: auto; }
.tile .ico-badge .ico { width: 24px; height: 24px; }
.tile h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.03em; font-weight: 620; margin: 40px 0 8px; line-height: 1.05; }
.tile p { color: var(--muted); margin: 0; max-width: 40ch; }
.tile .topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.tile .topics span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.tile .go { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: rgb(255 255 255 / .05); transition: transform .5s var(--ease), background-color .4s var(--ease), color .4s var(--ease); }
.tile:hover .go { transform: translate(3px, -3px); background: var(--mint); color: var(--mint-ink); }
.t-a { grid-column: span 7; grid-row: span 2; }
.t-a .bezel-core { background: radial-gradient(120% 80% at 100% 100%, rgb(126 227 184 / .16), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg-2)); min-height: 460px; }
.t-b { grid-column: span 5; }
.t-b .bezel-core { background: linear-gradient(160deg, #18201d, var(--bg-2)); min-height: 223px; }
.t-c { grid-column: span 5; }
.t-c .bezel-core { min-height: 223px; background-image: radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1px), linear-gradient(180deg, var(--surface), var(--bg-2)); background-size: 18px 18px, auto; }
.t-d { grid-column: span 12; }
.t-d .bezel-core { flex-direction: row; align-items: center; gap: 28px; min-height: 0; background: linear-gradient(90deg, var(--surface), #13201b); }
.t-d .ico-badge { margin: 0; }
.t-d h3 { margin: 0 0 4px; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .t-a, .t-b, .t-c, .t-d { grid-column: auto; grid-row: auto; }
  .t-a .bezel-core { min-height: 340px; }
  .tile .bezel-core { padding: 24px; }
  .t-d .bezel-core { flex-direction: column; align-items: flex-start; gap: 0; }
  .t-d h3 { margin-top: 32px; }
}

/* Herramientas + mini calculadora */
.tools-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.mini .bezel-core { padding: 30px; }
.mini h3 { margin: 0 0 4px; font-size: 1.3rem; letter-spacing: -.02em; font-weight: 600; }
.mini > .bezel-core > p { color: var(--muted); margin: 0 0 24px; font-size: 15.5px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.input { display: flex; align-items: center; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .3s var(--ease); }
.input:focus-within { box-shadow: inset 0 0 0 1px var(--mint), 0 0 0 4px var(--mint-soft); }
.input input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: 500 18px var(--font); padding: 14px 16px; outline: none; }
.input span { padding-right: 16px; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.seg button { border: 0; background: none; color: var(--muted); font: 500 13.5px var(--font); padding: 10px 6px; border-radius: 999px; cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.mini-result { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mini-result span { display: block; font-size: 13px; color: var(--muted); }
.mini-result strong { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.04em; font-weight: 620; color: var(--mint); line-height: 1.1; }
.tool-list a { display: grid; grid-template-columns: 48px 1fr 44px; gap: 18px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.tool-list a:last-child { border-bottom: 1px solid var(--line); }
.tool-list .ib { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); }
.tool-list .ib .ico { width: 24px; height: 24px; }
.tool-list strong { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; }
.tool-list small { color: var(--muted); font-size: 14.5px; }
.tool-list .arr { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform .5s var(--ease), background-color .4s var(--ease), color .4s var(--ease); }
.tool-list a:hover .arr { background: var(--mint); color: var(--mint-ink); transform: translateX(4px); box-shadow: none; }
@media (max-width: 860px) { .tools-grid { grid-template-columns: 1fr; gap: 40px; } .mini .bezel-core { padding: 22px; } }

/* Pregunta del quiz */
.ask { text-align: center; }
.ask .question { font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 600; max-width: 22ch; margin: 0 auto 36px; }
.answers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 720px; margin: 0 auto; }
.answers button { font: 500 16px var(--font); color: var(--text); background: rgb(255 255 255 / .04); border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 999px; padding: 15px 24px; cursor: pointer; transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .4s var(--ease); }
.answers button:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--mint); }
.answers button:active:not(:disabled) { transform: scale(.98); }
.answers button:disabled { cursor: default; opacity: .5; }
.answers button.right { opacity: 1; background: var(--mint); color: var(--mint-ink); box-shadow: none; }
.answers button.wrong { opacity: 1; box-shadow: inset 0 0 0 1px #e58c7f; color: #f2b4aa; }
.ask-out { max-width: 560px; margin: 28px auto 0; color: var(--muted); min-height: 1.6em; }
.ask-out .btn { margin-top: 22px; }

/* Lista editorial */
.reads { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.reads a { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.reads a span { grid-column: 1; color: var(--faint); font-size: 13px; }
.reads a strong { grid-column: 1; font-size: 1.2rem; font-weight: 580; letter-spacing: -.02em; line-height: 1.25; transition: color .3s var(--ease); }
.reads a .ico { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--muted); transition: transform .5s var(--ease), color .3s var(--ease); }
.reads a:hover strong { color: var(--mint); }
.reads a:hover .ico { transform: translate(3px, -3px); color: var(--mint); }
@media (max-width: 760px) { .reads { grid-template-columns: 1fr; } }

/* Pie */
.foot { border-top: 1px solid var(--line); padding: 72px 0 40px; margin-top: 40px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot h4 { color: var(--text); font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot a:hover { color: var(--text); }
.foot p { max-width: 34ch; margin: 14px 0 0; }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--faint); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Entradas al hacer scroll */
.reveal { opacity: 0; transform: translateY(48px); filter: blur(8px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* Detalles del gráfico */
.chart-dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 999px; background: var(--mint); box-shadow: 0 0 0 6px rgb(126 227 184 / .18), 0 0 24px rgb(126 227 184 / .6); pointer-events: none; will-change: transform; }
.chart-legend { display: flex; gap: 18px; padding: 14px 0 0 16px; font-size: 13px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend span::before { content: ""; width: 16px; height: 3px; border-radius: 2px; }
.lg-total::before { background: var(--mint); }
.lg-aport::before { background: repeating-linear-gradient(90deg, var(--muted) 0 2px, transparent 2px 5px); }
.story-chart .plot { position: relative; flex: 1; min-height: 0; }
.ask-out strong { color: var(--text); }

/* =========================================================
   Páginas interiores: artículos, herramientas, test y legales
   ========================================================= */
:root { --brand: var(--mint); --accent: #d9b77a; --c-need: #86b4e6; --c-want: #d9b77a; --bad: #e58c7f; }
.page-head { padding: 140px 0 48px; max-width: 820px; }
.page-head.center { margin: 0 auto; text-align: center; }
.page-head h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 640; margin: 0 0 18px; text-wrap: balance; }
.page-head .lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; max-width: 52ch; margin: 0; }
.page-head.center .lead { margin: 0 auto; }
.page-head.center .hero-actions { justify-content: center; margin-top: 32px; }
.notfound .ico-badge { width: 64px; height: 64px; margin: 0 auto 28px; border-radius: 20px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); }
.notfound .ico-badge .ico { width: 30px; height: 30px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--faint); margin-bottom: 28px; }
.breadcrumbs a { color: var(--muted); transition: color .3s var(--ease); }
.breadcrumbs a:hover { color: var(--mint); }
.btn:not(:has(.bubble)) { padding: 0 24px; }
@media (max-width: 760px) { .page-head { padding: 116px 0 32px; } }

/* Artículo */
.article-wrap { max-width: 860px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; font-size: 13.5px; color: var(--muted); }
.article-meta > span { padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.read-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 500 13.5px var(--font); color: var(--text); background: rgb(255 255 255 / .04); border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease); }
.read-toggle:hover { background: var(--mint-soft); }
.read-toggle .ico { width: 16px; height: 16px; }
.article-body { font-size: 18px; line-height: 1.75; max-width: 70ch; }
.article-body > * + * { margin-top: 0; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 1.15em; }
.article-body h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 640; margin: 0 0 12px; padding-top: 140px; }
.article-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 620; margin: 2.2em 0 .6em; text-wrap: balance; }
.article-body h3 { font-size: 1.2rem; letter-spacing: -.015em; font-weight: 600; margin: 1.8em 0 .5em; }
.article-body strong { color: var(--text); font-weight: 620; }
.article-body a { color: var(--mint); text-decoration: underline; text-decoration-color: rgb(126 227 184 / .35); text-underline-offset: 3px; transition: text-decoration-color .3s var(--ease); }
.article-body a:hover { text-decoration-color: currentColor; }
.article-body a.btn { text-decoration: none; color: var(--mint-ink); }
.article-body li { margin-bottom: .45em; }
.article-body li::marker { color: var(--mint); }
.article-body .meta { color: var(--muted); font-size: 14px; }
.key-points { margin: 0 0 2.4em !important; padding: 26px 28px; border-radius: var(--r-inner); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 6px rgb(255 255 255 / .02); }
.key-points h2 { margin: 0 0 12px !important; font-size: 14px !important; letter-spacing: .02em !important; color: var(--mint); font-weight: 600 !important; }
.key-points ul { margin: 0 !important; padding-left: 1.1em; }
.callout { margin: 1.8em 0 !important; padding: 20px 24px; border-radius: 18px; background: var(--mint-soft); box-shadow: inset 0 0 0 1px rgb(126 227 184 / .2); }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { background: rgb(217 183 122 / .1); box-shadow: inset 0 0 0 1px rgb(217 183 122 / .25); }
.table-wrap { overflow-x: auto; margin: 1.6em 0 !important; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.table-wrap th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 14px 18px; background: rgb(255 255 255 / .03); border-bottom: 1px solid var(--line); }
.table-wrap td { padding: 13px 18px; border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child td { border-bottom: 0; }
.cta-box { margin: 2.4em 0 !important; padding: 8px 8px 8px 26px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta-box p { margin: 0 !important; font-weight: 600; }
.disclaimer { margin-top: 3em !important; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); line-height: 1.6; }
.related { margin: 72px 0 40px; }
.related h2, .cat h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -.03em; font-weight: 620; margin: 0 0 12px; }
.related .reads { grid-template-columns: 1fr; }
.cat { margin-bottom: 64px; }
.legal { padding-bottom: 40px; }
.legal h2 { font-size: 1.3rem; }
@media (max-width: 760px) {
  .article-body { font-size: 17px; }
  .article-body h1 { padding-top: 116px; }
  .read-toggle { margin-left: 0; }
  .cta-box { border-radius: 22px; padding: 18px; }
}

/* Lectura clara (opcional en artículos) */
:root.lectura-clara {
  color-scheme: light;
  --bg: #f3f5f4; --bg-2: #eef1ef; --surface: #ffffff; --surface-2: #e9edeb;
  --line: rgb(16 24 20 / .1); --line-strong: rgb(16 24 20 / .18);
  --text: #141a17; --muted: #4f5a55; --faint: #77817c;
  --mint: #0f7a55; --mint-strong: #0b6646; --mint-ink: #ffffff; --mint-soft: rgb(15 122 85 / .09);
}
.lectura-clara .nav { background: rgb(255 255 255 / .78); }
.lectura-clara .sheet { background: rgb(243 245 244 / .94); }
.lectura-clara .burger span { background: var(--text); }
.lectura-clara body::after { opacity: .02; }
.lectura-clara .article-body a { text-decoration-color: rgb(15 122 85 / .35); }
.lectura-clara .logo-mark rect { fill: #0f7a55; }
.lectura-clara .logo-mark path { stroke: #fff; }

/* Calculadoras */
.wrap > .tool { margin-bottom: 72px; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: start; }
.panel { padding: 30px; border-radius: var(--r-outer); background: linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .05), 0 0 0 6px rgb(255 255 255 / .02); }
.panel h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; margin: 24px 0 10px; }
.panel ul { color: var(--muted); }
.panel ul strong { color: var(--text); }
.field label { color: var(--text); }
.input-wrap { display: flex; align-items: center; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .3s var(--ease); }
.input-wrap:focus-within { box-shadow: inset 0 0 0 1px var(--mint), 0 0 0 4px var(--mint-soft); }
.input-wrap input, .input-wrap select { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: 500 17px var(--font); padding: 14px 16px; outline: none; appearance: none; -webkit-appearance: none; }
.input-wrap select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.input-wrap select option { background: var(--surface); color: var(--text); }
.input-wrap .unit { padding-right: 16px; color: var(--muted); white-space: nowrap; }
.hint { font-size: 13.5px; color: var(--faint); margin: 8px 0 0; line-height: 1.5; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--line-strong); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-strong); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 999px; background: var(--mint); box-shadow: 0 0 0 6px var(--mint-soft); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 999px; background: var(--mint); box-shadow: 0 0 0 6px var(--mint-soft); }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; }
.stat { padding: 14px 16px; border-radius: 16px; background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.stat .label { font-size: 12.5px; color: var(--muted); }
.stat .value { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 620; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat.main { grid-column: 1 / -1; background: var(--mint-soft); box-shadow: inset 0 0 0 1px rgb(126 227 184 / .2); }
.stat.main .value { color: var(--mint); font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.04em; }
.chart { width: 100%; height: auto; margin-top: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.bars { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 8px 0 16px; background: var(--surface-2); }
.bars div { height: 100%; transition: width .6s var(--ease); }
.verdict { padding: 14px 18px; border-radius: 16px; font-weight: 500; margin-top: 8px; font-size: 15.5px; }
.verdict.ok { background: var(--mint-soft); color: var(--mint); }
.verdict.warn { background: rgb(217 183 122 / .1); color: var(--text); box-shadow: inset 0 0 0 1px rgb(217 183 122 / .25); }
.tool-notes { margin: 0 0 80px; }
.tool-notes h2:first-child { margin-top: 0; }
.tools-index { margin-bottom: 96px; }
@media (max-width: 860px) { .tool { grid-template-columns: minmax(0, 1fr); } .panel { padding: 22px 18px; } }

/* Test */
.quiz { max-width: 720px; margin: 0 auto 96px; }
.quiz-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 14px; }
.quiz-progress div { height: 100%; background: var(--mint); border-radius: 4px; transition: width .7s var(--ease); }
.quiz-count { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.quiz h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; margin: 0 0 24px; text-wrap: balance; }
.options { display: grid; gap: 8px; }
.option { text-align: left; font: 500 16.5px/1.4 var(--font); color: var(--text); background: rgb(255 255 255 / .03); border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 18px; padding: 16px 20px; cursor: pointer; transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .4s var(--ease); }
.option:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--mint); }
.option:active:not(:disabled) { transform: scale(.99); }
.option:disabled { cursor: default; opacity: .5; }
.option.correct { opacity: 1; background: var(--mint); color: var(--mint-ink); box-shadow: none; }
.option.wrong { opacity: 1; box-shadow: inset 0 0 0 1px var(--bad); color: var(--bad); }
.explain { margin: 20px 0; padding: 18px 20px; border-radius: 18px; background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.explain strong { color: var(--text); }
.explain a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.score { font-size: clamp(4rem, 12vw, 7rem); font-weight: 640; letter-spacing: -.06em; line-height: 1; color: var(--mint); margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.quiz .panel p { color: var(--muted); }

/* Páginas de sección y conceptos */
.hub-head .ico-badge { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); margin-bottom: 24px; }
.hub-head .ico-badge .ico { width: 28px; height: 28px; }
.hub-block { margin-bottom: 72px; }
.hub-block > h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -.03em; font-weight: 620; margin: 0 0 20px; }
.hub-block .tool-list { max-width: 720px; }
.concepts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.concept { display: flex; padding: 5px; border-radius: 24px; }
.concept .bezel-core { position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 64px 22px 22px; border-radius: 19px; transition: transform .5s var(--ease), background-color .4s var(--ease); }
.concept strong { font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.concept .bezel-core > span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.concept .go { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: rgb(255 255 255 / .05); transition: transform .5s var(--ease), background-color .4s var(--ease), color .4s var(--ease); }
.concept .go .ico { width: 18px; height: 18px; }
.concept:hover .bezel-core { transform: translateY(-2px); }
.concept:hover .go { background: var(--mint); color: var(--mint-ink); transform: translate(2px, -2px); }
.related .concepts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2em 0 0 !important; }
.chips span { font-size: 13px; color: var(--faint); margin-right: 4px; }
.article-body .chips a { font-size: 14px; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .3s var(--ease), color .3s var(--ease); }
.article-body .chips a:hover { box-shadow: inset 0 0 0 1px var(--mint); color: var(--mint); }
.concept-quiz { margin: 2.6em 0 0 !important; padding: 28px; border-radius: var(--r-outer); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 6px rgb(255 255 255 / .02); }
.concept-quiz .question { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.3; letter-spacing: -.02em; font-weight: 600; margin: 16px 0 20px !important; }
.concept-quiz .answers { justify-content: flex-start; margin: 0; max-width: none; }
.concept-quiz .answers button { text-align: left; border-radius: 18px; font-size: 15.5px; }
.concept-quiz .ask-out { margin: 16px 0 0; max-width: none; font-size: 16px; }
.mega-all { margin-top: 10px !important; padding-top: 14px !important; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px !important; color: var(--mint) !important; }
.mega-all .ico { margin-left: auto; color: var(--mint); }
.sheet .sheet-all { color: var(--mint); font-weight: 500; }
a.nav-trigger { text-decoration: none; }
@media (max-width: 760px) { .concept-quiz { padding: 20px 18px; } .hub-block { margin-bottom: 56px; } }
.hub-kicker { margin: 0 0 12px; font-size: 15px; font-weight: 500; color: var(--mint); }
.hub-kicker span { color: var(--faint); margin: 0 4px; }
