/* ==========================================================================
   Amalur Fest 2026 · Landing
   Hoja de estilos única. Orden:
   1. Tokens (custom properties de Figma)
   2. Fuentes
   3. Base
   4. Componentes (contenedor, botones, títulos, separadores, TODO)
   5. Secciones (header, hero, collage, programa, reservas, sorpresas,
      experiencia, faq, footer)
   6. Utilidades
   Mobile first: los estilos base son para móvil (<768 px); los bloques
   @media (min-width: 768px) y (min-width: 1200px) añaden tablet y escritorio.
   Los valores de escritorio salen del frame "Home_v1" (1512 px) de Figma.
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Colores · variables de Figma (mismos nombres) */
  --beltza: #262626;
  --crema: #D8D0BE;
  --urrea: #CD9F35;
  --berde-iluna: #173D32;
  --lima: #D0D85E;

  /* Tipografías */
  --fuente-display: "RG Gaueko", "Georgia", serif;
  --fuente-texto: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaciado y radios (base 8 / 16 de Figma) */
  --espacio-1: 8px;
  --espacio-2: 16px;
  --radio: 8px;
  --radio-foto: 12px;
  --radio-tarjeta: 9.572px;
  --radio-boton: 42px;

  /* Layout */
  --ancho-contenido: 1372px;
  --margen: clamp(20px, 4.63vw, 70px);       /* 70 px a 1512 px */
  --alto-header: 64px;

  /* Tipografía fluida: el valor máximo es el de Figma a 1512 px */
  --fs-collage: clamp(52px, 7.94vw, 120px);   /* Txakolina eta mitologia */
  --fs-artista: clamp(46px, 5.16vw, 78px);    /* NØT, KORRONTZI… */
  --fs-h2: clamp(40px, 4.76vw, 72px);         /* títulos de sección */
  --fs-fecha-hero: clamp(32px, 3.34vw, 50.512px);
  --fs-dia: clamp(32px, 3.17vw, 48px);
  --fs-municipio: clamp(28px, 2.78vw, 42px);
  --fs-rasca: clamp(28px, 2.65vw, 40px);
  --fs-semana: clamp(24px, 2.38vw, 36px);
  --fs-h3: clamp(28px, 2.38vw, 36px);
  --fs-pueblos-hero: clamp(20px, 2.23vw, 33.674px);
  --fs-actividad: clamp(22px, 2.12vw, 32px);
  --fs-grande: clamp(18px, 1.59vw, 24px);
  --fs-medio: clamp(17px, 1.33vw, 20px);
  --fs-base: 16px;
}

@media (min-width: 1200px) {
  :root { --alto-header: 108px; }
}


/* ==========================================================================
   2. FUENTES
   DM Sans (OFL, autoalojada) y RG Gaueko (licencia comercial de Hortelanos).
   ========================================================================== */
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-opsz-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/dm-sans-opsz-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-opsz-italic.woff2") format("woff2-variations"),
       url("../assets/fonts/dm-sans-opsz-italic.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "RG Gaueko";
  src: url("../assets/fonts/Gaueko-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   3. BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-header) + 16px);
}

body {
  margin: 0;
  background: var(--beltza);
  color: var(--crema);
  font-family: var(--fuente-texto);
  font-size: var(--fs-base);
  font-optical-sizing: auto;
  line-height: normal;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, p, ul, figure { margin: 0; }
ul { padding: 0; }

a { color: inherit; }

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

/* Bloquea el scroll cuando el menú móvil está abierto */
body.menu-abierto { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   4. COMPONENTES
   ========================================================================== */

/* --- Saltar al contenido ------------------------------------------------- */
.saltar {
  position: absolute;
  left: var(--espacio-2);
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--lima);
  color: var(--berde-iluna);
  font-weight: 700;
  border-radius: var(--radio);
  text-decoration: none;
}
.saltar:focus { top: var(--espacio-2); }

/* --- Contenedor ---------------------------------------------------------- */
.contenedor {
  width: 100%;
  max-width: calc(var(--ancho-contenido) + 2 * var(--margen));
  margin-inline: auto;
  padding-inline: var(--margen);
}

/* --- Botones (componente "Button_a" de Figma) ---------------------------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;                 /* táctil; en Figma miden 35 px */
  padding: 8px 24px;
  border: 0;
  border-radius: var(--radio-boton);
  font-family: var(--fuente-texto);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.161;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.boton:hover { filter: brightness(1.08); }
.boton:active { transform: translateY(1px); }

.boton--urrea { background: var(--urrea); color: var(--beltza); }
.boton--lima  { background: var(--lima);  color: var(--berde-iluna); }
.boton--grande {
  min-height: 54px;
  padding: 13px 31px;
  font-size: var(--fs-grande);
}

@media (min-width: 1200px) {
  /* En escritorio se respeta la altura de Figma (35 px) pero el área
     pulsable sigue siendo de 44 px gracias al pseudo-elemento. */
  .boton:not(.boton--grande) { min-height: 35px; position: relative; }
  .boton:not(.boton--grande)::after {
    content: "";
    position: absolute;
    inset: -5px 0;
  }
}

/* --- Títulos de sección -------------------------------------------------- */
.titulo-seccion {
  font-family: var(--fuente-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--urrea);
  overflow-wrap: anywhere;
}
.antetitulo {
  font-size: var(--fs-grande);
  font-weight: 400;
  text-transform: uppercase;
}

/* --- Separadores --------------------------------------------------------- */
.separador { display: block; width: 100%; height: auto; }
.separador--rombos { max-width: 1374px; }

/* --- Marcador TODO (contenido pendiente; borrar antes de publicar) ------- */
.todo {
  display: inline-block;
  margin-block: 4px;
  padding: 2px 8px;
  border: 1px dashed var(--lima);
  border-radius: 4px;
  background: rgba(208, 216, 94, .12);
  color: var(--lima);
  font: 700 12px/1.4 var(--fuente-texto);
  letter-spacing: .02em;
  text-transform: none;
}
.fondo-claro .todo { border-color: var(--berde-iluna); color: var(--berde-iluna); background: rgba(23, 61, 50, .08); }


/* ==========================================================================
   5. SECCIONES
   ========================================================================== */

/* --- 5.1 Header ---------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--beltza);
  border-bottom: 1px solid var(--crema);
}
.header__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(var(--alto-header) - 1px);
}
.header__logo { flex: none; display: block; }
.header__logo img { width: 72px; height: auto; }

.nav { display: none; }
.nav__lista { display: flex; gap: 30px; list-style: none; }
.nav__lista a {
  font-size: var(--fs-grande);
  font-weight: 500;
  text-decoration: none;
}
.nav__lista a:hover { color: var(--urrea); }

.header__acciones { display: flex; align-items: center; gap: 12px; }
.header__acciones .boton { padding-inline: 18px; }

.idioma {
  display: none;
  font-size: var(--fs-grande);
  white-space: nowrap;
}
.idioma a { text-decoration: none; font-weight: 400; }
.idioma a:hover { color: var(--urrea); }
.idioma-current-page { font-weight: 700; }

.menu-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--crema);
  cursor: pointer;
}
.menu-boton svg { width: 28px; height: 28px; }
.menu-boton .icono-cerrar { display: none; }
.menu-boton[aria-expanded="true"] .icono-abrir { display: none; }
.menu-boton[aria-expanded="true"] .icono-cerrar { display: block; }

/* Panel del menú móvil (pantalla completa bajo el header) */
.menu-movil {
  position: fixed;
  inset: var(--alto-header) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 40px var(--margen) 48px;
  background: var(--beltza);
  overflow-y: auto;
}
.menu-movil[hidden] { display: none; }
.menu-movil__lista { list-style: none; display: grid; gap: 8px; }
.menu-movil__lista a {
  display: block;
  padding-block: 8px;
  font-family: var(--fuente-display);
  font-size: 44px;
  line-height: 1.1;
  color: var(--urrea);
  text-decoration: none;
}
.menu-movil .idioma { display: block; font-size: 24px; }

@media (min-width: 1200px) {
  .header__logo img { width: 116px; }
  .nav { display: block; flex: 1; }
  .nav__lista { justify-content: center; }
  .idioma { display: block; }
  .header__acciones { gap: 23px; }
  .header__acciones .boton { padding-inline: 24px; }
  .menu-boton, .menu-movil { display: none !important; }
  /* En Figma el menú está centrado algo a la izquierda (x 511) */
  .nav { padding-left: clamp(0px, 13vw, 200px); }
}


/* --- 5.2 Hero ------------------------------------------------------------ */
.hero { padding-top: 32px; }
.hero__rejilla {
  display: grid;
  gap: 24px;
}
.hero__logo { width: 100%; max-width: 676px; height: auto; }
.hero__h1 { margin: 0; }
.hero__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero__fecha {
  font-size: var(--fs-fecha-hero);
  font-weight: 700;
  line-height: 1.1;
}
.hero__pueblos {
  font-size: var(--fs-pueblos-hero);
  line-height: 1.1;
  text-transform: uppercase;
}
.hero__texto { font-size: var(--fs-medio); max-width: 524px; }
.hero__texto strong { font-weight: 700; }

@media (min-width: 768px) {
  .hero { padding-top: 64px; }
  .hero__rejilla {
    grid-template-columns: minmax(0, 676fr) minmax(0, 696fr);
    align-items: start;
    gap: 0;
  }
  .hero__info { align-items: flex-end; text-align: right; gap: 0; }
  .hero__fecha { margin-bottom: 15px; }
  .hero__pueblos { margin-bottom: 29px; }
  .hero__texto { margin-bottom: 35px; }
}
@media (min-width: 1200px) {
  .hero { padding-top: 125px; }
}


/* --- 5.3 Collage --------------------------------------------------------- */
/* Escritorio/tablet: las fotos y el titular se colocan en una sola celda de
   rejilla con márgenes en %, proporcionales a la composición de Figma
   (1372 × 1226). Las ilustraciones son decorativas y van en absoluto (%). */
.collage {
  padding-top: 64px;
  padding-bottom: 48px;
}
.collage__lienzo {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.collage__titulo {
  grid-column: 1 / -1;
  order: -1;
  margin-bottom: 8px;
  font-family: var(--fuente-display);
  font-weight: 400;
  font-size: var(--fs-collage);
  line-height: 1;
  color: var(--urrea);
  text-align: center;
}
.collage__foto { margin: 0; }
.collage__foto img {
  width: 100%;
  height: auto;
  aspect-ratio: 329 / 320;
  object-fit: cover;
  border-radius: var(--radio-foto);
}
.collage__deco {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 12px;
  padding-top: 16px;
}
.collage__ilus { width: calc(25% - 9px); max-width: 96px; height: auto; }
.collage__ilus--extra { display: none; }

@media (min-width: 768px) {
  .collage { padding-top: clamp(80px, 11.24vw, 170px); padding-bottom: clamp(56px, 8.73vw, 132px); }
  .collage__lienzo {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    aspect-ratio: 1372 / 1226;
  }
  .collage__lienzo > .collage__titulo,
  .collage__lienzo > .collage__foto {
    grid-area: 1 / 1;
    align-self: start;
    justify-self: start;
    order: 0;
  }
  .collage__titulo { width: 49.78%; margin: 31.41% 0 0 28.21%; }
  .collage__foto--korrontzi { width: 23.98%; margin: 11.52% 0 0 0; }
  .collage__foto--neomak    { width: 23.91%; margin: 0.58% 0 0 67.64%; }
  .collage__foto--not       { width: 19.53%; margin: 51.68% 0 0 14.14%; }
  .collage__foto--node      { width: 19.53%; margin: 61.81% 0 0 61.81%; }
  .collage__foto--not img,
  .collage__foto--node img { aspect-ratio: 268 / 262; }

  .collage__deco {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    pointer-events: none;
  }
  .collage__ilus, .collage__ilus--extra {
    display: block;
    position: absolute;
    height: auto;
  }
  /* Posiciones (x, y, ancho) en % del lienzo de 1372 px */
  .ilus--pajaro      { left: 0.44%;  top: 3.47%;  width: 13.78%; }
  .ilus--luna        { left: 29.08%; top: 4.07%;  width: 7.18%; }
  .ilus--vaca        { left: 48.03%; top: 9.80%;  width: 14.34%; }
  .ilus--sol         { left: 89.21%; top: 0.07%;  width: 10.79%; }
  .ilus--lamia       { left: 0.29%;  top: 36.94%; width: 13.42%; }
  .ilus--ave         { left: 89.21%; top: 36.94%; width: 7.73%; }
  .ilus--buho        { left: 78.43%; top: 51.63%; width: 6.34%; }
  .ilus--sacacorchos { left: 2.70%;  top: 65.14%; width: 6.92%; }
  .ilus--arbol       { left: 18.29%; top: 72.47%; width: 9.81%; }
  .ilus--jarra       { left: 46.79%; top: 67.37%; width: 9.09%; }
  .ilus--uvas        { left: 34.48%; top: 88.50%; width: 9.51%; }
  .ilus--zorro       { left: 78.64%; top: 87.68%; width: 13.19%; }
}

.rombos { display: flex; justify-content: center; }


/* --- 5.4 Programa -------------------------------------------------------- */
.programa { padding-top: 56px; padding-bottom: 48px; }
.programa .titulo-seccion { text-align: center; margin-bottom: 40px; }

.dia + .dia { margin-top: 56px; }

.dia__cabecera {
  position: sticky;
  top: calc(var(--alto-header) - 1px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-inline: calc(-1 * var(--margen));
  padding: 12px var(--margen) 14px;
  background: var(--beltza);
  border-bottom: 1px solid rgba(205, 159, 53, .5);
  font-weight: 400;
}
.dia__fecha {
  font-family: var(--fuente-display);
  font-size: var(--fs-dia);
  line-height: 1;
  color: var(--urrea);
}
.dia__semana {
  font-family: var(--fuente-texto);
  font-size: var(--fs-semana);
  font-weight: 600;
  line-height: 1.1;
  color: var(--crema);
}

.municipio { margin-top: 28px; }
.municipio__nombre {
  margin-bottom: 12px;
  font-family: var(--fuente-display);
  font-size: var(--fs-municipio);
  font-weight: 400;
  line-height: 1;
  color: var(--urrea);
  text-transform: uppercase;
}
.municipio__actividades { display: grid; gap: 12px; }

/* Móvil: cada actividad es una tarjeta */
.actividad {
  display: grid;
  gap: 12px;
  padding: var(--espacio-2);
  border: 1px solid var(--urrea);
  border-radius: var(--radio);
}
.actividad__hora {
  font-size: var(--fs-actividad);
  font-weight: 700;
  line-height: 1.1;
}
.actividad__lugar {
  margin-top: 6px;
  font-size: var(--fs-medio);
  font-style: italic;
  line-height: 1.1;
}
.actividad__titulo {
  font-size: var(--fs-actividad);
  font-weight: 400;
  line-height: 1.1;
}
.actividad__titulo strong { display: block; font-weight: 700; }
.actividad__titulo--artista {
  font-family: var(--fuente-display);
  font-size: var(--fs-artista);
  line-height: 1.1;
}
.actividad__titulo--artista small {
  display: block;
  font-size: var(--fs-actividad);
  line-height: 1.1;
}
.actividad__que .boton { margin-top: 12px; }

.programa__descarga { display: flex; justify-content: center; margin-top: 56px; }

.astros {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
}
.astros img { height: auto; flex: none; }
.astros .astro--sol  { width: 10.05%; }
.astros .astro--luna { width: 6.63%; }

@media (min-width: 768px) {
  .programa { padding-top: 72px; padding-bottom: 96px; }
  .programa .titulo-seccion { margin-bottom: 69px; }
  .dia + .dia { margin-top: 93px; }
  .dia__cabecera {
    position: static;
    gap: 11px;
    margin: 0 0 42px;
    padding: 0;
    border: 0;
    background: none;
  }
  .municipio {
    display: grid;
    grid-template-columns: minmax(0, 328fr) minmax(0, 1024fr);
    column-gap: 20px;
    margin-top: 73px;
  }
  .dia__cabecera + .municipio { margin-top: 0; }
  .municipio__nombre { margin: 0; }
  .municipio__actividades { gap: 0; }
  .actividad {
    grid-template-columns: minmax(0, 428fr) minmax(0, 560fr);
    column-gap: 36px;
    padding: 30px 0 29px;
    border: 0;
    border-bottom: 1px solid var(--urrea);
    border-radius: 0;
  }
  .actividad:first-child { padding-top: 0; }
  .actividad__lugar { margin-top: 10px; }
  .actividad__titulo--artista { margin-top: -9px; }
  .actividad__que .boton { margin-top: 13px; }
  .programa__descarga { margin-top: 92px; }
  .astros { margin-top: 126px; }
}
@media (min-width: 1200px) {
  .programa { padding-top: 132px; padding-bottom: 124px; }
}


/* --- 5.5 Reservas -------------------------------------------------------- */
.reservas {
  padding-block: 56px 64px;
  background: var(--crema);
  color: var(--berde-iluna);
  text-align: center;
}
.reservas .antetitulo { margin-bottom: 17px; }
.reservas .titulo-seccion { color: var(--berde-iluna); margin-bottom: 17px; }
.reservas__intro { font-size: var(--fs-grande); max-width: 908px; margin-inline: auto; }
.reservas__intro strong { font-weight: 700; }

/* Móvil: carrusel horizontal con scroll-snap */
.reservas__lista {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 16px;
  margin: 40px calc(-1 * var(--margen)) 0;
  padding: 0 var(--margen) 16px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--margen);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--berde-iluna) transparent;
}
.reservas__lista > li { scroll-snap-align: start; display: flex; }
.reservas__pista {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

.reserva {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 287px;
  padding: 29px 24px 37px;
  border-radius: var(--radio-tarjeta);
  background: var(--berde-iluna);
  color: var(--lima);
  text-align: left;
}
.reserva__fecha { font-size: 16px; text-transform: uppercase; }
.reserva__titulo {
  margin-top: 16px;
  font-size: var(--fs-grande);      /* 24 px en escritorio */
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}
.reserva__datos { margin-top: 8px; font-size: 16px; line-height: 1.1; }
.reserva__datos b { display: block; font-weight: 700; }
.reserva .boton {
  align-self: flex-start;
  margin-left: 3.5px;
  width: 100%;
  max-width: 208px;
  margin-top: auto;
  padding: 6.38px 19.14px;
  border-radius: 33.5px;
}
.reserva__datos + .boton { margin-top: 27px; }

@media (min-width: 768px) {
  .reservas { padding-block: 101px 140px; }
  .reservas__lista {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    margin: 70px 0 0;
    padding: 0;
    overflow: visible;
  }
  .reservas__pista { display: none; }
}
@media (min-width: 1200px) {
  /* 6 tarjetas en 2 filas de 3, bloque de 1024 px centrado */
  .reservas__lista {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 27px 20px;
    max-width: 1024px;
    margin-inline: auto;
  }
}


/* --- 5.6 Sorpresas (foodtruck) ------------------------------------------ */
.sorpresas { padding-block: 56px 64px; overflow-x: clip; }
.sorpresas .antetitulo { margin-bottom: 17px; }
.sorpresas .titulo-seccion { margin-bottom: 24px; }
.sorpresas__texto { font-size: var(--fs-grande); max-width: 908px; }

.sorpresas__rejilla { display: grid; gap: 40px; margin-top: 40px; }

.rasca {
  padding: 32px 24px;
  border-radius: var(--radio-foto);
  background: var(--urrea);
  color: var(--berde-iluna);
}
.rasca__titulo {
  font-family: var(--fuente-display);
  font-size: var(--fs-rasca);
  font-weight: 400;
  line-height: normal;
}
.rasca__texto { margin-top: 6px; font-size: var(--fs-grande); }
.rasca__zona {
  position: relative;
  height: 67px;
  margin-top: 23px;
  border-radius: var(--radio-foto);
  background: var(--crema);
}
.rasca__trazo {
  position: absolute;
  top: -8px;
  right: 8.2%;
  width: 34.9%;
  max-width: 212px;
  height: auto;
}
.rasca__legal { margin-top: 24px; font-size: 16px; }

.foodtruck { display: flex; flex-direction: column; gap: 24px; }
.foodtruck__ilus {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.foodtruck__ilus img { height: 96px; width: auto; }
.foodtruck__dias-titulo { font-size: 16px; font-weight: 700; }
.foodtruck__dias { margin-top: 16px; list-style: none; font-size: 16px; line-height: normal; }

@media (min-width: 768px) {
  .sorpresas { padding-block: 124px 124px; }
  .sorpresas .titulo-seccion { margin-bottom: 41px; }
  .sorpresas__rejilla {
    grid-template-columns: minmax(0, 676fr) minmax(0, 555fr);
    column-gap: clamp(32px, 9.33vw, 141px);
    margin-top: 73px;
    align-items: stretch;
  }
  .rasca { padding: 39px 34px; }
  .rasca__legal { margin-top: 24px; }
  .foodtruck { justify-content: space-between; gap: 0; }
  .foodtruck__ilus {
    position: relative;
    display: block;
    height: auto;
    aspect-ratio: 555 / 328;
    margin-top: -15.3%;   /* las ilustraciones suben 85 px sobre la tarjeta */
  }
  .foodtruck__ilus img { position: absolute; height: auto; }
  .ilus-ft--sacacorchos { left: 0;      top: 43.6%; width: 25.05%; }
  .ilus-ft--jarra       { left: 34.95%; top: 0;     width: 27.57%; }
  .ilus-ft--uvas        { left: 62.52%; top: 32.3%; width: 39.46%; }
}


/* --- 5.7 Experiencia ----------------------------------------------------- */
.experiencia__bloque { display: grid; }
.experiencia__media { margin: 0; }
.experiencia__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 757 / 645;
  object-fit: cover;
}
.experiencia__media--mapa {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--crema);
}
.experiencia__media--mapa img {
  width: 74%;
  height: auto;
  aspect-ratio: 560 / 544;
  object-fit: contain;
}
.experiencia__texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px var(--margen) 48px;
}
.experiencia__texto > * { max-width: 560px; }
.experiencia__titulo {
  font-family: var(--fuente-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1;
  color: var(--urrea);
}
.experiencia__texto p { margin-top: 24px; font-size: 16px; }
.experiencia__texto .boton { align-self: flex-start; margin-top: 22px; }
.experiencia__texto ul { margin-top: 0; padding-left: 24px; }
.experiencia__subtitulo { font-weight: 700; }

.fondo-claro { background: var(--crema); color: var(--beltza); }
.fondo-claro .experiencia__titulo { color: var(--berde-iluna); }

@media (min-width: 768px) {
  .experiencia__bloque { grid-template-columns: minmax(0, 757fr) minmax(0, 755fr); }
  /* El HTML pone siempre la imagen primero; en las filas 1 y 3 se lleva a la derecha */
  .experiencia__bloque--texto-izq .experiencia__media { order: 2; }
  .experiencia__texto { padding: 48px clamp(24px, 4vw, 64px) 48px clamp(24px, 8.4vw, 127px); }
  .experiencia__bloque--texto-izq .experiencia__texto {
    padding-left: max(var(--margen), calc((100vw - var(--ancho-contenido)) / 2));
    padding-right: clamp(24px, 4vw, 64px);
  }
  .experiencia__media { aspect-ratio: 757 / 645; }
  .experiencia__media--mapa { padding: 0; }
}


/* --- 5.8 FAQ · Información práctica ------------------------------------- */
.faq { padding-block: 56px 64px; }
.faq .titulo-seccion { margin-bottom: 32px; }
.faq__rejilla { display: grid; gap: 40px; }

.acordeon { display: grid; gap: var(--espacio-2); }
.acordeon__item {
  border: 1px solid var(--urrea);
  border-radius: var(--radio);
  background: var(--beltza);
}
.acordeon__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--espacio-1);
  min-height: 44px;
  padding: var(--espacio-2);
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  list-style: none;
}
.acordeon__item summary::-webkit-details-marker { display: none; }
.acordeon__item summary svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--urrea);
  transition: transform .2s ease;
}
.acordeon__item[open] summary { padding-bottom: var(--espacio-1); }
.acordeon__item[open] summary svg { transform: rotate(180deg); }
.acordeon__respuesta { padding: 0 var(--espacio-2) var(--espacio-2); line-height: 1.1; }

.info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.info__tarjeta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 212 / 213;
  overflow: hidden;
  border-radius: var(--radio-foto);
  text-decoration: none;
}
.info__tarjeta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;              /* como en Figma: ver nota en la entrega */
  opacity: .72;
}
.info__tarjeta:hover { opacity: 0.35; }
.info__nombre {
  position: relative;
  padding: 8px;
  font-size: var(--fs-grande);
  font-weight: 700;
  line-height: normal;
  color: var(--urrea);
  text-align: center;
  text-transform: uppercase;
}
.info__nombre .todo { display: block; margin: 6px auto 0; width: max-content; }
.info__ilus { display: none; }

@media (min-width: 768px) {
  .faq { padding-block: 124px 110px; }
  .faq .titulo-seccion { margin-bottom: 59px; }
  .info { gap: 20px; }
}
@media (min-width: 1200px) {
  .faq__rejilla { grid-template-columns: minmax(0, 676fr) minmax(0, 676fr); column-gap: 20px; }
  .info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 32px;
    align-content: start;
    margin-top: 18px;
  }
  .info__ilus { display: flex; align-items: center; justify-content: center; }
  .info__ilus img { width: 66%; height: auto; }
  .info__ilus--lamia img { width: 62%; }
}


/* --- 5.9 Footer ---------------------------------------------------------- */
/* Escritorio: logo de Amalur a la izquierda, logos institucionales centrados
   en la página e Instagram + aviso legal a la derecha (Figma, Home_v1). */
.footer { border-top: 1px solid var(--crema); padding-block: 40px 48px; }
.footer__fila {
  display: grid;
  justify-items: center;
  gap: 32px;
  text-align: center;
}
.footer__marca { display: block; }
.footer__marca img { width: 116px; height: auto; }
.footer__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 50px;
  list-style: none;
}
.footer__logos img { height: auto; }
.logo--gv      { width: 108px; }
.logo--euskadi { width: 117px; }
.logo--ruta    { width: 117px; }
.footer__enlaces {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer__instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: transform .15s ease;
}
.footer__instagram img { width: 35px; height: 35px; }
.footer__instagram:hover { transform: scale(1.06); }
.footer__legal {
  font-size: 16px;
  line-height: normal;
  text-decoration: none;
}
.footer__legal:hover,
.footer__legal[aria-current="page"] { color: var(--urrea); text-decoration: underline; }

@media (min-width: 768px) {
  .footer { padding-block: 56px; }
  .footer__fila {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 24px;
    text-align: left;
  }
  .footer__marca { justify-self: start; }
  .footer__entidades { justify-self: center; }
  .footer__enlaces {
    justify-self: end;
    align-self: stretch;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    text-align: right;
  }
  .footer__instagram { min-width: 35px; min-height: 35px; position: relative; }
  .footer__instagram::after { content: ""; position: absolute; inset: -5px; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  /* En tablet los logos institucionales se reducen para que quepa la fila */
  .footer__logos { gap: 16px 28px; }
  .logo--gv      { width: 86px; }
  .logo--euskadi { width: 94px; }
  .logo--ruta    { width: 94px; }
}


/* --- 5.11 Página de aviso legal ----------------------------------------- */
.legal { padding-block: 64px 96px; }
.legal__volver {
  display: inline-block;
  margin-bottom: 32px;
  font-weight: 700;
  text-decoration: none;
}
.legal__volver:hover { color: var(--urrea); }
.legal__cuerpo { max-width: 820px; }
.legal__cuerpo .titulo-seccion { margin-bottom: 16px; }
.legal__fecha { margin-bottom: 48px; font-size: 14px; opacity: .8; }
.legal__cuerpo h2 {
  margin: 48px 0 16px;
  font-family: var(--fuente-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1;
  color: var(--urrea);
}
.legal__cuerpo h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 700; color: var(--crema); }
.legal__cuerpo p,
.legal__cuerpo li { font-size: 16px; line-height: 1.55; }
.legal__cuerpo p + p { margin-top: 12px; }
.legal__cuerpo ul { margin: 12px 0 0; padding-left: 22px; }
.legal__cuerpo li + li { margin-top: 6px; }
.legal__cuerpo a { color: var(--urrea); }
.legal__datos {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 24px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--urrea);
  border-radius: var(--radio);
}
.legal__datos dt { font-weight: 700; }
.legal__datos dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .legal__datos { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal__datos dd + dt { margin-top: 10px; }
}
@media (min-width: 768px) { .legal { padding-block: 96px 124px; } }


/* --- 5.10 Parallax del collage ----------------------------------------
   main.js escribe --py en cada pieza con data-parallax (4 fotos y 12
   ilustraciones, cada una a su velocidad). Se usa la propiedad "translate"
   para no pisar ningún transform. Solo desde 768 px y sin reduced-motion. */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  [data-parallax] {
    translate: 0 var(--py, 0px);
    will-change: translate;
  }
}


/* --- 5.12 Página de bases del Rasca y Gana ------------------------------ */
/* Página /cas/bases-rasca-y-gana.html (Figma: "Bases Rasca y Gana", 1512 px).
   Reutiliza .contenedor, .astros y .boton. Mobile first como el resto. */
.bases-pagina {
  --bases-linea: #4A4842;
  --bases-radio: 16px;
}

/* Hero */
.bases-hero { padding-top: 48px; }
.bases-hero__rejilla { display: grid; gap: 32px; }
.bases-hero__texto { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.bases-hero__antetitulo {
  color: var(--urrea);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}
.bases-hero__titulo {
  font-family: var(--fuente-display);
  font-size: clamp(44px, 6.35vw, 96px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.bases-hero__entradilla { font-size: clamp(17px, 1.26vw, 19px); line-height: 1.6; max-width: 792px; }
.bases-hero__datos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 561px;
  padding-top: 8px;
  list-style: none;
}
.bases-hero__datos li {
  padding: 8px 18px;
  border: 1.5px solid var(--urrea);
  border-radius: 999px;
  color: var(--urrea);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* Ilustraciones: mismas piezas y proporciones que en la foodtruck de la home */
.bases-hero__ilus {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  aspect-ratio: 555 / 328;
}
.bases-hero__ilus img { position: absolute; height: auto; }
.bases-ilus--sacacorchos { left: 0;      top: 43.6%; width: 25.05%; }
.bases-ilus--jarra       { left: 34.95%; top: 0;     width: 27.57%; }
.bases-ilus--uvas        { left: 62.52%; top: 32.3%; width: 39.46%; }

.bases-astros { padding-block: 48px; }
.bases-astros .astros { max-width: 1136px; margin: 0 auto; }

@media (min-width: 768px) {
  .bases-hero { padding-top: 80px; }
  .bases-hero__rejilla {
    grid-template-columns: minmax(0, 792fr) minmax(0, 566fr);
    column-gap: 14px;
    align-items: start;
  }
  .bases-hero__ilus { max-width: 566px; margin: 15px 0 0 auto; }
  .bases-astros { padding-block: 72px; }
}
@media (min-width: 1200px) {
  .bases-hero { padding-top: 110px; }
  .bases-astros { padding-block: 108px 72px; }
}

/* Índice + apartados */
.bases-cuerpo { padding-bottom: 72px; }
.bases-cuerpo__rejilla { display: grid; gap: 48px; align-items: start; }

.bases-indice { display: flex; flex-direction: column; gap: 16px; }
.bases-indice__titulo {
  color: var(--urrea);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.bases-indice ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--bases-linea); }
.bases-indice li { border-bottom: 1px solid var(--bases-linea); }
.bases-indice a {
  display: flex;
  gap: 14px;
  padding-block: 12px;
  font-size: 16px;
  text-decoration: none;
}
.bases-indice a:hover { color: var(--urrea); }
.bases-indice__num { flex: none; width: 22px; color: var(--urrea); font-weight: 700; }
.bases-indice__espiral { display: none; width: 96px; height: auto; }

.bases-apartados { display: flex; flex-direction: column; gap: 56px; }
.bases-apartado { display: flex; flex-direction: column; gap: 16px; }
.bases-apartado p,
.bases-apartado li,
.bases-apartado dd,
.bases-apartado dt { font-size: clamp(16px, 1.12vw, 17px); line-height: 1.6; }
.bases-apartado strong { color: var(--urrea); font-weight: 700; }
.bases-apartado__cabecera {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--urrea);
}
.bases-apartado__num {
  flex: none;
  font-family: var(--fuente-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--urrea);
}
.bases-apartado__titulo {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.bases-lista { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.bases-lista li { display: flex; gap: 14px; }
.bases-lista li::before { content: "✦"; flex: none; color: var(--urrea); font-weight: 800; }

.bases-pasos { display: grid; gap: 16px; margin: 4px 0 0; padding: 0; list-style: none; }
.bases-pasos li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1.5px solid var(--urrea);
  border-radius: var(--bases-radio);
}
.bases-pasos__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--urrea);
  color: var(--beltza);
  font-weight: 800;
}

.bases-total {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 24px;
  border-radius: var(--bases-radio);
  background: var(--urrea);
  color: var(--beltza);
}
.bases-total__cifra {
  font-family: var(--fuente-display);
  font-size: 56px;
  font-weight: 400;
  line-height: .9;
}
.bases-apartado .bases-total__texto { font-size: 20px; font-weight: 700; line-height: 1.3; max-width: 420px; }

.bases-categorias { display: grid; gap: 16px; margin-top: 8px; align-items: start; }
.bases-categoria {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--urrea);
  border-radius: var(--bases-radio);
}
.bases-categoria__cabecera { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bases-categoria__titulo {
  color: var(--urrea);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}
.bases-categoria__total { font-size: 14px; }
.bases-apartado .bases-categoria__nota { font-size: 14px; line-height: 1.4; }
.bases-categoria ul { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.bases-apartado .bases-categoria li { display: flex; gap: 12px; font-size: 16px; line-height: 1.4; }
.bases-categoria__cantidad { flex: none; width: 28px; color: var(--urrea); font-weight: 700; text-align: right; }

.bases-condiciones { margin: 0; }
.bases-condiciones div { padding-block: 18px; border-bottom: 1px solid var(--bases-linea); }
.bases-condiciones dt { color: var(--urrea); font-weight: 700; }
.bases-condiciones dd { margin: 4px 0 0; }

.bases-aviso {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border: 1.5px solid var(--crema);
  border-radius: var(--bases-radio);
}
.bases-aviso__mensaje { display: flex; align-items: center; gap: 18px; }
.bases-aviso__mensaje img { flex: none; width: 56px; height: auto; }
.bases-aviso__texto { font-size: 18px; font-weight: 700; line-height: 1.4; max-width: 400px; }
.bases-aviso .boton {
  min-height: 52px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Ilustraciones sobre el footer */
.bases-ilustraciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 24px 28px;
  max-width: 1136px;
  margin: 0 auto;
  padding-bottom: 48px;
  list-style: none;
}
.bases-ilustraciones img { width: auto; height: 56px; }
.bases-ilustraciones .bases-ilustraciones__bajo { height: 44px; }

@media (min-width: 768px) {
  .bases-cuerpo { padding-bottom: 96px; }
  .bases-cuerpo__rejilla { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 48px; }
  .bases-indice__espiral { display: block; }
  /* Índice fijo bajo el header mientras se leen las bases */
  .bases-indice {
    position: sticky;
    top: calc(var(--alto-header) + 32px);
    max-height: calc(100vh - var(--alto-header) - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .bases-apartados { gap: 64px; padding-top: 13px; }
  .bases-apartado__cabecera { gap: 18px; }
  .bases-apartado__num { font-size: 40px; }
  .bases-apartado__titulo { font-size: 24px; }
  .bases-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bases-total { flex-direction: row; align-items: center; gap: 28px; padding: 24px 28px; }
  .bases-total__cifra { font-size: 72px; }
  .bases-categorias { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bases-condiciones div { display: flex; gap: 32px; }
  .bases-condiciones dt { flex: none; width: 200px; }
  .bases-condiciones dd { flex: 1; min-width: 0; margin: 0; }
  .bases-aviso { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px; }
  .bases-ilustraciones { flex-wrap: nowrap; justify-content: space-between; gap: 16px; }
  .bases-ilustraciones img { height: clamp(60px, 7.8vw, 118px); }
  .bases-ilustraciones .bases-ilustraciones__bajo { height: clamp(46px, 6vw, 90px); }
}
@media (min-width: 1200px) {
  .bases-cuerpo__rejilla { grid-template-columns: minmax(0, 328px) minmax(0, 1fr); column-gap: 136px; }
}


/* ==========================================================================
   6. UTILIDADES
   ========================================================================== */
.visualmente-oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.solo-movil { display: initial; }
@media (min-width: 768px) { .solo-movil { display: none !important; } }
.solo-escritorio { display: none; }
@media (min-width: 768px) { .solo-escritorio { display: inline; } }
.programa__todo { margin-top: 8px; text-align: center; }
