/* ==========================================================================
   Prismiik Games — hoja de estilos única del sitio
   - Sin dependencias, sin @import, sin recursos de terceros.
   - Mobile-first (320px → 1920px). Paleta y tipografía del juego Crystal Pulse.
   - Contraste verificado (AA) y foco visible en todos los controles.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fuentes autoalojadas (Fredoka, licencia OFL — ver assets/fonts/OFL.txt)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens de diseño
   -------------------------------------------------------------------------- */
:root {
  /* Paleta del juego (config.json de Crystal Pulse) */
  --pink: #f2a0bd;
  --blue: #a9c6f2;
  --green: #a8e6c1;
  --yellow: #f6e0a6;
  --red: #e74c3c;          /* solo decoración: 3,8:1 sobre blanco, NO vale para texto */
  --red-ink: #9e2b20;      /* variante oscura para texto (7,4:1 sobre blanco) */

  /* Tinta y superficies */
  --ink: #2c2740;          /* texto principal */
  --ink-soft: #57516e;     /* texto secundario */
  --paper: #ffffff;
  --surface: rgb(255 255 255 / 72%);
  --surface-solid: #fdfbff;
  --line: rgb(44 39 64 / 12%);
  --line-strong: rgb(44 39 64 / 22%);

  /* Degradados pastel (como los fondos del juego) */
  --bg-page: linear-gradient(180deg, #fff7fb 0%, #f4f8ff 38%, #f2fbf6 70%, #fffaf0 100%);
  --bg-pink: linear-gradient(140deg, #ffe6f0, #ffd9e6);
  --bg-blue: linear-gradient(140deg, #e6f0ff, #d8e7ff);
  --bg-green: linear-gradient(140deg, #e4fbee, #d3f6e3);
  --bg-yellow: linear-gradient(140deg, #fff6dd, #ffeecc);

  /* Formas y sombras */
  --r-sm: 0.75rem;
  --r-md: 1.1rem;
  --r-lg: 1.6rem;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgb(44 39 64 / 8%);
  --shadow-md: 0 10px 30px -12px rgb(44 39 64 / 22%);
  --shadow-lg: 0 24px 60px -20px rgb(44 39 64 / 26%);

  /* Medidas */
  --wrap: 68rem;
  --gutter: 1.15rem;
  --header-h: 4rem;

  /* Foco visible (accesibilidad) */
  --focus: #1b1630;
  --focus-ring: 0 0 0 3px #fff, 0 0 0 6px var(--focus);
}

@media (min-width: 40rem) {
  :root { --gutter: 1.75rem; --header-h: 4.5rem; }
}

/* --------------------------------------------------------------------------
   3. Reset mínimo y bases
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100%;
  /* Sin background-attachment: fixed: provoca repintados y tirones en iOS. */
  background: var(--bg-page);
  color: var(--ink);
  font-family: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 48rem) {
  body { font-size: 1.0625rem; }
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p, li, dd, dt, td, th {
  overflow-wrap: break-word;
  hyphens: auto;
}

p { margin: 0 0 1rem; }

a {
  color: #2f4a8f;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: #22376e; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 0.35rem;
}

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

ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }

strong, b { font-weight: 700; }

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

/* --------------------------------------------------------------------------
   4. Utilidades
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 75%);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.section { padding-block: clamp(2.4rem, 6vw, 4.2rem); }
.section--tight { padding-block: clamp(1.6rem, 4vw, 2.6rem); }

.section-head { max-width: 52ch; margin-bottom: 1.6rem; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

.note {
  margin-top: 1.2rem;
  padding: 0.85rem 1.1rem;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgb(169 198 242 / 18%);
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.note--warn {
  border-left-color: var(--red);
  background: rgb(231 76 60 / 10%);
  color: var(--red-ink);
}

/* --------------------------------------------------------------------------
   5. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}
.btn:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); }

.btn--ghost {
  background: rgb(255 255 255 / 85%);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: #fff; }

.btn--pink { background: var(--pink); }
.btn--green { background: var(--green); }

.btn[aria-disabled="true"],
.btn--soon {
  background: rgb(255 255 255 / 70%);
  border-color: var(--line-strong);
  color: var(--ink-soft);
  box-shadow: none;
  cursor: default;
}
.btn--soon:hover { transform: none; box-shadow: none; }

.btn__badge {
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-pill);
  background: rgb(44 39 64 / 10%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* --------------------------------------------------------------------------
   6. Cabecera y navegación
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  /* flex-wrap es la red de seguridad: si algo no cupiera, baja a una segunda línea
     en lugar de provocar scroll horizontal (probado a 320 px). */
  flex-wrap: wrap;
  row-gap: 0.4rem;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  padding: 0.4rem 0.25rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 2.1rem; height: 2.1rem; }
.brand span { display: inline-block; }
.brand__games { color: var(--ink-soft); font-weight: 400; }

/* En pantallas muy estrechas se recorta texto, nunca controles: así a 320 px caben
   marca + selector de idioma + botón de menú sin desbordar. */
@media (max-width: 26.25rem) {
  .lang__summary .lang__name { display: none; }
}
@media (max-width: 23rem) {
  .brand__games { display: none; }
  .nav-toggle { padding-inline: 0.7rem; }
  .brand { font-size: 1rem; }
  .brand img { width: 1.9rem; height: 1.9rem; }
}

@media (max-width: 22rem) {
  .brand { font-size: 0.98rem; }
  .brand img { width: 1.9rem; height: 1.9rem; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle__bars {
  display: block;
  width: 1rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0.5rem 0 0.75rem;
  list-style: none;
}
.site-nav li { margin: 0; }

.site-nav a {
  display: block;
  padding: 0.7rem 0.5rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { background: rgb(169 198 242 / 22%); }
.site-nav a[aria-current="page"] {
  background: rgb(169 198 242 / 32%);
  box-shadow: inset 0 -2px 0 rgb(44 39 64 / 25%);
}

/* Móvil: el menú se despliega bajo la cabecera */
.site-nav {
  display: none;
  flex-basis: 100%;
}
.site-nav.is-open { display: block; }

@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; flex-basis: auto; }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
  }
  .site-nav a { padding: 0.55rem 0.8rem; }
}

/* --------------------------------------------------------------------------
   7. Selector de idioma (funciona sin JavaScript: son enlaces)
   -------------------------------------------------------------------------- */
.lang { position: relative; }

.lang__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.lang__summary::-webkit-details-marker { display: none; }
.lang__summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg) translateY(-1px);
}
.lang[open] .lang__summary::after { transform: rotate(-135deg) translateY(-1px); }
.lang__summary img { width: 1.35rem; height: 0.9rem; border-radius: 2px; }

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 60;
  min-width: 11rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.lang__menu li { margin: 0; }
.lang__menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.lang__menu a:hover { background: rgb(242 160 189 / 20%); }
.lang__menu a[aria-current="true"] {
  background: rgb(168 230 193 / 35%);
}
.lang__menu img { width: 1.35rem; height: 0.9rem; border-radius: 2px; }

/* Script de respaldo del selector de idioma en la raíz */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.lang-grid a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.lang-grid a:hover { background: #fff; transform: translateY(-2px); }
.lang-grid img { width: 1.6rem; height: 1.07rem; border-radius: 3px; }
.lang-grid span { color: var(--ink-soft); font-weight: 400; margin-left: auto; }

/* --------------------------------------------------------------------------
   8. Bloques de contenido
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.2rem, 6vw, 4rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/bg-main.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(255 255 255 / 35%), rgb(255 255 255 / 78%));
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2.5rem; }
}

.hero__art {
  justify-self: center;
  max-width: 15rem;
}
.hero__art--phone { max-width: 17rem; }

.hero__art img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 18px 30px rgb(44 39 64 / 22%));
}

.float {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards > li { margin: 0; }

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.45rem; }
.card p { margin-bottom: 0; color: var(--ink-soft); }
/* Enlaces sueltos dentro de una tarjeta (por ejemplo los correos de soporte): con altura de
   sobra para el dedo, porque no son enlaces dentro de una frase. */
.card a {
  display: inline-block;
  padding-block: 0.5rem;
  font-weight: 700;
}
.card__icon {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.85rem;
  object-fit: contain;
}
.card--pink { background: var(--bg-pink); }
.card--blue { background: var(--bg-blue); }
.card--green { background: var(--bg-green); }
.card--yellow { background: var(--bg-yellow); }

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin-bottom: 0; color: var(--ink-soft); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}
.facts > div {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.facts dt {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.facts dd {
  margin: 0.3rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.facts dd small {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 400;
}

/* Galería de capturas en marcos de móvil */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery > li { margin: 0; }
.gallery figure { margin: 0; }
.gallery img {
  display: block;
  width: 100%;
  border: 5px solid #fff;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.gallery figcaption {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  text-align: center;
}

/* Colección de martillos */
.hammers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hammers > li { margin: 0; }

.hammer {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.9rem 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.hammer img {
  display: block;
  width: 100%;
  max-width: 6.5rem;
  margin: 0 auto 0.5rem;
  aspect-ratio: 1;
  object-fit: contain;
}
.hammer__name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}
.hammer__rarity {
  align-self: center;
  margin-top: 0.45rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgb(44 39 64 / 8%);
}
.hammer[data-rarity="comun"] { background: var(--bg-green); }
.hammer[data-rarity="raro"] { background: var(--bg-blue); }
.hammer[data-rarity="epico"] { background: var(--bg-yellow); }
.hammer[data-rarity="legendario"] { background: var(--bg-pink); }
.hammer[data-rarity="legendario"] .hammer__rarity { background: rgb(231 76 60 / 22%); color: var(--red-ink); }

/* Idiomas disponibles */
.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.lang-list img { width: 1.5rem; height: 1rem; border-radius: 3px; }

/* --------------------------------------------------------------------------
   9. Preguntas frecuentes (sin JavaScript)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 0.7rem; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink-soft);
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { background: rgb(169 198 242 / 18%); }
.faq__body { padding: 0 1.15rem 1.1rem; color: var(--ink-soft); }
.faq__body p:last-child,
.faq__body ul:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   10. Página legal
   -------------------------------------------------------------------------- */
.legal { max-width: 62ch; }
.legal h2 {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { margin-top: 1.6rem; }
.legal ul, .legal ol { padding-left: 1.4rem; }
.legal .clause-todo {
  padding: 0.5rem 0.8rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: rgb(246 224 166 / 30%);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.legal__updated {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgb(168 230 193 / 35%);
  font-size: 0.88rem;
  font-weight: 700;
}
.legal__toc {
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.legal__toc ul { margin: 0; padding-left: 1.2rem; }
.legal__toc li { margin-bottom: 0.2rem; }

/* --------------------------------------------------------------------------
   11. Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 3rem;
  padding-block: 2.5rem 1.5rem;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 62%);
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.footer-grid h2 {
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 0.3rem; }
/* Enlaces del pie con altura suficiente para el dedo (≥ 24 px, objetivo de la WCAG 2.5.8). */
.footer-grid a {
  display: inline-block;
  padding-block: 0.4rem;
  color: var(--ink);
  text-decoration-thickness: 1px;
}
.footer-brand p { color: var(--ink-soft); margin-bottom: 0.6rem; max-width: 32ch; }
.footer-brand img { width: 2.4rem; height: 2.4rem; margin-bottom: 0.5rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   12. Aviso de idioma / 404
   -------------------------------------------------------------------------- */
.redirect-note {
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   13. Animaciones y movimiento reducido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * {
    animation: fade-up 0.6s ease both;
  }
  .hero__text > *:nth-child(2) { animation-delay: 0.06s; }
  .hero__text > *:nth-child(3) { animation-delay: 0.12s; }
  .hero__text > *:nth-child(4) { animation-delay: 0.18s; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* --------------------------------------------------------------------------
   14. Impresión
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .btn-row, .lang { display: none !important; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
