/* ============================================
   RADIO SUPER A1 - CSS CORREGIDO
   FONDO 100% VISIBLE EN TODA LA PÁGINA
============================================ */

/* RESET Y VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales - MÁS INTENSOS */
    --primary: #0a1929;
    --primary-solid: #0a1929; /* Color sólido para header */
    --secondary: #1e3a5f;
    --accent: #ffd700;
    --accent-glow: #ffed4e;
    
    /* Texto */
    --text-white: #ffffff;
    --text-light: #f0f0f0;
    --text-muted: #cccccc;
    
    /* Fondos - MENOS TRANSPARENTES */
    --bg-header: rgba(10, 25, 41, 0.98); /* 98% opaco */
    --bg-section: rgba(10, 25, 41, 0.85);
    --bg-player: rgba(10, 25, 41, 0.9);
    
    /* Bordes */
    --border-gold: #ffd700;
    --border-light: rgba(255, 255, 255, 0.2);
    
    /* Sombras */
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.5);
    
    /* Fuentes */
    --font-heading: 'Bebas Neue', cursive;
    --font-body: 'Montserrat', sans-serif;
}

/* ========== FONDO PRINCIPAL ========== */
body {
    font-family: var(--font-body);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    
    /* FONDO DEFINITIVO - 100% VISIBLE */
    background: 
        /* Capa sólida semi-transparente */
        linear-gradient(rgba(10, 25, 41, 0.92), rgba(10, 25, 41, 0.92)),
        /* Imagen de fondo */
        url('images/fondo_ondas_azul_dorado_20251123_074159.png');
    
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    
    /* Eliminar cualquier overlay que tape */
    position: relative;
}

/* Remover cualquier overlay anterior */
body::before,
body::after {
    display: none !important;
}

/* ========== AJUSTE 3: MENÚ LATERAL MÁS SUTIL (CORREGIDO) ========== */
/* MENÚ LATERAL MEJORADO */
.side-menu {
    position: fixed;
    top: 0;
    left: -280px; /* COMPLETAMENTE FUERA DE PANTALLA */
    width: 280px;
    height: 100vh;
    background: rgba(10, 25, 41, 0.98); /* MÁS OPACO */
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.6);
    border-right: 2px solid #ffd700;
    overflow-y: auto;
}

.side-menu.active {
    left: 0;
}

/* EL CONTENIDO NO SE MUEVE - SOLO EL MENÚ SE SUPERPONE */
body.menu-open {
    overflow: hidden; /* SOLO PARA EVITAR SCROLL HORIZONTAL */
}

body.menu-open .main-content-wrapper {
    transform: none; /* NO SE MUEVE */
    margin-left: 0; /* NO SE DESPLAZA */
}

/* BOTÓN HAMBURGUESA MÁS DISCRETO */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001; /* ENCIMA DEL MENÚ */
    background: rgba(10, 25, 41, 0.9);
    border: 2px solid #ffd700;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* OVERLAY PARA CERRAR */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* DEBAJO DEL MENÚ */
    display: none;
    backdrop-filter: blur(3px);
}

.menu-overlay.active {
    display: block;
}

/* ========== HEADER 100% VISIBLE ========== */
.main-header {
    background: var(--primary-solid) !important; /* Color sólido */
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    z-index: 2; /* AJUSTE 4: Encima del menú cuando esté cerrado */
    
    /* Bordes y sombras para destacar */
    border-bottom: 4px solid var(--accent);
    box-shadow: var(--shadow-heavy);
    
    /* Eliminar transparencias problemáticas */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo-container {
    margin-bottom: 0.5rem;
}

.header-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow: 
        var(--shadow-glow),
        0 5px 20px rgba(0, 0, 0, 0.8);
    background: white;
    padding: 5px;
    object-fit: cover;
}

.radio-title {
    font-family: var(--font-heading);
    text-align: center;
}

.title-main {
    display: block;
    font-size: clamp(2.8rem, 9vw, 4rem);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        3px 3px 0 #000,
        6px 6px 15px rgba(0, 0, 0, 0.9);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.title-sub {
    display: block;
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    color: var(--text-white);
    font-weight: 500;
    margin-bottom: 1rem;
}

.header-info {
    margin-top: 1rem;
}

.founder {
    font-size: 1rem;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 1rem;
    font-weight: 600;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5);
}

.live-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.live-text {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* ========== AJUSTE 1: REDES SOCIALES A LA DERECHA Y SIN TAPARSE ========== */
.social-nav {
    position: fixed;
    bottom: 20px;
    right: 20px; /* CAMBIADO DE LEFT A RIGHT */
    left: auto; /* ANULA LEFT SI EXISTE */
    z-index: 990; /* POR DEBAJO DEL MENÚ PERO ENCIMA DEL CONTENIDO */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Asegurar que no se tape con el menú */
body.menu-open .social-nav {
    right: 20px; /* MANTENER A LA DERECHA */
    transform: none; /* SIN MOVIMIENTO */
}

/* ========== AJUSTE 4: MEJORAR ESTILOS DE REDES SOCIALES ========== */
.social-nav .social-btn {
    background: rgba(10, 25, 41, 0.9);
    border: 2px solid;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
    text-decoration: none;
}

.social-nav .social-btn.facebook {
    border-color: #1877F2;
    color: #1877F2;
}

.social-nav .social-btn.whatsapp {
    border-color: #25D366;
    color: #25D366;
}

.social-nav .social-btn.youtube {
    border-color: #FF0000;
    color: #FF0000;
}

.social-nav .social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ========== CONTENIDO PRINCIPAL ========== */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

/* ========== AJUSTE 2: CORREGIR ESTRUCTURA SIN DESARMARLA ========== */
/* Mantener tu estructura original intacta */
.main-content {
    /* Tu estructura original se mantiene */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Solo ocultar lo que no se usa con las tabs */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Asegurar que las secciones originales mantengan sus estilos */
.player-section,
.info-section,
.mission,
.schedule-section,
.contact-section,
.facebook-section,
.publicidad-section {
    /* Tus estilos originales se mantienen */
    margin-bottom: 30px;
    background: rgba(10, 25, 41, 0.8);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* ========== REPRODUCTOR COMPACTO ========== */
.player-section {
    margin-bottom: 3rem;
}

.player-container {
    background: var(--bg-player);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-heavy);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.station-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.station-logo img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    border: 2px solid var(--accent);
    object-fit: cover;
    box-shadow: var(--shadow-glow);
}

.station-info h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.frequency {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.tagline {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Controles del reproductor */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent), #ff9900);
    color: var(--primary);
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.3);
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.7),
        0 0 40px rgba(255, 215, 0, 0.5);
}

.spinner {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.secondary-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    justify-content: center;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.volume-btn {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.volume-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
}

#volumeSlider {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.favorite-btn {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    background: rgba(255, 51, 102, 0.2);
    color: #ff3366;
}

.favorite-btn.active {
    color: #ff3366;
    background: rgba(255, 51, 102, 0.3);
    border-color: #ff3366;
}

.fav-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff3366;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estado del player */
.player-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.connection-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#statusDot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ff88;
    animation: pulse 2s infinite;
}

.listeners-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

/* Botón compartir */
.share-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent), #ff9900);
    border: none;
    border-radius: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

/* ========== SECCIONES INFORMATIVAS ========== */
.info-section {
    background: var(--bg-section);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    color: var(--accent);
}

.section-header i {
    font-size: 1.8rem;
    color: var(--accent);
}

.section-content {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 1rem;
}

blockquote {
    font-style: italic;
    color: var(--accent);
    padding: 1.5rem;
    border-left: 4px solid var(--accent);
    background: rgba(255, 215, 0, 0.05);
    border-radius: 0 10px 10px 0;
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

ul {
    list-style: none;
    margin: 1.5rem 0;
}

ul li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
}

ul li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--accent);
    font-size: 1.1rem;
}

/* Sección misión específica */
.mission {
    border-color: #00ff88;
}

.mission .section-header i {
    color: #00ff88;
}

/* ========== PROGRAMACIÓN ========== */
.schedule-section {
    background: var(--bg-section);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.schedule-grid {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-left-color: var(--accent-glow);
}

.time {
    min-width: 140px;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

.program h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.program p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.host {
    font-style: italic;
    color: var(--accent);
    font-size: 0.9rem;
}

.schedule-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--accent);
    font-style: italic;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    font-size: 1.1rem;
}

/* ========== CONTACTO ========== */
.contact-section {
    background: var(--bg-section);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.contact-info {
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-info p {
    margin: 1.2rem 0;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.contact-info i {
    color: var(--accent);
    width: 24px;
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ========== FACEBOOK ========== */
.facebook-section {
    background: var(--bg-section);
    border: 1px solid #1877f2;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.facebook-section .section-header h2 {
    color: #1877f2;
}

.fb-embed {
    position: relative;
    padding-bottom: 150%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.fb-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== AJUSTE 4: CORREGIR FOOTER Y OTROS ELEMENTOS ========== */
/* Asegurar que el footer mantenga su posición */
.main-footer {
    position: relative;
    z-index: 1;
    margin-top: 50px;
    background: rgba(5, 15, 30, 0.9);
    border-top: 2px solid #ffd700;
    padding: 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-brand img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid var(--accent);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1.5rem;
}

.footer-info p {
    margin: 0.5rem 0;
}

.credits {
    color: var(--accent);
    margin-top: 1rem !important;
    font-weight: 600;
}

/* ========== MODAL COMPARTIR ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-content {
    background: var(--primary-solid);
    border: 3px solid var(--accent);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-content h2 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 2rem;
}

.share-preview {
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.share-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.share-url {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

#shareUrl {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-white);
    font-family: monospace;
    font-size: 0.9rem;
}

#shareUrl:focus {
    outline: none;
    border-color: var(--accent);
}

#copyBtn {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

#copyBtn:hover {
    background: var(--accent-glow);
    transform: scale(1.05);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.share-buttons button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.share-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.share-facebook {
    background: #1877f2;
}

.share-whatsapp {
    background: #25d366;
}

.share-twitter {
    background: #1da1f2;
}

.contact-modal {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.contact-modal h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-modal p {
    margin: 0.5rem 0;
}

.contact-modal a {
    color: var(--text-white);
    text-decoration: none;
}

.contact-modal a:hover {
    color: var(--accent);
}

/* ========== TOAST ========== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

.toast {
    background: var(--primary-solid);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-white);
    box-shadow: var(--shadow-heavy);
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100%); }
}

.toast i {
    font-size: 1.3rem;
}

.toast.success i { color: #00ff88; }
.toast.error i { color: #ff4444; }
.toast.warning i { color: #ffaa00; }
.toast.info i { color: #2196f3; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
    }
    
    .header-logo {
        width: 100px;
        height: 100px;
    }
    
    .title-main {
        font-size: clamp(2.2rem, 7vw, 3rem);
    }
    
    .player-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .station-display {
        flex-direction: column;
        text-align: center;
    }
    
    .secondary-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .time {
        min-width: auto;
    }
    
    /* AJUSTE 1: Para móviles, ajustar posición de redes sociales */
    .social-nav {
        right: 15px;
        bottom: 15px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Mover el texto flotante para que no se tape */
    #floatingHint {
        left: 90px;
        bottom: 100px;
        right: auto;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    /* Menú hamburguesa ajustado para móviles */
    .menu-toggle {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
    }
    
    .side-menu {
        width: 250px;
        left: -250px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .info-section,
    .schedule-section,
    .contact-section,
    .facebook-section {
        padding: 1.5rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-nav {
        right: 10px;
        bottom: 10px;
    }
    
    .social-nav .social-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ========== ACCESIBILIDAD ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ============================================
   DARK/LIGHT MODE AUTOMÁTICO
   PARA RADIO SUPER A1 - TARMA, PERÚ
============================================ */

/* 1. DEFINIR VARIABLES PARA LIGHT MODE */
[data-theme="light"] {
    /* Colores principales - AZUL CORPORATIVO para light */
    --primary: #f8f9fa;
    --primary-solid: #ffffff;
    --secondary: #e9ecef;
    --accent: #0056b3; /* AZUL en lugar de dorado */
    --accent-glow: #007bff;
    
    /* Texto */
    --text-white: #212529;
    --text-light: #495057;
    --text-muted: #6c757d;
    
    /* Fondos */
    --bg-header: rgba(248, 249, 250, 0.98);
    --bg-section: rgba(255, 255, 255, 0.9);
    --bg-player: rgba(255, 255, 255, 0.95);
    
    /* Bordes */
    --border-gold: #0056b3;
    --border-light: rgba(0, 0, 0, 0.1);
    
    /* Sombras */
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 15px rgba(0, 86, 179, 0.3);
}

/* 2. TRANSICIONES SUAVES */
* {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease;
}

/* ============================================
   BOTÓN DE TEMA - POSICIÓN CORREGIDA
============================================ */

/* BOTÓN EN ESQUINA SUPERIOR DERECHA - FIXED */
.theme-toggle {
    position: fixed !important; /* IMPORTANTE: fixed para que flote */
    top: 20px !important;
    right: 20px !important;
    z-index: 1001 !important; /* Encima de casi todo */
    
    width: 45px;
    height: 45px;
    background: rgba(10, 25, 41, 0.9);
    border: 2px solid var(--accent);
    border-radius: 50%;
    
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    
    /* Asegurar que no herede estilos problemáticos */
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
    bottom: auto !important;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.theme-toggle i {
    font-size: 1.3rem;
    color: var(--accent);
}

/* Iconos: mostrar sol u luna según tema */
.theme-toggle .fa-moon { display: none; }
.theme-toggle .fa-sun { display: block; }

[data-theme="light"] .theme-toggle .fa-moon { display: block; }
[data-theme="light"] .theme-toggle .fa-sun { display: none; }

/* ========== PARA LIGHT MODE ========== */
[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #0056b3;
}

[data-theme="light"] .theme-toggle i {
    color: #0056b3;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .theme-toggle {
        top: 15px !important;
        right: 15px !important;
        width: 40px;
        height: 40px;
    }
    
    /* Ajustar menú hamburguesa para no solaparse */
    .menu-toggle {
        top: 15px !important;
        left: 15px !important;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        top: 12px !important;
        right: 12px !important;
        width: 38px;
        height: 38px;
    }
}

/* Iconos: mostrar sol u luna según tema */
.theme-toggle .fa-moon { display: none; }
.theme-toggle .fa-sun { display: block; }

[data-theme="light"] .theme-toggle .fa-moon { display: block; }
[data-theme="light"] .theme-toggle .fa-sun { display: none; }

/* 4. FONDO PARA LIGHT MODE */
[data-theme="light"] body {
    background: 
        linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)),
        url('images/fondo_ondas_azul_dorado_20251123_074159.png');
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

/* 5. HEADER EN LIGHT MODE */
[data-theme="light"] .main-header {
    border-bottom: 4px solid var(--accent);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 6. REPRODUCTOR EN LIGHT MODE */
[data-theme="light"] .player-container {
    background: var(--bg-player);
    border: 2px solid var(--accent);
}

/* 7. BOTÓN "TRANSMITIENDO EN VIVO" */
[data-theme="light"] .live-status {
    background: linear-gradient(135deg, #0056b3, #003d82);
    border: 2px solid var(--accent);
}

/* 8. BOTÓN PLAY */
[data-theme="light"] .play-btn {
    background: linear-gradient(135deg, var(--accent), #007bff);
}

/* 9. BOTÓN COMPARTIR */
[data-theme="light"] .share-btn {
    background: linear-gradient(135deg, var(--accent), #007bff);
}

/* 10. SECCIONES INFORMATIVAS */
[data-theme="light"] .content-section,
[data-theme="light"] .info-box,
[data-theme="light"] .schedule-section {
    background: var(--bg-section);
    border: 1px solid var(--accent);
}

/* 11. ITEMS DE PROGRAMACIÓN */
[data-theme="light"] .schedule-item {
    background: rgba(0, 0, 0, 0.03);
}

/* 12. MENÚ HAMBURGUESA */
[data-theme="light"] .menu-toggle {
    background: rgba(248, 249, 250, 0.9);
    border: 2px solid var(--accent);
}

[data-theme="light"] .menu-toggle span {
    background: var(--accent);
}

/* 13. MENÚ LATERAL */
[data-theme="light"] .side-menu {
    background: rgba(248, 249, 250, 0.98);
    border-right: 2px solid var(--accent);
}

[data-theme="light"] .menu-title {
    color: var(--accent);
}

[data-theme="light"] .menu-item {
    color: var(--text-white);
}

[data-theme="light"] .menu-subtitle {
    color: var(--text-muted);
}

/* 14. MODAL COMPARTIR */
[data-theme="light"] .modal-content {
    background: var(--primary-solid);
    border: 3px solid var(--accent);
}

/* 15. REDES SOCIALES */
[data-theme="light"] .social-btn {
    background: rgba(255, 255, 255, 0.9);
}

/* 16. FOOTER */
[data-theme="light"] .main-footer {
    background: rgba(233, 236, 239, 0.9);
    border-top: 2px solid var(--accent);
}

[data-theme="light"] .footer-tagline {
    color: var(--text-light);
}

/* 17. AJUSTE RESPONSIVE */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        bottom: 70px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

/* Añadir al final de tu style.css */
/* Optimización de rendimiento */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading para imágenes fuera de pantalla */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Evitar layout shifts */
.aspect-ratio {
    aspect-ratio: 16/9;
    width: 100%;
}

/* Mejoras micro-interacciones */
.btn-micro {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estados de carga mejorados */
.loading-state {
    position: relative;
    overflow: hidden;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Mejora de legibilidad */
.content-section p {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Asegurar contraste WCAG AAA */
.high-contrast {
    color: #ffffff;
    background: #0a1929;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Placeholders más elegantes */
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Mejor feedback táctil */
@media (hover: hover) and (pointer: fine) {
    .btn-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.06) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.06) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   OVERRIDES DE SEGURIDAD PARA BOTÓN DE TEMA
   (Pega esto al FINAL del archivo CSS)
============================================ */

/* Asegurar que el botón esté en posición fixed */
#themeToggle {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1001 !important;
    display: flex !important;
}

/* Eliminar cualquier estilo inline problemático */
.theme-toggle[style] {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
}

/* Asegurar que no se mueva con otros elementos */
body.menu-open .theme-toggle {
    right: 20px !important;
    transform: none !important;
}

/* Para light mode - posición igual */
[data-theme="light"] #themeToggle {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
}

/* ============================================
   SOLUCIÓN DEFINITIVA BOTÓN TEMA - POSICIÓN FIXED
   (PEGA ESTO AL FINAL DEL ARCHIVO CSS)
============================================ */

/* RESET: Eliminar cualquier estilo conflictivo heredado */
#themeToggle,
.theme-toggle {
    /* POSICIÓN ABSOLUTAMENTE FIJA */
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1001 !important;
    
    /* TAMAÑO Y FORMA */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    
    /* ESTILOS VISUALES */
    background: rgba(10, 25, 41, 0.95);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    
    /* CENTRAR CONTENIDO */
    display: flex !important;
    align-items: center;
    justify-content: center;
    
    /* INTERACTIVIDAD */
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* ASEGURAR VISIBILIDAD */
    visibility: visible !important;
    opacity: 1 !important;
    
    /* ELIMINAR MÁRGENES CONFLICTIVOS */
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
    bottom: auto !important;
}

/* HOVER EFFECT */
.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ICONOS */
.theme-toggle i {
    font-size: 1.3rem;
    color: var(--accent);
    position: absolute;
    transition: opacity 0.3s ease;
}

/* MOSTRAR SOL/LUNA SEGÚN TEMA */
.theme-toggle .fa-sun { opacity: 1; }
.theme-toggle .fa-moon { opacity: 0; }

[data-theme="light"] .theme-toggle .fa-sun { opacity: 0; }
[data-theme="light"] .theme-toggle .fa-moon { opacity: 1; }

/* LIGHT MODE STYLES */
[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #0056b3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle i {
    color: #0056b3;
}

/* ========== AJUSTES PARA MENÚ ABIERTO ========== */
body.menu-open .theme-toggle {
    /* Mantener posición fija cuando el menú está abierto */
    right: 20px !important;
    transform: none !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .theme-toggle {
        top: 15px !important;
        right: 15px !important;
        width: 40px;
        height: 40px;
    }
    
    /* Ajustar menú hamburguesa para no solaparse */
    .menu-toggle {
        top: 15px !important;
        left: 15px !important;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        top: 12px !important;
        right: 12px !important;
        width: 38px;
        height: 38px;
    }
    
    .theme-toggle i {
        font-size: 1.1rem;
    }
}

/* ============================================
   CORRECCIONES ADICIONALES NECESARIAS
============================================ */

/* Asegurar que el menú lateral no tape el botón */
.side-menu {
    z-index: 999 !important; /* Menú DEBAJO del botón tema */
}

.menu-toggle {
    z-index: 1000 !important; /* Hamburguesa ENCIMA del menú */
}

/* Asegurar que las redes sociales no interfieran */
.social-nav {
    z-index: 990 !important; /* Redes DEBAJO del botón tema */
    right: 20px !important;
    bottom: 20px !important;
}

/* Para light mode - mantener consistencia */
[data-theme="light"] .menu-toggle {
    background: rgba(248, 249, 250, 0.9);
    border: 2px solid var(--accent);
}

[data-theme="light"] .menu-toggle span {
    background: var(--accent);
}

/* Texto flotante ajustado para no tapar */
#floatingHint {
    z-index: 995 !important; /* Debajo del botón tema */
    left: 90px !important;
    bottom: 100px !important;
}

/* Modal sobre todo */
.modal-overlay {
    z-index: 2000 !important;
}

/* Toast sobre modal */
.toast-container {
    z-index: 3000 !important;
}

/* ============================================
   CORRECCIÓN PARA EVITAR SCROLL HORIZONTAL
============================================ */
body.menu-open {
    overflow-x: hidden !important;
    margin-left: 0 !important; /* IMPORTANTE: No desplazar contenido */
}

/* El menú se superpone, no desplaza */
.main-content-wrapper {
    transition: none !important;
    margin-left: 0 !important;
}

/* ============================================
   DEPURACIÓN (opcional - puedes eliminar después)
============================================ */
.debug-border {
    border: 2px solid red !important;
}

#themeToggle.debug {
    outline: 3px solid lime !important;
    background: rgba(0, 255, 0, 0.1) !important;
}