/* --- LOGO FIJO (Cambio Radical | ¡SÍ LO HACE!) --- */
.brand-fixed-footer {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 2000;
}

.brand-fixed-footer img {
    height: 70px;
    width: auto;
    background-color: white; 
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* --- MEGA HUB LIMPIO Y POTENTE --- */
.mega-action-hub {
    width: 100%;
    background: #000c1a;
    padding: 0;
    overflow: hidden;
}

.hub-container {
    display: flex;
    width: 100%;
    height: 80vh; 
    min-height: 650px;
}

.hub-panel {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 40px;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Colores de fondo con degradados suaves */
.community-panel { background: #001a33; }
.form-panel { background: #00264d; }
.kit-panel { background: #003366; border-right: none; }

/* Efecto de expansión al pasar el mouse */
.hub-panel:hover {
    flex: 1.6;
}

/* Contenido Principal */
.panel-content {
    position: relative;
    z-index: 10;
    transition: transform 0.5s ease;
}

.panel-icon {
    font-size: 5.5rem;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.6s ease;
}

.hub-panel:hover .panel-icon {
    transform: scale(1.15) translateY(-10px);
}

.panel-title {
    font-size: 2.2rem;
    color: #fff;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 15px;
}

.panel-title span {
    color: #F60000;
    display: block;
    font-size: 3rem;
    margin-top: 5px;
}

/* Línea divisora elegante */
.panel-divider {
    width: 40px;
    height: 3px;
    background: #F60000;
    margin: 20px auto;
    transition: width 0.4s ease;
}

.hub-panel:hover .panel-divider {
    width: 80px;
}

.panel-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 280px;
    margin: 0 auto 35px;
    line-height: 1.4;
    font-weight: 300;
}

/* Botón estilizado */
.panel-btn {
    display: inline-block;
    padding: 16px 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.hub-panel:hover .panel-btn {
    background: #F60000;
    border-color: #F60000;
    box-shadow: 0 15px 30px rgba(246, 0, 0, 0.3);
}

/* Brillo sutil de fondo al pasar el mouse */
.panel-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(246, 0, 0, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.8s ease;
    z-index: 1;
}

.hub-panel:hover .panel-glow {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Responsive */
@media (max-width: 992px) {
    .hub-container { flex-direction: column; height: auto; }
    .hub-panel { height: 400px; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
    .panel-title { font-size: 1.8rem; }
}

/* --- RESPONSIVE HEADER LOGIC --- */

/* Escondemos el botón en computadoras */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2001; /* Por encima de la cortina */
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #FFFFFF; /* Color blanco para que resalte sobre el rojo */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* MEDIA QUERY PARA TABLETS Y MÓVILES */
@media (max-width: 1024px) {
    .main-header {
        height: 80px;
        padding: 0 5%;
    }

    /* Mostramos el botón */
    .menu-toggle {
        display: flex;
    }

    /* Animación de Hamburguesa a X */
    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Convertimos el NAV en un menú lateral */
    .nav-principal {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido a la derecha */
        width: 80%; /* O 100% si prefieres pantalla completa */
        height: 100vh;
        background-color: #F60000; /* Fondo rojo sólido oficial */
        z-index: 2000;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    /* Clase que activa el JS */
    .nav-principal.active {
        right: 0;
    }

    .nav-principal ul {
        flex-direction: column;
        gap: 25px;
        align-items: center;
        width: 100%;
    }

    .nav-principal a {
        font-size: 1.4rem !important;
        padding: 10px 0;
        display: block;
    }

    /* Ajuste de logo en móvil */
    .logo-container img {
        height: 55px;
    }
}

/* Ajuste para teléfonos muy pequeños */
@media (max-width: 480px) {
    .nav-principal {
        width: 100%;
    }
}