/* =========================================================
   VINO NUEVO RADIO - MASTER STYLES 2025 (CORPORATE COLORS)
   Ubicación: assets/css/style.css
   ========================================================= */

/* --- 1. CONFIGURACIÓN BASE Y VARIABLES DE COLOR --- */
:root {
    /* --- Paleta Corporativa Nueva --- */
    --bg-deep: #050505;       /* Fondo Principal (Negro profundo) */
    --primary: #B7184C;       /* Rubí Corporativo (Acción principal) */
    --secondary: #9575CD;     /* Púrpura Corporativo (Acentos) */
    
    /* Gradiente de Marca (Fusión de los dos colores) */
    --brand-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    
    /* Resplandores (Glows) para efecto neón */
    --primary-glow: rgba(183, 24, 76, 0.6);
    --secondary-glow: rgba(149, 117, 205, 0.5);
    
    /* Textos */
    --text-white: #ffffff;
    --text-muted: #a1a1aa;
    
    /* Efectos de Cristal */
    --glass-bg: rgba(15, 15, 20, 0.75); /* Un toque azulado muy sutil */
    --glass-border: rgba(255, 255, 255, 0.08);
    --blur-amt: 20px;
    
    /* Espaciados Seguros */
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

/* Reset Suave */
* { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0; padding: 0;
    overflow-x: hidden;
    padding-bottom: 140px; /* Espacio para el reproductor y menú */
}

/* --- 2. TIPOGRAFÍA Y UTILIDADES --- */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.5px; }
p { color: var(--text-muted); line-height: 1.6; }

/* Clase para botones con el gradiente corporativo */
.btn-brand-gradient {
    background: var(--brand-gradient);
    color: white; border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.3s ease;
}
.btn-brand-gradient:hover { box-shadow: 0 6px 20px var(--secondary-glow); }

/* --- 3. HEADER SUPERIOR (TOP BAR) --- */
.app-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: calc(15px + var(--safe-top)) 20px 15px;
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.brand-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: white; font-weight: 700;
    font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none; color: white;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer;
    backdrop-filter: blur(5px);
}

/* --- 4. SLIDER HERO (INMERSIVO) --- */
.hero-slider-container {
    position: relative; height: 75vh; width: 100%; overflow: hidden;
}

.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease-in-out;
    background-size: cover; background-position: center top;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    /* Degradado que integra la imagen con el fondo negro */
    background: linear-gradient(to bottom, rgba(5,5,5,0.1) 0%, rgba(5,5,5,0.7) 50%, var(--bg-deep) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 25px 130px 25px;
}

.hero-content {
    position: relative; z-index: 2;
    animation: slideUpFade 0.8s ease-out 0.5s forwards; opacity: 0;
}

/* Etiqueta con el nuevo gradiente */
.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--brand-gradient); /* Uso del gradiente */
    color: white;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 1px;
    border-radius: 30px; margin-bottom: 15px;
    box-shadow: 0 0 20px var(--primary-glow);
}

.hero-title {
    font-size: 2.8rem; line-height: 1.05; margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Botón Principal con gradiente y resplandor */
.btn-hero {
    margin-top: 10px;
    padding: 18px 45px;
    background: var(--brand-gradient);
    color: white; border: none; border-radius: 50px;
    font-size: 1.1rem; font-weight: 700; letter-spacing: 1px;
    box-shadow: 0 10px 30px var(--primary-glow);
    cursor: pointer; transition: transform 0.2s, box-shadow 0.3s;
    text-transform: uppercase; display: flex; align-items: center; gap: 10px;
}
.btn-hero:active { transform: scale(0.98); box-shadow: 0 5px 15px var(--primary-glow); }

/* --- 5. NAVEGACIÓN INFERIOR (DOCK FLOTANTE) --- */
.bottom-nav {
    position: fixed;
    bottom: 85px; left: 15px; right: 15px;
    height: 70px;
    background: rgba(20, 20, 25, 0.7); /* Cristal oscuro */
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 15px;
    z-index: 900;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.nav-item {
    background: none; border: none; color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center;
    font-size: 0.65rem; gap: 5px; min-width: 55px;
    cursor: pointer; transition: all 0.3s;
}

.nav-item i { font-size: 1.4rem; transition: all 0.3s; }

/* Estado activo con los nuevos colores */
.nav-item.active { color: white; }
.nav-item.active i {
    color: var(--primary); /* Color rubí */
    /* Sutil resplandor púrpura al activarse */
    text-shadow: 0 0 15px var(--secondary-glow);
    transform: translateY(-3px);
}

/* Botón central (Radio) destacado */
.nav-item.center-btn i {
    font-size: 2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary-glow));
    margin-bottom: 2px;
}

/* --- 6. MINI PLAYER --- */
.mini-player {
    position: fixed; bottom: 0; left: 0; width: 100%;
    height: 80px;
    background: #09090b; /* Fondo sólido para contraste */
    border-top: 1px solid var(--glass-border);
    display: flex; align-items: center;
    padding: 0 20px;
    z-index: 1000;
    padding-bottom: var(--safe-bottom);
}

.player-art {
    width: 50px; height: 50px; border-radius: 12px;
    background-size: cover; background-position: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); margin-right: 15px;
    border: 1px solid var(--glass-border);
}

.player-info { flex: 1; overflow: hidden; }
.player-title { font-size: 0.95rem; font-weight: 700; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; }

.live-badge {
    background: var(--primary); /* Color rubí */
    color: white; font-size: 0.6rem; padding: 2px 6px;
    border-radius: 4px; font-weight: 800; letter-spacing: 1px;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-play-mini {
    width: 45px; height: 45px; border-radius: 50%;
    background: white; border: none; color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer; margin-left: 15px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* --- 7. MODALES Y VISTAS --- */
.modal-glass {
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
}
.input-glass {
    background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border);
    color: white; border-radius: 12px; padding: 15px;
    text-align: center; letter-spacing: 5px; font-weight: bold;
}

.view-section { display: none; animation: fadeIn 0.3s ease; }
.view-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }