:root {
    --glass-bg: rgba(7, 18, 36, 0.55);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-light: #ffffff;
    --accent: #E5B80B; /* Dorado */
    --accent-glow: rgba(229, 184, 11, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

body, html { height: 100%; width: 100%; overflow: hidden; color: var(--text-light); }

/* --- FONDO CON IMAGEN TIPO ESTUDIO/ADORACIÓN --- */
.background-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    /* Imagen de fondo con ambiente de adoración/luces cálidas. Puedes cambiar la URL por una foto de tu cabina de radio si prefieres */
    background: url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?q=80&w=1920&auto=format&fit=crop') no-repeat center center;
    background-size: cover; 
    z-index: -2;
}

/* Capa de color semi-transparente que se mueve suavemente */
.background-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(5, 12, 25, 0.85), rgba(229, 184, 11, 0.15), rgba(5, 12, 25, 0.9));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Efecto Cristal */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.player-wrapper { display: flex; justify-content: center; align-items: center; height: calc(100vh - 50px); padding: 20px; }

/* Tarjeta Principal */
.player-card {
    border-radius: 40px; padding: 40px 35px; width: 100%; max-width: 380px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    animation: playerCardFloat 6s ease-in-out infinite;
}

@keyframes playerCardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Textos */
.player-header { margin-bottom: 25px; }

.status-badge { 
    font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; 
    color: var(--accent); margin-bottom: 8px; 
    display: flex; justify-content: center; align-items: center; gap: 6px;
}

.cross-badge { font-size: 0.85rem; color: #fff; }
.fade-pulse { animation: statusPulse 2s infinite ease-in-out; }
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.station-title { 
    font-size: 1.8rem; font-weight: 900; letter-spacing: -0.5px;
    text-transform: uppercase; text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.station-slogan { font-size: 0.95rem; color: #cbd5e1; margin-bottom: 20px; }

/* Contenedor de Logo */
.main-logo-wrapper {
    margin-bottom: 25px; border-radius: 50%; padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.6s ease; box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.logo-aura-ring {
    width: 200px; height: 200px; border-radius: 50%; overflow: hidden;
    background: rgba(3, 8, 20, 0.5);
    display: flex; justify-content: center; align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.center-radio-logo {
    width: 100%; height: 100%; object-fit: contain; padding: 15px;
    transition: transform 0.5s ease;
}

.main-logo-wrapper.active-glow {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(229, 184, 11, 0.2);
    animation: sacralPulse 2.5s infinite alternate ease-in-out;
}

@keyframes sacralPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

/* Ecualizador */
.equalizer {
    display: flex; gap: 5px; height: 32px; align-items: flex-end; justify-content: center;
    margin-bottom: 25px; opacity: 0.15; transition: opacity 0.4s ease;
}

.equalizer.active { opacity: 1; }

.equalizer .bar {
    width: 4px; background: linear-gradient(to top, var(--accent), #ffffff); 
    border-radius: 2px 2px 0 0; height: 10%; transition: height 0.3s ease;
}

.equalizer.active .bar { animation: audioWave 1s ease-in-out infinite alternate; }
.equalizer .bar:nth-child(1) { height: 30%; animation-delay: -0.5s; }
.equalizer .bar:nth-child(2) { height: 60%; animation-delay: -0.2s; }
.equalizer .bar:nth-child(3) { height: 90%; animation-delay: -0.7s; }
.equalizer .bar:nth-child(4) { height: 40%; animation-delay: -0.3s; }
.equalizer .bar:nth-child(5) { height: 75%; animation-delay: -0.1s; }
.equalizer .bar:nth-child(6) { height: 50%; animation-delay: -0.6s; }
.equalizer .bar:nth-child(7) { height: 85%; animation-delay: -0.4s; }
.equalizer .bar:nth-child(8) { height: 25%; animation-delay: -0.8s; }

@keyframes audioWave { 0% { height: 10%; } 100% { height: 100%; } }

/* Botón Play */
.play-btn {
    width: 70px; height: 70px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, #ffffff, #cbd5e1); color: #071224;
    font-size: 1.6rem; cursor: pointer; display: flex; justify-content: center; align-items: center;
    transition: all 0.3s ease; box-shadow: 0 10px 25px rgba(0,0,0,0.4); margin-bottom: 25px;
    padding-left: 5px;
}

.play-btn:hover { 
    transform: scale(1.1) translateY(-3px); 
    box-shadow: 0 15px 30px var(--accent-glow); color: var(--accent);
}
.play-btn:active { transform: scale(0.96); }
.play-btn.playing-mode { padding-left: 0; }

/* Redes Sociales */
.social-links { display: flex; gap: 14px; }
.social-links a {
    color: #ffffff; background: rgba(255, 255, 255, 0.05); width: 44px; height: 44px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 1.05rem;
    text-decoration: none; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-links a:hover {
    background: var(--accent); border-color: var(--accent); color: #071224;
    transform: translateY(-5px); box-shadow: 0 8px 20px var(--accent-glow);
}

/* --- FOOTER CRISTALINO ESTÁTICO --- */
.main-footer {
    position: absolute; bottom: 0; width: 100%; height: 50px;
    display: flex; justify-content: center; align-items: center; font-size: 0.85rem;
    border-radius: 0; border: none; border-top: 1px solid var(--glass-border);
    /* Fondo semi transparente para que actúe como cristal */
    background: rgba(10, 20, 35, 0.4); 
    z-index: 10;
}
.main-footer strong { color: var(--accent); font-weight: 700; }

/* Adaptación Móvil */
@media (max-width: 480px) {
    .player-card { padding: 30px 20px; border-radius: 30px; max-width: 90%; }
    .logo-aura-ring { width: 160px; height: 160px; }
    .station-title { font-size: 1.5rem; }
    .play-btn { width: 60px; height: 60px; font-size: 1.4rem; }
}

/* --- SEGURIDAD --- */
.security-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(15px);
    display: flex; justify-content: center; align-items: center; z-index: 9999;
    opacity: 1; transition: opacity 0.4s ease;
}
.security-overlay.hidden { opacity: 0; pointer-events: none; }
.security-card {
    padding: 40px 30px; text-align: center; border-radius: 32px; max-width: 400px; width: 90%;
    border: 1px solid var(--accent); box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}
.shield-container {
    display: inline-block; padding: 20px; border-radius: 50%;
    background: rgba(229, 184, 11, 0.1); margin-bottom: 20px;
}
.security-icon { font-size: 3.5rem; color: var(--accent); }
.security-title { font-size: 1.5rem; margin-bottom: 12px; color: #fff; }
.security-text { font-size: 0.95rem; color: #ccc; margin-bottom: 25px; line-height: 1.5; }
.security-text strong { color: var(--accent); }
.security-btn {
    padding: 12px 35px; border-radius: 30px; border: none;
    background: linear-gradient(135deg, var(--accent), #b59207); color: #000;
    font-size: 0.95rem; font-weight: 700; cursor: pointer;
}
.security-btn:hover { color: #fff; transform: translateY(-2px); }