/* ============================================================
   NAV.CSS — Estilos de navegación
   Para modificar colores: edita variables.css
   ============================================================ */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-nav);
    transition: background var(--transition), box-shadow var(--transition);
}
.nav { width: 100%; }
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    gap: 24px;
}

/* Scroll — fondo nav */
.site-header.is-scrolled {
    background: rgba(10, 15, 30, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--color-border);
}

/* Logo */
.nav__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav__logo img { height: 40px; width: auto; }
.nav__logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.02em;
}
.nav__logo-text em { font-style: normal; color: var(--color-gold); }

/* Links desktop */
.nav__menu-wrap { flex: 1; display: flex; justify-content: center; }
.nav__links { list-style: none; display: flex; align-items: center; gap: 36px; margin: 0; padding: 0; }
.nav__links li a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}
.nav__links li a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--color-gold);
    transition: width var(--transition);
}
.nav__links li a:hover { color: var(--color-white); }
.nav__links li a:hover::after { width: 100%; }
.nav__links li.current-menu-item a { color: var(--color-white); }
.nav__links li.current-menu-item a::after { width: 100%; }

/* CTA Desktop */
.nav__cta { flex-shrink: 0; font-size: 0.85rem !important; padding: 10px 22px !important; white-space: nowrap; }

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background var(--transition);
}
.nav__hamburger:hover { background: rgba(255,255,255,0.06); }
.nav__hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
    transform-origin: center;
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú Mobile */
.nav__mobile {
    display: none;
    flex-direction: column;
    background: var(--color-navy2);
    border-top: 1px solid var(--color-border);
    padding: 0 24px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.nav__mobile.is-open { max-height: 500px; padding: 24px; }
.nav__mobile-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav__mobile-links li a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: color var(--transition), padding-left var(--transition);
}
.nav__mobile-links li:last-child a { border-bottom: none; }
.nav__mobile-links li a:hover { color: var(--color-white); padding-left: 8px; }
.nav__mobile-cta { margin-top: 20px; text-align: center; justify-content: center; }

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: var(--z-float);
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.4;
    animation: wf-pulse 2.5s ease-out infinite;
}
@keyframes wf-pulse {
    0%   { transform: scale(1);   opacity: 0.4; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Responsive */
@media (max-width: 900px) {
    .nav__menu-wrap { display: none; }
    .nav__cta       { display: none; }
    .nav__hamburger { display: flex; }
    .nav__mobile    { display: flex; }
}
