/* ============================================================
   Los Informales — hoja de estilos
   Lenguaje visual: lona de toldo, farolillos, albero del ferial
   Paleta del cartel: celeste, blanco, rosa flamenco + albero
   ============================================================ */

:root {
  --celeste: #4fa8dc;
  --celeste-hondo: #2b7fb8;
  --celeste-claro: #bbdcf0;
  --cielo: #eaf4fb;
  --flamenco: #f2699c;
  --flamenco-suave: #fde7f0;
  --albero: #e8a63c;
  --albero-suave: #fbf1dc;
  --verde: #6cbf5a;
  --tinta: #1f3a4d;
  --tinta-suave: #5e7a8a;
  --lona: #fdfdfb;
  --card: #ffffff;
  --borde: 1px solid var(--celeste-claro);
  --sombra: 0 2px 12px rgba(43, 127, 184, 0.09);
  --radio: 14px;
  --fuente-display: "Titan One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --fuente-texto: "Karla", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fuente-texto);
  background: var(--lona);
  color: var(--tinta);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Cabecera: cartel sobre lona ---------- */

.hero {
  background: #fdfefe;
  padding-top: clamp(0.8rem, 2.5vw, 1.8rem);
  overflow: hidden;
}

.hero-img {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
}

/* cenefa de toldo: rayas + remate en ondas */
.valance {
  display: block;
  width: 100%;
  height: 42px;
  line-height: 0;
}
.valance svg { width: 100%; height: 100%; display: block; }

@media (max-width: 640px) {
  .valance { height: 24px; }
}

/* ---------- Navegación ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--lona) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--borde);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: var(--sombra); }

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--fuente-display);
  font-size: 1.05rem;
  color: var(--celeste-hondo);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--flamenco), #d94f82);
  margin-right: 0.15rem;
}

.nav-links { display: flex; gap: 0.15rem; }

.nav-links a {
  color: var(--tinta-suave);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--cielo);
  color: var(--celeste-hondo);
}

@media (max-width: 480px) {
  .nav-inner { padding: 0.5rem 0.75rem; }
  .nav-brand { font-size: 0.95rem; }
}

.nav-insta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--celeste-hondo);
  transition: background 0.25s ease;
}
.nav-insta:hover { background: var(--cielo); }
.nav-insta svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ---------- Farolillos ---------- */

.farolillos {
  position: relative;
  height: 96px;
  overflow: hidden;
  pointer-events: none;
}

.farolillos .cable {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 52px;
}
.farolillos .cable path {
  stroke: var(--tinta-suave);
  stroke-opacity: 0.35;
  stroke-width: 1.5;
  fill: none;
}

.farol {
  position: absolute;
  top: 0;
  width: 38px;
  height: 43px;
  margin-left: -19px;
  overflow: visible;
  transform-origin: 50% 0;
  animation: farol-entra 0.7s ease-out backwards,
             farol-mece 3.8s ease-in-out infinite alternate;
}

.farol:nth-child(2) { left: 10%; top: 22px; color: var(--celeste); animation-delay: 0.05s, 0s; }
.farol:nth-child(3) { left: 30%; top: 27px; color: var(--flamenco); animation-delay: 0.18s, 0.6s; }
.farol:nth-child(4) { left: 50%; top: 28px; color: var(--albero); animation-delay: 0.31s, 1.2s; }
.farol:nth-child(5) { left: 70%; top: 25px; color: var(--celeste); animation-delay: 0.44s, 0.9s; }
.farol:nth-child(6) { left: 90%; top: 19px; color: var(--flamenco); animation-delay: 0.57s, 0.3s; }


@keyframes farol-entra {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes farol-mece {
  from { rotate: -4.5deg; }
  to   { rotate: 4.5deg; }
}

@media (max-width: 640px) {
  .farolillos { height: 84px; }
  .farol:nth-child(6) { display: none; }
  .farol:nth-child(2) { left: 14%; top: 23px; }
  .farol:nth-child(3) { left: 38%; top: 28px; }
  .farol:nth-child(4) { left: 62%; top: 27px; }
  .farol:nth-child(5) { left: 86%; top: 20px; }
}

/* ---------- Secciones ---------- */

.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.6rem 1rem 0.6rem;
}

.eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--albero);
}

.section-title {
  font-family: var(--fuente-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  letter-spacing: 0.01em;
  color: var(--celeste-hondo);
  margin: 0 0 0.5rem;
}

.section-sub {
  color: var(--tinta-suave);
  margin: 0 0 1.4rem;
}

/* ---------- Cuenta atrás ---------- */

.countdown {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}


.countdown-inner {
  text-align: center;
  background: var(--card);
  border: var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.5rem 1.2rem 1.7rem;
  position: relative;
  overflow: hidden;
}
/* filo superior de lona rayada */
.countdown-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--celeste) 0 18px,
    var(--card) 18px 36px
  );
}

.countdown-label {
  font-weight: 700;
  color: var(--tinta);
  font-size: 1.05rem;
  margin: 0.4rem 0 1.1rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.count-cell {
  background: var(--cielo);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  min-width: 82px;
}

.count-num {
  font-family: var(--fuente-display);
  font-size: 1.9rem;
  color: var(--celeste-hondo);
  display: block;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.count-unit {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tinta-suave);
  font-weight: 700;
}

.countdown.en-feria .countdown-label { color: var(--flamenco); }

@media (max-width: 480px) {
  .countdown { padding: 0 0.75rem; }
  .countdown-inner { padding: 1.2rem 0.6rem 1.4rem; }
  .countdown-grid { gap: 0.4rem; }
  .count-cell { min-width: 66px; padding: 0.55rem 0.4rem; }
  .count-num { font-size: 1.5rem; }
  .count-unit { font-size: 0.62rem; }
}

/* ---------- Noticias ---------- */

.news-grid { margin-top: 1.2rem; }

.news-card {
  background: var(--card);
  border: var(--borde);
  border-top: 4px solid var(--celeste-claro);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(43, 127, 184, 0.16);
}
.news-card.destacada { border-top-color: var(--flamenco); }

.news-tag {
  align-self: flex-start;
  background: var(--cielo);
  color: var(--celeste-hondo);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}
.news-card.destacada .news-tag { background: var(--flamenco-suave); color: #c94b7c; }

.news-card h3 {
  margin: 0.2rem 0 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--tinta);
}

.news-card p { margin: 0; color: var(--tinta-suave); font-size: 0.95rem; }

.news-date { font-size: 0.8rem; color: var(--celeste-hondo); font-weight: 700; margin-top: auto; }

/* ---------- Socios ---------- */

.socio-destacado {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--card);
  border: 1.5px solid var(--flamenco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.3rem 1.4rem;
  margin-top: 1.2rem;
}

.socio-pulsera {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--flamenco-suave);
}
.socio-pulsera svg {
  width: 38px;
  height: 38px;
  stroke: #d0538a;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socio-texto {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.socio-foto { margin: 0; }
.socio-foto img {
  display: block;
  width: 100%;
  border-radius: 10px;
}
.socio-foto figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--tinta-suave);
  text-align: center;
}

.socio-destacado h3 {
  margin: 0 0 0.25rem;
  font-family: var(--fuente-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: #c94b7c;
}
.socio-destacado p { margin: 0; color: var(--tinta); font-size: 0.95rem; }

.socio-grid { margin-top: 1rem; }

.socio-card {
  background: var(--card);
  border: var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.2rem 1.3rem;
}
.socio-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--celeste-hondo);
}
.socio-card p { margin: 0; color: var(--tinta-suave); font-size: 0.93rem; }

@media (max-width: 480px) {
  .socio-destacado { padding: 1.1rem; gap: 0.9rem; }
  .socio-texto { gap: 0.85rem; }
  .socio-pulsera { width: 52px; height: 52px; }
  .socio-pulsera svg { width: 32px; height: 32px; }
  .socio-texto {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.socio-foto { margin: 0; }
.socio-foto img {
  display: block;
  width: 100%;
  border-radius: 10px;
}
.socio-foto figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--tinta-suave);
  text-align: center;
}

.socio-destacado h3 { font-size: 1.05rem; }
}

/* ---------- Carrusel ---------- */

.carrusel { position: relative; }

.carrusel-pista {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0.15rem;
  padding: 0.2rem 0.15rem 0.4rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carrusel-pista::-webkit-scrollbar { display: none; }

/* cada tarjeta ocupa casi todo el ancho y deja ver la siguiente */
.carrusel-pista > * {
  flex: 0 0 clamp(240px, 78%, 340px);
  scroll-snap-align: start;
}

/* difuminado a la derecha mientras queden tarjetas */
.carrusel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  bottom: 52px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--lona));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.carrusel.hay-mas::after { opacity: 1; }

.carrusel-barra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.carrusel-flecha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--celeste-claro);
  background: var(--card);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.carrusel-flecha:hover:not(:disabled) { background: var(--cielo); border-color: var(--celeste); }
.carrusel-flecha:disabled { opacity: 0.35; cursor: default; }
.carrusel-flecha svg {
  width: 17px; height: 17px;
  stroke: var(--celeste-hondo);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carrusel-puntos { display: flex; gap: 0.4rem; }

.carrusel-punto {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--celeste-claro);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.carrusel-punto.activo {
  width: 26px;
  border-radius: 999px;
  background: var(--celeste);
}

/* las tarjetas del carrusel se estiran a la misma altura */
.carrusel-pista .news-card,
.carrusel-pista .socio-card {
  height: auto;
}

@media (max-width: 480px) {
  .carrusel-pista > * { flex-basis: 84%; }
  .carrusel-flecha { display: none; }
}

/* ---------- Programa ---------- */

.day-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.4rem 0.15rem 0.9rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.day-tabs::-webkit-scrollbar { display: none; }

.day-tab {
  flex: 0 0 auto;
  border: 1.5px solid var(--celeste-claro);
  background: var(--card);
  color: var(--celeste-hondo);
  font-family: var(--fuente-texto);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.day-tab:hover { border-color: var(--celeste); }
.day-tab[aria-selected="true"] {
  background: var(--celeste);
  border-color: var(--celeste);
  color: #fff;
}
.day-tab.hoy::after {
  content: " · hoy";
  color: var(--albero);
  font-weight: 800;
}
.day-tab.hoy[aria-selected="true"]::after { color: #fff3da; }

.day-panel {
  background: var(--card);
  border: var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.4rem;
  animation: fadeSlide 0.35s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.event-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.85rem 0.25rem;
  border-radius: 10px;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.event-row + .event-row { border-top: 1px dashed var(--celeste-claro); }

.event-row.pasado { opacity: 0.42; }

.event-row.siguiente {
  background: var(--albero-suave);
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  border-top-color: transparent;
}
.event-row.siguiente .event-name::after {
  content: "próximo";
  margin-left: 0.5rem;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--albero);
}

.event-time {
  font-weight: 800;
  color: var(--celeste-hondo);
  font-size: 1.02rem;
  min-width: 3.4rem;
  font-variant-numeric: tabular-nums;
}

.event-name { font-weight: 600; }

.event-extra {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.event-cartel {
  font-family: var(--fuente-texto);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--celeste-claro);
  background: var(--card);
  color: var(--celeste-hondo);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.event-cartel:hover { background: var(--cielo); border-color: var(--celeste); }
.event-cartel:active { transform: scale(0.94); }

.dia-vacio { margin: 0.4rem 0.25rem; color: var(--tinta-suave); }

.event-type {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.event-type.directo { background: var(--flamenco-suave); color: #c94b7c; }
.event-type.dj      { background: #efe9fd; color: #7c5cd6; }
.event-type.comida  { background: #eaf7e6; color: #4d9b3c; }
.event-type.acto    { background: var(--cielo); color: var(--celeste-hondo); }

@media (max-width: 480px) {
  .day-panel { padding: 1rem; }
  .event-row {
    grid-template-columns: auto 1fr;
    gap: 0.2rem 0.75rem;
  }
  .event-name {
    grid-column: 1 / -1;
    grid-row: 2;
    line-height: 1.35;
  }
  .event-extra {
    grid-column: 2;
    justify-self: end;
    flex-direction: row-reverse;
    gap: 0.4rem;
  }
  .event-cartel { padding: 0.3rem 0.65rem; }
}

/* ---------- Lightbox de carteles ---------- */

.cartel-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 30, 42, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  animation: fadeIn 0.25s ease;
  cursor: zoom-out;
}
.cartel-modal[hidden] { display: none; }

.cartel-modal img {
  max-width: min(560px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  animation: cartelZoom 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
  cursor: default;
}

@keyframes cartelZoom {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.cartel-close {
  position: absolute;
  top: calc(0.9rem + env(safe-area-inset-top));
  right: 0.9rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cartel-close:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- Menú ---------- */

.pescaito-card {
  background: var(--card);
  border: 1.5px solid var(--albero);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.4rem;
  margin: 1.2rem 0;
  position: relative;
  overflow: hidden;
}
.pescaito-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  background: repeating-linear-gradient(90deg, var(--albero) 0 16px, var(--card) 16px 32px);
}

.pescaito-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.4rem 0 0.9rem;
}
.pescaito-head h3 {
  margin: 0;
  font-family: var(--fuente-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--celeste-hondo);
}
.pescaito-precio {
  font-weight: 800;
  color: var(--albero);
  font-size: 1.05rem;
  white-space: nowrap;
}

.pescaito-horario {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
}

.pescaito-hito {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  background: var(--albero-suave);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font-size: 0.88rem;
  color: var(--tinta);
}
.pescaito-hito b {
  font-weight: 800;
  color: #b9791d;
  font-variant-numeric: tabular-nums;
}

.pescaito-bloques {
  display: grid;
  gap: 1rem 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.pescaito-bloque h4 {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--albero);
}
.pescaito-bloque ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.93rem;
  color: var(--tinta);
}
.pescaito-bloque li { padding: 0.14rem 0; }

.pescaito-infantil {
  margin: 1rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--celeste-claro);
  font-size: 0.88rem;
  color: var(--tinta-suave);
}

.menu-acordeon { display: grid; gap: 0.6rem; }

.menu-cat {
  background: var(--card);
  border: var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}
.menu-cat summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.2rem;
  font-weight: 800;
  color: var(--celeste-hondo);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  transition: background 0.2s ease;
}
.menu-cat summary::-webkit-details-marker { display: none; }
.menu-cat summary:hover { background: var(--cielo); }
.menu-cat summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2.5px solid var(--celeste);
  border-bottom: 2.5px solid var(--celeste);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.menu-cat[open] summary::after { transform: rotate(225deg); }

.menu-n {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--tinta-suave);
  background: var(--cielo);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}

.menu-items {
  list-style: none;
  margin: 0;
  padding: 0.2rem 1.2rem 1rem;
}
.menu-items li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.34rem 0;
  font-size: 0.93rem;
}
.menu-items li + li { border-top: 1px dashed var(--celeste-claro); }
.menu-precio {
  font-weight: 800;
  color: var(--celeste-hondo);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.menu-nota {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--tinta-suave);
}

/* ---------- Resumen de la carta en la portada ---------- */

.carta-aviso {
  background: var(--card);
  border: var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.4rem;
  margin-top: 1.2rem;
  position: relative;
  overflow: hidden;
}
.carta-aviso::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  background: repeating-linear-gradient(90deg, var(--albero) 0 16px, var(--card) 16px 32px);
}

.carta-resumen {
  margin: 0.5rem 0 0.7rem;
  font-size: 1rem;
  color: var(--tinta);
}

.carta-botones {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.carta-alergenos {
  margin: 0 0 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--celeste-claro);
  font-size: 0.85rem;
  color: var(--tinta-suave);
}

/* enlace de vuelta en la página de la carta */
.pagina-enlace {
  margin: 1.4rem 0 0;
  text-align: center;
}

.volver {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--celeste-hondo);
  text-decoration: none;
}
.volver:hover { text-decoration: underline; }

/* ---------- Alérgenos ---------- */

.menu-nota-alergenos {
  margin: 0 0 0.6rem;
  font-weight: 700;
  color: var(--tinta);
}

.alergenos-leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--tinta-suave);
}
.alergenos-leyenda span { display: inline-flex; align-items: center; gap: 0.35rem; }

.menu-nombre {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.alergenos { display: inline-flex; gap: 0.2rem; }

.alergeno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 15px;
  padding: 0 0.22rem;
  border-radius: 5px;
  background: var(--cielo);
  border: 1px solid var(--celeste-claro);
  color: var(--celeste-hondo);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: help;
}

/* ---------- Patrocinadores ---------- */

.sponsor-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin-top: 1.2rem;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  text-align: center;
  text-decoration: none;
  background: var(--card);
  border: var(--borde);
  border-radius: var(--radio);
  padding: 1.1rem 1rem 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.sponsor-card:hover,
.sponsor-card--ficha:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra);
}

/* tarjeta con ficha: clicable */
.sponsor-card--ficha {
  font-family: var(--fuente-texto);
  cursor: pointer;
  border-color: var(--celeste);
  position: relative;
}
.sponsor-card--ficha:active { transform: scale(0.98); }

.sponsor-vermas {
  margin-top: 0.6rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--celeste-hondo);
  background: var(--cielo);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
.sponsor-card--ficha:hover .sponsor-vermas {
  background: var(--celeste);
  color: #fff;
}

/* alto común para que todos los logos queden alineados, sin marco propio */
.sponsor-marco {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
  margin-bottom: 0.55rem;
}

.sponsor-logo {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.sponsor-nombre {
  font-weight: 800;
  color: var(--celeste-hondo);
  font-size: 0.95rem;
  line-height: 1.25;
}

.sponsor-detalle {
  font-size: 0.83rem;
  line-height: 1.35;
  color: var(--tinta-suave);
}

@media (max-width: 480px) {
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .sponsor-card { padding: 0.85rem 0.6rem 0.95rem; }
  .sponsor-marco { height: 76px; margin-bottom: 0.45rem; }
  .sponsor-nombre { font-size: 0.88rem; }
  .sponsor-detalle { font-size: 0.73rem; }
}

/* ---------- Ficha de patrocinador ---------- */

.ficha-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 30, 42, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  animation: fadeIn 0.25s ease;
}
.ficha-modal[hidden] { display: none; }

.ficha-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radio);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  padding: 1.8rem 1.6rem 1.6rem;
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  animation: cartelZoom 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.ficha-close {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--cielo);
  color: var(--tinta-suave);
  font-size: 0.9rem;
  cursor: pointer;
}
.ficha-close:hover { background: var(--celeste-claro); }

.ficha-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  margin-bottom: 1rem;
}
.ficha-logo img {
  max-height: 100%;
  max-width: 88%;
  object-fit: contain;
}

.ficha-nombre {
  margin: 0 0 0.15rem;
  font-family: var(--fuente-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--celeste-hondo);
  text-align: center;
}

.ficha-detalle {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--albero);
}

.ficha-resumen {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--tinta);
}

.ficha-servicios {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}
.ficha-servicios li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.4rem;
  font-size: 0.92rem;
  color: var(--tinta-suave);
}
.ficha-servicios li + li { border-top: 1px dashed var(--celeste-claro); }
.ficha-servicios li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.95rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--celeste);
}

.ficha-enlaces {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ficha-enlace {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: var(--borde);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--celeste-hondo);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ficha-enlace:hover { background: var(--cielo); border-color: var(--celeste); }
.ficha-enlace svg {
  width: 19px; height: 19px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 480px) {
  .ficha-card { padding: 1.5rem 1.1rem 1.2rem; }
  .ficha-logo { height: 92px; }
  .ficha-nombre { font-size: 1.15rem; }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--fuente-texto);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--celeste);
  color: #fff;
}
.btn-primary:hover { background: var(--celeste-hondo); }

.btn-ghost {
  background: transparent;
  border-color: var(--celeste-claro);
  color: var(--celeste-hondo);
}
.btn-ghost:hover { background: var(--cielo); }

.btn-small { font-size: 0.85rem; padding: 0.45rem 0.95rem; }

/* ---------- Pie ---------- */

.footer {
  margin-top: 2.4rem;
  padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
  text-align: center;
  background: var(--cielo);
  color: var(--tinta-suave);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.footer p { margin: 0; }

@media (max-width: 767px) {
  .footer {
    margin-top: 1.8rem;
    padding: 1.2rem 1rem 1.2rem;
    gap: 0.6rem;
  }
  .footer-insta { padding: 0.4rem 0.9rem; font-size: 0.92rem; }
  .credito { font-size: 0.82rem; }
}

.credito {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.credito span {
  color: var(--celeste-hondo);
  font-weight: 800;
}

.footer-insta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--celeste-hondo);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--celeste-claro);
  background: var(--card);
  transition: background 0.25s ease;
}
.footer-insta:hover { background: var(--cielo); }
.footer-insta svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ---------- Hoja iOS ---------- */

.ios-sheet {
  position: fixed;
  inset: 0;
  background: rgba(31, 58, 77, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.3s ease;
}
.ios-sheet[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.ios-sheet-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radio) var(--radio) 0 0;
  padding: 1.6rem 1.6rem calc(1.6rem + env(safe-area-inset-bottom));
  width: min(560px, 100vw);
  animation: sheetUp 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.ios-sheet-card h3 {
  margin: 0 0 0.8rem;
  color: var(--celeste-hondo);
  font-weight: 800;
}
.ios-sheet-card ol { margin: 0; padding-left: 1.3rem; }
.ios-sheet-card li { margin-bottom: 0.5rem; }
.ios-icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  stroke: var(--celeste-hondo);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ios-close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  border: none;
  background: var(--cielo);
  color: var(--tinta-suave);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ---------- Animaciones de aparición ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.reveal .news-card,
.reveal .sponsor-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible .news-card,
.reveal.visible .sponsor-card { opacity: 1; transform: none; }
.reveal.visible :is(.news-card, .sponsor-card):nth-child(1) { transition-delay: 0.08s; }
.reveal.visible :is(.news-card, .sponsor-card):nth-child(2) { transition-delay: 0.18s; }
.reveal.visible :is(.news-card, .sponsor-card):nth-child(3) { transition-delay: 0.28s; }
.reveal.visible :is(.news-card, .sponsor-card):nth-child(n+4) { transition-delay: 0.38s; }

/* ---------- Barra inferior (móvil) ---------- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: var(--borde);
  padding: 0.3rem 0.5rem calc(0.3rem + env(safe-area-inset-bottom));
}

.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-height: 48px;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.25s ease, transform 0.2s ease;
}
.tabbar-item:active { transform: scale(0.94); }

.tabbar-icon {
  width: 22px;
  height: 22px;
  stroke: var(--tinta-suave);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease;
}

.tabbar-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--tinta-suave);
  transition: color 0.25s ease;
}

.tabbar-item.active { background: var(--cielo); }
.tabbar-item.active .tabbar-label { color: var(--celeste-hondo); }
.tabbar-item.active .tabbar-icon { stroke: var(--celeste-hondo); }

@media (max-width: 767px) {
  .tabbar { display: flex; }
  .nav-links { display: none; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .ios-sheet-card { padding-bottom: calc(1.6rem + 70px + env(safe-area-inset-bottom)); }
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal .news-card,
  .reveal .sponsor-card { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
