/* ==========================================================================
   Rasca y Gana Casino — hoja de estilos principal
   Plataforma independiente de información y comparación (Argentina)
   CSS3 puro. Sin frameworks. Sin dependencias externas.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Superficies */
  --paper:        #FAF8F4;
  --paper-deep:   #F2EFE7;
  --surface:      #FFFFFF;
  --surface-ink:  #12171E;

  /* Tinta */
  --ink:          #12171E;
  --ink-2:        #414B59;
  --ink-3:        #6C7685;
  --ink-invert:   #F7F6F2;

  /* Acentos */
  --emerald:      #0E6B4F;
  --emerald-deep: #0A5340;
  --emerald-soft: #E7F0EB;
  --gold:         #E0A63C;
  --gold-deep:    #C68C21;
  --gold-soft:    #FBF1DD;
  --gold-ink:     #2B1E06;

  /* Estructura */
  --line:         #E3DED2;
  --line-soft:    #EFEBE1;
  --line-strong:  #CFC7B6;

  /* Estados */
  --alert:        #9A3412;
  --alert-soft:   #FBEEE7;

  /* Forma */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;

  --shadow-1: 0 1px 2px rgba(18, 23, 30, .05);
  --shadow-2: 0 2px 4px rgba(18, 23, 30, .04), 0 10px 26px rgba(18, 23, 30, .06);

  /* Tipografía */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Medidas */
  --wrap: 1240px;
  --measure: 68ch;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 1.35rem + 2.9vw, 3.5rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + .6vw, 1.42rem); }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }

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

a { color: var(--emerald-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--emerald); }

strong { font-weight: 650; }
small { font-size: .84rem; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

table { border-collapse: collapse; width: 100%; }

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

::selection { background: var(--gold-soft); color: var(--ink); }

/* --------------------------------------------------------------------------
   3. Utilidades de estructura
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(3rem, 6vw, 5.25rem); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.section--paper { background: var(--paper-deep); }
.section--rule { border-top: 1px solid var(--line); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--ink-invert);
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--r) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  color: var(--ink-invert);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Encabezado de aviso (18+)
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--surface-ink);
  color: #C8CEDA;
  font-size: .82rem;
  line-height: 1.45;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .9rem;
  padding-block: .55rem;
}

.age-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  padding: .1rem .45rem;
  border: 1px solid #5B6473;
  border-radius: 999px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
  flex: none;
}

.topbar__text { flex: 1 1 16rem; }

.topbar a {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  white-space: nowrap;
}
.topbar a:hover { text-decoration-color: #FFFFFF; }

/* --------------------------------------------------------------------------
   5. Cabecera / navegación
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, .93);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  padding-block: .4rem;
}

.brand__mark { width: 2.2rem; height: 2.2rem; flex: none; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  white-space: nowrap;
}

.brand__kicker {
  display: block;
  font-size: .68rem;
  color: var(--ink-3);
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  padding: .5rem .75rem;
  cursor: pointer;
}
.nav-toggle svg { width: 1.05rem; height: 1.05rem; }

.site-nav { display: flex; align-items: center; gap: 1.2rem; }

.nav-list {
  display: flex;
  align-items: center;
  gap: .95rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 550;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  display: inline-block;
  white-space: nowrap;
}
.nav-list a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.nav-list a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--emerald); }

.nav-aside {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.lang-switch a {
  padding: .25rem .6rem;
  font-size: .78rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink-3);
  letter-spacing: .03em;
}
.lang-switch a[aria-current="true"] { background: var(--ink); color: #FFFFFF; }
.lang-switch a:hover:not([aria-current="true"]) { color: var(--ink); background: var(--paper-deep); }

/* --------------------------------------------------------------------------
   6. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.9rem;
  padding: .65rem 1.25rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn--primary {
  background: var(--gold);
  border-color: var(--gold-deep);
  color: var(--gold-ink);
}
.btn--primary:hover { background: var(--gold-deep); color: #FFFFFF; }

.btn--emerald {
  background: var(--emerald);
  border-color: var(--emerald-deep);
  color: #FFFFFF;
}
.btn--emerald:hover { background: var(--emerald-deep); color: #FFFFFF; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-3); color: var(--ink); }

.btn--sm { min-height: 2.4rem; padding: .4rem .85rem; font-size: .87rem; }
.btn--block { display: flex; width: 100%; }

.btn__ext { width: .85em; height: .85em; flex: none; opacity: .75; }

/* --------------------------------------------------------------------------
   7. Etiquetas y avisos
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: .73rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .01em;
}
.tag--ext { border-color: #BFCADA; background: #EEF3F9; color: #2B4664; }
.tag--aff { border-color: var(--gold-deep); background: var(--gold-soft); color: #6B4C09; }
.tag--info { border-color: var(--emerald); background: var(--emerald-soft); color: var(--emerald-deep); }

.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; }

.disclosure {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 1rem 1.15rem;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.disclosure strong { color: var(--ink); }

.disclosure--flat {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--line-strong);
  border-radius: 0;
  padding: .2rem 0 .2rem 1rem;
  font-size: .86rem;
}

.callout {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r);
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-1);
}
.callout--emerald { background: var(--emerald-soft); border-color: #CADCD2; box-shadow: none; }
.callout--alert { background: var(--alert-soft); border-color: #EBD3C6; box-shadow: none; }
.callout h3 { margin-top: 0; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60rem 30rem at 82% -8%, rgba(14, 107, 79, .07), transparent 60%),
    var(--paper);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--emerald-deep);
  background: var(--emerald-soft);
  border: 1px solid #CADCD2;
  border-radius: 999px;
  padding: .28rem .8rem;
  margin-bottom: 1.15rem;
}

.hero h1 { margin-bottom: .5rem; }

.hero__lede {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34ch;
  margin-bottom: 1.15rem;
}

.hero__body {
  max-width: 54ch;
  color: var(--ink-2);
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}

.hero__fineprint {
  margin-top: 1rem;
  font-size: .82rem;
  color: var(--ink-3);
  max-width: 46ch;
}

/* Ficha: panel de datos del operador destacado */
.ficha {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.ficha__head {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFFFF, #FBFAF7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .8rem;
}

.ficha__title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  margin: 0;
  margin-right: auto;
}

.ficha__sub {
  width: 100%;
  font-size: .85rem;
  color: var(--ink-3);
  margin: 0;
}

.ficha__rows { margin: 0; padding: 0; }

.ficha__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: .35rem 1rem;
  padding: .72rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9rem;
}
.ficha__row dt { color: var(--ink-3); }
.ficha__row dd { margin: 0; color: var(--ink); }

.ficha__foot {
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.ficha__foot .btn { width: 100%; }
.ficha__note {
  margin: .7rem 0 0;
  font-size: .78rem;
  color: var(--ink-3);
  text-align: center;
}

/* --------------------------------------------------------------------------
   9. Cabeceras de página interior
   -------------------------------------------------------------------------- */
.page-head {
  padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-head__inner { max-width: 46rem; }

.page-head h1 { margin-bottom: .45rem; }

.page-head__lede {
  font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem);
  color: var(--ink-2);
  max-width: 58ch;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  font-size: .82rem;
  color: var(--ink-3);
}
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-strong); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* --------------------------------------------------------------------------
   10. Rejillas y tarjetas
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-1);
}
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-2); font-size: .94rem; margin-bottom: .8rem; }
.card p:last-child { margin-bottom: 0; }

.card__icon {
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: .85rem;
  color: var(--emerald);
}

.card-link {
  display: inline-block;
  font-size: .89rem;
  font-weight: 600;
  margin-top: .3rem;
}

/* Pasos del proceso — secuencia real, por eso van numerados */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 1.4rem;
  border-top: 2px solid var(--ink);
}
.step:nth-child(2) { border-top-color: var(--emerald); }
.step:nth-child(3) { border-top-color: var(--gold-deep); }

.step__num {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-3);
  display: block;
  margin-bottom: .35rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--ink-2); font-size: .94rem; margin: 0; }

/* --------------------------------------------------------------------------
   11. Tablas comparativas
   -------------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.data-table { min-width: 44rem; font-size: .92rem; }

.data-table caption {
  text-align: left;
  padding: .9rem 1.1rem;
  font-size: .85rem;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}

.data-table th,
.data-table td {
  text-align: left;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.data-table thead th {
  background: var(--paper-deep);
  color: var(--ink-2);
  font-size: .82rem;
  font-weight: 650;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table th[scope="row"] { font-weight: 650; color: var(--ink); }

.scroll-hint {
  font-size: .8rem;
  color: var(--ink-3);
  margin-top: .55rem;
}

/* --------------------------------------------------------------------------
   12. Tarjeta de operador (comparación)
   -------------------------------------------------------------------------- */
.operator {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.operator__main { padding: clamp(1.25rem, 3vw, 2rem); }
.operator__aside {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .8rem;
}

.operator__name {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
  margin: 0 0 .3rem;
}

.operator__role {
  font-size: .88rem;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

.operator dl { margin: 1.1rem 0 0; }

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }

.faq-item {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.faq-item > summary {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.05rem .25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--emerald-deep); }

.faq-item > summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: .7rem;
  height: .7rem;
  margin-top: .45rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }

.faq-answer {
  padding: 0 .25rem 1.25rem;
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: .96rem;
}

/* --------------------------------------------------------------------------
   14. Texto largo (páginas legales / guías)
   -------------------------------------------------------------------------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 1.6em; }
.prose h3 { margin-top: 1.9em; margin-bottom: .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { color: var(--ink-2); }
.prose .callout, .prose .disclosure { margin-top: 1.6em; }

.updated {
  font-size: .85rem;
  color: var(--ink-3);
  border-left: 3px solid var(--line-strong);
  padding-left: .9rem;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1.35rem;
  margin-bottom: 2rem;
}
.toc h2 {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-3);
  margin: 0 0 .6rem;
  border: 0;
  padding: 0;
}
.toc ol { margin: 0; padding-left: 1.2em; font-size: .92rem; }
.toc li { margin-bottom: .3em; }

/* Dos columnas: contenido + barra lateral */
.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.side { position: sticky; top: 6rem; display: grid; gap: 1.25rem; }

.side__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.25rem;
  box-shadow: var(--shadow-1);
}
.side__panel h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.side__panel p { font-size: .89rem; color: var(--ink-2); }
.side__panel .btn { width: 100%; }

/* --------------------------------------------------------------------------
   15. Formularios
   -------------------------------------------------------------------------- */
.form { max-width: 34rem; }
.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.field .hint { display: block; font-size: .82rem; color: var(--ink-3); font-weight: 400; margin-top: .15rem; }

.field input[type="text"],
.field input[type="email"],
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: .7rem .85rem;
  min-height: 2.9rem;
}
.field textarea { min-height: 9rem; resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible { border-color: var(--emerald); }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--alert); background: #FEFBFA; }

.field-error {
  display: none;
  color: var(--alert);
  font-size: .84rem;
  margin-top: .35rem;
}
.field-error.is-visible { display: block; }

.check {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin-bottom: .9rem;
  font-size: .92rem;
  color: var(--ink-2);
}
.check input { margin-top: .28rem; width: 1.05rem; height: 1.05rem; flex: none; }

.form-status {
  display: none;
  margin-top: 1.25rem;
  border: 1px solid #CADCD2;
  background: var(--emerald-soft);
  color: var(--emerald-deep);
  border-radius: var(--r-sm);
  padding: .95rem 1.1rem;
  font-size: .92rem;
}
.form-status.is-visible { display: block; }

/* --------------------------------------------------------------------------
   16. Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface-ink);
  color: #AEB6C2;
  font-size: .9rem;
  margin-top: 0;
}

.footer__disclosure {
  border-bottom: 1px solid #262E3A;
  padding-block: 1.6rem;
}
.footer__disclosure p {
  margin: 0 0 .75rem;
  max-width: 88ch;
  font-size: .87rem;
  line-height: 1.65;
  color: #C3CAD5;
}
.footer__disclosure p:last-child { margin-bottom: 0; }
.footer__disclosure strong { color: #FFFFFF; font-weight: 650; }

.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(10rem, 1fr));
  gap: 2rem;
  padding-block: 2.5rem 2rem;
}

.footer__brand .brand__name { color: #FFFFFF; }
.footer__brand .brand__kicker { color: #8B94A3; }
.footer__brand p { margin-top: .9rem; font-size: .87rem; max-width: 34ch; color: #AEB6C2; }

.footer__cols h2 {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #FFFFFF;
  margin-bottom: .75rem;
}

.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .45rem; }
.footer__list a { color: #AEB6C2; text-decoration: none; font-size: .88rem; }
.footer__list a:hover { color: #FFFFFF; text-decoration: underline; }

.footer__bottom {
  border-top: 1px solid #262E3A;
  padding-block: 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  font-size: .82rem;
  color: #8B94A3;
}
.footer__bottom .age-chip { border-color: #4C5666; }
.footer__bottom p { margin: 0; }
.footer__bottom button {
  background: none;
  border: 0;
  color: #AEB6C2;
  font: inherit;
  font-size: .82rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.footer__bottom button:hover { color: #FFFFFF; }

.site-footer a:focus-visible { outline-color: var(--gold); }

/* --------------------------------------------------------------------------
   17. Banner de cookies
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(62rem, calc(100% - 2rem));
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 44px rgba(18, 23, 30, .18);
  padding: 1.15rem 1.25rem;
  z-index: 150;
  display: none;
}
.cookie-banner[data-open="true"] { display: block; }

.cookie-banner__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: center;
}

.cookie-banner h2 { font-size: 1.08rem; margin: 0 0 .35rem; }
.cookie-banner p { font-size: .87rem; color: var(--ink-2); margin: 0; max-width: 62ch; }

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

/* --------------------------------------------------------------------------
   18. 404
   -------------------------------------------------------------------------- */
.error-page {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  text-align: left;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  line-height: 1;
  color: var(--line-strong);
  margin: 0 0 .5rem;
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__lede { max-width: 46ch; }
  .operator { grid-template-columns: 1fr; }
  .operator__aside { border-left: 0; border-top: 1px solid var(--line); }
  .layout-split { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
}

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow-2);
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
  .site-nav[data-open="true"] { display: flex; }

  .header__inner { position: relative; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { margin: 0; }
  .nav-list a {
    display: block;
    padding: .8rem .25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--emerald); }

  .nav-aside {
    margin-top: 1rem;
    flex-direction: row-reverse;
    justify-content: space-between;
  }
  .nav-aside .btn { flex: 1 1 auto; }
}

@media (max-width: 640px) {
  .hero__eyebrow { border-radius: var(--r-sm); }
  .cookie-banner__grid { grid-template-columns: 1fr; }
  .cookie-banner__actions .btn { flex: 1 1 10rem; }
  .ficha__row { grid-template-columns: 1fr; gap: .1rem; }
  .ficha__row dt { font-size: .8rem; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   20. Preferencias del sistema / impresión
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .topbar, .cookie-banner, .hero__actions, .btn { display: none !important; }
  body { background: #FFFFFF; }
  .site-footer { background: #FFFFFF; color: #000000; }
}
