/* ==========================================
   MOBILE NAVIGATION
   ========================================== */

/* Botón hamburguesa - oculto en desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-white);
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background: var(--color-white);
    transition: transform 0.3s, top 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Animación hamburguesa a X cuando está activo */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

/* Prevenir scroll cuando menú está abierto */
body.nav-open {
    overflow: hidden;
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 768px) {
    /* Header compacto */
    .header-top {
        flex-direction: row;
        justify-content: center;
        padding: 10px 20px;
        gap: 10px;
    }

    .logo {
        gap: 10px;
    }

    .logo-text {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 9px;
    }

    /* Nav */
    .nav {
        padding: 0;
        height: 55px;
        display: flex;
        align-items: center;
    }

    .nav-content {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* Mostrar botón hamburguesa */
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
    }

    /* Menú lateral */
    .nav-list {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--color-secondary);
        flex-direction: column;
        padding-top: 60px;
        margin: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .nav-list.active {
        right: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list li a {
        padding: 18px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 15px;
        display: block;
    }

    .nav-list li a:hover,
    .nav-list li a.active {
        background: var(--color-primary);
    }

    /* Ajustar espacios */
    .hero {
        margin-top: 115px;
        padding: 40px 0;
    }

    .breadcrumb {
        margin-top: 115px;
    }
}

@media (max-width: 380px) {
    .logo-text {
        font-size: 14px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 8px;
    }

    .hero {
        margin-top: 110px;
    }

    .breadcrumb {
        margin-top: 110px;
    }
}