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

:root {
  --color-text: #f5f5f5;
  --color-bg: #060606;
  --color-bg-card: #111111;
  --color-bg-nav: #0a0a0a;
  --color-accent: #2196f3;
  --color-accent-hover: #4466ff;
  --color-border: #222222;
  --color-muted: #2196f3;
  --font-main: 'Segoe UI', 'Arial', sans-serif;
  --footer-height: 124px;
  --nav-height: 70px;
}

html, body {
  height: 100%;
  background-color: #000000;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--color-text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }
img { display: block; max-width: 100%; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--color-accent);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 1000;
  gap: 1rem;
}

/* Menú izquierda */
.navbar__menu {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  align-items: center;
}
.navbar__menu li button,
.navbar__menu li a {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-main); font-size: 0.81rem; font-weight: 600;
  color: var(--color-text); padding: 0.45rem 0.9rem; border-radius: 4px;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s; display: block;
  white-space: nowrap;
}
.navbar__menu li button:hover,
.navbar__menu li a:hover,
.navbar__menu li button.active,
.navbar__menu li a.active {
  background-color: var(--color-accent);
  color: #fff;
}

/* Slogan centro — muy destacado con animación */
@keyframes sloganGlow {
  0%   { text-shadow: 0 0 4px rgba(245,245,245,0.1), 0 2px 10px rgba(0,0,0,0.9); opacity: 0.7; letter-spacing: 0.03em; }
  50%  { text-shadow: 0 0 20px rgba(245,245,245,1), 0 0 40px rgba(245,245,245,0.8), 0 0 80px rgba(0,21,252,0.6); opacity: 1; letter-spacing: 0.06em; }
  100% { text-shadow: 0 0 4px rgba(245,245,245,0.1), 0 2px 10px rgba(0,0,0,0.9); opacity: 0.7; letter-spacing: 0.03em; }
}
.navbar__slogan {
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 900;
  font-style: italic;
  color: #f5f5f5;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 1rem;
  animation: sloganGlow 3s ease-in-out infinite;
  position: relative;
  left: 4%;
  text-align: left;
  }

/* Link Quiénes somos navbar */
.navbar__quienes {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--color-accent);
  background: rgba(33,150,243,0.1);
  transition: background 0.2s, color 0.2s;
}
.navbar__quienes:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Link celular derecha */
.navbar__mobile-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--color-text);
  background: rgba(0,21,252,0.15);
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  transition: background 0.2s, color 0.2s;
}
.navbar__mobile-link:hover {
  background: var(--color-accent);
  color: #fff;
}
.navbar__mobile-link svg { flex-shrink: 0; }

/* Hamburger mobile */
.navbar__hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.navbar__hamburger span {
  display: block; width: 26px; height: 3px;
  background: var(--color-text); border-radius: 2px; transition: all 0.3s;
}

/* ============ CONTENIDO ============ */
.main-content {
  margin-top: var(--nav-height);
  margin-bottom: var(--footer-height);
  min-height: calc(100vh - var(--nav-height) - var(--footer-height));
  background: transparent;
  position: relative;
  z-index: 1;
}
.section {
  display: none; padding: 2.5rem 2rem;
  max-width: 100%;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
  background: rgba(0,0,0,0.88);
  position: relative;
  z-index: 1;
}
#section-quienes {
  background: rgba(0,0,0,0.92);
  max-width: 100%;
  min-height: calc(100vh - var(--nav-height) - var(--footer-height));
  padding: 3rem;
}
.section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============ HOME ============ */
.home-hero {
  position: relative; width: 100%; min-height: calc(100vh - var(--nav-height) - var(--footer-height));
  border-radius: 0; overflow: visible;
  display: flex; align-items: center; justify-content: center;
  background: none;
}
.home-hero__bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}
.home-hero__content { position: relative; z-index: 1; text-align: center; padding: 2rem; }
.home-hero__title {
  font-size: 3.5rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.06em; text-shadow: 0 2px 24px rgba(0,0,0,0.9); line-height: 1.1;
}
.home-hero__title span { color: var(--color-accent); }

/* ============ NOSOTROS - ancho completo ============ */
#section-nosotros.section {
  max-width: 100%;
  padding: 3rem 3rem;
}
#section-programacion.section {
  padding-bottom: 8rem;
  background: rgba(0,0,0,0.88);
  max-width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}
#section-home.section {
  padding-bottom: 6rem;
  background: transparent;
}
.nosotros-full {
  width: 100%;
}
.nosotros-full h2 {
  font-size: 2rem; font-weight: 800; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 1.2rem; letter-spacing: 0.05em;
  border-left: 4px solid var(--color-accent); padding-left: 0.75rem;
}
.nosotros-full p {
  color: var(--color-muted); font-size: 1.05rem;
  line-height: 1.9; margin-bottom: 1rem;
  max-width: 100%;
}
.nosotros-full a { color: var(--color-accent-hover); }

/* ============ HOME - QUIÉNES SOMOS ============ */
.home-quienes {
  margin-top: 2rem;
  padding: 2rem 0;
}
.home-quienes h2 {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-align: left;
  text-decoration: underline;
}
.home-quienes p {
  color: #f5f5f5;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  max-width: 100%;
  text-align: left;
}

/* ============ PROGRAMACIÓN ============ */
.section-title {
  font-size: 1.8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--color-text); margin-bottom: 0.4rem;
  border-left: 4px solid var(--color-accent); padding-left: 0.75rem;
}
.section-subtitle { color: var(--color-muted); margin-bottom: 2rem; font-size: 0.95rem; padding-left: 1rem; }

.programs-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem; margin-bottom: 2.5rem; }

.program-card {
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  border-radius: 10px; overflow: hidden;
  width: calc(33.333% - 1.75rem); min-width: 240px; max-width: 340px;
  display: flex; flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.program-card:hover { transform: translateY(-4px); border-color: var(--color-accent); box-shadow: 0 8px 24px rgba(0,21,252,0.2); }

/* Imagen cuadrada 1:1 */
.program-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #1a1a1a;
}

.program-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.program-card__title { font-size: 1.05rem; font-weight: 700; color: var(--color-text); line-height: 1.3; }
.program-card__hashtag { font-size: 0.82rem; color: var(--color-accent); font-weight: 600; letter-spacing: 0.02em; }
.program-card__info { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 0.4rem; }
.program-card__info-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; color: var(--color-muted); }
.program-card__info-item svg { flex-shrink: 0; color: var(--color-accent); }
.program-card__info-item a { color: var(--color-muted); transition: color 0.2s; }
.program-card__info-item a:hover { color: var(--color-accent-hover); }

/* Card ancha RNB — con scroll interno si hace falta */
.program-card--wide {
  width: 100%; max-width: 100%;
  flex-direction: row; align-items: stretch;
  min-height: 220px;
}
.program-card--wide .program-card__image {
  width: 260px; min-width: 200px; max-width: 280px;
  aspect-ratio: 1 / 1;
  height: auto; object-fit: cover; flex-shrink: 0;
}
.program-card--wide .program-card__body {
  justify-content: center; padding: 1.5rem 2rem;
  overflow-y: auto;
}
.program-card--wide .program-card__title {
  font-size: 1.4rem; font-weight: 800; color: var(--color-accent);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem;
}
.program-card--wide .program-card__description {
  font-size: 0.97rem; color: var(--color-muted); line-height: 1.6; margin-bottom: 0.75rem;
}
.program-card--wide .program-card__info-item { font-size: 0.95rem; }

/* ============ FOOTER ============ */
.footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--footer-height);
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 2px solid var(--color-accent);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  align-items: start; padding: 0.4rem 1.5rem; z-index: 999; gap: 0.5rem;
}

/* Izquierda: redes */
.footer__social { display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; }
.footer__social-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); margin-bottom: 0.1rem; }
.footer__social-links { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.footer__social-link {
  display: flex; align-items: center; gap: 0.35rem;
  color: var(--color-text); font-size: 0.78rem;
  padding: 0.3rem 0.5rem; border-radius: 4px;
  transition: background 0.2s, color 0.2s; border: 1px solid transparent;
}
.footer__social-link:hover { background: rgba(0,21,252,0.15); border-color: var(--color-accent); color: var(--color-accent-hover); }
.footer__social-link svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Centro: reproductor */
.footer__player { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 0.4rem 0; width: 100%; margin: 0; }
.footer__player-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); margin-bottom: 0.25rem; }
.footer__player iframe { width: 100%; min-height: 93px; height: 93px; border: 0; border-radius: 6px; }

/* Derecha: apoyo en fila horizontal */
.footer__support { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.footer__support-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); margin-bottom: 0.1rem; }
.footer__support-links { display: flex; flex-direction: row; gap: 0.5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.footer__support-link {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--color-text); font-size: 0.82rem;
  padding: 0.3rem 0.5rem; border-radius: 4px;
  transition: background 0.2s, color 0.2s; border: 1px solid transparent;
}
.footer__support-link:hover { background: rgba(0,21,252,0.15); border-color: var(--color-accent); color: var(--color-accent-hover); }
.footer__support-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.footer__alias { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--color-muted); padding: 0.3rem 0.5rem; }
.footer__alias strong { color: var(--color-text); }

/* ============ CONTACTO ============ */
/* ============ SKIN SELECTOR ============ */
.footer__social {
  flex-direction: column;
}
.footer__social-links-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.footer__social-links-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0;
  gap: 0.5rem;
  overflow: visible;
}
.skin-selector {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 15%;
  justify-content: flex-end;
  position: relative;
  z-index: 10;
}
.skin-selector select {
  background: #111;
  color: var(--color-text);
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  font-size: 0.75rem;
  font-family: var(--font-main);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  max-width: 140px;
}
.skin-selector select:hover,
.skin-selector select:focus { border-color: var(--color-accent-hover); }
.skin-selector select option { background: #111; color: var(--color-text); }

/* ============ PODCASTS ============ */
.podcasts-container {
  padding: 1rem 0 6rem 0;
}
#section-podcasts.section {
  background: rgba(0,0,0,0.88);
  max-width: 100%;
  padding-bottom: 8rem;
}
.podcasts-subtitle {
  color: var(--color-muted);
  font-size: 0.95rem;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.podcasts-player {
  background: transparent;
  border: none;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.podcasts-player iframe {
  width: 100%;
  min-height: 400px;
  height: 400px;
  border: 0;
  display: block;
}

.generic-section { padding: 2rem 0; }
.generic-section h2 { font-size: 2rem; font-weight: 800; text-transform: uppercase; color: var(--color-accent); margin-bottom: 1rem; letter-spacing: 0.05em; }
.generic-section p { color: var(--color-muted); font-size: 1rem; max-width: 700px; line-height: 1.8; margin-bottom: 1rem; }
.generic-section a { color: var(--color-accent-hover); }

/* Ocultar "Quiénes somos" del menú hamburguesa en desktop */
@media (min-width: 769px) {
  .menu-mobile-only { display: none; }
}
/* Ocultar botón Quiénes somos desktop en mobile */
@media (max-width: 768px) {
  .navbar__desktop-only { display: none !important; }
  .skin-selector { display: none !important; }
  .skin-selector * { display: none !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .navbar__slogan { font-size: 0.88rem; }
  .navbar__mobile-link { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
}
@media (max-width: 900px) {
  .program-card { width: calc(50% - 1.75rem); }
  .footer { grid-template-columns: 1fr; height: auto; position: relative; padding: 1rem; gap: 1rem; }
  .main-content { margin-bottom: 0; }
  .footer__social, .footer__support { align-items: center; }
  .footer__support-links { justify-content: center; }
  .footer__social-links { justify-content: center; }
  .program-card--wide { flex-direction: column; width: 100%; max-width: 100%; }
  .program-card--wide .program-card__image { width: 100%; max-width: 100%; aspect-ratio: 1/1; }
  .program-card--wide .program-card__body { padding: 1rem; overflow-x: hidden; }
  .program-card--wide .program-card__description { white-space: normal; word-break: break-word; }
  .program-card--wide .program-card__info-item a { word-break: break-all; font-size: 0.82rem; }
  #section-nosotros.section { padding: 2rem 1.5rem; }
  /* Footer móvil: reproductor a ancho completo */
  .main-content { min-height: calc((100vh - var(--nav-height)) * 0.435); }
  .footer__player { width: 100%; margin: 0; }
  .footer__social-links-row { justify-content: center; flex-wrap: wrap; }
  .footer__social-links-bottom { justify-content: center; margin-top: 0.4rem; }
  .skin-selector { display: none !important; }
  .skin-selector select { margin-right: 0; }
  .footer__player iframe { height: 100px; min-height: 100px; }
  /* Apoyo centrado en móvil */
  .footer__support { align-items: center; width: 100%; }
  .footer__support-title { text-align: center; }
  /* Social centrado */
  .footer__social { width: 100%; }
  .footer__social-title { text-align: center; width: 100%; }
}
@media (max-width: 768px) {
  .navbar { grid-template-columns: 1fr auto; }
  .navbar__slogan { display: block; font-size: 0.992rem; letter-spacing: 0.02em; padding: 0 0.5rem; border: none; order: 1; }
  .navbar__hamburger { order: 2; }
  .navbar__menu { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: auto; width: 220px; background: rgba(0,0,0,0.85); border-bottom: 2px solid var(--color-accent); border-right: 2px solid var(--color-accent); padding: 1rem; gap: 0.25rem; z-index: 999; }
  .navbar__menu.open { display: flex; }
  .navbar__hamburger { display: flex; }
  .navbar__mobile-link { display: none; }
  .menu-mobile-only { display: block; }
  .home-hero { min-height: calc((100vh - var(--nav-height) - var(--footer-height)) * 0.648); }
  .home-quienes { display: none; }
  #section-quienes .nosotros-full p { color: #f5f5f5; }
  #section-quienes .nosotros-full a { color: #f5f5f5; }
  /* Menú móvil: items más grandes para touch */
  .navbar__menu li button,
  .navbar__menu li a { font-size: 1rem; padding: 0.75rem 1rem; width: 100%; text-align: left; border-radius: 6px; }
}

  /* Cards de programas: imagen cuadrada más compacta en móvil */
  .program-card__image { aspect-ratio: 1/1; }
  /* Hashtag y título más legibles */
  .program-card__title { font-size: 1rem; }
  .program-card__hashtag { font-size: 0.85rem; }
  /* Info items más espaciados para touch */
  .program-card__info-item { font-size: 0.9rem; gap: 0.6rem; padding: 0.1rem 0; }
  /* Card ancha RNB: texto más legible */
  .program-card--wide .program-card__title { font-size: 1.2rem; }
  .program-card--wide .program-card__description { font-size: 0.92rem; }
  /* Nosotros más legible */
  .nosotros-full h2 { font-size: 1.5rem; }
  .nosotros-full p { font-size: 0.97rem; }
  /* Redes sociales: logos más grandes para touch */
  .footer__social-link { padding: 0.5rem 0.6rem; font-size: 0.82rem; }
  .footer__social-link svg { width: 22px; height: 22px; }
  /* Apoyo: links más grandes para touch */
  .footer__support-link { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
  /* Alias más visible */
  .footer__alias { font-size: 0.88rem; }
  /* Sección programación: más padding inferior en móvil */
  #section-programacion.section { padding-bottom: 10rem; }
}
/* Imagen de fondo en mobile: mismas propiedades fixed, src controlado por JS */
@media (max-width: 768px) {
  .home-hero__bg {
    position: fixed; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center center;
    opacity: 1; z-index: -1;
  }
}

/* Footer mobile: reproductor arriba, redes medio, apoyo abajo */
@media (max-width: 900px) {
  .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer__player { order: 1; width: 100%; }
  .footer__social { order: 2; }
  .footer__support { order: 3; }
}

/* Pantallas muy pequeñas (iPhone SE, etc.) */
@media (max-width: 380px) {
  .skin-selector { display: none !important; }
  .home-hero__title { font-size: 1.8rem; }
  .footer__social-links { gap: 0.3rem; }
  .footer__support-links { gap: 0.3rem; flex-wrap: wrap; justify-content: center; }
  .program-card__title { font-size: 0.95rem; }
  .section { padding: 1rem 0.75rem; }
}
