/* =====================================================================
   FIESTAS DE ESPINOSA DE HENARES 2026
   Hoja de estilo · pensada para móvil y para que la use todo el mundo
   ===================================================================== */

:root {
  --tinta:      #241610;
  --tinta-2:    #6b5a50;
  --papel:      #fdf5e9;
  --tarjeta:    #ffffff;
  --granate:    #7a0d17;
  --granate-2:  #4a0810;
  --rojo:       #c1121f;
  --rojo-claro: #ef4444;
  --oro:        #e0a010;
  --oro-claro:  #ffd166;
  --azul:       #0f4c81;
  --verde:      #128c4a;
  --whatsapp:   #1ebe5d;
  --linea:      #eadfce;

  --anunH:      clamp(78px, 13vh, 116px);
  --cabH:       44px;

  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;

  --sombra-s: 0 1px 2px rgba(60, 30, 10, .07), 0 2px 8px rgba(60, 30, 10, .06);
  --sombra-m: 0 4px 16px rgba(60, 30, 10, .12);
  --sombra-l: 0 -8px 40px rgba(0, 0, 0, .30);

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

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.45;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  padding-bottom: calc(var(--anunH) + env(safe-area-inset-bottom));
}

body.sin-scroll { overflow: hidden; }

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

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

.saltar {
  position: absolute;
  left: -9999px;
  background: var(--tinta);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 10px 0;
}
.saltar:focus { left: 0; top: 0; }

/* ═══════════════════ CABECERA ═══════════════════ */
.cab {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--cabH);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 10px;
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(100deg, var(--granate-2) 0%, var(--granate) 45%, #9b1220 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(74, 8, 16, .35);
}
.cab::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--oro-claro) 0 14px, var(--rojo-claro) 14px 28px);
  opacity: .9;
}
.cab__escudo {
  width: 26px; height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
  flex: none;
}
.cab__txt {
  flex: 1; min-width: 0;
  font-size: 15px; font-weight: 800; letter-spacing: -.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cab__txt span { color: var(--oro-claro); }
.cab__buscar {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  flex: none;
}
.cab__buscar:active { background: rgba(255, 255, 255, .3); }
.cab__buscar svg { width: 21px; height: 21px; fill: #fff; }

/* ═══════════════════ PORTADA ═══════════════════ */
.portada {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #4a0810 0%, #7a0d17 40%, #1b1233 100%);
  color: #fff;
  padding: 16px 16px 18px;
  text-align: center;
}
.portada__fondo {
  position: absolute; inset: 0;
  background:
    radial-gradient(closest-side, rgba(255, 209, 102, .30), transparent 70%) 18% 22% / 220px 220px no-repeat,
    radial-gradient(closest-side, rgba(239, 68, 68, .30), transparent 70%) 84% 12% / 260px 260px no-repeat,
    radial-gradient(closest-side, rgba(96, 165, 250, .22), transparent 70%) 70% 85% / 300px 300px no-repeat;
  pointer-events: none;
}
.portada__caja { position: relative; }
.portada__titulo {
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto 9px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45));
}
.portada__fechas {
  margin: 0 0 2px;
  font-size: 14px;
  letter-spacing: .2px;
  color: #ffe9c7;
}
.portada__fechas b { color: #fff; }
.portada__virgen {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: #f0cdd1;
  font-style: italic;
}
.portada__virgen b { font-style: normal; color: #fff; }

/* --- cuenta atrás --- */
.cuenta {
  background: rgba(0, 0, 0, .26);
  border: 1px solid rgba(255, 209, 102, .35);
  border-radius: var(--r-m);
  padding: 9px 8px 8px;
  margin: 0 auto 12px;
  max-width: 400px;
  backdrop-filter: blur(2px);
}
.cuenta__rotulo {
  margin: 0 0 6px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--oro-claro);
  font-weight: 800;
}
.cuenta__reloj { display: flex; justify-content: center; gap: 6px; }
.cuenta__bloque {
  background: linear-gradient(180deg, #fff, #ffeccb);
  color: var(--granate-2);
  border-radius: 10px;
  min-width: 56px;
  padding: 4px 4px 3px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}
.cuenta__num {
  display: block;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}
.cuenta__eti {
  display: block;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 700;
  opacity: .78;
}
.cuenta__pie { margin: 7px 0 0; font-size: 11.5px; color: #ffe9c7; }

.enmarcha {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(18, 140, 74, .95);
  color: #fff;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-size: 14.5px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .3);
}
.enmarcha__punto {
  width: 10px; height: 10px; border-radius: 50%;
  background: #b8f5d0;
  animation: latido 1.6s infinite;
}
@keyframes latido { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

/* --- botón grande de búsqueda --- */
.buscaGrande {
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #6b5a50;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.buscaGrande svg { width: 22px; height: 22px; fill: var(--rojo); flex: none; }
.buscaGrande:active { transform: translateY(1px); }

/* ═══════════════════ DÍAS ═══════════════════ */
.dias {
  position: sticky;
  top: calc(var(--cabH) + env(safe-area-inset-top));
  z-index: 55;
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
  box-shadow: 0 4px 10px -6px rgba(60, 30, 10, .3);
}
.dias__pista {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 8px 12px 7px;
  scrollbar-width: none;
}
.dias__pista::-webkit-scrollbar { display: none; }

.dia {
  flex: none;
  scroll-snap-align: center;
  min-width: 58px;
  padding: 5px 9px 6px;
  border-radius: 13px;
  background: #fff;
  border: 1.5px solid var(--linea);
  text-align: center;
  line-height: 1.12;
  position: relative;
  transition: background .15s, color .15s, border-color .15s;
}
.dia__sem { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--tinta-2); white-space: nowrap; }
.dia__sem i { font-style: normal; color: var(--rojo); font-weight: 800; }
.dia__sem i::before { content: " · "; color: var(--linea); }
.dia__num { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.dia[aria-selected="true"] {
  background: linear-gradient(165deg, var(--rojo), var(--granate));
  border-color: var(--granate);
  color: #fff;
  box-shadow: 0 4px 12px rgba(122, 13, 23, .35);
}
.dia[aria-selected="true"] .dia__sem { color: rgba(255, 255, 255, .85); }
.dia[aria-selected="true"] .dia__sem i { color: var(--oro-claro); }
.dia[aria-selected="true"] .dia__sem i::before { color: rgba(255, 255, 255, .4); }
.dia--hoy::after {
  content: "HOY";
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  background: var(--verde);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .8px;
  padding: 2px 7px;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
}

/* ═══════════════════ PROGRAMA ═══════════════════ */
.programa { padding: 4px 12px 26px; }

.diaCab {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 4px 4px;
}
.diaCab__t { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.6px; }
.diaCab__lema { font-size: 14px; color: var(--rojo); font-weight: 700; }
.diaCab__acc {
  margin: 8px 4px 12px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chipAcc {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--linea);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tinta);
  box-shadow: var(--sombra-s);
}
.chipAcc--wa { border-color: #a8ebc5; color: #0d6b39; }
.chipAcc:active { transform: translateY(1px); }

/* ---- locución del día ------------------------------------------------
   Un solo botón grande y redondo: es el mando que más gente va a usar sin
   estar acostumbrada a manejar webs. Nada de controles nativos. */
.loc {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 4px 16px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--r-m);
  border: 1.5px solid #f0d8a8;
  background: linear-gradient(135deg, #fff8e8, #fffdf8);
  box-shadow: var(--sombra-s);
}
.loc__btn {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--granate);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(122, 13, 23, .35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.loc__btn:active { transform: scale(.94); }
.loc__ico { font-size: 20px; line-height: 1; padding-left: 3px; }
.loc--son .loc__btn { background: var(--rojo); }
.loc--son .loc__ico { font-size: 16px; padding-left: 0; letter-spacing: 1px; }

.loc__cuerpo { min-width: 0; flex: 1; }
.loc__t { display: block; font-size: 15.5px; font-weight: 800; color: var(--granate-2); }
.loc__pie {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tinta-2);
  font-variant-numeric: tabular-nums;
}
.loc__barra {
  margin-top: 7px;
  height: 5px;
  border-radius: 999px;
  background: #ecdcc0;
  overflow: hidden;
}
.loc__barra > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--oro);
  transition: width .25s linear;
}

@media (prefers-reduced-motion: reduce) {
  .loc__barra > i { transition: none; }
}

.franja {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 4px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--tinta-2);
}
.franja::after { content: ""; flex: 1; height: 1px; background: var(--linea); }

.acto {
  display: grid;
  grid-template-columns: 72px 1fr 16px;
  align-items: start;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: var(--tarjeta);
  border: 1px solid var(--linea);
  border-left: 5px solid var(--c, var(--rojo));
  border-radius: var(--r-m);
  padding: 13px 12px 13px 11px;
  margin-bottom: 10px;
  box-shadow: var(--sombra-s);
  transition: transform .12s ease, box-shadow .12s ease;
}
.acto:active { transform: scale(.985); box-shadow: none; }
.acto--destacado { border-top: 1px solid var(--oro-claro); background: linear-gradient(180deg, #fffaf0, #fff 42%); }
/* Lo ya pasado se atenúa, pero sin bajar de un contraste legible al sol. */
.acto--pasado { opacity: .82; filter: grayscale(.4); }

/* la traca: el momento del año */
.acto--estelar {
  background: linear-gradient(150deg, #2a1a49 0%, #4a0810 55%, #7a0d17 100%);
  border-color: var(--oro);
  border-left-color: var(--oro-claro);
  color: #fff;
  box-shadow: 0 6px 20px rgba(122, 13, 23, .35);
}
.acto--estelar .acto__t { font-size: 18px; font-weight: 800; }
.acto--estelar .acto__h { color: var(--oro-claro); }
.acto--estelar .acto__sub,
.acto--estelar .acto__lugar { color: #f2dcc0; }
.acto--estelar .acto__flecha { color: var(--oro-claro); }
.acto--estelar .eti--cat { background: rgba(255, 209, 102, .18); color: var(--oro-claro); }

.acto__hora {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding-top: 1px;
}
.acto__h {
  font-size: 19px; font-weight: 800; letter-spacing: -.4px;
  font-variant-numeric: tabular-nums;
  color: var(--c, var(--rojo));
  white-space: nowrap;
}
.acto__h--txt { font-size: 12.5px; line-height: 1.2; white-space: normal; font-weight: 800; }
.acto__ico { font-size: 19px; line-height: 1; }

.acto__cuerpo { min-width: 0; }
.acto__t { display: block; font-size: 17px; font-weight: 700; margin: 0 0 2px; letter-spacing: -.25px; }
.acto__sub { display: block; font-size: 13.5px; color: var(--tinta-2); margin: 0 0 4px; }
.acto__lugar {
  display: flex; align-items: flex-start; gap: 5px;
  font-size: 13.5px; color: var(--tinta-2); margin: 3px 0 0;
}
.acto__lugar span:first-child { flex: none; }
.acto__etis { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.eti {
  font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.eti--cat {
  background: #f3ede4; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, #fff);
  color: color-mix(in srgb, var(--c) 72%, #241610); /* que el naranja y el dorado se lean */
}
.eti--ahora { background: var(--verde); color: #fff; animation: latido 2s infinite; }
.eti--siguiente { background: var(--oro-claro); color: #6b4a00; }
.eti--cartel { background: #eef2ff; color: #3730a3; }
.eti--dia { background: var(--tinta); color: #ffe9c7; }
.eti--noche { background: #1b1233; color: #ffd166; }
.acto__flecha { align-self: center; color: #c9b8a4; font-size: 20px; line-height: 1; }

.vacio {
  text-align: center;
  padding: 40px 18px;
  color: var(--tinta-2);
}
.vacio__ico { font-size: 42px; }

/* ═══════════════════ PIE ═══════════════════ */
.pie { padding: 22px 16px 30px; text-align: center; border-top: 1px solid var(--linea); margin-top: 14px; }
.pie__btn {
  display: block; width: 100%; max-width: 420px; margin: 0 auto 10px;
  background: #fff; border: 1.5px solid var(--linea); border-radius: var(--r-m);
  padding: 14px; font-weight: 700; font-size: 15.5px; box-shadow: var(--sombra-s);
}
.pie__btn:active { transform: translateY(1px); }
.pie__legal { font-size: 12px; color: var(--tinta-2); max-width: 460px; margin: 18px auto 8px; line-height: 1.5; }
.pie__firma { font-size: 12px; color: var(--tinta-2); font-weight: 700; margin: 0; }

/* ═══════════════════ ANUNCIANTES (barra fija) ═══════════════════ */
.anun {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 58;
  height: calc(var(--anunH) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(180deg, #fffdf8, #f6ecdc);
  border-top: 2px solid var(--oro-claro);
  box-shadow: 0 -4px 18px rgba(60, 30, 10, .14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.anun__rotulo {
  margin: 0;
  padding: 3px 10px 1px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 800;
  color: #7a6446;
  text-align: center;
  flex: none;
}
.anun__ventana { flex: 1; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); }
.anun__pista {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 4px 0 6px;
  width: max-content;
  animation: desfile 150s linear infinite;
}
.anun:active .anun__pista,
.anun__pista:hover { animation-play-state: paused; }
/* con un panel abierto la banda no se ve: no gastar batería animándola */
body.sin-scroll .anun__pista { animation-play-state: paused; }
@keyframes desfile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.anun__logo {
  height: 100%;
  aspect-ratio: 241 / 145;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 8px;
  padding: 3px;
  flex: none;
  display: block;
}
.anun__logo img { width: 100%; height: 100%; object-fit: contain; }
.anun__logo:active { border-color: var(--rojo); }

@media (prefers-reduced-motion: reduce) {
  .anun__pista { animation: none; }
  .anun__ventana { overflow-x: auto; }
  html { scroll-behavior: auto; }
  .enmarcha__punto, .eti--ahora { animation: none; }
}

/* ═══════════════════ HOJA (panel deslizante) ═══════════════════ */
.hoja { position: fixed; inset: 0; z-index: 80; }
.hoja[hidden] { display: none; }
.hoja__fondo {
  position: absolute; inset: 0;
  background: rgba(25, 12, 8, .55);
  backdrop-filter: blur(2px);
  animation: aparece .2s ease;
}
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

.hoja__panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 94dvh;
  height: auto;
  display: flex;
  flex-direction: column;
  background: var(--papel);
  border-radius: var(--r-l) var(--r-l) 0 0;
  box-shadow: var(--sombra-l);
  animation: sube .26s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}
@keyframes sube { from { transform: translateY(100%); } to { transform: translateY(0); } }
/* mientras se va, no acepta más toques: si no, el segundo toque de quien
   pulsa dos veces «Cerrar» atravesaba el fondo y retrocedía dos veces */
.hoja--cerrando { pointer-events: none; }
.hoja--cerrando .hoja__panel { animation: baja .2s ease forwards; }
.hoja--cerrando .hoja__fondo { animation: desaparece .2s ease forwards; }
@keyframes baja { to { transform: translateY(100%); } }
@keyframes desaparece { to { opacity: 0; } }

.hoja__asa {
  width: 46px; height: 5px; border-radius: 99px;
  background: #d8c9b6;
  margin: 9px auto 2px;
  flex: none;
}
.hoja__x {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--linea);
  font-size: 18px;
  font-weight: 700;
  display: grid; place-items: center;
  box-shadow: var(--sombra-s);
}
.hoja__scroll {
  outline: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 18px 8px;
  overscroll-behavior: contain;
}
.hoja__pieBtns {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea);
  background: #fff;
}
.btnGrande {
  flex: 1;
  padding: 15px 10px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btnGrande--verde { background: var(--whatsapp); color: #fff; box-shadow: 0 3px 10px rgba(30, 190, 93, .35); }
.btnGrande--gris { background: #ece2d4; color: var(--tinta); flex: 0 0 38%; }
.hoja__pieBtns > .btnGrande:only-child { flex: 1 1 auto; }
.btnGrande:active { transform: translateY(1px); }

.hoja__h2 { font-size: 22px; font-weight: 800; margin: 6px 44px 6px 0; letter-spacing: -.5px; }
.hoja__intro { font-size: 14px; color: var(--tinta-2); margin: 0 0 14px; }

/* --- contenido del detalle de un acto --- */
.det__cinta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--c, var(--rojo));
  color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  margin: 4px 0 10px;
}
.det__t { font-size: 24px; font-weight: 800; line-height: 1.15; margin: 0 34px 4px 0; letter-spacing: -.6px; }
.det__sub { font-size: 15px; color: var(--tinta-2); margin: 0 0 14px; font-style: italic; }

.det__datos { display: grid; gap: 1px; background: var(--linea); border-radius: var(--r-m); overflow: hidden; margin-bottom: 14px; }
.det__fila { display: grid; grid-template-columns: 30px 1fr; gap: 10px; background: #fff; padding: 12px 13px; align-items: start; }
.det__ico { font-size: 18px; line-height: 1.3; text-align: center; }
.det__cla { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .9px; color: var(--tinta-2); font-weight: 800; margin-bottom: 1px; }
.det__val { font-size: 15.5px; font-weight: 600; }
.det__val--n { font-weight: 500; }

.det__texto { font-size: 16px; line-height: 1.55; margin: 0 0 14px; }
.det__nota {
  background: #fff8e6;
  border: 1px solid #f2dfae;
  border-left: 4px solid var(--oro);
  border-radius: var(--r-s);
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.det__lista { margin: 0 0 16px; }
.det__lista h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--tinta-2); margin: 0 0 8px; }
.det__lista ol, .det__lista ul { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.7; }

.det__cartelBtn {
  display: block; width: 100%;
  border: 1px solid var(--linea); border-radius: var(--r-m);
  overflow: hidden; background: #fff; margin-bottom: 14px;
  box-shadow: var(--sombra-s);
  padding: 0;
}
.det__cartelBtn img { width: 100%; height: auto; }
.det__cartelPie {
  padding: 10px 12px; font-size: 13.5px; font-weight: 700; color: var(--azul);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}

.det__acc { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.det__accBtn {
  flex: 1 1 46%;
  border: 1.5px solid var(--linea);
  background: #fff;
  border-radius: 14px;
  padding: 12px 8px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  box-shadow: var(--sombra-s);
}

/* ═══════════════════ BUSCADOR ═══════════════════ */
.busca {
  position: fixed; inset: 0; z-index: 90;
  background: var(--papel);
  display: flex; flex-direction: column;
  animation: aparece .16s ease;
}
.busca[hidden] { display: none; }
.busca__barra {
  position: relative;
  flex: none;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  padding-top: calc(8px + env(safe-area-inset-top));
  background: linear-gradient(100deg, var(--granate-2), var(--granate));
}
.busca__volver {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  color: #fff; font-size: 30px; line-height: 1;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .13);
  padding-bottom: 4px;
}
.busca__input {
  flex: 1; min-width: 0;
  height: 46px;
  border: 0; border-radius: 999px;
  padding: 0 44px 0 18px;
  font-size: 16.5px;
  font-family: inherit;
  background: #fff;
  color: var(--tinta);
}
.busca__input::-webkit-search-cancel-button { display: none; }
.busca__limpiar {
  position: absolute; right: 16px; bottom: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #ece2d4; color: #6b5a50; font-size: 14px; font-weight: 700;
  display: grid; place-items: center;
}
/* El dibujo se queda pequeño, pero el área que responde al dedo llega a 46 px. */
.busca__limpiar::after,
.filtroActivo button::after,
.hoja__x::after {
  content: ""; position: absolute; inset: -6px;
}
.filtroActivo button { position: relative; }

.busca__sugerencias { padding: 12px 14px 2px; min-height: 0; max-height: 42vh; overflow-y: auto; flex: none; }
.busca__grupo { margin-bottom: 12px; }
.busca__sugTit { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--tinta-2); font-weight: 800; margin: 0 0 8px; }
.busca__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sug {
  border: 1.5px solid var(--linea);
  background: #fff;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--sombra-s);
}
.sug i { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--tinta-2); margin-left: 2px; }
.sug--activo {
  background: linear-gradient(165deg, var(--rojo), var(--granate));
  border-color: var(--granate);
  color: #fff;
}
.sug--activo i { color: rgba(255, 255, 255, .8); }

.filtroActivo {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1.5px solid var(--linea); border-left: 5px solid var(--rojo);
  border-radius: var(--r-m); padding: 10px 8px 10px 13px; margin: 2px 0 10px;
  font-size: 15.5px;
  box-shadow: var(--sombra-s);
}
.filtroActivo button {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: #ece2d4; color: #6b5a50; font-weight: 700;
  display: grid; place-items: center;
}
.busca__resultados { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px calc(24px + env(safe-area-inset-bottom)); }
.busca__cuenta { font-size: 13px; color: var(--tinta-2); font-weight: 700; padding: 4px 4px 10px; }

/* ═══════════════════ VISOR DE CARTELES ═══════════════════ */
.visor {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 6, 4, .96);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 10px calc(50px + env(safe-area-inset-bottom));
  animation: aparece .18s ease;
}
.visor[hidden] { display: none; }
.visor__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  /* touch-action libre: con pinch-zoom a secas, una vez ampliado el cartel
     no se podía arrastrar con un dedo para ver el resto */
}
.visor__x {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top)); right: 12px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff; font-size: 20px; font-weight: 700;
  display: grid; place-items: center;
  backdrop-filter: blur(4px);
}
.visor__pie {
  position: absolute;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 0; right: 0;
  text-align: center;
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  margin: 0;
  padding: 0 20px;
}

/* ═══════════════════ REJILLA DE ANUNCIANTES ═══════════════════ */
.rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 9px;
  padding-bottom: 6px;
}
.rejilla__item {
  display: block; width: 100%; text-align: center;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--r-s);
  padding: 5px 5px 7px;
  box-shadow: var(--sombra-s);
}
.rejilla__item:active { transform: scale(.97); border-color: var(--rojo); }
.rejilla__item img {
  width: 100%;
  aspect-ratio: 241 / 145;
  object-fit: contain;
}
.rejilla__pie {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tinta);
  margin-top: 5px;
  line-height: 1.25;
}
.rejilla__mas {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--azul);
  margin-top: 3px;
}

/* --- ficha de un anunciante --- */
.ficha__logo {
  width: 100%;
  max-width: 340px;
  margin: 4px auto 12px;
  border: 1px solid var(--linea);
  border-radius: var(--r-m);
  background: #fff;
  padding: 5px;
}
.ficha__act { margin: 0 0 12px; font-size: 15px; color: var(--tinta-2); }
.ficha__dir {
  display: flex; gap: 7px;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r-m);
  padding: 12px 13px; margin: 0 0 12px; font-size: 15px; line-height: 1.45;
}
.ficha__acc { display: grid; gap: 8px; margin-bottom: 14px; }
.acc {
  display: grid;
  grid-template-columns: 34px 1fr 14px;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--linea);
  border-radius: 14px;
  padding: 14px 12px;
  text-decoration: none;
  color: var(--tinta);
  font-size: 15.5px;
  box-shadow: var(--sombra-s);
}
.acc:active { transform: translateY(1px); border-color: var(--rojo); }
.acc__ico { font-size: 21px; text-align: center; line-height: 1; }
.acc__txt b { font-weight: 800; }
.acc__txt i { font-style: normal; color: var(--tinta-2); font-size: 13.5px; }
.acc__flecha { color: #c9b8a4; font-size: 19px; }
.ficha__sinDatos {
  background: #fff8e6; border: 1px solid #f2dfae; border-left: 4px solid var(--oro);
  border-radius: var(--r-s); padding: 12px 13px; font-size: 14px; line-height: 1.5; margin: 0 0 14px;
}
.ficha__pie { font-size: 12px; color: var(--tinta-2); text-align: center; margin: 0 0 6px; }

/* ═══════════════════ AVISO FLOTANTE ═══════════════════ */
.aviso-copia {
  position: fixed;
  left: 50%;
  bottom: calc(var(--anunH) + 18px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  z-index: 120;
  background: var(--tinta);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.aviso-copia.visible { opacity: 1; transform: translate(-50%, 0); }

.aviso {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r-m);
  padding: 16px; margin: 16px 0; font-size: 15px;
}
.aviso a { color: var(--azul); font-weight: 700; }

/* Aviso bien visible cuando se está simulando otra fecha con ?ahora= */
.modoPrueba {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: #b45309;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  padding: 4px 8px;
  padding-top: calc(4px + env(safe-area-inset-top));
  pointer-events: none;
}

/* ═══════════════════ PANTALLAS GRANDES ═══════════════════ */
@media (min-width: 700px) {
  body { font-size: 18px; }
  .programa, .pie { max-width: 720px; margin-inline: auto; }
  .portada { padding: 34px 20px 38px; }
  .portada__titulo { width: min(100%, 520px); }
  .cuenta__bloque { min-width: 78px; }
  .cuenta__num { font-size: 34px; }
  .hoja__panel { max-width: 640px; margin-inline: auto; max-height: 90dvh; }
  .acto { grid-template-columns: 78px 1fr 16px; }
  .busca__resultados, .busca__sugerencias { max-width: 720px; margin-inline: auto; width: 100%; }
}
@media (min-width: 1000px) {
  .anun__logo { border-radius: 10px; }
}
