/* ==========================================================================
   RADIO AYERZA - OPTIMIZED STYLESHEET
   Versión: 2.1.0
   Correcciones: Eliminación de duplicados, fix de selectores, consolidación
   ========================================================================== */

:root {
    --primary-color: #e94560;
    --secondary-color: #0f3460;
    --bg-dark: #1a1a2e;
    --bg-darker: #16213e;
    --text-light: #f1f1f1;
    --text-muted: #a0a0a0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-bottom: env(safe-area-inset-bottom);
}

/* --- 1. RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    padding-bottom: calc(80px + var(--safe-area-bottom));
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- 2. HEADER & NAVIGATION --- */
.main-header {
    background-color: rgba(22, 33, 62, 0.98);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    padding: calc(0.5rem + var(--safe-area-top)) 0 0.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
    -webkit-touch-callout: none;
}

.logo-link:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.station-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.station-slogan {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-list a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--font-heading);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    -webkit-touch-callout: none;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(233, 69, 96, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.6rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-toggle:active {
    background: var(--primary-color);
    transform: scale(0.95);
}

.hamburger {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--primary-color);
    position: relative;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2.5px;
    background-color: var(--primary-color);
    left: 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-menu-toggle.active .hamburger { background-color: transparent; }
.mobile-menu-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.mobile-menu-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

/* --- 3. HERO SECTION --- */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/fondoraz.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 52, 96, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    padding: 1rem;
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    line-height: 1.5;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.5);
    min-height: 48px;
    touch-action: manipulation;
}

.cta-button:active {
    transform: scale(0.95);
    box-shadow: 0 3px 10px rgba(233, 69, 96, 0.4);
}

/* --- 4. MAIN SECTIONS --- */
.section {
    padding: 3rem 0;
}

.section-alt {
    background-color: var(--bg-darker);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    padding: 0 1rem;
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.schedule-card {
    background-color: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.schedule-card:active {
    transform: scale(0.98);
}

.schedule-time {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.schedule-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.schedule-host {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

.schedule-day {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--secondary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- 5. CONTACT SECTION --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

.contact-form,
.contact-info {
    background-color: var(--bg-darker);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: var(--bg-dark);
    border: 2px solid #2a2a4a;
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-appearance: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(26, 26, 46, 0.8);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #00ff88;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff4444;
    animation: shake 0.4s ease;
}

.error-message {
    display: block;
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    min-height: 1.2rem;
    font-weight: 500;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    transition: color 0.3s ease;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    background-color: #d13650;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.form-response {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.form-response.success {
    background-color: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    color: #00ff88;
}

.form-response.error {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

.contact-info h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- 6. STICKY PLAYER --- */
.sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(22, 33, 62, 0.98);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-top: 2px solid var(--primary-color);
    z-index: 2000;
    padding: calc(0.8rem + var(--safe-area-bottom)) 0 0.8rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.4);
}

.player-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.player-artwork {
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.player-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-artwork.fallback {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.fallback-text {
    display: none;
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
}

.player-artwork.fallback .fallback-text {
    display: block;
}

.player-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

/* Player Status & Track */
.player-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    transition: var(--transition);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: pulse-dot 2s infinite;
}

.player-status.live .status-dot { background-color: #00ff88; box-shadow: 0 0 8px rgba(0, 255, 136, 0.6); }
.player-status.buffering .status-dot { background-color: #ffa500; animation: pulse-dot 1s infinite; }
.player-status.error .status-dot { background-color: #ff4444; animation: pulse-dot 0.5s infinite; }
.player-status.paused .status-dot { background-color: #888; animation: none; }

.player-status.live .status-text { color: #00ff88; }
.player-status.buffering .status-text { color: #ffa500; }
.player-status.error .status-text { color: #ff4444; }
.player-status.paused .status-text { color: #888; }

.status-text {
    text-transform: uppercase;
}

.player-track {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.player-status.error ~ .player-track {
    color: #ff4444;
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ========== VÚMETRO ANALÓGICO PROFESIONAL ========== */
.vu-meter-container {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border-radius: 12px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    box-shadow: 
        0 0 20px rgba(233, 69, 96, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.vu-meter-container.active {
    display: flex;
    animation: vuGlow 2s ease-in-out infinite;
}

@keyframes vuGlow {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(233, 69, 96, 0.2),
            inset 0 0 20px rgba(0, 0, 0, 0.5);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(233, 69, 96, 0.4),
            inset 0 0 20px rgba(0, 0, 0, 0.5);
    }
}

.vu-meter-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.5), transparent);
}

.vu-meter {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.vu-meter-left,
.vu-meter-right {
    position: relative;
    width: 80px;
    height: 50px;
}

.vu-scale {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.vu-scale-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0, 255, 136, 0.1) 0%, 
        rgba(255, 165, 0, 0.1) 70%, 
        rgba(255, 68, 68, 0.1) 100%
    );
    border-radius: 50% 50% 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vu-scale-markings {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 5px;
    box-sizing: border-box;
}

.vu-mark {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.vu-mark-min { color: #00ff88; }
.vu-mark-mid { color: #ffa500; }
.vu-mark-zero { color: #ffffff; font-weight: 900; }
.vu-mark-max { color: #ff4444; }

.vu-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 45px;
    background: linear-gradient(180deg, #ff4444 0%, #e94560 100%);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    transition: transform 0.1s ease-out;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(233, 69, 96, 0.8);
    z-index: 10;
}

.vu-needle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 68, 68, 1);
}

.vu-needle-center {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #e94560 0%, #8b0000 100%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.6);
    z-index: 11;
}

.vu-label {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(233, 69, 96, 0.5);
}

/* Responsive Vúmetro */
/* ==========================================================================
   AJUSTES ESPECÍFICOS PARA MÓVILES (Logo + Nombre Visible)
   ========================================================================== */

/* Móviles medianos (<= 480px) */
@media (max-width: 480px) {
    /* MOSTRAMOS el texto del logo en lugar de ocultarlo */
    .logo-text { 
        display: flex; 
    }
    
    .logo-image { 
        height: 40px; /* Logo un poco más pequeño para hacer espacio */
    }
    
    .station-name {
        font-size: 1.1rem; /* Tamaño legible en móvil */
        line-height: 1.1;
    }
    
    .station-slogan {
        font-size: 0.6rem;
        display: block; /* Asegura que se vea debajo del nombre */
    }
    
    .hero h2 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    .cta-button { padding: 0.9rem 2rem; font-size: 0.95rem; }
    
    .section { padding: 2rem 0; }
    .schedule-card { padding: 1.2rem; }
    
    .player-track { max-width: 100px; font-size: 0.8rem; }
    .play-btn { width: 40px; height: 40px; }
    
    .social-link { width: 38px; height: 38px; }
    .social-icon { width: 16px; height: 16px; }
}

/* Móviles pequeños (<= 375px) */
@media (max-width: 375px) {
    .container { padding: 0 12px; }
    
    .logo-image { 
        height: 35px; /* Aún más pequeño para pantallas muy estrechas */
    }
    
    .station-name {
        font-size: 0.95rem; /* Ajuste fino para que no se desborde */
    }
    
    .station-slogan {
        font-size: 0.55rem;
    }
    
    .hero h2 { font-size: 1.6rem; }
    .section-title { font-size: 1.5rem; }
    
    .player-artwork { width: 40px; height: 40px; }
    .player-track { max-width: 80px; font-size: 0.75rem; }
}

.play-btn {
    background-color: var(--primary-color);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(233, 69, 96, 0.4);
}

.play-btn:active {
    transform: scale(0.92);
    box-shadow: 0 1px 5px rgba(233, 69, 96, 0.4);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    background-color: rgba(15, 52, 96, 0.3);
    border-radius: 25px;
    border: 1px solid rgba(233, 69, 96, 0.2);
    transition: var(--transition);
    position: relative;
}

.volume-control:hover {
    background-color: rgba(15, 52, 96, 0.5);
    border-color: rgba(233, 69, 96, 0.4);
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.2);
}

.icon-volume {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.volume-control:hover .icon-volume {
    color: #ff6b8a;
    transform: scale(1.1);
}

.volume-control input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 70%, rgba(255, 255, 255, 0.2) 70%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.volume-control input[type="range"]:hover {
    height: 7px;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.4);
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #e94560, #ff6b8a);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.5);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    width: 18px;
    height: 18px;
    box-shadow: 0 3px 12px rgba(233, 69, 96, 0.7);
    transform: scale(1.2);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #e94560, #ff6b8a);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.5);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.volume-control input[type="range"]::-moz-range-track {
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-color) 70%, rgba(255, 255, 255, 0.2) 70%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 3px;
    cursor: pointer;
}

/* Volume Tooltip */
.volume-control::before {
    content: attr(data-volume);
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.volume-control::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 20px;
    border: 5px solid transparent;
    border-top-color: var(--primary-color);
    margin-bottom: -5px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.volume-control:hover::before,
.volume-control:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Volume Level Indicator */
.volume-level-indicator {
    display: flex;
    gap: 2px;
    margin-left: 0.5rem;
    align-items: flex-end;
    height: 20px;
}

.volume-bar {
    width: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: var(--transition);
}

.volume-bar:nth-child(1) { height: 25%; }
.volume-bar:nth-child(2) { height: 50%; }
.volume-bar:nth-child(3) { height: 75%; }
.volume-bar:nth-child(4) { height: 100%; }

.volume-control[data-level="low"] .volume-bar:nth-child(1) { background-color: var(--primary-color); box-shadow: 0 0 5px rgba(233, 69, 96, 0.5); }
.volume-control[data-level="low"] .volume-bar:nth-child(2),
.volume-control[data-level="low"] .volume-bar:nth-child(3),
.volume-control[data-level="low"] .volume-bar:nth-child(4) { background-color: rgba(255, 255, 255, 0.1); }

.volume-control[data-level="medium"] .volume-bar:nth-child(1),
.volume-control[data-level="medium"] .volume-bar:nth-child(2) { background-color: var(--primary-color); box-shadow: 0 0 5px rgba(233, 69, 96, 0.5); }
.volume-control[data-level="medium"] .volume-bar:nth-child(3),
.volume-control[data-level="medium"] .volume-bar:nth-child(4) { background-color: rgba(255, 255, 255, 0.1); }

.volume-control[data-level="high"] .volume-bar:nth-child(1),
.volume-control[data-level="high"] .volume-bar:nth-child(2),
.volume-control[data-level="high"] .volume-bar:nth-child(3) { background-color: var(--primary-color); box-shadow: 0 0 5px rgba(233, 69, 96, 0.5); }
.volume-control[data-level="high"] .volume-bar:nth-child(4) { background-color: rgba(255, 255, 255, 0.1); }

.volume-control[data-level="max"] .volume-bar { background-color: var(--primary-color); box-shadow: 0 0 5px rgba(233, 69, 96, 0.5); }

/* --- 7. FOOTER --- */
.main-footer {
    background-color: #0d0d1a;
    padding: 2rem 0;
    margin-bottom: calc(80px + var(--safe-area-bottom));
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-block;
    padding: 0.3rem 0;
}

.footer-section a:active {
    color: var(--primary-color);
}

/* Social Links */
.social-links { 
    display: flex; 
    gap: 0.8rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--bg-darker);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #ff6b8a);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-link:hover::before {
    opacity: 1;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
    border-color: var(--primary-color);
}

.social-link:hover .social-icon {
    fill: white;
    transform: scale(1.1);
}

.social-link:active {
    transform: translateY(-1px) scale(1.05);
}

/* Colores específicos por red social */
.social-link:nth-child(1):hover {
    background-color: #1877f2;
    border-color: #1877f2;
}

.social-link:nth-child(2):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
}

.social-link:nth-child(3):hover {
    background-color: #000000;
    border-color: #ffffff;
}

.social-link:nth-child(4):hover {
    background-color: #ff0000;
    border-color: #ff0000;
}

.social-link:nth-child(5):hover {
    background-color: #000000;
    border-color: #ff0050;
}

.social-link:nth-child(6):hover {
    background-color: #25d366;
    border-color: #25d366;
}

/* --- 8. ANIMATIONS --- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Safe Areas (iPhone con notch) */
@supports (padding-top: env(safe-area-inset-top)) {
    .main-header { padding-top: calc(0.5rem + env(safe-area-inset-top)); }
    .sticky-player { padding-bottom: calc(0.8rem + env(safe-area-inset-bottom)); }
    .main-footer { margin-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* Prevenir zoom en inputs en iOS */
@media screen and (max-width: 768px) {
    input, textarea, select { font-size: 16px !important; }
}

/* Modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
    :root { color-scheme: dark; }
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Tablets y Desktop (> 768px) */
@media (min-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr 1fr; }
    .footer-container { grid-template-columns: repeat(3, 1fr); }
    .logo-image { height: 70px; }
    .station-name { font-size: 1.6rem; }
}

/* Desktop (> 992px) */
@media (min-width: 992px) {
    .container { padding: 0 20px; }
    .nav-list { gap: 2rem; }
    .nav-list a { font-size: 1rem; }
    .schedule-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets en horizontal */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero { min-height: 60vh; }
    .station-slogan { display: none; }
    .volume-control input[type="range"] { width: 100px; }
}

/* Móviles grandes (<= 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    
    .nav-list {
        display: none;
        position: fixed;
        top: calc(70px + var(--safe-area-top));
        left: 0;
        width: 100%;
        background-color: rgba(22, 33, 62, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.4);
        max-height: calc(100vh - 70px - var(--safe-area-top));
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-list.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    .nav-list li {
        text-align: center;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-list li:last-child { border-bottom: none; }
    
    .nav-list a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.2rem 1rem;
        font-size: 1.1rem;
        min-height: 48px;
    }
    
    .logo-image { height: 50px; }
    .station-name { font-size: 1.2rem; }
    .station-slogan { font-size: 0.65rem; }
    
    .player-container { flex-wrap: wrap; }
    .player-info { flex: 1; min-width: 0; }
    .player-track { max-width: 120px; font-size: 0.85rem; }
    .player-status { font-size: 0.65rem; }
    .status-dot { width: 6px; height: 6px; }
    
    .volume-control { display: none; }
    
    .contact-form, .contact-info { padding: 1.5rem; }
    .form-group input, .form-group textarea { padding: 0.8rem; }
    
    .social-links { gap: 0.6rem; }
    .social-link { width: 40px; height: 40px; }
    .social-icon { width: 18px; height: 18px; }
}

/* Móviles medianos (<= 480px) */
@media (max-width: 480px) {
    /* FORZAMOS la visualización del texto del logo */
    .logo-text { 
        display: flex !important; 
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.1;
    }
    
    .logo-image { 
        height: 40px; /* Logo compacto para dejar espacio al texto */
    }
    
    .station-name {
        font-size: 1rem !important;
        font-weight: 800;
        color: var(--primary-color);
        margin: 0;
        white-space: normal !important; /* Permite que el texto baje de línea si no entra */
        word-break: break-word;
    }
    
    .station-slogan {
        font-size: 0.6rem !important;
        color: var(--text-muted);
        white-space: normal !important;
        display: block !important;
    }
    
    .hero h2 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    .cta-button { padding: 0.9rem 2rem; font-size: 0.95rem; }
    
    .section { padding: 2rem 0; }
    .schedule-card { padding: 1.2rem; }
    
    .player-track { max-width: 100px; font-size: 0.8rem; }
    .play-btn { width: 40px; height: 40px; }
    
    .social-links { gap: 0.6rem; }
    .social-link { width: 38px; height: 38px; }
    .social-icon { width: 16px; height: 16px; }
}

/* Móviles pequeños (<= 375px) */
@media (max-width: 375px) {
    .container { padding: 0 12px; }
    
    .logo-image { 
        height: 35px; 
    }
    
    .station-name {
        font-size: 0.9rem !important; /* Ajuste fino para pantallas muy estrechas */
    }
    
    .station-slogan {
        font-size: 0.55rem !important;
    }
    
    .hero h2 { font-size: 1.6rem; }
    .section-title { font-size: 1.5rem; }
    
    .player-artwork { width: 40px; height: 40px; }
    .player-track { max-width: 80px; font-size: 0.75rem; }
}