:root {
  --navy-950: #050f24;
  --navy-900: #0a1c3f;
  --navy-800: #0f2b5c;
  --blue-700: #14408a;
  --blue-600: #1d5fd1;
  --blue-500: #3b82f6;
  --blue-300: #93c5fd;
  --sky-200: #bae6fd;
  --ice-100: #e6f0ff;
  --ice-50: #f3f8ff;
  --white: #ffffff;
  --text: #13213d;
  --muted: #51607e;

  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(10, 28, 63, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* Al saltar desde el menú, parte del margen de arriba de la sección queda debajo del menú (72px), así el título no queda tan abajo */
html { scroll-behavior: smooth; scroll-padding-top: 30px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 0.6em; color: var(--navy-900); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.7em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; font-family: inherit;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--sm { padding: 0.55em 1.2em; font-size: 0.88rem; }
.btn--light { background: var(--white); color: var(--navy-900); box-shadow: 0 8px 20px -8px rgba(0,0,0,.35); }
.btn--light:hover { background: var(--sky-200); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--primary { background: var(--blue-600); color: var(--white); }
.btn--primary:hover { background: var(--blue-700); }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700;
  color: var(--blue-300); margin-bottom: 0.9em;
}
.eyebrow--dark { color: var(--blue-600); }

/* ---------- Topbar y header ---------- */
.topbar { background: var(--navy-950); color: var(--blue-300); font-size: 0.82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0.45rem; flex-wrap: wrap; }
.topbar__address { display: flex; align-items: center; gap: 0.6rem; color: var(--ice-100); font-size: 0.92rem; transition: color 0.25s; }
.topbar__address strong { color: var(--white); font-weight: 800; letter-spacing: 0.02em; }
.topbar__address:hover { color: var(--white); }
.topbar__pin {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--blue-600); color: var(--white); box-shadow: 0 4px 12px -4px rgba(0,0,0,.5);
  transition: transform 0.25s var(--ease);
}
.topbar__pin svg { width: 18px; height: 18px; fill: currentColor; }
.topbar__address:hover .topbar__pin { transform: translateY(-2px) scale(1.12); }

/* ---------- Redes sociales ---------- */
.social { display: flex; align-items: center; gap: 0.55rem; }
.social__label { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice-100); margin-right: 0.3rem; }
.social__link {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--white);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, filter 0.25s;
}
.social__link svg { width: 18px; height: 18px; fill: currentColor; }
.social__link:hover { transform: translateY(-2px) scale(1.12); filter: brightness(1.1); box-shadow: 0 8px 18px -6px rgba(0,0,0,.6); }
.social__link--fb { background: #1877f2; }
.social__link--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social__link--yt { background: #ff0000; }
.social__link--tt { background: #000; box-shadow: -2px -1px 0 #25f4ee inset, 2px 1px 0 #fe2c55 inset, 0 4px 12px -4px rgba(0,0,0,.5); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 28, 63, 0.97);
  transition: box-shadow 0.3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 0.7rem; color: var(--white); }
.logo__mark {
  width: 54px; height: 54px; object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.45));
  transition: transform 0.4s var(--ease);
}
.logo:hover .logo__mark { transform: scale(1.06) rotate(-2deg); }
.logo__text { display: grid; font-family: var(--font-title); font-size: 1.1rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.01em; }
.logo__text strong, .logo__text small { font: inherit; }

.nav { display: flex; align-items: center; gap: 1.6rem; color: var(--ice-100); font-weight: 600; font-size: 0.93rem; }
.nav > a:not(.btn) { position: relative; padding-block: 0.4rem; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--blue-300); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: transform 0.3s, opacity 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  min-height: min(88vh, 760px); display: flex; align-items: center;
  background: var(--navy-900);
}

/* Carrusel de fotos de fondo */
.hero__slides { position: absolute; inset: -6% 0; will-change: transform; }
.hero__slide {
  position: absolute; inset: 0;
  background: var(--img) center var(--pos, 50%) / cover no-repeat;
  opacity: 0; transform: scale(1.12);
  transition: opacity 1.6s ease, transform 8s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }

/* Fotos verticales en pantallas anchas: se muestran enteras a la derecha y se funden con el azul */
@media (min-width: 961px) {
  .hero__slide--portrait { background: var(--navy-900); }
  .hero__slide--portrait::after {
    content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 58%;
    background: var(--img) center var(--pos, 50%) / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  }
}

/* Velo azul: más denso a la izquierda, donde va el texto */
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,15,36,.94) 0%, rgba(10,28,63,.82) 38%, rgba(15,43,92,.45) 72%, rgba(20,64,138,.3) 100%),
    linear-gradient(0deg, rgba(5,15,36,.75) 0%, transparent 35%);
}

.hero__dots {
  position: absolute; z-index: 2; right: max(1.25rem, (100% - 1160px) / 2); bottom: 5.5rem;
  display: flex; gap: 0.4rem;
}
.hero__dot {
  position: relative; width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px;
  background: rgba(255,255,255,.28); cursor: pointer; overflow: hidden;
}
.hero__dot::after {
  content: ""; position: absolute; inset: 0; background: var(--white);
  transform: scaleX(0); transform-origin: left;
}
.hero__dot.is-active::after { animation: dot-fill var(--slide-time, 6s) linear forwards; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero__dot:focus-visible { outline: 2px solid var(--sky-200); outline-offset: 4px; }
.hero__content { position: relative; max-width: 760px; padding-block: 4.5rem 8rem; margin-left: max(1.25rem, (100% - 1160px) / 2); }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--sky-200); }
.hero__lead { font-size: 1.15rem; color: var(--ice-100); max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Contador ---------- */
.countdown {
  display: inline-flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 2.6rem;
  padding: 1.1rem 1.2rem 1.1rem 1.6rem; border-radius: 20px;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-900));
  border: 1px solid rgba(147,197,253,.35); border-left: 4px solid var(--sky-200);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.65);
}
.countdown [hidden] { display: none; }
.countdown__info { display: grid; gap: 0.1rem; }
.countdown__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sky-200); }
.countdown__name { font-family: var(--font-title); font-size: 1.3rem; color: var(--white); font-weight: 700; }
.countdown__when { font-size: 0.9rem; color: var(--ice-100); }
.countdown__clock { display: flex; gap: 0.5rem; }
.countdown__unit {
  display: grid; justify-items: center; min-width: 62px; padding: 0.55rem 0.4rem 0.45rem;
  border-radius: 12px; background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px -6px rgba(29,95,209,.7);
}
.countdown__unit span {
  font-family: var(--font-title); font-size: 1.8rem; font-weight: 700; line-height: 1; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.countdown__unit small { margin-top: 0.3rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice-100); }
.countdown__live {
  display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1.3rem; border-radius: 999px;
  background: rgba(255,77,77,.14); border: 1px solid rgba(255,77,77,.4); color: var(--white); font-weight: 700;
  transition: background 0.25s;
}
.countdown__live:hover { background: rgba(255,77,77,.24); }

/* ---------- Horarios ---------- */
.schedule { margin-top: -3.5rem; position: relative; z-index: 2; }
.schedule__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.schedule__item {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow);
  display: grid; gap: 0.2rem; border-top: 4px solid var(--blue-300);
}
.schedule__item--main { background: var(--blue-600); color: var(--white); border-top-color: var(--sky-200); }
.schedule__day { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--blue-600); }
.schedule__item--main .schedule__day { color: var(--sky-200); }
.schedule__time { font-family: var(--font-title); font-size: 1.7rem; font-weight: 700; }
.schedule__name {
  justify-self: start; margin-top: 0.6rem; padding: 0.45rem 1rem; border-radius: 999px;
  background: var(--ice-100); color: var(--blue-700); font-size: 1.05rem; font-weight: 800; letter-spacing: 0.01em;
}
.schedule__item--main .schedule__name { background: var(--white); color: var(--blue-700); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7rem); }
/* Contacto es la última sección: ocupa al menos toda la pantalla para que el salto desde el menú llegue hasta ella */
/* La portada no tiene ese margen: debe quedar justo debajo del menú */
#inicio { scroll-margin-top: 42px; }
#contacto { display: grid; align-content: center; min-height: calc(100svh - 30px); }
.section--tint { background: var(--ice-50); }
.section--dark { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: var(--ice-100); }
.section--dark h2 { color: var(--white); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head p:last-child { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__text p { color: var(--muted); }
.section--dark .split__text p { color: var(--blue-300); }

.photo {
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-800)); color: rgba(255,255,255,.7);
  font-weight: 600; box-shadow: var(--shadow);
}
.photo--tall { aspect-ratio: 4 / 5; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% center; }

/* ---------- Sedes ---------- */
.sedes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.sedes__label {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 1.6rem; margin: 3.2rem 0 1rem;
  font-family: var(--font-title); font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.15; color: var(--navy-900);
  text-align: center; justify-content: center;
}
/* Líneas finas a los costados de la frase (en celular se ocultan) */
.sedes__label::before, .sedes__label::after {
  content: ""; flex: 1; max-width: 200px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-500));
}
.sedes__label::after { background: linear-gradient(270deg, transparent, var(--blue-500)); }
.sedes__label em { font-style: italic; color: var(--blue-600); }
@media (max-width: 640px) {
  .sedes__label { gap: 0; margin-top: 2.4rem; }
  .sedes__label::before, .sedes__label::after { display: none; }
  .sedes__label em { display: block; }
}
.sede {
  position: relative; display: grid; align-content: start; gap: 0.15rem; padding: 1.6rem 1.6rem 1.4rem 1.6rem;
  background: var(--white); border: 1px solid var(--ice-100); border-radius: var(--radius); overflow: hidden;
  transition: translate 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.js-anim .sede[data-anim] {
  transition: opacity 1.4s var(--ease) var(--delay), transform 1.6s var(--ease) var(--delay),
    translate 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.sede::before {
  content: ""; width: 34px; height: 34px; margin-bottom: 0.9rem; border-radius: 10px;
  background: var(--ice-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231d5fd1'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
a.sede:hover { translate: 0 -5px; box-shadow: var(--shadow); border-color: var(--blue-300); }
.sede__city { font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; color: var(--navy-900); line-height: 1.2; }
.sede__prov { color: var(--muted); font-size: 0.92rem; }
.sede__link { margin-top: 0.9rem; font-size: 0.82rem; font-weight: 700; color: var(--blue-600); transition: letter-spacing 0.3s var(--ease); }
.sede:hover .sede__link { letter-spacing: 0.02em; }

.sede--central {
  grid-column: 1 / -1; min-height: 240px; align-content: end; padding: 2.2rem 2.2rem 2.2rem 6.2rem;
  background: linear-gradient(150deg, var(--blue-600), var(--navy-900)); border: 0; color: var(--white);
}
.sede--central::before { position: absolute; top: 2.2rem; left: 2.2rem; width: 48px; height: 48px; margin: 0; background-size: 24px; background-color: rgba(255,255,255,.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bae6fd'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.sede--central::after {
  content: ""; position: absolute; right: -60px; top: 50%; translate: 0 -50%; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(186,230,253,.2); box-shadow: 0 0 0 40px rgba(186,230,253,.04), 0 0 0 80px rgba(186,230,253,.03);
}
.sede__tag { justify-self: start; margin-bottom: 0.8rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--sky-200); color: var(--navy-900); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.sede--central .sede__city { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--white); }
.sede--central .sede__prov { color: var(--sky-200); font-size: 1.05rem; }
.sede--central .sede__link { color: var(--white); }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); background: var(--navy-950); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Radio ---------- */
.radio {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(120deg, var(--ice-100), var(--sky-200));
}
.radio__logo {
  width: clamp(110px, 12vw, 150px); height: auto; aspect-ratio: 1; border-radius: 24px;
  box-shadow: 0 18px 36px -16px rgba(10,28,63,.45);
}
.radio__info h2 { margin-bottom: 0.4em; }
.radio__info > p:not(.eyebrow) { color: var(--muted); margin: 0 0 1.2rem; max-width: 460px; }
.radio__links { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.radio__watch { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.6rem; margin-top: 1rem; font-size: 0.86rem; font-weight: 600; color: var(--navy-800); }
.watch {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.85rem 0.35rem 0.55rem; border-radius: 999px;
  font-weight: 700; font-size: 0.82rem; transition: transform 0.25s var(--ease), filter 0.25s;
}
.watch svg { width: 16px; height: 16px; fill: currentColor; }
.watch:hover { transform: translateY(-2px); filter: brightness(1.08); }
.watch--yt { background: #ff0000; color: var(--white); }
.watch--kick { background: #53fc18; color: #000; }
.btn--outline { border-color: var(--blue-600); color: var(--blue-600); }
.btn--outline:hover { background: var(--blue-600); color: var(--white); }
.radio__player { display: flex; align-items: center; gap: 1.3rem; background: var(--navy-900); padding: 1rem 1.6rem 1rem 1rem; border-radius: 999px; }
.radio__btn {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.2rem;
  background: var(--blue-500); color: var(--white); transition: transform 0.2s, background 0.2s;
}
.radio__btn:hover { background: var(--blue-600); transform: scale(1.06); }
.radio__wave { display: flex; align-items: center; gap: 4px; height: 30px; }
.radio__wave span { width: 4px; height: 6px; border-radius: 4px; background: var(--blue-300); }
.radio__wave.is-playing span { animation: wave 1s ease-in-out infinite; }
.radio__wave.is-playing span:nth-child(2) { animation-delay: 0.1s; }
.radio__wave.is-playing span:nth-child(3) { animation-delay: 0.25s; }
.radio__wave.is-playing span:nth-child(4) { animation-delay: 0.4s; }
.radio__wave.is-playing span:nth-child(5) { animation-delay: 0.15s; }
.radio__wave.is-playing span:nth-child(6) { animation-delay: 0.3s; }
.radio__wave.is-playing span:nth-child(7) { animation-delay: 0.05s; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 28px; } }
.radio__status { color: var(--ice-100); font-size: 0.88rem; font-weight: 600; min-width: 110px; }

/* ---------- Ofrendas ---------- */
.give { max-width: 560px; margin-inline: auto; }
.give__card { background: var(--white); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); border-top: 4px solid var(--blue-600); }
.give dl { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.2rem; margin: 0 0 1rem; }
.give dt { font-weight: 700; color: var(--blue-600); }
.give dd { margin: 0; word-break: break-all; }
.copy { cursor: pointer; border-bottom: 1px dashed var(--blue-300); width: fit-content; }
.copy:hover { color: var(--blue-600); }
.give__hint { font-size: 0.84rem; color: var(--muted); margin: 0; }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 1.1rem; background: var(--ice-50); padding: 2.2rem; border-radius: var(--radius); border: 1px solid var(--ice-100); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button:disabled { opacity: .65; cursor: wait; }
.form label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--navy-900); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 0.8rem 1rem; border-radius: 10px;
  border: 1.5px solid #cfdcf3; background: var(--white); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
.form textarea { resize: vertical; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact__list li { display: grid; color: var(--blue-300); }
.contact__list strong { color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.contact__list a { justify-self: start; border-bottom: 1px solid rgba(147,197,253,.4); transition: color 0.2s, border-color 0.2s; }
.contact__list a:hover { color: var(--white); border-color: var(--white); }
.contact__map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.8) hue-rotate(-10deg); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--blue-300); font-size: 0.88rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.6rem; flex-wrap: wrap; }
.footer a:hover { color: var(--white); }
.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__brand img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.footer__credit {
  padding-block: 0.9rem 1.1rem; border-top: 1px solid rgba(147,197,253,.12);
  text-align: center; font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(147,197,253,.7);
}
.footer__credit strong { color: var(--ice-100); font-weight: 700; letter-spacing: 0.06em; }
.footer__credit sup { font-size: 0.6em; font-weight: 600; margin-left: 1px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 70; translate: -50% 20px; opacity: 0; pointer-events: none;
  background: var(--navy-900); color: var(--white); padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 600;
  transition: opacity 0.3s, translate 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; translate: -50% 0; }

/* ---------- Animaciones ---------- */
.progress {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--sky-200));
  transform: scaleX(0); transform-origin: left;
}

.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; position: relative;
}
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3); opacity: 0; } }


/* Solo se ocultan los elementos si el JS está activo, así el sitio nunca queda en blanco */
.js-anim .hero__content > * { opacity: 0; animation: hero-in 0.9s var(--ease) forwards; }
.js-anim .hero__content > :nth-child(1) { animation-delay: 0.1s; }
.js-anim .hero__content > :nth-child(2) { animation-delay: 0.22s; }
.js-anim .hero__content > :nth-child(3) { animation-delay: 0.38s; }
.js-anim .hero__content > :nth-child(4) { animation-delay: 0.52s; }
.js-anim .hero__content > :nth-child(5) { animation-delay: 0.68s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Aparición al bajar: fundido suave con un zoom leve, como las fotos del carrusel de la portada */
.js-anim [data-anim] {
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js-anim [data-anim].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .hero__content > *, .js-anim [data-anim] { opacity: 1; transform: none; animation: none; transition: none; }
  .live-dot::after, .hero__dot.is-active::after { animation: none; }
  .hero__dot.is-active::after { transform: scaleX(1); }
  .hero__slide { transform: none; transition: opacity 1.6s ease; }
  .radio__wave.is-playing span { animation: none; height: 18px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: 1rem 1.25rem 1.5rem; max-height: calc(100vh - 72px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.25s, visibility 0.25s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav > a { padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); display: block; }
  .nav > a::after { display: none; }
  .nav .btn { margin-top: 1rem; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .split, .contact { grid-template-columns: 1fr; }
  .radio { grid-template-columns: auto 1fr; }
  .radio__player { grid-column: 1 / -1; justify-self: start; }
  .sedes { grid-template-columns: repeat(2, 1fr); }
  .split--reverse .split__media { order: 0; }
  .hero__overlay { background: linear-gradient(180deg, rgba(5,15,36,.82) 0%, rgba(10,28,63,.78) 60%, rgba(5,15,36,.9) 100%); }
}

@media (max-width: 640px) {
  .schedule__grid { grid-template-columns: 1fr; }
  .sede { padding: 1.2rem; }
  .sede__city { font-size: 1.15rem; }
  .sede--central { padding: 5.4rem 1.6rem 1.6rem; min-height: 0; }
  .sede--central::before { top: 1.6rem; left: 1.6rem; }
  .topbar__inner { justify-content: center; row-gap: 0.5rem; padding-block: 0.6rem; }
  .topbar__address { font-size: 0.85rem; }
  .radio { grid-template-columns: 1fr; }
  .radio__logo { width: 96px; border-radius: 18px; }
  .radio__player { width: 100%; justify-self: stretch; }
  .radio__links { flex-direction: column; }
  .radio__watch span { flex-basis: 100%; }
  .countdown { display: grid; gap: 1rem; width: 100%; padding: 1.1rem; }
  .hero__dots { left: 1.25rem; right: auto; bottom: 4.6rem; }
  .hero__dot { width: 18px; }
  .countdown__clock { justify-content: space-between; }
  .countdown__unit { flex: 1; min-width: 0; }
}
