/* ==========================================================================
   ESTILOS GENERALES Y CONFIGURACIÓN BÁSICA
   ========================================================================== */
* { box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: #f9f9f9; 
    color: #333; 
    padding-top: 100px; 
}

/* Contenedor principal genérico */
.container { 
    max-width: 900px; 
    margin: 20px auto; 
    padding: 20px; 
    background: white; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN Y HEADER (ALINEADO A LA IZQUIERDA Y COMPACTO)
   ========================================================================== */
.navbar {
    background-color: #ffffff;
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 100%;
    margin: 0;
    display: flex;
    justify-content: flex-start; /* Logo y menú alineados de forma natural a la izquierda */
    align-items: center;
    flex-wrap: nowrap;
    gap: 35px; /* Distancia controlada entre el logo y los enlaces */
    padding: 0 15px;
}

/* Logo y letras principales */
.logo-letras {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.logo-letras .destaque { color: #3498db; }

/* Enlaces del menú principal */
.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px; /* Enlaces juntos y ordenados en PC */
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap; 
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: #e67e22;
    background-color: #fdf2e9;
    transform: scale(1.03);
}
.nav-links a:active {
    color: #e67e22;
    background-color: #fdf2e9;
    transform: scale(0.98);
}

/* Botones especiales del menú */
.btn-login, .btn-logout { 
    background-color: #3498db; 
    color: white !important; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 13px !important; 
}
.btn-registro { 
    color: #3498db !important; 
    border: 1px solid #3498db; 
    padding: 6px 14px; 
    border-radius: 20px; 
    font-size: 13px !important; 
}

/* ==========================================================================
   ADAPTABILIDAD PARA MÓVILES (CENTRADO Y COMPACTO)
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 10px;
    }

    .nav-container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 12px !important;
        padding: 0 !important;
    }

    .logo-letras {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important; 
        justify-content: center !important; 
        align-items: center !important;
        gap: 6px !important; 
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-links a {
        font-size: 12px;
        padding: 4px 7px;
        background: #f8f9fa;
        border-radius: 4px;
    }
}

/* ==========================================================================
   RESTO DE SECCIONES (NOTICIAS, RADIO, FORMULARIOS)
   ========================================================================== */
.noticia { border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px; }
.noticia h2 { color: #2c3e50; }

.radio-box { background: #34495e; color: white; padding: 15px; text-align: center; position: fixed; bottom: 0; width: 100%; }
audio { width: 300px; }

.container-form { max-width: 400px; margin: 50px auto; padding: 30px; background: #ffffff; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); text-align: center; }
.login-form input, .formulario-admin input, .formulario-admin select { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size: 16px; }
.btn-submit { width: 100%; padding: 12px; background-color: #3498db; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; }
.formulario-admin { background: #ffffff; padding: 30px; border-radius: 10px; border: 1px solid #ddd; width: 100%; max-width: 600px; margin: 20px auto; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }