/* ==================== MENÚ MÓVIL GALICIA UNIVERSAL ==================== */

/* Ocultar banner superior en móvil */
@media only screen and (max-width: 768px) {
    .top-ad-banner {
        display: none !important;
    }
}

/* Botón hamburguesa - oculto en desktop */
.nav-toggle {
    display: none !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animación hamburguesa a X */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: #c7000d;
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: #c7000d;
}

/* ==================== RESPONSIVE MÓVIL ==================== */
@media only screen and (max-width: 768px) {
    /* Mostrar botón hamburguesa en móvil */
    .nav-toggle {
        display: flex !important;
    }
    
    .header-main {
        padding: 15px 20px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .site-logo {
        font-size: 1.5rem;
        z-index: 1000;
        position: relative;
    }
    
    /* OCULTAR menú horizontal en móvil */
    .main-navigation {
        display: block !important;
        position: fixed;
        top: 0;
        left: -300px !important;
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background: #1a1a2e !important;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    }
    
    .main-navigation.active {
        left: 0 !important;
    }
    
    .main-navigation ul {
        flex-direction: column !important;
        padding: 80px 20px 20px;
        width: 100%;
        margin: 0;
        display: flex !important;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: block !important;
    }
    
    .main-navigation a {
        padding: 15px 20px;
        font-size: 16px;
        color: #ffffff !important;
        display: block;
        text-decoration: none;
    }
    
    .main-navigation a:hover {
        background: #c7000d;
        padding-left: 30px;
    }
    
    /* Overlay oscuro */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Ajustes de contenido */
    .site-container {
        padding: 0 15px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .article-hero h1 {
        font-size: 1.8rem;
    }
    
    .article-image {
        height: 250px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 30px;
    }
}

/* Móvil pequeño */
@media only screen and (max-width: 480px) {
    .site-logo {
        font-size: 1.3rem;
    }
    
    .header-main {
        padding: 12px 15px;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .article-hero h1 {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
}
