/* XIV Juegos de España ABADÁ-Capoeira — hoja de estilos única. Móvil primero. */

:root {
  /* Paleta tomada del cartel oficial 2026: papel arena, azul del cielo/ mosaico,
     rojo pincel de "DE ESPAÑA", banda negra inferior con rótulos dorados. */
  --ink: #1b1a17;
  --ink-soft: #5a564d;
  --paper: #f3ebdc;
  --card: #fbf7ee;
  --line: #dccfb6;
  --deep: #14324f;        /* azul profundo */
  --deep-2: #1f4f7a;      /* azul medio */
  --sky: #5f95c9;         /* azul claro del cielo */
  --sand: #d9b97a;        /* ocre del suelo */
  --brush: #b1282a;       /* rojo pincel */
  --brush-dark: #7f1717;
  --gold: #e6b53c;
  --gold-dark: #a97706;
  --black: #111111;
  --red: #b3261e;
  --radius: 14px;
  --wrap: 1080px;

  /* Ritmo RODA: todo el movimiento pasa por estas curvas/duraciones. */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur-s: 280ms;
  --dur-m: 450ms;
  --dur-l: 650ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--deep-2); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--gold);
  color: var(--ink); padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* --- Barra superior --- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 17, 17, .96);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.brand { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; color: #fff; text-decoration: none; }
@media (max-width: 560px) {
  /* Con la coletilla el brand parte en dos lineas y la barra fija crece. */
  .brand { font-size: .62rem; letter-spacing: .02em; }
}
.brand span { color: var(--gold); }
.topnav { margin-left: auto; display: none; gap: 20px; }
.topnav a { color: #e8ecea; text-decoration: none; font-size: .92rem; }
.topnav a:hover { color: var(--gold); }
.langs { margin-left: auto; display: flex; gap: 6px; }
.topnav + .langs { margin-left: 0; }
.langs button {
  background: transparent; color: #cfd8d5; border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .78rem;
  font-weight: 700; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #20180a; }

@media (min-width: 820px) { .topnav { display: flex; } }

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  isolation: isolate;
  /* Fondo: el cartel oficial reinterpretado en formato ancho (sin textos ni logos).
     El velo va pesado a la izquierda, donde cae el titular, y casi desaparece a la
     derecha para que se vea la pintura. No subir la opacidad de la izquierda sin
     volver a comprobar el contraste del titular. */
  background:
    linear-gradient(100deg,
      rgba(243,235,220,.94) 0%,
      rgba(243,235,220,.86) 26%,
      rgba(243,235,220,.55) 48%,
      rgba(243,235,220,.22) 70%,
      rgba(243,235,220,.12) 100%),
    linear-gradient(180deg, rgba(255,255,255,.35) 0%, transparent 30%, rgba(243,235,220,.45) 100%),
    url("../img/hero-bg-poster.jpg") center center / cover no-repeat;
  background-position: center center, center center, 50% 50%;
  color: var(--ink);
  padding-block: clamp(40px, 8vw, 80px);
}
@media (max-width: 820px) {
  /* En móvil el titular ocupa todo el ancho: velo uniforme, no lateral. */
  .hero {
    background:
      linear-gradient(180deg, rgba(243,235,220,.92) 0%, rgba(243,235,220,.8) 55%, rgba(243,235,220,.88) 100%),
      url("../img/hero-bg-poster.jpg") center 30% / cover no-repeat;
    background-position: center center, 50% 30%;
  }
}
/* Deriva lenta del fondo: un respiro, no un carrusel. Solo la imagen se mueve;
   el resto de la capa (degradados) no depende de la posición, así que el
   titular nunca tiembla. */
@media (prefers-reduced-motion: no-preference) {
  .hero { animation: heroDrift 46s var(--ease) infinite alternate; }
  @media (max-width: 820px) {
    .hero { animation-name: heroDriftMobile; }
  }
}
@keyframes heroDrift {
  from { background-position: center center, center center, 49% 47%; }
  to   { background-position: center center, center center, 52% 53%; }
}
@keyframes heroDriftMobile {
  from { background-position: center center, 50% 27%; }
  to   { background-position: center center, 50% 33%; }
}

/* Pintaderas de Gáldar (sellos prehispánicos de Gran Canaria, Museo y Parque Arqueológico
   Cueva Pintada): triangular, circular, cuadrangular y de zigzag, dibujadas en
   img/pintaderas/*.svg en dorado y azul profundo. Sustituyen a los adornos inventados
   (anillo, mosaico, arco) como marcas de agua de cada sección. */
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: 3%; top: 4%; width: min(300px, 26vw); aspect-ratio: 1; transform: rotate(-8deg);
  background: url("../img/pintaderas/triangular-deep.svg?v=2") center/contain no-repeat;
  opacity: .11;
}
@media (max-width: 880px) { .hero::after { display: none; } }

.hero-grid { position: relative; display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

.hero .kicker {
  text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 900; color: var(--ink); margin-bottom: 2px;
}
.hero .assoc { font-size: .8rem; color: var(--ink-soft); line-height: 1.4; margin-bottom: 22px; }
.hero h1 { margin-bottom: .35em; text-transform: uppercase; }
.hero h1 .numeral {
  display: inline-block; color: var(--brush); font-size: .7em; letter-spacing: .12em;
  font-style: italic; position: relative; padding-inline: .5em;
}
.hero h1 .numeral::before, .hero h1 .numeral::after {
  content: ""; position: absolute; top: 55%; width: .9em; height: .12em;
  background: var(--brush); border-radius: 2px;
}
.hero h1 .numeral::before { right: 100%; }
.hero h1 .numeral::after { left: 100%; }
.hero h1 .brush {
  display: block; color: var(--ink); font-style: italic; letter-spacing: -.01em;
  text-shadow: 2px 2px 0 rgba(255,255,255,.6);
}
.hero h1 .brush::first-line { color: var(--ink); }
.hero h1 .year {
  display: inline-block; font-size: .42em; letter-spacing: .28em; font-style: normal;
  color: var(--brush); border-block: 3px solid var(--gold); padding-block: 2px; margin-top: 10px;
}
.hero .tagline { font-size: 1.1rem; color: var(--ink-soft); max-width: 34ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 30px; font-weight: 700; }
.facts div { display: flex; align-items: center; gap: 9px; }
.facts .ic { color: var(--brush); flex: 0 0 auto; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.poster {
  margin: 0; justify-self: center; max-width: 380px; width: 100%;
  perspective: 1400px;
}
.poster img {
  width: 100%; height: auto; border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(20,50,79,.55), 0 4px 12px rgba(0,0,0,.15);
  transform: rotate(1.5deg);
  transition: transform var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
/* Flotación de reposo: un balanceo muy suave, como si el cartel respirara. */
@media (prefers-reduced-motion: no-preference) {
  .poster:not(.is-tilting) img { animation: posterFloat 7s var(--ease) infinite; }
}
@keyframes posterFloat {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  50%      { transform: rotate(-.75deg) translateY(-7px); }
}
/* Inclinación 3D al mover el puntero: la aplica js/roda.js con --tilt-x/--tilt-y. */
.poster.is-tilting img {
  animation: none;
  transform:
    rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg))
    translateY(-6px) scale(1.025);
  box-shadow: 0 40px 70px -24px rgba(20,50,79,.6), 0 6px 16px rgba(0,0,0,.18);
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .poster img { transform: rotate(1.5deg) !important; transition: none !important; }
}

/* --- Botones --- */
.btn {
  display: inline-block; border: 2px solid var(--gold); background: var(--gold);
  color: #20180a; font-weight: 800; text-decoration: none;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  font-size: 1rem; font-family: inherit; text-align: center;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--deep); color: var(--deep); }
.btn.ghost:hover { border-color: var(--brush); color: var(--brush); background: transparent; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.wide { width: 100%; padding-block: 16px; font-size: 1.05rem; }
/* Nota bajo el botón de enviar: candado + "pago seguro" + quién procesa el pago */
.pay-secure { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: .86rem; line-height: 1.45; color: var(--ink-soft); }
.pay-secure svg { flex: none; margin-top: 2px; color: var(--ink-soft); }
.pay-secure strong { font-weight: 650; color: var(--ink); }

/* --- Secciones --- */
section { padding-block: clamp(44px, 8vw, 76px); position: relative; }
section h2 { position: relative; padding-bottom: 10px; }
section h2::after {
  /* El trazo bajo cada título es un arco corto, no una barra recta: eco del
     golpe de pincel del cartel y de la curva del berimbau. */
  content: ""; display: block; width: 64px; height: 10px; margin-top: 10px;
  background: transparent;
  border-bottom: 4px solid var(--brush);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.band .lead, .cta-band p { }
section.alt { background: #fff; overflow: hidden; }
section.alt > .wrap { position: relative; z-index: 1; }
/* Pintadera de zigzag en azul profundo, a la derecha. */
section.alt::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -5%; top: 8%; width: min(340px, 45vw); aspect-ratio: 1; transform: rotate(-6deg);
  background: url("../img/pintaderas/zigzag-deep.svg") center/contain no-repeat;
  opacity: .06;
}
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; }

/* Divisores curvos entre bloques de color: SVG a ancho completo, sin overflow
   horizontal (preserveAspectRatio="none" + altura fija). Decorativos: aria-hidden. */
.divider { display: block; width: 100%; height: clamp(28px, 6vw, 64px); margin: 0; line-height: 0; }
.divider svg { display: block; width: 100%; height: 100%; }
.divider.flip svg { transform: scaleX(-1); }

/* Bloque azul profundo: usado en "programa" para romper el ritmo claro/oscuro. */
.roda-deep {
  background: linear-gradient(155deg, var(--deep) 0%, var(--deep-2) 100%);
  color: #f2ede2;
}
.roda-deep h2, .roda-deep .lead { color: #fff; }
.roda-deep .lead { color: #d9e2df; }
.roda-deep h2::after { border-bottom-color: var(--gold); }
.roda-deep { overflow: hidden; }
.roda-deep > .wrap { position: relative; z-index: 1; }
/* Pintadera cuadrangular en dorado, arriba a la derecha. */
.roda-deep::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -6%; top: -10%; width: min(380px, 50vw); aspect-ratio: 1; transform: rotate(12deg);
  background: url("../img/pintaderas/cuadrangular-gold.svg") center/contain no-repeat;
  opacity: .09;
}

/* Banda ocre: patrocinadores, eco del suelo del cartel. */
.roda-sand {
  /* Sello de puntos y triangulitos repetido sobre el ocre, como una impresión. */
  background: url("../img/pintaderas/tile-deep.svg") 0 0/64px 64px repeat, linear-gradient(180deg, var(--sand) 0%, #e6cd97 100%);
}
.roda-sand h2, .roda-sand .lead { color: var(--ink); }
.roda-sand h2::after { border-bottom-color: var(--deep); }

.grid { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 700px) { .grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
section.alt .card { background: var(--paper); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.masters { list-style: none; margin: 0; padding: 0; }
.masters li { padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.masters li:last-child { border-bottom: 0; }
.masters .guest { display: flex; align-items: center; gap: 10px; }
.masters .guest::before {
  content: ""; width: 8px; height: 8px; flex: 0 0 auto;
  background: var(--gold); transform: rotate(45deg);
}
.masters .main { font-size: 1.2rem; font-weight: 800; }

/* --- Aviso de precios (portada y formulario) --- */
.alert-prices {
  background: #fff3d6; border: 1px solid var(--gold); border-left: 5px solid var(--brush);
  border-radius: var(--radius); padding: 14px 18px; margin: 0 0 22px;
}
.alert-prices strong { display: block; color: var(--brush-dark); font-size: 1.05rem; }
.hero .alert-prices { margin-top: 26px; max-width: 46rem; background: rgba(255,243,214,.94); }
/* Cabecera: título + píldora "hoy se aplica…" */
.ap-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-bottom: 10px; }
.ap-now { display: inline-block; background: var(--brush); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 700; letter-spacing: .01em; }
/* Tabla: filas por edad, columnas por mes; la columna vigente resaltada */
.ap-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.ap-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ap-table th, .ap-table td { padding: 9px 10px; text-align: center; border-bottom: 1px solid rgba(169,119,6,.25); vertical-align: middle; }
.ap-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); font-weight: 700; padding-top: 4px; }
.ap-table .ap-who { text-align: left; font-weight: 700; line-height: 1.2; }
.ap-table .ap-who small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .78rem; text-transform: none; letter-spacing: 0; }
.ap-table tbody td { font-weight: 800; font-size: 1.15rem; color: var(--deep); white-space: nowrap; }
.ap-table tbody td.ap-flat { font-size: 1rem; }
.ap-table .is-now { background: rgba(230,181,60,.38); }
.ap-table tbody td.is-now { color: var(--brush-dark); box-shadow: inset 0 0 0 2px var(--gold-dark); border-radius: 6px; }
.ap-table tbody tr:last-child th, .ap-table tbody tr:last-child td { border-bottom: 0; }
/* Notas y alojamiento */
.ap-notes { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid rgba(169,119,6,.25); display: grid; gap: 3px; font-size: .88rem; color: var(--ink); }
.ap-notes li { padding-left: 14px; position: relative; }
.ap-notes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-dark); }
.ap-stay { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed rgba(169,119,6,.45); font-weight: 700; color: var(--deep-2); font-size: .95rem; }
@media (max-width: 480px) {
  .ap-table th, .ap-table td { padding: 7px 6px; }
  .ap-table tbody td { font-size: 1.05rem; }
  .ap-table thead th { font-size: .68rem; }
}

/* --- Precio en vivo del formulario --- */
.price-box {
  background: var(--black); color: #f2ede2; border-radius: var(--radius);
  padding: 16px 18px; margin-top: 18px;
}
.price-box h3 { color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.price-box ul { list-style: none; margin: 0; padding: 0; }
.price-box li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .95rem; }
.price-box li.stay { color: #cfc8ba; font-size: .88rem; }
.price-box li.total { border-top: 1px solid rgba(255,255,255,.2); margin-top: 6px; padding-top: 10px; font-size: 1.3rem; font-weight: 800; }
.price-box li.total span:last-child { color: var(--gold); }
.price-box .note { margin: 10px 0 0; font-size: .8rem; color: #bfb9ab; }
/* Anula la caja .pending genérica (avisos de la portada): aquí es una fila más del desglose. */
.price-box li.pending { background: none; border: 0; border-radius: 0; padding: 4px 0; margin-top: 0; color: inherit; font-size: .95rem; }
.price-box li.pending span:last-child { color: var(--gold); font-style: italic; }
.price-box li span:first-child { min-width: 0; }
.price-box li span:last-child { flex: 0 0 auto; white-space: nowrap; }
.price-box li .note { display: block; font-size: .78rem; color: #bfb9ab; font-style: normal; margin-top: 1px; }
.modality-hint { display: block; font-size: .82rem; color: var(--ink-soft); margin: -4px 0 10px; }

/* --- Equipo: banda negra con rótulos dorados, como en el pie del cartel --- */
.band { background: var(--black); color: #f2ede2; position: relative; overflow: hidden; }
.band h2, .band .lead { color: #fff; }
.band .lead { color: #cfc8ba; }
.band h2::after { border-bottom-color: var(--gold); }
/* Pintadera circular en dorado, marca de agua abajo a la izquierda. */
.band::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: -8%; bottom: -18%; width: min(440px, 55vw); aspect-ratio: 1;
  background: url("../img/pintaderas/circular-gold.svg") center/contain no-repeat;
  opacity: .10;
}
.band .wrap { position: relative; z-index: 1; }
.roles { display: grid; gap: 22px; margin-top: 30px; }
@media (min-width: 700px) { .roles { grid-template-columns: repeat(4, 1fr); } }
.role h3 {
  color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 800; margin-bottom: 10px;
}
.role ul { list-style: none; margin: 0; padding: 0; }
.role li { padding: 4px 0; font-weight: 600; }

/* --- Patrocinadores --- */
/* El fondo ocre lo pone .roda-sand (ver arriba); aquí solo el resto del bloque. */
.sponsors { background: var(--paper); }
.sponsor-list {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.sponsor-list li {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 84px; padding: 12px; border: 1px solid rgba(27,26,23,.16); border-radius: 10px;
  background: rgba(255,255,255,.62); font-weight: 700; font-size: .86rem; color: var(--ink);
  transition: transform var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
}
.sponsor-list li:hover { transform: translateY(-3px); background: #fff; }
.sponsor-list li a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: inherit; text-decoration: none; }
.sponsor-list img { max-height: 60px; max-width: 100%; width: auto; filter: grayscale(1); opacity: .85; transition: filter var(--dur-s) var(--ease), opacity var(--dur-s) var(--ease); }
.sponsor-list li:hover img { filter: none; opacity: 1; }

/* --- Programa: línea de tiempo. Vertical en móvil, horizontal en escritorio --- */
#program-days { margin-top: 30px; }
.pday {
  margin-bottom: 34px; position: relative; padding-left: 22px;
  border-left: 3px solid rgba(230,181,60,.5);
}
.pday::before {
  /* El punto de la línea de tiempo: una cuenta de la roda. */
  content: ""; position: absolute; left: -8px; top: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(20,50,79,.55);
}
.pday > h3 {
  font-size: 1.25rem; color: #fff; margin-bottom: .5em;
  padding-bottom: .35em;
}
.pvenue {
  font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold); margin: 18px 0 8px;
}
.pitems { list-style: none; margin: 0; padding: 0; }
.pitems li {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 4px 14px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.pitems li:last-child { border-bottom: 0; }
.ptime {
  font-weight: 700; color: #cfe0f2;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
@media (max-width: 560px) {
  /* En movil la hora va encima del texto: 7,5rem deja el texto sin sitio. */
  .pitems li { grid-template-columns: 1fr; gap: 2px; }
  .ptime { color: var(--gold); font-size: .9rem; }
}
@media (min-width: 860px) {
  /* Línea de tiempo horizontal: los tres días en columnas, unidos por el hilo
     dorado de arriba. No usamos scroll horizontal: caben los tres a la vez. */
  #program-days {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    position: relative;
  }
  #program-days::before {
    content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 3px;
    background: rgba(230,181,60,.5);
  }
  .pday {
    border-left: 0; padding-left: 0; padding-top: 26px; margin-bottom: 0;
  }
  .pday::before { left: 0; top: 2px; }
}
.extras {
  margin-top: 8px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18);
}
.roda-deep .extras h3 { color: var(--gold); }
.roda-deep .extras p { color: #e7e2d4; }
.roda-deep .pending {
  background: rgba(230,181,60,.12); border-color: rgba(230,181,60,.5); color: #ffe9b0;
}

.day { border-left: 3px solid var(--brush); padding-left: 16px; margin-bottom: 22px; }
.day h3 { margin-bottom: .15em; }
.day p { color: var(--ink-soft); margin: 0; }

.pending {
  background: #fff8e6; border: 1px dashed var(--gold); color: #6b4e0c;
  border-radius: var(--radius); padding: 14px 16px; font-size: .95rem; margin-top: 24px;
}
section.alt .pending { background: #fdf6e3; }

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 14px 18px; margin-bottom: 12px;
}
section.alt .faq details { background: var(--paper); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: .7em 0 0; color: var(--ink-soft); }

.cta-band {
  background: linear-gradient(160deg, var(--deep), var(--deep-2)); color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band h2::after { border-bottom-color: var(--gold); margin-inline: auto; }
.cta-band p { color: #d9e2df; max-width: 46ch; margin-inline: auto; }
.cta-band .wrap { position: relative; z-index: 1; }
/* Pintadera circular en dorado, girando despacísimo. Puro adorno. */
.cta-band::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -14%; top: -34%; width: min(520px, 70vw); aspect-ratio: 1;
  background: url("../img/pintaderas/circular-gold.svg") center/contain no-repeat;
  opacity: .12;
}
@media (prefers-reduced-motion: no-preference) {
  .cta-band::before { animation: ctaRingSpin 90s linear infinite; }
}
@keyframes ctaRingSpin { to { transform: rotate(360deg); } }

footer {
  background: var(--black); color: #bfb9ab; padding-block: 34px; font-size: .92rem;
}
footer a { color: var(--gold); }
footer .wrap > * + * { margin-top: 6px; }
footer .assoc-foot { font-size: .82rem; color: #8f8a7e; }

/* --- Formulario --- */
.formpage { padding-block: 32px 60px; }
.formpage h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.backlink { display: inline-block; margin-bottom: 18px; color: var(--ink-soft); text-decoration: none; font-size: .93rem; padding: 12px 0; margin-top: -12px; }
/* Objetivo táctil ≥44px para enlaces dentro de textos de ayuda, sin mover el texto. */
.help a { display: inline-block; padding: 12px 0; margin: -12px 0; }
/* Todo lo que precede al formulario comparte su ancho. */
.formpage .alert-prices, .formpage > .lead, .formpage > .help, .formpage > .form-meta, .formpage > .notice { max-width: 720px; }
.backlink:hover { color: var(--deep-2); }

form { max-width: 720px; }

fieldset {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 20px; margin: 0 0 22px;
}
legend {
  font-weight: 800; font-size: 1.05rem; padding-inline: 8px;
  color: var(--brush-dark);
}

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.row { display: grid; gap: 16px; margin-bottom: 16px; }
.row:last-child { margin-bottom: 0; }
.row .field { margin-bottom: 0; }   /* el espaciado lo pone el gap */
@media (min-width: 620px) { .row.two { grid-template-columns: 1fr 1fr; } }

label { display: block; font-weight: 650; margin-bottom: 6px; }
.req { color: var(--red); }
.help { display: block; font-weight: 400; font-size: .86rem; color: var(--ink-soft); margin-top: 4px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px evita el zoom en iOS */
  padding: 11px 13px; border: 1px solid #c8c2b4; border-radius: 10px;
  background: #fff; color: var(--ink);
}
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(224,164,34,.45); outline-offset: 1px; border-color: var(--gold-dark);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--red); background: #fdf3f2;
}

.check { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px; }
.check:last-child { margin-bottom: 0; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--gold-dark); }
.check label { font-weight: 400; margin: 0; }

.radios { display: grid; gap: 10px; }
.radios .check { margin: 0; }

.modality-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .modality-cards { grid-template-columns: 1fr 1fr; } }
.modality-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid #c8c2b4; border-radius: 10px; background: #fff;
  padding: 12px 14px; cursor: pointer; font-weight: 650;
}
.modality-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.modality-card:focus-within { outline: 3px solid rgba(224,164,34,.45); outline-offset: 1px; }
.modality-card.is-invalid { border-color: var(--red); background: #fdf3f2; }
.check.is-invalid label { color: var(--red); }
.modality-card.is-selected {
  border-color: var(--gold-dark); background: #fff8e6;
  box-shadow: inset 0 0 0 1px var(--gold-dark);
}
.modality-name { flex: 1 1 auto; }
.modality-price {
  flex: 0 0 auto; font-weight: 800; color: var(--brush-dark);
  background: var(--card); border-radius: 999px; padding: 3px 10px; font-size: .92rem;
}
.modality-card.is-selected .modality-price { background: var(--gold-dark); color: #fff; }

.err { color: var(--red); font-size: .87rem; margin-top: 5px; display: none; }
.err.on { display: block; }

[hidden] { display: none !important; }

.notice {
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px;
  border: 1px solid var(--line); background: #fff;
}
.notice.ok { background: #edf7ef; border-color: #9dcaa8; }
.notice.bad { background: #fdf3f2; border-color: #e0a9a4; }
.notice.warn { background: #fff8e6; border-color: var(--gold); }
.notice h2 { font-size: 1.2rem; margin-bottom: .3em; }
.notice p:last-child { margin-bottom: 0; }
.notice pre {
  white-space: pre-wrap; word-break: break-word; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  font-size: .85rem; max-height: 260px; overflow: auto;
}
.notice .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ============================================================
   RODA — movimiento: revelado al hacer scroll, CTA fija móvil,
   fondo del bloque de patrocinadores, freno global de movimiento.
   ============================================================ */

/* El fondo ocre de patrocinadores gana aquí por posición en cascada
   (misma especificidad que .sponsors, pero esta regla va después). */
.sponsors.roda-sand { background: url("../img/pintaderas/tile-deep.svg") 0 0/64px 64px repeat, linear-gradient(180deg, var(--sand) 0%, #e6cd97 100%); }

/* --- Revelado escalonado al entrar en el viewport --- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur-l) var(--ease), transform var(--dur-l) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Tarjetas y filas con un ligero "levantamiento" interactivo, en línea con
   el resto del movimiento del sitio (no solo al entrar en vista). */
.card, .role, .sponsor-list li, .modality-card {
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
}
.card:hover, .role:hover { transform: translateY(-3px); }
.grid .card:hover { box-shadow: 0 14px 28px -18px rgba(20,50,79,.35); }

/* --- CTA fija inferior (solo móvil, solo si hay .hero en la página) --- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(17,17,17,.94);
  border-top: 1px solid rgba(230,181,60,.35);
  backdrop-filter: saturate(140%) blur(6px);
  transform: translateY(110%);
  transition: transform var(--dur-m) var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta a.btn { width: 100%; max-width: 420px; min-height: 44px; }
@media (min-width: 821px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* --- Freno global: con reduce-motion, nada se mueve salvo la opacidad --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .hero, .cta-band::before, .poster img, .card, .role {
    transition-property: opacity !important;
  }
  .reveal { transform: none !important; }
}

/* Objetivo táctil mínimo (44px) para los botones de idioma. */
.langs button, [data-lang-btn] { min-height: 44px; min-width: 44px; }

.price-box li.info span:first-child { color: var(--gold); }
#ok-price { font-weight: 700; }
.form-meta { margin: -6px 0 10px; color: var(--deep-2); font-size: 1.02rem; }
.form-meta strong { color: var(--brush-dark); }
/* Sección 5 "Tu precio": el cuadro es la sección entera */
.price-section .price-box { margin-top: 0; }

/* --- Portada: sedes con foto y mapa, cómo llegar, lugares que ver, vídeo y foto de fondo
   (adoptado 2026-09-18 desde la propuesta index2.html) --- */
.venue-grid { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 900px) { .venue-grid { grid-template-columns: repeat(3, 1fr); } }
.venue-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}
.venue-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(20,50,79,.35); }
.venue-img { position: relative; aspect-ratio: 3 / 2; background: var(--line); }
.venue-img img { width: 100%; height: 100%; object-fit: cover; }
.venue-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.venue-body h3 { margin: 0; font-size: 1.1rem; }
.venue-body > p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.venue-when { list-style: none; margin: 4px 0 0; padding: 0; font-size: .88rem; }
.venue-when li { padding: 5px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.venue-when li:first-child { border-top: 0; }
.venue-when b { font-weight: 700; }
.venue-when span { color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.venue-actions { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn.sm { padding: 9px 16px; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.btn.sm svg { width: 16px; height: 16px; }

.travel-row { margin-top: 30px; }
.travel-card .help { color: var(--ink-soft); font-size: .9rem; margin: 0 0 6px; }
table.travel { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 10px 0; }
table.travel th {
  text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); padding: 6px 8px; border-bottom: 2px solid var(--line); font-weight: 700;
}
table.travel td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.travel td.t { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
table.travel td.n { color: var(--ink-soft); }
table.travel td.r a { white-space: nowrap; font-weight: 700; text-decoration: none; }
@media (max-width: 640px) {
  table.travel thead { display: none; }
  table.travel tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.travel td { border: 0; padding: 2px 0; }
  table.travel td.n, table.travel td.r { grid-column: 1 / -1; }
}

.place-grid { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 700px) { .place-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .place-grid { grid-template-columns: repeat(3, 1fr); }
  .place-card.wide { grid-column: span 2; flex-direction: row; }
  .place-card.wide .place-img { flex: 1 1 56%; aspect-ratio: auto; }
  .place-card.wide .place-body { flex: 1 1 44%; }
  .place-card.full { grid-column: 1 / -1; flex-direction: row; }
  .place-card.full .place-img { flex: 0 0 40%; aspect-ratio: auto; }
  .place-card.full .place-body { justify-content: center; }
}
.place-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}
.place-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(20,50,79,.35); }
.place-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.place-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-m) var(--ease); }
.place-card:hover .place-img img { transform: scale(1.03); }
.place-dist {
  position: absolute; top: 12px; left: 12px; background: var(--deep); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em;
}
.place-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.place-body h3 { margin: 0; font-size: 1.1rem; }
.place-body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.place-link { margin-top: auto; padding-top: 8px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.place-link svg { width: 16px; height: 16px; }
.place-link:hover { color: var(--brush); }

.credits { margin-top: 28px; font-size: .85rem; color: var(--ink-soft); }
.credits summary { cursor: pointer; font-weight: 700; }
.credits p { margin: 8px 0 4px; }
.credits ul { margin: 0; padding-left: 18px; }
@media (prefers-reduced-motion: reduce) {
  .venue-card, .place-card, .place-img img { transition: none; }
  .place-card:hover .place-img img { transform: none; }
}

/* Vídeo de fondo en la banda final: roda en la playa al atardecer. Silencioso,
   en bucle, solo en pantallas anchas sin reduced-motion ni ahorro de datos;
   si no, queda el fotograma fijo. */
.cta-band.has-video { min-height: clamp(360px, 48vw, 520px); display: grid; align-items: center; }
.cta-video, .cta-shade { position: absolute; inset: 0; }
.cta-video { width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-shade { z-index: 1; background: linear-gradient(160deg, rgba(20,50,79,.82) 0%, rgba(31,79,122,.62) 60%, rgba(20,50,79,.78) 100%); }
.cta-band.has-video::before { z-index: 2; }
.cta-band.has-video .wrap { z-index: 3; }
.cta-band.has-video h2 { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.cta-band.has-video p { color: #eef2ef; }

/* Foto de fondo en "Programa": roda en la playa al atardecer (foto propia de la
   organización, img/programa-bg*.webp). Velo azul profundo en duotono para que el
   horario blanco/dorado siga leyéndose; la pintadera cuadrangular se mantiene.
   `background-attachment: fixed` solo en escritorio: en móvil rompe el cover. */
.roda-deep.has-photo {
  background:
    linear-gradient(180deg, rgba(20,50,79,.9) 0%, rgba(20,50,79,.76) 30%, rgba(31,79,122,.72) 60%, rgba(20,50,79,.92) 100%),
    url("../img/programa-bg-960.webp") center 40% / cover no-repeat;
}
@media (min-width: 900px) {
  .roda-deep.has-photo {
    background-image:
      linear-gradient(180deg, rgba(20,50,79,.9) 0%, rgba(20,50,79,.74) 30%, rgba(31,79,122,.7) 60%, rgba(20,50,79,.92) 100%),
      url("../img/programa-bg.webp");
    background-attachment: scroll, fixed;
  }
}
.roda-deep.has-photo::before { opacity: .12; }
.roda-deep.has-photo .pday, .roda-deep.has-photo h2 { text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.roda-deep.has-photo .pitems { background: rgba(20,50,79,.35); border-radius: 10px; padding: 6px 10px; backdrop-filter: blur(2px); }
@media (prefers-reduced-motion: reduce) { .roda-deep.has-photo { background-attachment: scroll; } }
