/* --- ESTILO GENERAL (Heredado del Dark Mode) --- */


:root {
    --accent: #9ba9ab;
    --bg-dark: #9ba9ab;
    --text-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #0f1011;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0; padding: 0;
    overflow-x: hidden;
}
/* --- HEADER & NAV --- */
.site-header {
    position: fixed;
    top: 0; width: 100%;
    padding: 30px 50px;
    z-index: 1000;
    display: flex; justify-content: center;
}

.nav-wrapper {
    width: 100%; max-width: 1300px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 12px 25px;
    display: flex; justify-content: space-between; align-items: center;
    position: relative;

}

.brand-container {
    width: 45px; height: 45px;
    border: 1px solid var(--accent);
    border-radius: 8px; overflow: hidden;
}
.brand-img { width: 100%; height: 100%; object-fit: cover; }

.nav-links {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; gap: 40px; list-style: none;
}

.nav-link {
    text-decoration: none; color: #aaa;
    font-size: 1.15rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; gap: 6px;
    transition: 0.3s;
}
.nav-link:hover { color: var(--accent); }

.arrow { width: 16px; transition: 0.3s; }

/* --- DROPDOWN --- */
.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 150%; left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px; list-style: none; border-radius: 8px;
    min-width: 200px; opacity: 0; visibility: hidden; transition: 0.3s;
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-dropdown:hover .arrow { transform: rotate(180deg); }
.dropdown-menu a { color: white; text-decoration: none; display: block; padding: 10px; transition: 0.2s; }
.dropdown-menu a:hover { background: var(--accent); color: black; border-radius: 4px; }

/* --- HERO SECTION --- */
.hero {
    height: 75vh;
    width: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 30%, transparent), 
                url('../imgs/4.jpg');
    background-size: cover;
    background-position: center;
    display: flex; align-items: center;
    padding: 0 10%;
}

.hero-content { text-align: left; max-width: 700px; }
.tagline { color: var(--accent); font-family: 'Space Grotesk'; letter-spacing: 4px; text-transform: uppercase; }
h1 { font-family: 'Space Grotesk'; font-size: 5rem; line-height: 0.9; margin: 20px 0; }
p { font-size: 1.2rem; color: #ccc; margin-bottom: 30px; }
/* --- MOBILE TOGGLE & OVERLAY --- */
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1100; }
.bar { width: 28px; height: 2px; background: white; transition: 0.3s; }

/* --- BOTÓN HAMBURGUESA --- */
.menu-toggle {
    display: none; /* Oculto en PC */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1500;
}
.bar {
    width: 30px; height: 3px; background-color: white; border-radius: 2px;
}

/* --- MENÚ PANTALLA COMPLETA --- */
.mobile-overlay {
    position: fixed;
    top: 90px; /* Lo bajamos para que no tape el header */
    right: 20px; /* Pegado a la derecha */
    width: 250px; /* Ancho fijo, pequeñito */
    height: auto; /* Altura automática según los enlaces */
    
    background-color: rgba(15, 16, 17, 0.95); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px; /* Bordes redondeados */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    
    padding: 20px;
    z-index: 2000;
    
    /* Efecto de aparición */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px); /* Empieza un poquito más arriba */
    transition: all 0.3s ease;
}

/* Cuando esta clase está, el menú se ve */
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* --- BOTÓN CRUZ (X) --- */
.close-menu-btn {
    position: absolute;
    top: 10px;
    left: 10px; /* A la izquierda de la cajita */
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
}
.close-menu-btn:hover { color: white; }

/* Enlaces del menú */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Menos espacio entre links */
    text-align: right; /* Alineados a la derecha */
}
.mobile-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem; /* Letra más chica */
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}
.mobile-link:hover {
    color: #9ba9ab;
    border-color: #9ba9ab;
}

/* Responsive */
@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    .nav-links { display: none; }
}

/* --- ESTILO PARA EL ÍTEM SERVICIOS "PARTIDO" --- */

.mobile-split-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alineado a la derecha como el resto */
}

.split-row {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre la palabra SERVICIOS y la flecha */
}

/* Botón de la flecha (Invisible pero clickeable) */
.arrow-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: transform 0.3s ease;
}

.arrow-btn:hover {
    color: #9ba9ab;
}

/* Rotación al abrir */
.arrow-btn.rotate {
    transform: rotate(180deg);
}

/* --- LISTA DESPLEGABLE --- */
.submenu-hidden {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    padding-right: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.1); /* Línea guía elegante */
    margin-right: 5px;
}

/* Clase para mostrarlo */
.submenu-hidden.open {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

/* Estilo de los sub-enlaces */
.submenu-hidden a {
    color: #b0b0b0;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-align: right;
    transition: 0.2s;
}

.submenu-hidden a:hover {
    color: #9ba9ab;
    transform: translateX(-5px); /* Pequeño movimiento al pasar mouse */
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ANIMACIONES */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.05); background-color: #128c7e; }
.whatsapp-float i { font-size: 1.5rem; }
.whatsapp-float span { font-weight: 600; font-size: 0.9rem; }

@media (max-width: 600px) {
    .whatsapp-float span { display: none; } /* En móvil solo el icono */
    .whatsapp-float { padding: 15px; border-radius: 50%; }
}


/* --- RESPONSIVE --- */
@media (max-width: 968px) {
    .feature-container {
        grid-template-columns: 1fr; /* Una columna en móvil */
        text-align: center;
        gap: 50px;
    }

    .image-column { order: 1; } /* Imagen primero */
    .text-column { order: 2; }
    
    .bubble-wrapper { width: 300px; height: 300px; margin: 0 auto; }
    
    .feature-list li { justify-content: center; }
    .main-title { font-size: 2.5rem; }
}

/* ESTILOS FOOTER - VERSIÓN METAL & ACERO */
.site-footer {
    background-color: #0f1011; /* Fondo oscuro sutilmente azulado/gris */
    color: #b0b0b0; /* Texto gris claro para buena lectura */
    padding-top: 4rem;
    font-family: 'Inter', sans-serif;
    border-top: 3px solid #9ba9ab; /* Tu color principal (Borde superior) */
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.footer-logo span { 
    color: #9ba9ab; /* Acento en el logo */
}

.footer-col h4 {
    color: #e6e6e6; /* Títulos casi blancos */
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 2px solid #9ba9ab; /* Pequeño detalle de diseño */
    padding-left: 10px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.8rem; }

.footer-col ul li a { 
    color: #888888; 
    text-decoration: none; 
    transition: all 0.3s ease; 
}

/* Efecto Hover en Enlaces */
.footer-col ul li a:hover { 
    color: #9ba9ab; /* Color acero al pasar el mouse */
    padding-left: 5px; 
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

/* Iconos de contacto */
.contact-list li svg {
    color: #9ba9ab; /* Iconos en tu color */
    width: 18px;
    height: 18px;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #9ba9ab; /* Icono del color principal */
    background: rgba(155, 169, 171, 0.1); /* Fondo muy sutil con tu color */
    padding: 10px;
    border-radius: 50%;
    display: flex;
    transition: 0.3s;
    border: 1px solid rgba(155, 169, 171, 0.2);
}

/* Hover en Redes Sociales */
.social-links a:hover { 
    background: #9ba9ab; /* Fondo sólido al hover */
    color: #0f1011; /* Icono oscuro para contraste */
    border-color: #9ba9ab;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #080809; /* Fondo final más oscuro */
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    border-top: 1px solid #1f2124;
    color: #666;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}


/* =========================================
   RESPONSIVE OPTIMIZATION (Móvil y Tablet)
   ========================================= */

@media (max-width: 992px) {
    /* 1. HEADER & HERO AJUSTADO */
    .site-header { padding: 15px 20px; }
    
    .hero { padding: 0 5%; text-align: center; justify-content: center; }
    .hero-content { max-width: 100%; text-align: center; }
    .hero h1 { font-size: 3rem; margin: 15px 0; }
    .hero p { font-size: 1rem; padding: 0 10px; }

    /* 2. SECCIÓN TRAYECTORIA (BUBBLE) */
    .feature-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .image-column { order: 1; margin-bottom: 20px; }
    .text-column { order: 2; padding: 0 20px; }
    
    .bubble-wrapper {
        width: 280px; height: 280px;
        margin: 0 auto;
    }
    
    .floating-badge {
        width: 90px; height: 90px;
        padding: 10px;
        bottom: 10px; right: 0;
    }
    .floating-badge span { font-size: 1rem; }
    
    .feature-list li { justify-content: center; }
    
    /* 3. SERVICIOS (ADD PRO ROW) */
    .add-pro-row { padding: 40px 0; }
    
    .add-pro-container, 
    .row-reverse .add-pro-container {
        flex-direction: column !important; /* Fuerza columna siempre */
        gap: 30px;
    }

    .add-pro-image-side, 
    .row-reverse .add-pro-image-side {
        width: 100%;
        justify-content: center !important;
        margin: 0;
    }

    .add-pro-square {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16/9; /* Más panorámico en móvil para no ocupar tanto alto */
        border-radius: 15px;
    }

    .add-pro-text-side {
        padding: 0 20px;
        text-align: center;
    }

    .add-pro-title { font-size: 2rem; }
    .add-pro-desc { font-size: 1rem; }

    /* 4. BARRA DE CONFIANZA (LOGOS) */
    .logos-grid { gap: 2rem; }
    .trust-logo { height: 40px; }
    .trust-bar { padding: 2rem 0; }
}

@media (max-width: 768px) {
    /* 5. ESTADÍSTICAS */
    .stats-container {
        grid-template-columns: 1fr 1fr; /* 2 columnas en vez de 1 */
        gap: 30px;
    }
    
    .stat-item {
        border-right: none;
        padding: 0;
        border-bottom: none; /* Quitamos bordes para limpiar */
    }

    /* 6. CTA FINAL */
    .cta-section { padding: 3rem 1rem; }
    .cta-content h2 { font-size: 1.8rem; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .btn-primary-cta, .btn-secondary-cta { width: 100%; justify-content: center; }
    
    /* 7. FOOTER */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-col h4 {
        border-left: none; /* Quitamos la línea lateral decorativa */
        border-bottom: 2px solid #9ba9ab;
        display: inline-block;
        padding-bottom: 5px;
        padding-left: 0;
    }
    
    .contact-list li { justify-content: center; }
    .social-links { justify-content: center; }
}

@media (max-width: 480px) {
    /* Ajustes finales para pantallas muy pequeñas */
    .hero h1 { font-size: 2.5rem; }
    .stats-container { grid-template-columns: 1fr; } /* 1 sola columna */
    
    .bubble-wrapper { width: 100%; height: auto; aspect-ratio: 1/1; }
    
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 12px; border-radius: 50%; }
}

/
/* Link del Creador en el Footer */
.creator-link {
    color: #8376f9;       /* Tu color acero/celeste */
    text-decoration: none;
    font-weight: 650;     /* Un poco más grueso para destacar */
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent; /* Prepara el borde invisible */
}

.creator-link:hover {
    color: #ffffff;       /* Se ilumina en blanco */
    border-bottom: 1px solid #ffffff; /* Aparece una línea fina abajo */
}

/* ESTILOS CTA */
.cta-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../imgs/2.jpeg'); /* Usa una de tus imágenes de fondo */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
    padding: 5rem 1rem;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-cta, .btn-secondary-cta {
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-primary-cta {
    background-color: #9ba9ab; 
    color: white;
}

.btn-secondary-cta {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-primary-cta:hover, .btn-secondary-cta:hover {
    transform: translateY(-5px);
}

/* CLASES PARA ANIMACIÓN SCROLL */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.scrolled {
    opacity: 1;
    transform: translateY(0);
}


/* --- HERO SECTION (Portada de cada servicio) --- */
.service-hero {
    height: 60vh; /* Ocupa 60% de la pantalla */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
    margin-top: 80px; /* Espacio para el header fijo */
}

.overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 16, 17, 0.7); /* Oscurece la foto de fondo */
    backdrop-filter: blur(3px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.service-tag {
    color: #9ba9ab;
    letter-spacing: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* --- CONTENIDO TÉCNICO --- */
.technical-section {
    padding: 80px 20px;
    position: relative;
}

.tech-grid-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Texto ancho | Detalles angostos */
    gap: 60px;
}

/* Texto Principal */
.main-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
}

.main-text p {
    color: #b0b0b0;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Lista de Beneficios (Checklist) */
.tech-specs-list {
    list-style: none;
    margin-top: 30px;
}

.tech-specs-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.tech-specs-list li i {
    color: #9ba9ab; /* Icono Azul */
}

/* Tarjeta Lateral (Detalles) */
.sidebar-card {
    background: #151617;
    border: 1px solid #333;
    border-top: 4px solid #9ba9ab;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 120px; /* Se queda pegada al bajar */
}

.sidebar-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: #9ba9ab;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: 0.3s;
}

.sidebar-btn:hover {
    background: white;
    transform: translateY(-2px);
}

/* --- GALERÍA SIMPLE --- */
.gallery-section {
    padding: 0 20px 100px;
}
.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(40%);
    transition: 0.4s;
}
.gallery-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .content-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .service-hero { height: 50vh; }
    .service-title { font-size: 2.5rem; }
    .sidebar-card { position: static; } /* En móvil no es pegajosa */
}

/* --- ACORDEÓN FOOTER --- */
.footer-accordion-btn {
    background: none;
    border: none;
    color: #888888; /* Mismo color de los links del footer */
    font-family: inherit;
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* Efecto hover igual al de los otros links */
.footer-accordion-btn:hover {
    color: #9ba9ab;
    padding-left: 5px; 
}

.footer-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* Girar flecha cuando está abierto */
.footer-accordion-btn.open .footer-arrow {
    transform: rotate(180deg);
}

/* Lista de sub-servicios oculta */
.footer-submenu {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    padding-left: 15px !important; /* Indentación para que se note que es un submenú */
    margin-top: 10px;
    border-left: 1px solid rgba(155, 169, 171, 0.2); /* Línea decorativa sutil */
}

.footer-submenu.show {
    display: flex;
    animation: slideDownFooter 0.3s ease;
}

.footer-submenu li {
    margin-bottom: 8px !important;
}

.footer-submenu li a {
    font-size: 0.9rem; /* Letra un poquito más chica */
    color: #666 !important;
}

.footer-submenu li a:hover {
    color: #9ba9ab !important;
}

@keyframes slideDownFooter {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- CORRECCIÓN ACORDEÓN FOOTER EN CELULARES --- */
@media (max-width: 768px) {
    /* 1. Centra el botón de Servicios y la flecha */
    .footer-accordion-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 2. Centra también la lista desplegable y le quita la sangría */
    .footer-submenu {
        padding-left: 0 !important;
        align-items: center;
    }
}
/* =========================================
   GALERÍA BURBUJAS Y LIGHTBOX
   ========================================= */
.projects-gallery {
    padding: 0 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2; 
}

.gallery-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(155, 169, 171, 0.2);
    padding-bottom: 20px;
}

.gallery-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; /* Separación entre burbujas */
}

/* --- ESTILO BURBUJA --- */
.gallery-bubble {
    position: relative;
    height: 320px;
    border-radius: 25px; /* Bordes muy redondeados tipo burbuja */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); /* Sombra para que flote */
    border: 1px solid rgba(155, 169, 171, 0.15);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-bubble:hover {
    transform: translateY(-10px); /* Se eleva al pasar el mouse */
    box-shadow: 0 25px 50px rgba(0,0,0,0.7);
}

.gallery-bubble img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-bubble:hover img {
    transform: scale(1.08); /* Suave zoom al fondo */
}

/* --- CAPA OSCURA "VER" --- */
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 16, 17, 0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-bubble:hover .gallery-overlay { opacity: 1; }

/* Botoncito "VER" */
.view-btn {
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 3px;
    border: 2px solid #9ba9ab;
    padding: 10px 30px;
    border-radius: 30px;
    background: rgba(155, 169, 171, 0.1);
    backdrop-filter: blur(5px);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-bubble:hover .view-btn {
    transform: translateY(0);
}

/* =========================================
   LIGHTBOX (MODAL PANTALLA COMPLETA)
   ========================================= */
.lightbox-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999; /* Por encima del menú y todo lo demás */
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox-modal.active {
    opacity: 1; visibility: visible;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox-modal.active img {
    transform: scale(1);
}

/* Flechita Cerrar / Volver */
.lightbox-close-btn {
    position: absolute;
    top: 30px; left: 40px; /* Arriba a la izquierda como pediste */
    background: none; border: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    transition: color 0.3s;
}

.lightbox-close-btn:hover { color: #9ba9ab; }

@media (max-width: 768px) {
    .lightbox-close-btn { top: 20px; left: 20px; }
}