/* ===== HEADER & NAVIGATION ===== */

/* Header Logo */
header .logo-container {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

header .logo-container:hover {
    transform: scale(1.05);
}

header .logo-container img {
    height: 5.5rem !important;
    min-height: 5.5rem !important;
    width: auto !important;
    filter: drop-shadow(0 2px 8px rgba(0, 115, 174, 0.15));
    transition: all 0.3s ease;
    margin: -0.5rem 0;
    max-width: none !important;
}

header .logo-container img:hover {
    filter: drop-shadow(0 4px 12px rgba(0, 115, 174, 0.25)) brightness(1.05);
}

header .logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

header .logo-container:hover::after {
    left: 100%;
}

/* Navigation Links */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

/* Hover y estado activo con el mismo degradado */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #0073ae);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #0073ae;
}




/* Mobile Menu */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9999;
    padding-top: 80px;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu .flex {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 1rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#mobile-menu-close {
    padding: 0.5rem;
    color: #6b7280;
}

.mobile-menu nav a {
    display: block;
    padding: 1.25rem 1.5rem;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.mobile-menu nav a:hover {
    background-color: #f9fafb;
    color: #0073ae;
}

.mobile-menu button {
    width: calc(100% - 3rem);
    margin: 1.5rem;
    background: #0073ae;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
}

/* ===== RESPONSIVE NAVIGATION ===== */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
    }

    .mobile-menu-btn {
        padding: 0.5rem;
    }

    header .logo-container img {
        height: 5rem !important;
        min-height: 5rem !important;
        margin: -0.75rem 0 !important;
    }
}


/* Botón flotante de WhatsApp mejorado */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 6rem; /* lo mantiene sobre el botón arriba */
    right: 20px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    background: linear-gradient(135deg, #20ba5a, #0e6f5c);
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

/* Tooltip amigable */
.whatsapp-float::after {
    content: "¿Necesitas ayuda?";
    position: absolute;
    right: 70px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-50%);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover::after {
    opacity: 1;
}