/* ==========================================================================
   Wiva.pro — style.css
   Independent offer aggregator · Argentina
   Palette: pizarra (slate-ink base) · papel (warm paper cards)
            celeste (structure) · ambar (action only)
   Type:    Georgia editorial display · system sans body · mono data layer
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* Base — deep blue-slate, never pure black */
  --pizarra-900: #0b1017;
  --pizarra-800: #101825;
  --pizarra-700: #16202f;
  --pizarra-600: #1e2b3d;
  --pizarra-500: #2a3a4f;

  /* Paper — warm off-white used only for cards on dark */
  --papel: #faf8f4;
  --papel-2: #f0ece3;
  --papel-3: #e2dccf;

  /* Structural accent — celeste. Links, rules, eyebrows, focus. */
  --celeste: #6fb4de;
  --celeste-soft: #a6d3ef;
  --celeste-deep: #2b7aab;

  /* Action accent — ambar. CTAs and offer badges ONLY. */
  --ambar: #e3a93a;
  --ambar-deep: #bd8524;

  /* Type colours */
  --on-dark: #f1f5f9;
  --on-dark-mid: #b3c1d1;
  --on-dark-low: #7d8fa3;
  --on-paper: #14202d;
  --on-paper-mid: #4c5b6a;

  --linea: rgba(255, 255, 255, 0.09);
  --linea-fuerte: rgba(255, 255, 255, 0.16);

  /* Type */
  --display: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, "Courier New", monospace;

  /* Rhythm */
  --gutter: 24px;
  --maxw: 1180px;
  --maxw-prose: 760px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --sombra-card: 0 1px 2px rgba(3, 7, 12, .3), 0 18px 40px -22px rgba(3, 7, 12, .75);
  --sombra-alta: 0 2px 4px rgba(3, 7, 12, .35), 0 30px 60px -26px rgba(3, 7, 12, .85);

  --t: 200ms cubic-bezier(.4, .1, .2, 1);
}

/* ---------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-dark);
  background: var(--pizarra-900);
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(111, 180, 222, .10), transparent 62%),
    radial-gradient(760px 480px at 92% 4%, rgba(227, 169, 58, .07), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 .55em;
  color: var(--on-dark);
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem); }
h3 { font-size: clamp(1.18rem, 1.03rem + .7vw, 1.45rem); }
h4 { font-size: 1.06rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--celeste); text-decoration: none; }
a:hover { color: var(--celeste-soft); text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .5em; }
li::marker { color: var(--celeste-deep); }

strong { font-weight: 650; color: #fff; }
small { font-size: .85em; }

:focus-visible {
  outline: 3px solid var(--celeste);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--celeste); color: var(--pizarra-900); }

/* ------------------------------------------------------------- 3. Utility */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--prose { max-width: var(--maxw-prose); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ambar);
  color: #1b1206;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: .715rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--celeste);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--celeste-deep);
  flex: none;
}

.lede {
  font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem);
  color: var(--on-dark-mid);
  line-height: 1.6;
}

.muted { color: var(--on-dark-low); }
.center { text-align: center; }

/* --------------------------------------------------------------- 4. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 16, 23, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--linea);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--on-dark);
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--display);
  font-size: 1.32rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.brand-name span { color: var(--celeste); }
.brand-tag {
  display: block;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-dark-low);
  margin-top: 4px;
}

.nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: .935rem;
  color: var(--on-dark-mid);
  transition: color var(--t), background var(--t);
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, .06); text-decoration: none; }
.nav-list a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--celeste); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Language switcher */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--linea-fuerte);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, .03);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
}
.lang a, .lang span {
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--on-dark-low);
  line-height: 1.4;
}
.lang a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.lang [aria-current="true"] {
  background: var(--celeste);
  color: var(--pizarra-900);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-sm);
  color: var(--on-dark);
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bars { display: block; width: 19px; height: 13px; position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars i {
  content: "";
  position: absolute;
  left: 0;
  height: 1.6px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars i { top: 5.7px; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5.7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5.7px) rotate(-45deg); }

/* --------------------------------------------------------------- 5. Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: linear-gradient(160deg, var(--ambar) 0%, var(--ambar-deep) 100%);
  color: #1c1305;
  box-shadow: 0 12px 26px -14px rgba(227, 169, 58, .85);
}
.btn--primary:hover {
  color: #1c1305;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(227, 169, 58, .95);
}

.btn--ghost {
  background: transparent;
  border-color: var(--linea-fuerte);
  color: var(--on-dark);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }

.btn--header { padding: 10px 18px; font-size: .9rem; }

/* --------------------------------------------------------------- 6. Secciones */
.section { padding: clamp(56px, 7vw, 92px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--rule { border-top: 1px solid var(--linea); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 46px); }
.section-head p { color: var(--on-dark-mid); }

/* ----------------------------------------------------------------- 7. Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 7vw, 104px);
  border-bottom: 1px solid var(--linea);
}
.hero-guilloche {
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/guilloche.svg");
  background-size: 760px auto;
  background-position: right -120px top -60px;
  background-repeat: no-repeat;
  opacity: .5;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.hero h1 { margin-bottom: .38em; }
.hero-sub {
  font-size: clamp(1.08rem, 1rem + .5vw, 1.35rem);
  color: var(--on-dark-mid);
  line-height: 1.55;
  margin-bottom: 1em;
  max-width: 40ch;
}
.hero-note { color: var(--on-dark-low); max-width: 52ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.age-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 9px 16px 9px 10px;
  border: 1px solid var(--linea-fuerte);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-mid);
}
.age-strip b {
  background: var(--on-dark);
  color: var(--pizarra-900);
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 700;
  letter-spacing: .05em;
}

/* Intro corto (home) */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.intro-item {
  border-top: 1px solid var(--linea-fuerte);
  padding-top: 18px;
}
.intro-item h2 {
  font-family: var(--mono);
  font-size: .73rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--celeste);
  margin-bottom: .7em;
}
.intro-item p { color: var(--on-dark-mid); font-size: .97rem; margin: 0; }
.intro-item h2 + p { margin-top: 0; }

/* ------------------------------------------------------- 8. Ficha de bono */
/* Signature element: a filed "offer record" — mono rail + paper body. */
.fichas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.ficha {
  display: flex;
  background: var(--papel);
  color: var(--on-paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sombra-card);
  transition: transform var(--t), box-shadow var(--t);
}
.ficha:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }

.ficha-rail {
  flex: none;
  width: 46px;
  background: linear-gradient(180deg, var(--pizarra-700), var(--pizarra-900));
  color: var(--celeste-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ficha--sports .ficha-rail { background: linear-gradient(180deg, #17303a, #0b1017); }
.ficha-rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ficha-body {
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.ficha-top {
  display: flex;
  flex-direction: column-reverse;   /* badge above the title, consistently */
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.ficha h3 {
  color: var(--on-paper);
  font-size: clamp(1.24rem, 1.1rem + .5vw, 1.5rem);
  margin: 0;
}

.badge {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(227, 169, 58, .18);
  color: #7a5410;
  border: 1px solid rgba(189, 133, 36, .4);
  white-space: nowrap;
}

.ficha p.ficha-oferta {
  font-family: var(--mono);
  font-size: clamp(1.45rem, 1.15rem + 1.4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--on-paper);
  line-height: 1.15;
  padding: 16px 0;
  border-top: 1px solid var(--papel-3);
  border-bottom: 1px solid var(--papel-3);
  margin-bottom: 18px;
}

.ficha p.ficha-oferta span { white-space: nowrap; }
.ficha p { color: var(--on-paper-mid); font-size: .97rem; }

.ficha-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 20px;
}
.ficha-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: .97rem;
  color: var(--on-paper);
}
.ficha-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--celeste-deep);
  font-weight: 700;
}

.ficha p.ficha-terms {
  background: var(--papel-2);
  border-left: 3px solid var(--celeste-deep);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 13px 16px;
  font-size: .855rem;
  line-height: 1.55;
  color: var(--on-paper-mid);
  margin-bottom: 22px;
}
.ficha p.ficha-terms strong {
  color: var(--on-paper);
  display: block;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 700;
}

.ficha-foot { margin-top: auto; }
.ficha-foot .btn { width: 100%; }
.ficha-foot small {
  display: block;
  text-align: center;
  margin-top: 11px;
  color: var(--on-paper-mid);
  font-size: .78rem;
}

/* --------------------------------------------------------- 9. Avisos/notas */
.aviso {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(227, 169, 58, .09);
  border: 1px solid rgba(227, 169, 58, .3);
  border-radius: var(--r-md);
  padding: 20px 24px;
  color: var(--on-dark-mid);
  margin-top: 30px;
}
.aviso-mark {
  flex: none;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ambar);
  border: 1px solid rgba(227, 169, 58, .45);
  border-radius: 999px;
  padding: 4px 10px;
  margin-top: 2px;
}
.aviso p { margin: 0; font-size: .95rem; }

.panel {
  background: var(--pizarra-800);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.5vw, 42px);
}
.panel + .panel { margin-top: 22px; }

/* --------------------------------------------------------- 10. Comparativa */
.tabla-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--pizarra-800);
}
.tabla-scroll:focus-visible { outline-offset: 0; }

table.comparativa {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: .95rem;
}
table.comparativa caption {
  caption-side: bottom;
  padding: 14px 18px;
  font-size: .82rem;
  color: var(--on-dark-low);
  text-align: left;
}
table.comparativa th,
table.comparativa td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--linea);
  vertical-align: top;
}
table.comparativa thead th {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--celeste);
  background: var(--pizarra-700);
  font-weight: 700;
  white-space: nowrap;
}
table.comparativa tbody th {
  font-family: var(--body);
  font-weight: 600;
  color: var(--on-dark);
  width: 30%;
}
table.comparativa td { color: var(--on-dark-mid); }
table.comparativa tbody tr:last-child th,
table.comparativa tbody tr:last-child td { border-bottom: 0; }
table.comparativa tbody tr:hover td,
table.comparativa tbody tr:hover th { background: rgba(255, 255, 255, .028); }
.scroll-hint {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-low);
  margin-top: 12px;
  display: none;
}

/* ------------------------------------------------------------- 11. Pasos */
.pasos {
  list-style: none;
  counter-reset: paso;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pasos li {
  counter-increment: paso;
  background: var(--pizarra-800);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  padding: 24px 22px;
  margin: 0;
}
.pasos li::before {
  content: counter(paso, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 700;
  color: var(--celeste);
  margin-bottom: 12px;
}
.pasos h3 { font-size: 1.02rem; font-family: var(--body); font-weight: 650; margin-bottom: .45em; }
.pasos p { font-size: .9rem; color: var(--on-dark-mid); margin: 0; }

/* Reglas de juego responsable */
.reglas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.reglas li {
  padding-left: 22px;
  position: relative;
  color: var(--on-dark-mid);
  border-bottom: 1px solid var(--linea);
  padding-bottom: 13px;
  margin: 0;
}
.reglas li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--celeste-deep);
}

/* ---------------------------------------------------------------- 12. FAQ */
.faq { border-top: 1px solid var(--linea); }
.faq-item { border-bottom: 1px solid var(--linea); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  background: none;
  border: 0;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1.02rem, .97rem + .3vw, 1.16rem);
  color: var(--on-dark);
  line-height: 1.35;
}
.faq-q:hover { color: var(--celeste-soft); }
.faq-icon {
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--linea-fuerte);
  border-radius: 50%;
  position: relative;
  margin-top: 2px;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--celeste);
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 11px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 11px; transition: opacity var(--t); }
.faq-q[aria-expanded="true"] .faq-icon { background: rgba(111, 180, 222, .14); border-color: var(--celeste-deep); }
.faq-q[aria-expanded="true"] .faq-icon::after { opacity: 0; }

.faq-a { display: none; padding: 0 46px 24px 4px; }
.faq-a.is-open { display: block; }
.faq-a p { color: var(--on-dark-mid); font-size: .97rem; }

/* -------------------------------------------------------------- 13. Forms */
.form-card {
  background: var(--pizarra-800);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.5vw, 42px);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }

label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-mid);
  font-weight: 700;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--on-dark);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #66788c; }
input:hover, textarea:hover, select:hover { border-color: rgba(255, 255, 255, .28); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--celeste);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 3px rgba(111, 180, 222, .22);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #e97b6b;
  box-shadow: 0 0 0 3px rgba(233, 123, 107, .18);
}

.field-error {
  color: #f0a094;
  font-size: .85rem;
  min-height: 0;
  display: none;
}
.field-error.is-visible { display: block; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.form-foot p { margin: 0; font-size: .84rem; color: var(--on-dark-low); flex: 1 1 240px; }

/* Estados de éxito */
.success {
  display: none;
  background: linear-gradient(160deg, rgba(111, 180, 222, .12), rgba(111, 180, 222, .04));
  border: 1px solid rgba(111, 180, 222, .35);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.5vw, 44px);
  text-align: center;
}
.success.is-visible { display: block; }
.success-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--celeste);
  color: var(--pizarra-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.success h3 { margin-bottom: .5em; }
.success p { color: var(--on-dark-mid); max-width: 46ch; margin-inline: auto; }
.success .btn { margin-top: 22px; }

/* Suscripción */
.suscribe {
  background:
    linear-gradient(150deg, rgba(111, 180, 222, .12), transparent 55%),
    var(--pizarra-800);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  padding: clamp(30px, 4vw, 52px);
}
.suscribe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}
.suscribe h2 { margin-bottom: .4em; }
.suscribe .lede { font-size: 1rem; }
.suscribe-form .field { margin-bottom: 14px; }

/* -------------------------------------------------------------- 14. Prose */
.prose h2 { margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; color: var(--on-dark); }
.prose p, .prose li { color: var(--on-dark-mid); }
.prose ul, .prose ol { margin-bottom: 1.4em; }
.prose .meta {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-low);
  border-top: 1px solid var(--linea);
  padding-top: 16px;
  margin-top: 48px;
}
.prose .destacado {
  border-left: 2px solid var(--celeste-deep);
  padding: 4px 0 4px 22px;
  margin: 1.8em 0;
  color: var(--on-dark);
  font-size: 1.05rem;
}
.prose dl { margin: 0 0 1.4em; }
.prose dt { font-weight: 650; color: var(--on-dark); margin-top: 1.1em; }
.prose dd { margin: .3em 0 0; color: var(--on-dark-mid); }

.page-head {
  padding: clamp(48px, 6vw, 82px) 0 clamp(28px, 3.5vw, 44px);
  border-bottom: 1px solid var(--linea);
}
.page-head .lede { max-width: 60ch; }

/* -------------------------------------------------------------- 15. 404 */
.e404 {
  min-height: 52vh;
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vw, 110px) 0;
}
.e404-code {
  font-family: var(--mono);
  font-size: clamp(4.5rem, 3rem + 12vw, 10rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--celeste-deep);
  margin-bottom: .2em;
}
.e404 .lede { max-width: 46ch; }

/* ------------------------------------------------------------- 16. Footer */
.site-footer {
  border-top: 1px solid var(--linea);
  background: #080c12;
  padding: clamp(46px, 5.5vw, 74px) 0 30px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--linea);
}
.footer-about p {
  color: var(--on-dark-low);
  font-size: .92rem;
  max-width: 40ch;
  margin-top: 16px;
}
.footer-col h2 {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--celeste);
  margin-bottom: 1.2em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6em; }
.footer-col a { color: var(--on-dark-mid); font-size: .93rem; }
.footer-col a:hover { color: #fff; }

.footer-legal { padding-top: 28px; display: grid; gap: 18px; }
.footer-legal p { font-size: .84rem; color: var(--on-dark-low); margin: 0; max-width: 92ch; }
.footer-18 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--on-dark-mid);
}
.footer-18 b {
  background: transparent;
  border: 1.5px solid var(--on-dark-mid);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  flex: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--linea);
  font-size: .84rem;
  color: var(--on-dark-low);
}

/* ------------------------------------------------------- 17. Cookie notice */
.cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 760px;
  margin-inline: auto;
  background: var(--pizarra-700);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  padding: 22px 24px;
  display: none;
}
.cookies.is-visible { display: block; }
.cookies-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}
.cookies p { margin: 0; font-size: .92rem; color: var(--on-dark-mid); flex: 1 1 320px; }
.cookies-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cookies-config { display: none; margin-top: 20px; border-top: 1px solid var(--linea); padding-top: 20px; }
.cookies-config.is-open { display: block; }
.cookie-opt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--linea);
}
.cookie-opt:last-of-type { border-bottom: 0; }
.cookie-opt input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--celeste); flex: none; }
.cookie-opt label { text-transform: none; font-family: var(--body); letter-spacing: 0; font-size: .95rem; color: var(--on-dark); font-weight: 600; }
.cookie-opt span { display: block; font-size: .85rem; color: var(--on-dark-low); font-weight: 400; margin-top: 3px; }

/* ------------------------------------------------------------ 18. Layout */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* ------------------------------------------------------- 19. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ficha:hover, .btn--primary:hover { transform: none; }
}

/* ------------------------------------------------------------- 20. CTA band */
.cta-band { text-align: center; }
.cta-band .eyebrow { justify-content: center; }
.cta-band .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--celeste-deep);
  flex: none;
}
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .lede { max-width: 56ch; margin: 0 auto 32px; }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--linea);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--celeste-soft);
}
