/* === 1. VARIABLES & RESET === */
:root {
    --bg-deep: #050510;
    --primary: #8a2be2; /* Morado Vox */
    --accent: #00ffff;  /* Cian Neón */
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 30%, rgba(138, 43, 226, 0.25), transparent 70%);
}

/* === 2. FONDO ANIMADO (CAPAS) === */
.tech-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    pointer-events: none;
}

.tech-ring {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.ring-1 { width: 500px; height: 500px; border: 1px solid rgba(138, 43, 226, 0.3); box-shadow: 0 0 50px rgba(138, 43, 226, 0.1); }
.ring-2 { width: 800px; height: 800px; border: 1px dashed rgba(0, 255, 255, 0.15); animation: rotate 60s linear infinite; }
.ring-3 { width: 1200px; height: 1200px; border: 1px solid rgba(255, 255, 255, 0.03); }
@keyframes rotate { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* === 3. HEADER === */
.header {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
}
.navbar { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: white; letter-spacing: 1px; }
.highlight { color: var(--primary); text-shadow: 0 0 10px var(--primary); }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: #ccc; text-decoration: none; font-size: 0.9rem; text-transform: uppercase; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); text-shadow: 0 0 8px var(--accent); }

/* === 4. HERO SECTION === */
.hero-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 1rem 4rem; }
.main-logo-round {
    width: 280px; height: 280px; object-fit: cover; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.3), 0 0 40px rgba(138, 43, 226, 0.6);
    margin-bottom: 2rem;
    animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.3), 0 0 40px rgba(138, 43, 226, 0.6); }
    50% { box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.3), 0 0 60px rgba(0, 255, 255, 0.4); }
}
.hero-description { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2.5rem; color: #d0d0d0; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; }
.btn { padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: bold; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 0 20px rgba(138, 43, 226, 0.4); }
.btn-primary:hover { background: var(--accent); color: black; box-shadow: 0 0 30px var(--accent); transform: translateY(-3px); }
.btn-secondary { border: 2px solid var(--accent); color: var(--accent); }
.btn-secondary:hover { background: rgba(0, 255, 255, 0.1); }

/* === 5. SECCIÓN HORARIOS (GRILLA) === */
.schedule-section { padding: 5rem 1rem; background: rgba(0, 0, 0, 0.3); }
.schedule-subtitle { text-align: center; color: var(--accent); margin-top: -2.5rem; margin-bottom: 3rem; font-family: monospace; letter-spacing: 2px; font-size: 0.9rem; text-transform: uppercase; }
.table-container { overflow-x: auto; border-radius: 16px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); border: 1px solid var(--glass-border); backdrop-filter: blur(15px); background: rgba(10, 5, 20, 0.6); max-width: 1000px; margin: 0 auto; }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.schedule-table thead { background: linear-gradient(90deg, rgba(138, 43, 226, 0.8), rgba(0, 255, 255, 0.2)); }
.schedule-table th { padding: 1.5rem; text-align: left; font-weight: 700; text-transform: uppercase; color: white; display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--accent); }
.schedule-table td { padding: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: background 0.3s; }
.time-col { color: var(--accent); font-family: monospace; font-size: 1.1rem; font-weight: bold; width: 30%; border-right: 1px solid rgba(255, 255, 255, 0.05); }
.program-name { display: block; font-size: 1.2rem; color: white; margin-bottom: 5px; }
.program-desc { font-size: 0.9rem; color: #aaa; }
.program-tag { background-color: var(--accent); color: black; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; margin-left: 10px; }
.highlight-row { background: rgba(255, 255, 255, 0.02); }
.schedule-table tbody tr:hover { background: rgba(138, 43, 226, 0.1); }
.schedule-table tbody tr:hover .time-col { color: var(--primary); text-shadow: 0 0 8px var(--primary); }
.dj-row .program-name { background: -webkit-linear-gradient(45deg, var(--accent), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* === 6. SECCIÓN CANALES === */
.channels-section { padding: 5rem 1rem; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; }
.container { max-width: 1200px; margin: 0 auto; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.channel-card { background: var(--glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 16px; padding: 2rem; text-align: center; transition: 0.4s ease; }
.channel-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(138, 43, 226, 0.1); }
.icon-box { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
.channel-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: white; }
.channel-card p { color: #aaa; font-size: 0.95rem; }

/* === 7. FOOTER === */
.footer { background: #02020a; border-top: 1px solid var(--glass-border); padding: 2rem; text-align: center; position: relative; z-index: 10; }
.social-links { margin-top: 1rem; }
.social-links a { color: #888; margin: 0 10px; text-decoration: none; transition: 0.3s; }
.social-links a:hover { color: var(--primary); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; }
    .hero-section h1 { font-size: 2.5rem; }
    .main-logo-round { width: 200px; height: 200px; }
    .cta-buttons { flex-direction: column; padding: 0 2rem; }
    /* Tabla móvil */
    .schedule-table thead { display: none; }
    .schedule-table, .schedule-table tbody, .schedule-table tr, .schedule-table td { display: block; width: 100%; }
    .schedule-table tr { margin-bottom: 1rem; border-bottom: 1px solid var(--glass-border); }
    .time-col { width: 100%; border-right: none; padding-bottom: 0.5rem; font-size: 1rem; color: var(--primary); }
    .schedule-table td { padding: 0.8rem 1.5rem; text-align: left; }
}

/* === 8. REPRODUCTOR DE AUDIO FIJO (ESTILO CYBERPUNK) === */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--accent);
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.player-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Información de la pista */
.track-info {
    display: flex;
    flex-direction: column;
}

.station-name {
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.live-indicator {
    color: #ff3333;
    font-size: 0.75rem;
    font-weight: 800;
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Botón de Play Grande */
.play-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s;
}

.play-btn span {
    font-size: 3.5rem;
    text-shadow: 0 0 15px var(--primary);
}

.play-btn:hover span {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent);
    transform: scale(1.1);
}

/* Visualizador de Audio (Animación Fake) */
.visualizer {
    display: flex;
    gap: 4px;
    height: 30px;
    align-items: flex-end;
}

.bar {
    width: 6px;
    background: var(--accent);
    height: 5px;
    transition: height 0.1s;
}

/* Animación cuando está sonando */
.visualizer.active .bar {
    animation: equalizer 1s infinite ease-in-out;
}

.visualizer.active .bar:nth-child(1) { animation-delay: 0.1s; }
.visualizer.active .bar:nth-child(2) { animation-delay: 0.2s; }
.visualizer.active .bar:nth-child(3) { animation-delay: 0.4s; }
.visualizer.active .bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes equalizer {
    0% { height: 5px; }
    50% { height: 25px; box-shadow: 0 0 10px var(--accent); }
    100% { height: 5px; }
}

/* Ajuste Responsive para que el footer no tape el reproductor */
.footer {
    padding-bottom: 100px; /* Da espacio extra al final */
}

@media (max-width: 768px) {
    .player-content {
        justify-content: space-around;
    }
    .station-name { font-size: 0.9rem; }
    .play-btn span { font-size: 3rem; }
    .visualizer { display: none; } /* Ocultar visualizador en móviles pequeños */
}