/* VARIABLES */
:root {
  --gold: rgb(212 175 55);
  --dark: #1e1f22;
  --dark-soft: #151515;
  --white: #ffffff;
}

/* TV VIEW */
.tv-container {
  width: 85%;
  max-width: 1200px;
  margin: 80px auto 40px;
  text-align: center;
  padding: 0 20px;
}

/* título */
.tv-title {
  margin-bottom: 20px;
  color: var(--gold);
}

/* player */
.boxPlayerTV {
  position: relative;

  width: 80%;
  margin: 0 auto;

  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;

  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* iframe ajustado */
.boxPlayerTV iframe {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
  border: none;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, Arial, sans-serif;
  background: var(--dark);
  color: var(--white);
}

/**/
audio {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  outline: none;
  margin-top: 100%;
}

/* HEADER */
.floating-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1200px;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  z-index: 1000;
  transition: min-height 0.3s ease, background 0.3s ease;
}

.floating-header:hover {
  min-height: 96px;
  background: rgba(0, 0, 0, 0.75);
}

.header span {
  color: var(--gold);
  background: var(--dark-soft);
  border: 1px solid var(--gold);
  border-radius: 15px;
  text-align: center;
  cursor: pointer;

  margin-right: 1%;
}

/* Header Now Playing */
.now-playing-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  margin-left: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 4px 12px;
  max-width: 250px;
  overflow: hidden;
}

.scrolling-text-container {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scrolling-text {
  display: inline-block;
  color: var(--white);
  font-size: 0.9rem;
  white-space: nowrap;
  animation: scrollText 10s linear infinite;
  padding-left: 100%;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}


/* Logo */
.logo-container {
  position: relative;
  height: 13vh;
  max-height: 120px;
  min-height: 72px;

  display: flex;
  align-items: center;
}

.logo-container img {
  height: 70%;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.floating-header:hover .logo-container img {
  height: 100%;
}

/* Botón menú */
.menu-btn {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 20px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

/*   ✅ FIX DEFINITIVO CUANDO EL MENÚ ESTÁ ABIERTO */

.floating-header.menu-open {
  pointer-events: none;
}

/* MENÚ MÓVIL (SIEMPRE POR ENCIMA) */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;

  width: 260px;
  height: 100vh;

  background: #242526;
  padding: 80px 20px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  transform: translateX(100%);
  transition: transform 0.3s ease;

  z-index: 2000;
  /* 🔑 MÁS ALTO QUE EL HEADER */
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* HERO */
.hero-bg {
  background: url("../img/hero.webp") center/cover no-repeat;
}

.hero-overlay {
  min-height: 50vh;
  padding: 12vh 20%;
  background: rgba(0, 0, 0, 0.75);
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero h1 span {
  color: var(--gold);
}

.subtitle {
  font-style: italic;
  color: var(--gold);
}

.description {
  margin: 15px 0;
  opacity: 0.9;
}

.btn-primary {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 1rem 3rem;
  border-radius: 30px;
  font-weight: bold;
  font-size: 2rem;
  cursor: pointer;
}

/* Estado activo del botón de radio */
.radio-toggle.is-playing {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 1rem 3rem;
  border-radius: 30px;
  font-weight: bold;
  font-size: 2rem;
  cursor: pointer;
}

.radio-toggle {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.radio-toggle:hover {
  transform: scale(1.04);
}

.radio-toggle:active {
  transform: scale(0.98);
}

.live-indicator {
  margin-top: 12px;
  font-size: 0.9rem;
}

/* Botón Flotante*/
.btn-flotante {
  font-size: 25px;
  /* Cambiar el tamaño de la tipografia */
  color: var(--dark);
  /* Color del texto */
  border-radius: 25px;
  /* Borde del boton */
  letter-spacing: 1px;
  /* Espacio entre letras */
  padding: 18px 30px;
  /* Relleno del boton */
  position: fixed;
  background-color: rgb(212 175 55 / 0.5);
  bottom: 35%;
  right: 40px;
  transition: all 300ms ease 0ms;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.btn-flotante:hover {
  background-color: rgb(212 175 55 / 0.5);
  box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-7px);
}

/* FEATURES */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 1.5rem;
}

.feature-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark-soft);
  color: var(--white);
  border: 1px solid var(--gold);
  border-radius: 30px;
  padding: 10px 24px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.feature-btn:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.emoji {
  font-size: 1.2rem;
}

/* PROMO */
.promo {
  display: flex;
  align-items: center;
  gap: 20px;

  padding: 24px 36px;
  margin: 32px auto;
  max-width: 960px;

  background: linear-gradient(180deg, #141414, #0f0f0f);
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.flag-accent {
  width: 72px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;

  background: linear-gradient(to bottom,
      #fcd116 33%,
      #003893 33% 66%,
      #ce1126 66%);
}

.promo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.promo-small {
  font-size: 1rem;
}

.promo-main {
  font-size: 2rem;
  font-weight: bold;
  color: var(--gold);
}

.promo-heart {
  margin-left: auto;
  font-size: 1.6rem;
}

/* PLAYER */
.player {
  background: var(--dark-soft);
  margin: 20px auto;
  border-radius: 20px;
  padding: 15px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.play-btn {
  background: var(--gold);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

/* FOOTER */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  padding: 16px;
  background: var(--gold);
}

.footer-socials {
  display: flex;
  gap: 18px;
}

.footer-socials img {
  width: 1.3rem;
}

.footer-text {
  font-size: 0.75rem;
  color: #000;
  text-align: center;
  opacity: 0.85;
}

/* =========================
   SPA VIEWS
========================= */
.view {
  display: none;
}

.view.active {
  display: block;
}

.hidden {
  display: none;
}

/* SERVICIOS */
.section-container {
  padding: 80px 20px;
}

.services-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px;
}

.service-card {
  background: var(--dark-soft);
  border: 1px solid var(--gold);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
}

/* CONTACTO */
.contact-container {
  width: 90%;
  max-width: 1100px;
  margin: 80px auto 40px;
  padding: 20px;
}

.contact-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-header h1 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-header p {
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.contact-form,
.contact-info {
  background: var(--dark-soft);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  background: #101010;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.form-group input.has-error,
.form-group select.has-error,
.form-group textarea.has-error {
  border-color: #ff5a5a;
}

.form-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #ff8b8b;
  font-size: 0.85rem;
}

.form-status {
  min-height: 22px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.form-status.is-error {
  color: #ff8b8b;
}

.form-status.is-success {
  color: #8dffb0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contact-submit {
  font-size: 1rem;
  padding: 12px 24px;
}

.contact-submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.contact-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 30px;
  padding: 12px 24px;
  font-weight: bold;
}

.contact-whatsapp-link:hover {
  background: rgba(212, 175, 55, 0.12);
}

.contact-info h2 {
  color: var(--gold);
  margin-bottom: 18px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-info-item strong {
  color: var(--gold);
}

.contact-info-item a {
  color: var(--white);
  text-decoration: none;
}

.contact-info-item a:hover {
  color: var(--gold);
}

.contact-info-note {
  margin-top: 18px;
  line-height: 1.6;
  opacity: 0.9;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* PROGRAMACION */
.programacion {
  padding: 40px 20px;
  background: #f5f7fa;
  text-align: center;
}

.programacion h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

/* GRID RESPONSIVO */
.programacion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* TARJETAS */
.programa {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.programa:hover {
  transform: translateY(-5px);
}

.programa h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--gold);
  border-color: #0b0b0b;
}

.horario {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--dark-soft);
}

.programa p {
  font-size: 0.9rem;
  color: var(--dark-soft);
}

/* DESTACADO FIN DE SEMANA */
.programa.especial {
  background: var(--gold);
  color: var(--dark-soft);
}

.programa.especial h3,
.programa.especial .horario,
.programa.especial p {
  color: var(--dark-soft);
}

/* CONOCENOS */
.nosotros {
  background: var(--dark);
  color: white;
  padding: 60px 20px;
}

.contenedor-nosotros {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.nosotros h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
}

.intro {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.nosotros p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  opacity: 0.95;
}

.nosotros strong {
  color: #ffd54f;
}

blockquote {
  margin-top: 30px;
  font-size: 1.3rem;
  font-style: italic;
  border-left: 4px solid #ffd54f;
  padding-left: 15px;
  text-align: left;
}

/* BLOG */
.blog-container {
  width: min(92%, 1180px);
  margin: 80px auto 40px;
  padding: 20px 0;
}

.blog-header {
  text-align: center;
  margin-bottom: 32px;
}

.blog-header h1 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 12px;
}

.blog-header p {
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

.blog-status {
  text-align: center;
  min-height: 24px;
  margin-bottom: 24px;
  color: var(--white);
  opacity: 0.9;
}

.blog-status.is-error {
  color: #ff8b8b;
}

.blog-status.is-success {
  display: none;
}

.blog-status.is-loading {
  color: var(--gold);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--dark-soft);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.blog-card-image-link {
  display: block;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #101010;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.blog-card-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 18px;
}

.blog-card-date {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.85rem;
}

.blog-card-title {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.blog-card-excerpt {
  margin: 0 0 18px;
  color: var(--white);
  opacity: 0.86;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  color: var(--gold);
  background: transparent;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 30px;
  padding: 10px 18px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.blog-card-link:hover {
  background: rgba(212, 175, 55, 0.12);
}

/* ECUALIZADOR / ESPECTRO VISUAL */
.equalizer-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 60px;
}

.equalizer-container .bar {
  display: block;
  width: 5px;
  height: 10px;
  background-color: var(--gold);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.45);
  transition: height 0.4s ease-in-out, opacity 0.3s ease;
  opacity: 0.75;
}

.equalizer-container.playing .bar {
  animation: equalize 1s infinite alternate ease-in-out;
  opacity: 1;
}

.equalizer-container.playing .bar:nth-child(1) {
  animation-duration: 0.5s;
  animation-delay: 0.1s;
}

.equalizer-container.playing .bar:nth-child(2) {
  animation-duration: 0.7s;
  animation-delay: 0.3s;
}

.equalizer-container.playing .bar:nth-child(3) {
  animation-duration: 0.4s;
  animation-delay: 0s;
}

.equalizer-container.playing .bar:nth-child(4) {
  animation-duration: 0.8s;
  animation-delay: 0.5s;
}

.equalizer-container.playing .bar:nth-child(5) {
  animation-duration: 0.6s;
  animation-delay: 0.2s;
}

.equalizer-container.playing .bar:nth-child(6) {
  animation-duration: 0.55s;
  animation-delay: 0.4s;
}

.equalizer-container.playing .bar:nth-child(7) {
  animation-duration: 0.75s;
  animation-delay: 0.1s;
}

@keyframes equalize {
  0% {
    height: 10px;
  }

  100% {
    height: 50px;
  }
}

/* Variantes de tamaño */
.equalizer-small {
  height: 28px;
  gap: 4px;
}

.equalizer-small .bar {
  width: 3px;
  height: 6px;
  border-radius: 3px;
}

.equalizer-small.playing .bar {
  animation-name: equalizeSmall;
}

@keyframes equalizeSmall {
  0% {
    height: 6px;
  }

  100% {
    height: 24px;
  }
}

.equalizer-medium {
  height: 42px;
  gap: 5px;
}

.equalizer-medium .bar {
  width: 4px;
  height: 8px;
}

.equalizer-medium.playing .bar {
  animation-name: equalizeMedium;
}

@keyframes equalizeMedium {
  0% {
    height: 8px;
  }

  100% {
    height: 36px;
  }
}

/* Ubicaciones del ecualizador */
.header-live-widget {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  color: var(--gold);
  font-weight: bold;
  cursor: pointer;
}

.hero-equalizer {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

.player-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Accesibilidad: reducir animación si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
  .equalizer-container.playing .bar {
    animation: none;
    height: 18px;
  }
}

/* RESPONSIVE */
@media (min-width: 769px) and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-card-image-link {
    height: 200px;
  }
}

@media (max-width: 768px) {

  .floating-header {
    position: sticky;
    top: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
  }

  .logo-container img {
    height: 8vh;
  }

  .now-playing-header {
    display: none;
    /* Hide on very small screens to save space, or we could make it smaller */
  }

  .hero-bg {
    background-image: url("../img/herov.webp");
    background-position: center;
  }

  .hero-overlay {
    padding: 5vh 5%;
  }

  .features {
    gap: 12px;
    padding: 1rem;
  }

  .feature-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .promo {
    margin: 20px 16px;
    padding: 16px 18px;
  }

  .promo-main {
    font-size: 1.4rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .blog-container {
    width: 90%;
    margin: 40px auto 24px;
    padding: 16px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .blog-card-image-link {
    height: 210px;
  }

  .blog-single {
    padding: 18px;
    border-radius: 16px;
  }

  .blog-single-image {
    max-height: 280px;
  }

  .blog-single-body {
    font-size: 1rem;
  }

  .contact-container {
    width: 100%;
    margin: 40px auto 24px;
    padding: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-submit,
  .contact-whatsapp-link {
    width: 100%;
    text-align: center;
  }

  .btn-flotante {
    font-size: 14px;
    padding: 12px 20px;
    bottom: 20px;
    right: 20px;
  }
}

.blog-single {
  max-width: 920px;
  margin: 0 auto;
  background: var(--dark-soft);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.blog-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 30px;
  padding: 10px 18px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.blog-back-button:hover {
  background: rgba(212, 175, 55, 0.12);
}

.blog-single-header {
  margin-bottom: 20px;
  text-align: center;
}

.blog-single-title {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.blog-single-image {
  display: block;
  width: 100%;
  max-height: 420px;
  margin: 0 auto 28px;
  border-radius: 16px;
  object-fit: cover;
}

.blog-single-body {
  color: var(--white);
  line-height: 1.75;
  font-size: 1.05rem;
}

.blog-single-body p {
  margin-bottom: 18px;
}

.blog-single-body h1,
.blog-single-body h2,
.blog-single-body h3,
.blog-single-body h4 {
  color: var(--gold);
  margin: 28px 0 14px;
  line-height: 1.25;
}

.blog-single-body a {
  color: var(--gold);
  text-decoration: underline;
}

.blog-single-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.blog-single-body figure {
  margin: 24px 0;
}

.blog-single-body iframe,
.blog-single-body video {
  width: 100%;
  max-width: 100%;
}

.hidden {
  display: none !important;
}