/* ==========================================================================
   HOJA DE ESTILOS MAESTRA - CANCIONES INÉDITAS (Versión Definitiva)
   ========================================================================== */

/* --- 1. CONFIGURACIÓN BASE --- */
:root {
  --bg: #0a0a0a;
  --panel: #121212;
  --text: #eaeaea;
  --muted: #a9a9a9;
  --gold: #CAAC7B;
  --gold-hover: #f9b233;
  --line: rgba(202,172,123,0.18);
  --shadow: 0 18px 60px rgba(0,0,0,0.55);
  --radius: 14px;
}

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

body {
  font-family: 'Verdana', system-ui, sans-serif;
  background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  width: 100%;
  overflow-x: hidden; /* Evita scroll lateral accidental */
}

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }

/* --- 2. HEADER (Horizontal + Audio) --- */
.main-header {
  width: 100%;
  padding: 0;
  background: #000;
  border-bottom: 1px solid var(--line);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  flex-direction: column; 
  align-items: flex-start;
  gap: 15px;
}

.header-top { width: 100%; }
.brand { display: flex; align-items: center; gap: 15px; }

/* Logo Mundo */
.site-logo-video {
  width: 70px; height: 70px;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(1.3);
  mix-blend-mode: screen;
  margin-left: 10px;
}

/* Título y Subtítulo */
.title-area-wrapper h1 {
  font-size: clamp(1.4rem, 4vw, 2.2rem); 
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 6px 0;
  white-space: nowrap;
}

.subtitle-row { display: flex; align-items: center; gap: 10px; }
.subtitle-row p { font-size: 0.85rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; margin: 0; }

/* Botón Audio */
#audioToggleBtn {
    background: transparent; border: 1px solid var(--gold); color: var(--gold);
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s ease; padding: 0; flex-shrink: 0;
}
#audioToggleBtn:hover { background: var(--gold); color: #000; transform: scale(1.1); }
#audioToggleBtn svg { width: 12px; height: 12px; }

/* Menú */
.main-nav { display: flex; flex-wrap: wrap; gap: 25px; padding-left: 5px; margin-top: 5px; }
.main-nav a { font-size: 0.95rem; color: var(--muted); text-transform: lowercase; font-weight: 500; }
.main-nav a::first-letter { text-transform: uppercase; }
.main-nav a:hover { color: var(--gold); }

/* --- 3. HERO HOME (Animación Oscuro -> Claro) --- */
.hero { max-width: 1100px; margin: 20px auto 0; padding: 0 16px; }

.hero-content {
  position: relative;
  background-image: url('/images/fondo-musica.jpg');
  background-size: cover; background-position: center;
  border-radius: var(--radius); border: 1px solid var(--line);
  min-height: 450px; 
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-content.replay-anim::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  animation: darkToClear 4s ease-out forwards;
}

@keyframes darkToClear {
  0% { background: rgba(0,0,0,0.95); backdrop-filter: blur(5px); }
  100% { background: rgba(0,0,0,0.3); backdrop-filter: blur(0px); }
}

.hero-panel { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 20px; }
.hero-panel h2 { font-size: clamp(2rem, 5vw, 3rem); color: #fff; font-weight: 800; margin-bottom: 15px; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
.hero-panel p { font-size: 1.2rem; color: #fff; opacity: 0.9; margin-bottom: 30px; text-shadow: 0 2px 10px rgba(0,0,0,1); }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

.btn-principal { background: var(--gold); color: #000; padding: 12px 30px; border-radius: 50px; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; border: none; cursor: pointer; }
.btn-principal:hover { background: var(--gold-hover); transform: scale(1.05); }

.btn-secundario { background: rgba(255,255,255,0.1); color: #fff; padding: 12px 30px; border-radius: 50px; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.4); cursor: pointer; }
.btn-secundario:hover { background: #fff; color: #000; }

/* --- 4. ESTRUCTURA GENERAL DEL BODY --- */
.contenedor {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 16px 40px;
  /* IMPORTANTE: Flex column para asegurar centrado vertical */
  display: flex; 
  flex-direction: column;
}

.col-central { width: 100%; }

/* --- 5. GRID DE CATEGORÍAS (Home) --- */
.section-title { color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; margin-bottom: 10px; }
.section-subtitle { margin-bottom: 25px; color: var(--muted); font-size: 0.95rem; }

.grid-categorias {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 650px) { .grid-categorias { grid-template-columns: 1fr; } }

.card-actor {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  padding: 25px; border-radius: 12px; transition: all 0.3s ease;
  height: 100%; display: flex; flex-direction: column;
}
.card-actor:hover { background: rgba(202,172,123,0.08); border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.card-actor h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 1px solid rgba(202,172,123,0.3); padding-bottom: 10px; display: inline-block; }
.card-desc { font-size: 0.9rem; color: #fff; opacity: 0.8; margin-bottom: 15px; font-style: italic; }

.card-list { list-style: none; margin-top: auto; }
.card-list li { font-size: 0.85rem; color: var(--muted); padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; }
.card-list li:last-child { border-bottom: none; }
.card-list li::before { content: "•"; color: var(--gold); font-weight: bold; display: inline-block; width: 15px; }


/* ==========================================================================
   ESTILOS PARA PÁGINAS INTERNAS (Publishing, Productores, etc.)
   ========================================================================== */

/* Hero Interno */
.inner-hero {
  width: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), #0a0a0a), url('/images/fondo-musica.jpg');
  background-size: cover; background-position: center 20%;
  padding: 80px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 0;
}
.inner-hero-content { max-width: 1100px; margin: 0 auto; padding: 0 20px; text-align: left; }
.inner-hero h1 { font-size: 2.2rem; color: #fff; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.inner-hero p { color: var(--gold); font-size: 1rem; max-width: 700px; opacity: 0.9; }

/* Texto Intro */
.intro-section { width: 100%; max-width: 1100px; margin: 0 auto 40px auto; text-align: left; }
.gold-title { color: var(--gold); font-size: 1.3rem; margin-bottom: 15px; border-left: 3px solid var(--gold); padding-left: 15px; }
.text-content p { color: var(--text); margin-bottom: 10px; font-size: 1rem; }

.read-more-box summary { cursor: pointer; color: var(--gold); font-weight: bold; list-style: none; margin-top: 10px; }
.hidden-text { margin-top: 15px; padding: 15px; background: rgba(255,255,255,0.03); border-radius: 8px; border-left: 1px solid var(--line); }

/* --- GRID DE TARJETAS DESTACADAS (SPONSORS) --- */
.separator-title {
  text-align: center; color: var(--muted); 
  margin: 20px auto 30px auto; /* Márgenes automáticos para centrar */
  text-transform: uppercase; font-size: 0.85rem; letter-spacing: 3px;
  width: 100%; clear: both; display: block;
}

.grid-destacados {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Columnas */
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 60px auto; /* CENTRADO CRÍTICO */
}

@media (max-width: 900px) { .grid-destacados { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-destacados { grid-template-columns: 1fr; } }

.sponsor-card {
  border: 1px solid rgba(255,255,255,0.06) !important;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.0) 55%),
              linear-gradient(145deg, #141414, #0b0b0b) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.55) !important;
  text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 280px; /* Altura mínima uniforme */
  justify-content: space-between;
  padding: 35px 25px;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sponsor-card:hover {
  border-color: rgba(212,175,55,0.55) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,0.65), 0 0 0 1px rgba(212,175,55,0.15) inset !important;
  transform: translateY(-3px);
}

.sponsor-card.active-sponsor {
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,0.6) !important;
  background: linear-gradient(135deg, rgba(202,172,123,0.15), rgba(0,0,0,0.6));
}

.sponsor-card.active-sponsor:hover {
  border-color: rgba(212,175,55,0.7) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,175,55,0.18) inset !important;
}

.sponsor-card.placeholder { border-style: solid !important; opacity: 0.6; }

.sponsor-card h3 { color: var(--gold); margin-bottom: 5px; font-size: 1.1rem; }

.btn-mini { background: var(--gold); color: #000; padding: 6px 14px; font-size: 0.75rem; border-radius: 20px; margin-top: 10px; font-weight: bold; display: inline-block; }
.btn-mini.outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }

/* Footer */
.site-footer {
  max-width: 1100px; margin: 0 auto 40px; text-align: center;
  padding: 30px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem;
}

/* =========================
   MAP FILTERS
========================= */
.map-block{
  width:100%; max-width:1100px; margin: 0 auto 50px auto;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  background:#000; overflow:hidden; border-radius: 10px;
}
.map-head{
  padding: 16px 16px 10px 16px; display:flex; align-items:flex-end;
  justify-content:space-between; gap:12px; flex-wrap:wrap;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0));
}
.map-title{ color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; opacity: .95; }
.map-filters{ display:flex; gap:10px; flex-wrap:wrap; }
.map-filter-btn{
  border: 1px solid rgba(212,175,55,0.55); background: transparent; color: var(--gold);
  padding: 8px 14px; border-radius: 999px; font-size: 0.75rem; letter-spacing: 1px;
  text-transform: uppercase; cursor:pointer; transition: all .2s ease;
}
.map-filter-btn:hover{ background: rgba(212,175,55,0.12); border-color: rgba(212,175,55,0.9); }
.map-filter-btn.is-active{ background: var(--gold); color:#000; border-color: var(--gold); }
.map-frame-wrap{ border-top: 1px solid rgba(255,255,255,0.06); }
.map-caption{ padding: 10px 12px; text-align:center; font-size: 0.75rem; color: var(--muted); background: #111; text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 560px){ .map-title{ width:100%; } .map-filter-btn{ width:100%; text-align:center; } }


/* ==========================================================================
   ESTILOS NUEVOS: MENÚ INTELIGENTE Y TICKER (Lo que se agregó)
   ========================================================================== */

/* 1. Botón de Servicios Destacado */
.nav-highlight {
    color: var(--gold) !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* 2. Submenú Desplegable (Dropdown) */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #080808; /* Fondo muy oscuro */
    border: 1px solid var(--gold);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    z-index: 1000;
    border-radius: 6px;
    padding: 8px 0;
}

.dropdown-menu a {
    color: #ccc;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid #1a1a1a;
    transition: all 0.2s ease;
    text-transform: none; /* Respetar mayúsculas del nombre */
}

.dropdown-menu a:hover {
    background-color: #151515;
    color: var(--gold);
    padding-left: 25px; /* Efecto deslizante */
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDropdown 0.3s ease;
}

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

/* ===============================
   MENÚ MÓVIL - BOTÓN HAMBURGUESA
   (oculto en desktop)
================================ */
.nav-mobile-bar{
  display: none;            /* ✅ NO se ve en desktop */
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.nav-toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;  /* ✅ quita el blanco */
  border: 1px solid rgba(212,175,55,.45);
  color: var(--gold);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.nav-toggle svg{
  width: 20px;
  height: 20px;
}

/* ✅ Por defecto, solo se ve el burger */
.nav-toggle .icon-close{ display: none; }

@media (max-width: 768px) {

  .header-container { align-items: center; text-align: center; }
  .brand { flex-direction: column; gap: 10px; }
  .subtitle-row { justify-content: center; }

  /* Mostrar botón hamburguesa */
  .nav-mobile-bar{
    display: flex;
    justify-content: center;
    width: 100%;
  }

  /* Nav colapsado por defecto */
  .main-nav{
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid var(--line);
    background: #000;
    border-radius: 14px;
    overflow: hidden;
  }
  .main-nav.is-open{ display: flex; }

  /* Links full-width */
  .main-nav > a,
  .main-nav .nav-link-main{
    width: 100%;
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    white-space: normal;
  }

  /* Dropdown: sin hover, solo por clase .is-open */
  .nav-item-dropdown{ width: 100%; }
  .nav-item-dropdown:hover .dropdown-menu{ display: none; } /* anula hover en móvil */

  .dropdown-menu{
    position: static;
    display: none;
    width: 100%;
    background: #070707;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav-item-dropdown.is-open .dropdown-menu{ display: block; }

  .dropdown-menu a{
    padding: 10px 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  /* Cambiar icono del botón cuando está abierto */
  .nav-toggle[aria-expanded="true"] .icon-burger{ display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close{ display: inline; }
}

/* 4. TICKER INTELIGENTE (Movimiento Infinito CSS) */
.smart-ticker-wrapper {
    width: 100%;
    background: #000;
    border-bottom: 1px solid var(--line);
    overflow: hidden; /* Oculta lo que se sale del borde */
    white-space: nowrap;
    padding: 12px 0;
    margin-bottom: 40px;
    position: relative;
}

.smart-ticker-content {
    display: inline-block;
    white-space: nowrap;
    /* velocidad ajustable por CSS variable: --ticker-speed */
    animation: ticker-slide var(--ticker-speed, 18s) linear infinite;
    will-change: transform;
}

/* Pausar cuando pasas el mouse por encima */
.smart-ticker-wrapper:hover .smart-ticker-content {
    animation-play-state: paused;
}


/* Definición del movimiento */
@keyframes ticker-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Se mueve hasta la mitad (donde empieza la repetición) */
}

/* Ajuste para las banderas */
.flag-icon {
    width: 22px;
    height: auto;
    border-radius: 2px;
    margin-right: 5px;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    margin-right: 30px; /* Espacio entre países */
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ticker-item:hover {
    color: var(--gold);
}
.smart-ticker-wrapper::-webkit-scrollbar { display: none; }

.smart-ticker-content {
    display: inline-flex;
    gap: 5px;
    padding-left: 20px;
}

/* Asegurar que el logo del país no se deforme */
.flag-icon {
    width: 22px;
    height: auto;
    border-radius: 2px;
    margin-right: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* =========================================
   VIBE PLAYER (playlist regional)
========================================= */
.btn-audio{
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(5px);
}
.btn-audio:hover{
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 18px rgba(212,175,55,0.35);
}
.vibe-player.is-playing .btn-audio{
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 15px rgba(212,175,55,0.55);
}
.vibe-icon{ display:inline-block; line-height:1; }
.vibe-icon-pause{ display:none; }
.vibe-player.is-playing .vibe-icon-play{ display:none; }
.vibe-player.is-playing .vibe-icon-pause{ display:inline-block; }

.vibe-controls{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 18px;
  position: relative;
  flex-wrap: wrap;
}
.vibe-menu-btn{
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(212,175,55,0.6);
  color: var(--gold);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vibe-menu-btn:hover{
  background: rgba(212,175,55,0.15);
  border-color: var(--gold);
}
.vibe-menu{
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: min(520px, 92vw);
  max-height: 280px;
  overflow:auto;
  background: rgba(0,0,0,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.55);
  padding: 8px;
  z-index: 60;
}
.vibe-menu-item{
  width: 100%;
  text-align:left;
  background: transparent;
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #eee;
  cursor: pointer;
  display:flex;
  justify-content: space-between;
  gap: 16px;
}
.vibe-menu-item:hover{
  background: rgba(255,255,255,0.06);
}
.vibe-menu-item.is-active{
  outline: 1px solid rgba(212,175,55,0.45);
  background: rgba(212,175,55,0.10);
}
.vibe-item-title{
  font-weight: 700;
}
.vibe-item-sub{
  opacity: 0.85;
  font-size: 0.9em;
  color: var(--gold);
}
.vibe-meta{
  font-size: 0.8rem;
  color: #bdbdbd;
  margin-top: 10px;
  font-style: italic;
}
