@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@100;200;300;400;500;600;800;900&display=swap');

/* Botón Hamburguesa Flotante */
.hamburger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #003366;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 400002;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 51, 102, 0.4);
}

.hamburger:focus {
    outline: 3px solid #003366;
    outline-offset: 2px;
}

.hamburger:active {
    transform: translateY(0);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    height: 21px;
    width: 28px;
}

.hamburger-icon span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.hamburger-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    transition: color 0.3s ease;
}

/* Animación del botón hamburguesa a X */
.hamburger.active {
    background: white;
}

.hamburger.active .hamburger-icon span {
    background: #003366;
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -1.5px;
}

.hamburger.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg);
}

.hamburger.active .hamburger-text {
    color: #003366;
}

.hamburger.active:focus {
    outline: 3px solid white;
}

.hamburger.active:hover {
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

/* Menú Fullscreen */
.menu__especial {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #003366;
    z-index: 301001;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(0.9);
}

.menu__especial.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Navegación */
.nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 20px;
    overflow: hidden;
}

.nav-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 100%;
    max-width: 500px;
}

.menu__especial.active .nav-item {
    opacity: 1;
    transform: translateY(0);
}

.menu__especial.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
.menu__especial.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
.menu__especial.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
.menu__especial.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
.menu__especial.active .nav-item:nth-child(5) { transition-delay: 0.3s; }
.menu__especial.active .nav-item:nth-child(6) { transition-delay: 0.35s; }
.menu__especial.active .nav-item:nth-child(7) { transition-delay: 0.4s; }
.menu__especial.active .nav-item:nth-child(8) { transition-delay: 0.45s; }
.menu__especial.active .nav-item:nth-child(9) { transition-delay: 0.5s; }

.nav-link {
    display: block;
    text-align: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.4;
    font-family:'Barlow Semi Condensed', sans-serif;
    padding-top: 5px !important;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: white;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover,
.nav-link:focus {
    transform: translateY(-3px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    outline: none;
}

/* Titular Principal */
.menu-title {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: white;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    font-family:'Barlow Semi Condensed', sans-serif;
}

.menu-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: white;
    transition: transform 0.3s ease;
}

.menu-title:hover::after,
.menu-title:focus::after {
    transform: translateX(-50%) scaleX(1);
}

.menu-title:hover,
.menu-title:focus {
    transform: translateY(-23px);
    text-shadow: 0 3px 15px rgba(255, 255, 255, 0.3);
    outline: none;
}

.menu__especial.active .menu-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

.menu__especial.active .menu-title:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
    }

    .hamburger-icon span {
        width: 24px;
    }

    .hamburger-text {
        font-size: 10px;
    }

    .nav-link {
        font-size: 18px;
        padding: 12px 20px;
    }

    .nav-item {
        max-width: 100%;
    }

    .menu-title {
        font-size: 28px;
        margin-bottom: 20px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 15px;
    }

    .logo {
        font-size: 20px;
    }

    .hamburger {
        bottom: 20px;
        right: 20px;
        padding: 12px 17px;
        gap: 6px;
    }

    .hamburger-icon {
        gap: 4px;
    }

    .hamburger-icon span {
        width: 100%;
        height: 2.5px;
    }

    .nav-link {
        font-size: 20px;
        padding: 10px 15px;
    }

    .nav {
        gap: 1px;
    }

    .menu-title {
        font-size: 30px;
        margin-bottom: 10px;
    }
}