@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&display=swap');

html {
    scroll-behavior: smooth;
    /* Evita que el navbar fijo tape el inicio de la sección */
    scroll-padding-top: 90px;
}

body {
    font-family: 'Outfit', sans-serif;
}

/* Efecto Parallax Suave */
.parallax-bg {
    transform: translateY(0);
    will-change: transform;
}

/* Refuerzo total de visibilidad y posición del Navbar */
#navbar {
    z-index: 99999 !important; /* Encima de absolutamente todo */
    background-color: transparent; /* Sin important aquí para permitir el cambio */
    display: flex !important;
}

#navbar a,
#navbar #mobile-menu-btn {
    color: white; /* Quitamos !important para permitir que .nav-active lo cambie */
}

/* Clases para el Navbar al bajar */
.nav-active {
    background-color: #ffffff !important; /* Forzamos el blanco sólido */
    padding: 1rem 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.nav-active a {
    color: #111827 !important; /* Texto oscuro sobre fondo blanco */
}

/* Color del icono hamburguesa al bajar scroll */
.nav-active #mobile-menu-btn {
    color: #2563eb !important; /* Azul Smart Byte */
}

/* Control del Menú Mobile */
#mobile-menu {
    z-index: 2000 !important; /* Por encima del navbar */
    visibility: hidden;
    pointer-events: none;
    background: #07276be0;
}

.blue-text{color: #07276be0;}

#mobile-menu.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
}

/* Aire Extra para contenedores */
section {
    position: relative;
}

/* Forzado de columnas para Masonry */
#gallery-grid {
    display: block;
    width: 100%;
    column-count: 2 !important;
    column-gap: 1rem;
    orphans: 1;
    widows: 1;
}

@media (min-width: 768px) {
    #gallery-grid {
        column-count: 4 !important;
        column-gap: 1.5rem;
    }
}

/* Prevenir cortes en masonry */
.break-inside-avoid {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
}

.gallery-item:hover {
    cursor: zoom-in !important;
}

.gallery-item {
    /* Evita que el contenedor mida 0px antes de cargar la imagen */
    min-height: 250px;
    background-color: #f9fafb; /* bg-gray-50 */
    display: block;
    width: 100%;
    will-change: transform;
}

/* Estilo para el modal abierto */
#lightbox {
    background-color: rgba(0, 0, 0, 0.8) !important; /* Fondo oscuro manual */
    backdrop-filter: blur(10px); /* Efecto de desenfoque */
}

#lightbox.active {
    opacity: 1;
}

#lightbox {
    cursor: zoom-out;
}

#lightbox img {
    cursor: default;
}

/* Estilos Swiper */
.swiper-pagination-bullet-active {
    background: #2563eb !important; /* blue-600 */
    width: 24px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.swiper-slide { height: auto !important; }

/* Efecto de agua para la sección "¿Tu equipo se mojó?" */
.water-effect {
    position: relative;
    background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%) !important;
}

/* Estilo para las burbujas individuales generadas por JS */
.bubble {
    position: absolute;
    bottom: -50px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(1px);
}

/* Capa de reflejos/ondas de luz suaves */
.water-effect::after {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 60%); 
    background-size: 120% 120%;
    animation: water-sway 18s ease-in-out infinite alternate;
    z-index: 2;
    filter: blur(100px);
}

/* Desactivar efectos de aparición (AOS) en el texto solo para mobile */
@media (max-width: 767px) {
    .water-effect [data-aos],
    #armado-section [data-aos],
    #pymes [data-aos],
    #trayectoria [data-aos],
    #ubicacion [data-aos],
    #testimonios [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Animación de ascenso con zig-zag aleatorio */
@keyframes bubble-rise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    20% { opacity: 1; }
    25% { transform: translateY(-30vh) translateX(var(--drift)); }
    50% { transform: translateY(-60vh) translateX(calc(var(--drift) * -1.2)); }
    75% { transform: translateY(-90vh) translateX(var(--drift)); }
    100% {
        transform: translateY(-130vh) translateX(0);
        opacity: 0;
    }
}

@keyframes water-sway {
    0% { transform: translate(-3%, -3%) rotate(0deg); }
    100% { transform: translate(3%, 3%) rotate(2deg); }
}

#close-lightbox{
    cursor: pointer;
}

#close-lightbox:hover{
    background: #1e3a8a !important;
}

.text-blue-600{
    color:#1b74dd !important;
}