/* AR Guía del Plata — hoja de estilos única
   Tokens y clases BEM-ish compartidas por todas las rutas. */

:root {
  /* Paleta: porcelana + azul marino + rojo cálido (único acento) */
  --porcelain: #f5f2ec;
  --porcelain-2: #ece7dd;
  --white: #ffffff;
  --navy: #132747;
  --navy-2: #1d3861;
  --ink: #14223a;
  --muted: #56657f;
  --accent: #c4362c;
  --accent-soft: #fbeceb;
  --line: rgba(19, 39, 71, 0.16);
  --line-strong: #132747;

  /* Escala de espaciado 4 / 8 */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-band: 44px;

  --sh-1: 0 6px 18px rgba(19, 39, 71, 0.07);
  --sh-2: 0 14px 34px rgba(19, 39, 71, 0.11);

  --container: 1140px;
  --measure: 68ch;

  --font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--porcelain);
  background-image: url("/assets/textura-porcelana.webp");
  background-size: 700px 700px;
  background-repeat: repeat;
  background-attachment: fixed;
}

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

h1, h2, h3, h4 {
  margin: 0 0 var(--s-3);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(1.95rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
h4 { font-size: 1.03rem; }

p { margin: 0 0 var(--s-4); }

a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

a:hover { color: #a72a22; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.num { font-variant-numeric: tabular-nums; }

.container {
  width: min(100% - 2 * var(--s-5), var(--container));
  margin-inline: auto;
}

.container--narrow { width: min(100% - 2 * var(--s-5), 860px); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--porcelain);
  padding: var(--s-3) var(--s-4);
  z-index: 60;
}
.skip:focus { left: var(--s-4); top: var(--s-2); }

/* ---------- Kicker (línea en versalitas sobre los títulos) ---------- */

.kicker {
  display: block;
  margin: 0 0 var(--s-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker--light { color: #f0b6b0; }

/* ---------- Barra de edad (fijada arriba en todas las páginas) ---------- */

.agebar {
  background: var(--navy);
  color: #dfe6f1;
  font-size: 0.83rem;
  line-height: 1.45;
}

.agebar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-2) 0;
}

.agebar__mark {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--porcelain);
  background: var(--accent);
  border-radius: var(--r-sm);
  padding: 1px 8px;
  letter-spacing: 0.04em;
}

.agebar p { margin: 0; }
.agebar a { color: #ffd9d4; }
.agebar a:hover { color: var(--white); }

/* ---------- Cabecera: barra superior clásica ---------- */

.site-header {
  background: var(--porcelain);
  border-bottom: 2px solid var(--line-strong);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-4) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.brand:hover { color: var(--navy); }

.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.brand__sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav__link:hover { color: var(--accent); }

.nav__link[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 0 var(--accent);
}

@media (max-width: 900px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
  }
  .nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav__list {
    gap: var(--s-4);
    padding-bottom: var(--s-2);
  }
  .nav__link { font-size: 0.9rem; }
}

/* ---------- Botones (contorneados, texto en el acento) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 11px 20px;
  border: 2px solid var(--accent);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  background: var(--accent-soft);
  color: #a72a22;
}

.btn--secondary {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--secondary:hover {
  background: rgba(19, 39, 71, 0.07);
  color: var(--navy);
}

.btn--light {
  border-color: #f0b6b0;
  color: #ffe4e0;
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn--block { width: 100%; }

/* ---------- Chips / etiquetas ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(19, 39, 71, 0.05);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
}

.chip--pba {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--porcelain);
}

.chip--accent {
  background: var(--accent-soft);
  border-color: rgba(196, 54, 44, 0.35);
  color: #a72a22;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
  padding: 0;
  list-style: none;
}

/* ---------- Bandas y formas de sección ---------- */

.band { padding: var(--s-9) 0; }

.band--tint {
  background: var(--porcelain-2);
  border-radius: var(--r-band);
}

.band--navy {
  padding-block: calc(var(--s-9) + var(--s-4));
  position: relative;
  isolation: isolate;
  background: var(--navy) url("/assets/banda-jurisdiccion.webp") center / cover no-repeat;
  border-radius: var(--r-band);
  color: #e7ecf5;
  overflow: hidden;
}

.band--navy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(11, 25, 48, 0.94) 0%, rgba(15, 32, 60, 0.86) 100%);
}

.band--navy h2,
.band--navy h3 { color: var(--white); }

.band--tight { padding: var(--s-8) 0; }

.section { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-8) 0; }

.section__head {
  max-width: var(--measure);
  margin-bottom: var(--s-6);
}

.section__head p { color: var(--muted); margin-bottom: 0; }

/* ---------- Hero: texto a la izquierda, visual a la derecha ---------- */

.hero { padding: var(--s-8) 0 var(--s-7); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-7);
  align-items: center;
}

.hero h1 { max-width: 30ch; }

.hero__lead {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 56ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.hero__scope {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-1);
  font-size: 0.94rem;
}

.hero__scope p { margin: 0 0 var(--s-2); }
.hero__scope p:last-child { margin-bottom: 0; }
.hero__scope strong { color: var(--navy); }

.hero__figure {
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--sh-2);
}

.hero__stamp {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-top: 2px solid var(--line-strong);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ---------- Mosaico bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}

.tile {
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--white);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
  grid-column: span 4;
}

.tile--wide { grid-column: span 6; }
.tile--full { grid-column: span 12; }
.tile--third { grid-column: span 4; }
.tile--quarter { grid-column: span 3; }

.tile--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #dde5f1;
}

.tile--navy h3, .tile--navy h4 { color: var(--white); }

.tile--tint { background: var(--porcelain-2); }

.tile__stat {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.tile--navy .tile__stat { color: var(--white); }

.tile__label {
  display: block;
  margin-top: var(--s-2);
  font-size: 0.86rem;
  color: var(--muted);
}

.tile--navy .tile__label { color: #b9c6dc; }

.tile p:last-child { margin-bottom: 0; }

.tile--link { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.tile--link:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

@media (max-width: 900px) {
  .tile, .tile--wide, .tile--third, .tile--quarter { grid-column: span 6; }
}

@media (max-width: 620px) {
  .tile, .tile--wide, .tile--third, .tile--quarter, .tile--full { grid-column: span 12; }
}

/* ---------- Franja de jurisdicción (banda más prominente del sitio) ---------- */

.trust__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-7);
  align-items: start;
}

.trust__lead { font-size: 1.06rem; color: #d5deee; max-width: 58ch; }

.trust__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

.trust__stat {
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  background: rgba(255, 255, 255, 0.05);
}

.trust__value {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.trust__desc {
  display: block;
  margin-top: var(--s-1);
  font-size: 0.85rem;
  color: #b9c6dc;
}

.trust__note {
  margin-top: var(--s-6);
  font-size: 0.9rem;
  color: #c6d1e4;
}

.trust__note a { color: #ffd9d4; }

@media (max-width: 900px) {
  .trust__grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ---------- Listas ---------- */

.list {
  margin: 0 0 var(--s-4);
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: var(--s-5);
  margin-bottom: var(--s-3);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--accent);
}

.list--light li::before { background: #f0b6b0; }

.list--tight li { margin-bottom: var(--s-2); }

.list-ordered {
  margin: 0 0 var(--s-4);
  padding-left: var(--s-5);
  counter-reset: step;
  list-style: none;
}

.list-ordered li {
  position: relative;
  margin-bottom: var(--s-3);
  padding-left: var(--s-4);
  counter-increment: step;
}

.list-ordered li::before {
  content: counter(step);
  position: absolute;
  left: calc(-1 * var(--s-5));
  top: 0.15em;
  width: 26px;
  height: 26px;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- Fichas de operadores (tiras horizontales) ---------- */

.ops { display: grid; gap: var(--s-5); }

.op {
  display: grid;
  grid-template-columns: 1.55fr 0.45fr;
  gap: var(--s-6);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-1);
  padding: var(--s-6);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.op:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

.op__head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

.op__logo {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  object-fit: contain;
  padding: 4px;
}

.op__name { margin: 0; font-size: 1.3rem; }

.op__index {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.op__desc { margin-bottom: var(--s-4); max-width: 62ch; }

.op__facts {
  margin: 0 0 var(--s-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3) var(--s-5);
  font-size: 0.9rem;
}

.op__facts > div {
  border-top: 1px solid var(--line);
  padding-top: var(--s-2);
}

.op__facts dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.op__facts dd { margin: 0; color: var(--ink); }

.op__licence {
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--porcelain-2);
  padding: var(--s-4);
  font-size: 0.88rem;
}

.op__licence h4 {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--s-2);
}

.op__licence dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px var(--s-3);
}

.op__licence dt { color: var(--muted); font-weight: 700; }
.op__licence dd { margin: 0; }

.op__aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  border-left: 2px solid var(--line);
  padding-left: var(--s-6);
}

.op__score {
  border: 2px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: center;
  background: var(--porcelain);
}

.op__verdict {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.op__offer {
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: var(--s-3);
}

.op__offer strong { display: block; color: var(--navy); }

.op__legal {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 940px) {
  .op { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-5); }
  .op__aside { border-left: 0; border-top: 2px solid var(--line); padding-left: 0; padding-top: var(--s-5); }
}

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

/* ---------- Puntaje en estrellas con medias ---------- */

.stars {
  display: inline-block;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  line-height: 1;
  background-image: linear-gradient(90deg, var(--accent) var(--pct, 100%), rgba(19, 39, 71, 0.2) var(--pct, 100%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stars::before { content: "★★★★★"; }

.score {
  display: block;
  margin-top: var(--s-2);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.score span { font-size: 0.82rem; font-weight: 700; color: var(--muted); }

/* ---------- Duelos cara a cara ---------- */

.duels { display: grid; gap: var(--s-6); }

.duel {
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-1);
  overflow: hidden;
}

.duel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-6);
  background: var(--porcelain-2);
  border-bottom: 2px solid var(--line-strong);
}

.duel__title { margin: 0; font-size: 1.2rem; }

.duel__topic {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.duel__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.duel__side { padding: var(--s-5) var(--s-6); }
.duel__side + .duel__side { border-left: 2px solid var(--line); }

.duel__name {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
}

.duel__name img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  object-fit: contain;
  padding: 2px;
  background: var(--white);
}

.duel__side p { font-size: 0.95rem; margin-bottom: var(--s-3); }
.duel__side p:last-child { margin-bottom: 0; }

.duel__verdict {
  padding: var(--s-4) var(--s-6);
  border-top: 2px solid var(--line);
  background: var(--porcelain);
  font-size: 0.94rem;
}

.duel__verdict strong { color: var(--navy); }

@media (max-width: 780px) {
  .duel__body { grid-template-columns: 1fr; }
  .duel__side + .duel__side { border-left: 0; border-top: 2px solid var(--line); }
  .duel__side, .duel__head, .duel__verdict { padding-inline: var(--s-5); }
}

/* ---------- Tabla comparativa: bordes limpios, cabecera con fondo ---------- */

.tablewrap {
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--white);
  overflow-x: auto;
  box-shadow: var(--sh-1);
}

.tablewrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.ctable {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ctable caption {
  caption-side: top;
  text-align: left;
  padding: var(--s-4) var(--s-5);
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 2px solid var(--line-strong);
}

.ctable th,
.ctable td {
  border: 1px solid var(--line);
  padding: var(--s-3) var(--s-4);
  text-align: left;
  vertical-align: top;
}

.ctable thead th {
  background: var(--porcelain-2);
  color: var(--navy);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ctable tbody th {
  background: var(--white);
  color: var(--navy);
  font-size: 0.95rem;
  white-space: nowrap;
}

.ctable td.is-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.ctable .yes { color: #1c6b41; font-weight: 800; }
.ctable .no { color: var(--accent); font-weight: 800; }

.table-note {
  margin: var(--s-3) 0 0;
  font-size: 0.83rem;
  color: var(--muted);
}

.table-hint {
  display: none;
  margin: 0 0 var(--s-3);
  font-size: 0.83rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .table-hint { display: block; }
}

/* ---------- Bloque "¿Sabías que?" (módulo distintivo) ---------- */

.didyouknow {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  align-items: start;
  border: 2px solid var(--line-strong);
  border-left: 8px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--white);
  padding: var(--s-5) var(--s-6);
  box-shadow: var(--sh-1);
  margin: var(--s-6) 0;
}

.didyouknow__glyph {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.didyouknow h3 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}

.didyouknow p { margin: 0; }

@media (max-width: 560px) {
  .didyouknow { grid-template-columns: 1fr; padding: var(--s-5); }
}

/* ---------- Prosa y figuras ---------- */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose > :first-child { margin-top: 0; }

.figure {
  margin: var(--s-6) 0;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--sh-1);
}

.figure figcaption {
  padding: var(--s-3) var(--s-4);
  border-top: 2px solid var(--line-strong);
  font-size: 0.83rem;
  color: var(--muted);
}

.figure--inline { margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-7);
  align-items: center;
}

.split--reverse .split__media { order: -1; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--s-6); }
  .split--reverse .split__media { order: 0; }
}

.panel {
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--white);
  padding: var(--s-6);
  box-shadow: var(--sh-1);
}

.panel--tint { background: var(--porcelain-2); }
.panel > :last-child { margin-bottom: 0; }

.notice {
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  padding: var(--s-4) var(--s-5);
  font-size: 0.92rem;
  margin: var(--s-5) 0;
}

.notice > :last-child { margin-bottom: 0; }

.disclosure {
  border: 2px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--white);
  padding: var(--s-4) var(--s-5);
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: var(--s-6);
  box-shadow: var(--sh-1);
}

.disclosure > :last-child { margin-bottom: 0; }

.disclosure__label {
  display: inline-block;
  margin-right: var(--s-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Preguntas frecuentes agrupadas ---------- */

.faq { display: grid; gap: var(--s-6); }

.faq__group h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-4);
  border-bottom: 2px solid var(--line);
}

.faq__item { margin-bottom: var(--s-5); }
.faq__item:last-child { margin-bottom: 0; }

.faq__q {
  margin: 0 0 var(--s-2);
  font-size: 1.04rem;
  color: var(--navy);
}

.faq__a { margin: 0; color: var(--ink); max-width: var(--measure); }

.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
}

@media (max-width: 820px) {
  .faq__grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ---------- Recursos oficiales (fichas al final del contenido) ---------- */

.resources { padding: var(--s-8) 0 var(--s-9); }

.resources__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.resource {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--white);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.resource:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

.resource h3 { margin: 0; font-size: 1.05rem; }

.resource p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.resource__link { margin-top: auto; font-size: 0.92rem; word-break: break-word; }

.resource__phone {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

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

/* ---------- Pie: navegación a la izquierda, avisos y recursos a la derecha ---------- */

.site-footer {
  background: var(--navy);
  color: #c3cfe3;
  border-radius: var(--r-band) var(--r-band) 0 0;
  padding: var(--s-8) 0 var(--s-6);
  font-size: 0.92rem;
}

.site-footer a { color: #ffd9d4; }
.site-footer a:hover { color: var(--white); }

.footer__split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: var(--s-7);
}

.footer__rule { background: rgba(255, 255, 255, 0.16); }

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.footer__brand svg { width: 38px; height: 38px; }

.footer__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.footer__domain {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93a5c2;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5) var(--s-6);
}

.footer__label {
  margin: 0 0 var(--s-3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0b6b0;
}

.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin-bottom: var(--s-2); }
.footer__list a { font-weight: 700; }

.footer__notices h2 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0b6b0;
  margin-bottom: var(--s-3);
}

.footer__notices p { margin-bottom: var(--s-3); }
.footer__notices p:last-child { margin-bottom: 0; }

.footer__resources {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  color: #93a5c2;
}

@media (max-width: 900px) {
  .footer__split { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer__rule { display: none; }
}

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

/* ---------- Barra resumen fija (páginas largas) ---------- */

.summarybar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--navy);
  color: var(--white);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-100%);
  transition: transform 0.22s ease;
}

.summarybar.is-visible { transform: translateY(0); }

.summarybar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-3) 0;
}

.summarybar__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summarybar__links {
  display: flex;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}

.summarybar__links a {
  font-size: 0.85rem;
  color: #ffd9d4;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .summarybar__title { display: none; }
  .summarybar__inner { justify-content: flex-start; }
}

/* ---------- Aviso de cookies ---------- */

.cookie {
  position: fixed;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 50;
  max-width: 520px;
  margin-left: auto;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-2);
  padding: var(--s-5);
}

.cookie h2 { font-size: 1rem; margin-bottom: var(--s-2); }
.cookie p { font-size: 0.88rem; margin-bottom: var(--s-4); }

.cookie__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cookie__actions .btn { font-size: 0.88rem; padding: 9px 16px; }

/* ---------- Utilidades ---------- */

.lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.small { font-size: 0.85rem; color: var(--muted); }
.stack-sm > * + * { margin-top: var(--s-3); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

.updated {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.updated::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.breadcrumb {
  margin: var(--s-5) 0 0;
  font-size: 0.83rem;
  color: var(--muted);
}

.breadcrumb a { font-weight: 700; }

.pagehead { padding: var(--s-7) 0 var(--s-6); }
.pagehead h1 { max-width: 34ch; }
.pagehead .lede { margin-bottom: 0; }

.pagehead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-5);
}

.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

@media (max-width: 880px) {
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
}

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