﻿/* =========================
   NAV
========================= */
.nav-style {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    transition: all 0.45s ease;
}

/* LOGO */
.logo-wrapper {
    transition: opacity 0.4s ease, height 0.4s ease, margin 0.4s ease;
}

/* MENÚ */
.menu-wrapper {
    background: linear-gradient( 135deg, #5aa6df 0%, #3b78b6 35%, #243a78 70%, #192854 100% );
    background-size: 300% 300%;
    animation: gradientMove 10s ease-in-out infinite;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.15);
}
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
/* LINKS */
.nav-link {
    position: relative;
    color: #ffffff !important;
    font-weight: 600;
    padding: 14px 22px;
    transition: color 0.3s ease;
    z-index: 1;
}

/* Rectángulo animado */
.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #fdd757;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
    z-index: -1;
}

/* Hover */
.nav-link:hover {
    color: #fdd757 !important;
}

.nav-link:hover::before {
    transform: scaleX(1);
}
/* ACTIVO */
.nav-link.active {
    color: #fdd757 !important;
}

.nav-link.active::before {
    transform: scaleX(1);
    background-color: rgba(253, 215, 87, 0.15);
    border: 1px solid #fdd757;
}
    
        

/* =========================
   SCROLL STATE
========================= */
.nav-style.scrolled .logo-wrapper {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
}

.nav-style.scrolled {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.logo-wrapper {
    overflow: hidden;
    max-height: 140px;
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
}
.logo-nav {
    height: 105px;
    transition: transform 0.4s ease;
}
