/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

:root {
  --color-bg: #0d0d0d;
  --color-bg-alt: #161616;
  --color-yellow: #f7c948;
  --color-yellow-dark: #e0ad1c;
  --color-white: #ffffff;
  --color-text-muted: #b8b8b8;
  --color-teal: #2ec4c6;
  --color-pink: #f2568c;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1120px;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 720px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 8px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 32px;
  font-size: 0.95rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn--primary {
  background: var(--color-yellow);
  color: #1a1400;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-yellow-dark);
  transform: translateY(-1px);
}

/* ===== Hero (crítico: el player debe verse sin scroll en mobile) ===== */
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: radial-gradient(circle at top, var(--color-bg-alt) 0%, var(--color-bg) 65%);
  padding: 16px 20px 24px;
}

.hero__inner {
  width: 100%;
  max-width: 420px;
  text-align: center;
  margin: 0 auto;
}

.hero__logo {
  width: auto;
  height: 72px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.hero__title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--color-white);
}

.hero__subtitle {
  font-size: 0.85rem;
  color: var(--color-yellow);
  font-weight: 700;
  margin: 4px 0 12px;
}

/* ===== Player widget (reproductor propio, sin depender del portal externo) ===== */
.player-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  text-align: left;
}

.player-widget__toggle {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-yellow);
  color: #1a1400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.player-widget__toggle:hover,
.player-widget__toggle:focus-visible {
  background: var(--color-yellow-dark);
  transform: scale(1.05);
}

.player-widget__toggle svg {
  width: 24px;
  height: 24px;
}

.player-widget__toggle .icon-loading {
  animation: player-spin 0.9s linear infinite;
}

@keyframes player-spin {
  to { transform: rotate(360deg); }
}

.player-widget__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.player-widget__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-pink);
}

.player-widget__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-pink);
  display: inline-block;
  animation: player-live-pulse 1.6s ease-in-out infinite;
}

@keyframes player-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.player-widget__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__cta {
  margin-top: 4px;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .hero__logo { height: 96px; }
  .hero__title { font-size: 2.2rem; }
  .hero__subtitle { font-size: 1rem; }
}

/* ===== Menú hamburguesa (overlay, no ocupa espacio en el flujo) ===== */
.menu-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: var(--color-bg-alt);
  z-index: 999;
  padding: 96px 32px 32px;
  transition: right 0.25s ease;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
}

.site-menu.is-open {
  right: 0;
}

.site-menu li {
  margin-bottom: 20px;
}

.site-menu a {
  font-weight: 700;
  font-size: 1.05rem;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--color-yellow);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Programación ===== */
.programacion {
  padding: 56px 0;
  background: var(--color-bg);
}

.programacion__day {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-yellow);
  margin: 40px 0 16px;
}

.programacion__day:first-of-type {
  margin-top: 0;
}

.programacion__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 8px;
}

@media (min-width: 560px) {
  .programacion__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .programacion__grid { grid-template-columns: repeat(4, 1fr); }
}

.programa-card {
  background: var(--color-bg-alt);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.programa-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-yellow);
}

.programa-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: linear-gradient(135deg, var(--color-teal), var(--color-pink));
}

.programa-card__body {
  padding: 14px 16px;
}

.programa-card__body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
}

.programa-card__body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===== Sobre nosotros ===== */
.sobre-nosotros {
  padding: 48px 0 64px;
  text-align: center;
  background: var(--color-bg-alt);
}

.sobre-nosotros p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.sobre-nosotros__team {
  width: 100%;
  max-width: 560px;
  border-radius: 14px;
  margin: 32px auto 0;
}

/* ===== Footer ===== */
.footer {
  background: #000000;
  padding: 48px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.footer__brand p {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-yellow);
}

.footer__contact p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer__contact a:hover {
  color: var(--color-yellow);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
}

.social-icon:hover {
  background: var(--color-yellow);
}

.social-icon:hover svg {
  fill: #1a1400;
}

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin: 0;
}

/* ===== Placeholder de imagen (cuando el asset real todavía no existe) ===== */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(
    45deg,
    var(--color-bg-alt),
    var(--color-bg-alt) 10px,
    #1f1f1f 10px,
    #1f1f1f 20px
  );
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px;
}
