/* Folioxa · sitio
   Layout: banda noche con el teléfono de ejemplo, luego tres bandas Entiende / Practica / Decide,
   planes y páginas legales en columna de lectura con índice lateral. Marca: guía de marca Folioxa. */
:root {
  --ground: #F2F6FB;
  --surface: #FFFFFF;
  --ink: #0B2147;
  --ink-2: #2F3D58;
  --muted: #56647C;
  --line: #E3EAF4;
  --primary: #1652D9;
  --primary-ink: #FFFFFF;
  --cyan: #00A8E0;
  --mint: #2BD4A4;
  --mint-ink: #04213F;
  --sim: #0E8C7E;
  --gain: #0B8A5C;
  --loss: #B42318;
  --bench: #8A96A8;
  --track: #E9EFF8;
  --night: #071A45;
  --night-2: #0D2A6B;
  --on-night: #FFFFFF;
  --on-night-2: #C9D6F2;
  --warn-bg: #FDEBD7;
  --warn-ink: #9A3412;
  --display: 'Montserrat', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #061331; --surface: #0C1D44; --ink: #E9EFFA; --ink-2: #C3CEE3; --muted: #93A3C2;
    --line: #1C3060; --primary: #5E8EFF; --primary-ink: #04122E; --cyan: #33C1F0; --sim: #2DB7A6;
    --gain: #3CCB8E; --loss: #FF7A6B; --bench: #7F8DA6; --track: #16295A; --night: #030C24; --night-2: #0A2160;
    --warn-bg: #3A1D0B; --warn-ink: #FFB98A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #061331; --surface: #0C1D44; --ink: #E9EFFA; --ink-2: #C3CEE3; --muted: #93A3C2;
  --line: #1C3060; --primary: #5E8EFF; --primary-ink: #04122E; --cyan: #33C1F0; --sim: #2DB7A6;
  --gain: #3CCB8E; --loss: #FF7A6B; --bench: #7F8DA6; --track: #16295A; --night: #030C24; --night-2: #0A2160;
  --warn-bg: #3A1D0B; --warn-ink: #FFB98A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 16px/1.6 var(--body); font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- encabezado */
.top { background: var(--night); color: var(--on-night); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-night); text-decoration: none;
  font: 800 22px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.nav a { color: var(--on-night-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-night); }

/* ---------- portada */
.hero { background: var(--night); color: var(--on-night); overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; width: 560px; height: 560px; right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, var(--night-2) 0%, transparent 70%); opacity: .9; pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px; align-items: center; padding-block: 40px 72px; }
.eyebrow { font: 600 13px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; font-weight: 800; margin-top: 14px; }
.hero h1 .grad { background: linear-gradient(90deg, #4C82FF, #00A8E0 55%, #18D99B);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--on-night-2); max-width: 34em; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border-radius: 14px; font: 700 16px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; }
.btn-grad { background: linear-gradient(90deg, #1652D9, #00A8E0); color: #FFFFFF; }
.btn-ghost { color: var(--on-night); border: 1px solid rgba(201, 214, 242, .35); }
.soon { font-size: 13px; color: var(--on-night-2); }
.disclaimer { margin-top: 26px; font-size: 13px; color: var(--on-night-2); max-width: 40em; }

/* teléfono de ejemplo */
.phone { justify-self: center; width: min(340px, 100%); border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #24345C, #0B1634); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.screen { border-radius: 34px; background: #F2F6FB; color: #0B2147; padding: 22px 16px 18px;
  display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.screen .bar { display: flex; align-items: center; gap: 10px; }
.screen .bar img { width: 34px; height: 34px; border-radius: 9px; }
.screen .bar small { display: block; color: #56647C; font-size: 11px; }
.screen .bar b { font: 800 22px/1 var(--display); letter-spacing: -0.02em; }
.card-s { background: #FFFFFF; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.card-s .big { font-size: 15px; line-height: 1.35; font-weight: 600; }
.up { color: #0B8A5C; font-weight: 700; }
.down { color: #B42318; font-weight: 700; }
.bars { display: flex; flex-direction: column; gap: 5px; }
.bars span { display: block; height: 8px; border-radius: 4px; background: #E9EFF8; overflow: hidden; }
.bars i { display: block; height: 100%; border-radius: 4px; }
.bars .you i { width: 64%; background: linear-gradient(90deg, #1652D9, #00A8E0 60%, #18D99B); }
.bars .sp i { width: 41%; background: #8A96A8; }
.row-s { display: flex; justify-content: space-between; color: #4A5873; font-size: 12px; }
.warn-s { background: #FDEBD7; border-radius: 14px; padding: 11px 12px; color: #5C1F0A; font-size: 12.5px; line-height: 1.4; }
.warn-s b { display: block; font-size: 13.5px; }
.news-s { background: #FFFFFF; border-radius: 14px; padding: 4px 12px; }
.news-s div { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; padding: 9px 0; align-items: start; }
.news-s div + div { border-top: 1px solid #E3EAF4; }
.news-s b { font-size: 12.5px; }
.news-s span { color: #2F3D58; font-size: 12px; line-height: 1.4; }
.tag { font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 2px 6px; }
.tag.hi { background: #FDEBD7; color: #9A3412; }
.tag.lo { background: #EDF2F9; color: #2F3D58; }
.example { align-self: center; font-size: 11px; color: #56647C; }

/* ---------- bandas */
section.band { padding-block: 72px; }
section.band + section.band { border-top: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.band.flip .copy { order: 2; }
.word { font: 800 clamp(44px, 7vw, 76px)/1 var(--display); letter-spacing: -0.035em; }
.word.e { color: var(--primary); }
.word.p { color: var(--sim); }
.word.d { background: linear-gradient(90deg, var(--primary), var(--cyan) 55%, #18D99B);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.copy h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin-top: 18px; }
.copy p { margin-top: 14px; color: var(--ink-2); font-size: 17px; max-width: 34em; }
.copy ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); }
.copy li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.copy li::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--mint); margin-top: 9px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--body); border-radius: 999px;
  padding: 6px 10px; margin-top: 16px; }
.pill.pro { background: var(--mint); color: var(--mint-ink); }
.pill.free { background: var(--track); color: var(--ink-2); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel h3 { font-size: 17px; }
.panel .sub { color: var(--muted); font-size: 13px; }

/* tabla de emisoras (Entiende) */
.holdings { width: 100%; border-collapse: collapse; font-size: 14px; }
.holdings th { text-align: left; font: 600 11.5px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 0 0 8px; }
.holdings th:not(:first-child), .holdings td:not(:first-child) { text-align: right; }
.holdings td { padding: 10px 0; border-top: 1px solid var(--line); }
.holdings td b { font-weight: 700; }
.g { color: var(--gain); font-weight: 700; }
.l { color: var(--loss); font-weight: 700; }
.mute { color: var(--muted); }
.scroll-x { overflow-x: auto; }

/* criterios (Practica) */
.checks { display: grid; gap: 0; }
.checks div { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 11px 0;
  border-top: 1px solid var(--line); font-size: 14.5px; }
.checks div:first-child { border-top: 0; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.dot.ok { background: var(--sim); border-color: var(--sim); box-shadow: inset 0 0 0 3px var(--surface); }
.checks em { font-style: normal; font-weight: 700; }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.meter span { height: 6px; border-radius: 3px; background: var(--track); }
.meter span.on { background: var(--sim); }

/* idea (Decide) */
.idea-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.idea-top b { font: 800 26px/1 var(--display); }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.levels div { background: var(--ground); border-radius: 12px; padding: 10px 12px; }
.levels small { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.levels strong { font-size: 17px; }
.track-rec { font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- planes */
.plans .wrap { display: block; }
.plans h2.section { font-size: clamp(28px, 4vw, 40px); }
.plans .intro { margin-top: 12px; color: var(--ink-2); font-size: 17px; max-width: 40em; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 14px; }
.plan.pro { background: var(--night); color: var(--on-night); border-color: var(--night); }
.plan h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.plan .price { font: 800 20px/1.2 var(--display); }
.plan .price small { display: block; font: 400 13px/1.4 var(--body); margin-top: 4px; color: var(--muted); }
.plan.pro .price small { color: var(--on-night-2); }
.plan ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 15px; }
.plan li::before { content: "✓"; font-weight: 800; color: var(--sim); }
.plan.pro li::before { color: var(--mint); }

/* ---------- lo que no es */
.not .wrap { display: block; }
.not-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.not-grid div { border-top: 3px solid var(--ink); padding-top: 14px; }
.not-grid h3 { font-size: 18px; }
.not-grid p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* ---------- preguntas */
.faq .wrap { display: block; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* ---------- pie */
footer { background: var(--night); color: var(--on-night-2); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 44px; }
footer h4 { margin: 0 0 10px; font: 700 13px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--on-night); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--on-night-2); }
footer a:hover { color: var(--on-night); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(201, 214, 242, .18); padding-top: 18px; font-size: 12.5px; }

/* ---------- páginas legales y de soporte */
.doc-head { background: var(--night); color: var(--on-night); }
.doc-head .wrap { padding-block: 28px 44px; }
.doc-head h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; margin-top: 10px; }
.doc-head p { margin-top: 10px; color: var(--on-night-2); }
.doc .wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-block: 44px 72px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; }
.toc b { display: block; font: 600 12px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0 0 0 18px; display: grid; gap: 7px; color: var(--muted); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--primary); }
.prose { max-width: 68ch; min-width: 0; }
.prose h2 { font-size: 22px; margin-top: 40px; scroll-margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin-top: 22px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin-top: 12px; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.prose strong { color: var(--ink); }
.prose .box { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.prose .box.warn { background: var(--warn-bg); border-color: transparent; }
.prose .box.warn p, .prose .box.warn strong { color: var(--warn-ink); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 700; }
.mail { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 700; color: var(--ink); }
.mail button { font: 600 13px/1 var(--body); border: 1px solid var(--line); background: var(--ground); color: var(--ink);
  border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--primary);
  color: var(--primary-ink); font: 700 13px/26px var(--body); text-align: center; }

/* ---------- responsivo */
@media (max-width: 900px) {
  .hero .wrap, .band .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .band.flip .copy { order: 0; }
  .not-grid { grid-template-columns: minmax(0, 1fr); }
  .doc .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; }
  footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  footer .about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 14px; }
  .nav .hide-sm { display: none; }
  section.band { padding-block: 52px; }
  .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: rise .7s ease-out both; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}
