/* Tu Profe Estadística — sistema de diseño v2 (rediseño, 29 nov 2026)
   Plan: PLAN-REDISENO.md. Una familia (Barlow + Barlow Condensed), títulos en minúscula
   de oración, base clara de papel frío, un solo acento (Señal) para el dato que importa. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin.woff2") format("woff2"); 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+2212; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500-latin.woff2") format("woff2"); 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+2212; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600-latin.woff2") format("woff2"); 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+2212; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-var-latin.woff2") format("woff2"); 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+2212; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-var-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }

:root {
  /* Marca (medidos en los PNG del logo) */
  --blue: #2062AC;        /* Azul Σ */
  --ink: #163561;         /* Azul tinta: títulos y bandas oscuras */
  --mist: #E8EFF5;        /* Niebla: bandas alternas */
  --paper: #F5F7FA;       /* Papel frío: fondo */
  --signal: #D9822B;      /* Señal: solo el dato que importa (relleno, nunca texto chico) */
  --signal-text: #9A5410; /* Señal legible sobre claro (5,4:1) */
  /* Derivados */
  --text: #1B2A41;
  --muted: #4A5A72;       /* 6,6:1 sobre papel */
  --line: rgba(22, 53, 97, .14);
  --night: #0F2240;       /* banda de la app: azul tinta profundo, no negro */
  --white: #fff;

  /* v2.1 (referencia de Cristian: weplash.com/academia): palo seco apretada + cursiva con serifa de acento */
  --f-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --black: #0B1B33;       /* «negro» de los botones: azul tinta muy profundo */

  --r-s: 6px;   /* campos, botones */
  --r-m: 22px;  /* bloques */
  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.6 var(--f-text); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipografía: escala 1,25, minúscula de oración */
h1, h2, h3 { margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 650; letter-spacing: -.045em; color: var(--black); }
h1 { font-size: clamp(2.8rem, 5.8vw, 4.7rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.06; }
/* Acento: una palabra en cursiva con serifa, como la referencia */
.it { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1 .it, h2 .it { font-size: 1.08em; }
h3 { font: 600 1.25rem/1.3 var(--f-text); }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Estructura */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--mist { background: transparent; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.kicker { display: block; font-size: .92rem; font-weight: 500; color: var(--muted); margin-bottom: .8rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .75rem 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1.2 var(--f-text); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--black); color: var(--white); }
.btn--primary:hover { background: var(--blue); color: var(--white); }
.btn--line { border-color: #D5DCE6; color: var(--black); background: var(--white); }
.btn--line:hover { border-color: var(--black); color: var(--black); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--mist); color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn--paypal { background: #FFC439; color: #111D3A; width: 100%; }
.btn--paypal:hover { background: #F2B52A; color: #111D3A; }
.btn--block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Menú */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 249, 252, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { height: 42px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__links a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--blue); }
.nav__links .btn { min-height: 42px; padding: .5rem 1.1rem; }
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--ink); cursor: pointer; }
.nav__toggle svg { width: 28px; height: 28px; }
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 1rem; }
}

/* Listas */
.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .95rem; height: .55rem; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg) translateY(-2px); }

/* Formularios */
.field { display: grid; gap: .35rem; margin-bottom: .9rem; }
.field label { font-weight: 600; font-size: .95rem; }
.input { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1.5px solid #C5D2E2; border-radius: var(--r-s); background: var(--white); font: inherit; color: var(--text); }
.input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(32, 98, 172, .2); }
.form-ok { display: none; margin-top: .9rem; padding: .75rem 1rem; border-radius: var(--r-s); background: #E3F2E8; color: #14532D; font-size: .95rem; }
.form-ok.is-visible { display: block; }
.note { font-size: .88rem; color: var(--muted); margin: .75rem 0 0; }
.soon { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: .85em; font-weight: 500; }

/* Pie */
.footer { background: #06101F; color: #C9D6E8; padding: 3.5rem 0 2rem; }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer__logo { height: 44px; width: auto; }
.footer h4 { color: var(--white); font: 600 1rem var(--f-text); margin: 0 0 .8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .9rem; }
.footer .soon { background: rgba(255,255,255,.12); color: var(--white); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
