/* --- Variables y Configuración Global --- */
:root {
    --bg-dark: #0a0a12;
    --bg-card: #151520;
    --bg-player: #0f0f1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-color: #00d4ff;
    --accent-purple: #9b51e0;
    --accent-orange: #ff6b6b;
    --font-family: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding-bottom: 90px; /* Espacio para el reproductor fijo */
    overflow-x: hidden;
}

/* --- Header y Menú de Navegación --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: transparent; 
    position: relative;
    z-index: 20; /* Elevado para que el menú móvil quede sobre todo */
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

.logo-text .highlight { color: var(--accent-color); }
.logo-text .sound-wave { color: var(--accent-purple); margin-left: 10px; font-size: 1.5rem; }

/* Menú Principal Desktop */
.main-nav {
    display: flex;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: var(--accent-color);
}

/* Botón Menú Móvil (Oculto en Desktop) */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}


/* --- Secciones Principales --- */
.section-container {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

/* --- Hero Carousel (Para 3 imágenes) --- */
.hero-carousel-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 450px;
}

.hero-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero-item.main { grid-column: 1 / 2; grid-row: 1 / 3; }
.hero-item.secondary-top { grid-column: 2 / 3; grid-row: 1 / 2; }
.hero-item.secondary-bottom { grid-column: 2 / 3; grid-row: 2 / 3; }

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* --- Tarjetas de Radio --- */
.radio-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.radio-card {
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.radio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Fondos temáticos para las tarjetas */
.radio-card.bg-wave { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); }
.radio-card.bg-tropical { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.radio-card.bg-sunset { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.radio-card.bg-default { background: linear-gradient(135deg, #434343 0%, #000000 100%); }

/* --- Efecto de Marca de Agua con el Dial en el fondo --- */
.radio-card::before {
    content: attr(data-freq);
    position: absolute;
    bottom: 40px;
    right: -10px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    z-index: 0;
    transform: rotate(-10deg);
    white-space: nowrap;
    pointer-events: none;
}

.card-header, .card-body, .card-footer {
    position: relative;
    z-index: 1;
}

.card-header {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
}

.live-badge {
    background-color: var(--accent-orange);
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-badge::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.card-body {
    text-align: center;
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.radio-logo {
    max-width: 150px;
    max-height: 90px;
    margin-bottom: 15px;
    object-fit: contain; /* Evita que los logos se deformen */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.radio-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.card-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
}

.play-button-card {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.play-button-card:hover { background-color: white; }
.frequency { font-weight: 600; color: rgba(255,255,255,0.9); }

/* --- Secciones de Contenido (Noticias/Eventos) --- */
.dummy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.dummy-card {
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    display: flex;
    flex-direction: column;
}

.dummy-image {
    height: 55%;
    background-color: #2a2a3a;
    background-size: cover;
    background-position: center;
}

.dummy-content {
    padding: 15px;
    flex-grow: 1;
}

/* --- Reproductor Persistente --- */
#persistent-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: var(--bg-player);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.player-radio-logo-container {
    width: 60px;
    height: 60px;
    background-color: #2a2a3a;
    border-radius: 10px;
    display: flex;
    justify-content: center;