/* ==============================================
   1. ESTILOS BASE Y NAVBAR
   ============================================== */
body {
    font-family: 'Montserrat', sans-serif;
    color: #444;
    padding-top: 80px;
    overflow-x: hidden;
}
/* Navbar */
.navbar {
    padding: 10px 0;
    transition: all 0.3s ease;
}
.navbar-nav .nav-link {
    color: #555 !important;
    font-weight: 500;
    font-size: 14px;
    margin-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #2b5d9b !important;
}
/* FIX LOGO DEFINITIVO */
img.logo-img,
.navbar-brand .logo-img {
    height: 50px !important;
    max-height: 50px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    object-fit: contain !important;
    display: block !important;
}
.navbar-brand {
    padding: 0 !important;
    margin-right: 15px !important;
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
}
/* ==============================================
   2. HERO (PORTADA) Y SECCIONES
   ============================================== */
.carousel-item {
    height: 85vh !important;
    min-height: 500px !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    background-color: #333;
}
.carousel-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
/* Tarjetas de Servicios */
.service-card {
    transition: transform 0.3s ease;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-10px);
}
.service-card img {
    height: 250px;
    object-fit: cover;
}
/* Fix para botones de redes sociales (evita Ã³valos si el adblocker borra el Ã­cono) */
.btn-icon {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}
/* Banner Wix Style */
.banner-wix {
    padding: 130px 0;
    background-color: #111;
    color: white;
}
.banner-wix h2 {
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: 1px;
}
/* Fondos especficos */
.bg-servicios {
    background-image: url('../img/nosotros.webp?v=1.1');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}
.overlay-servicios {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}
/* ==============================================
   3. TRANSICION SPLIT SCREEN (OPCION 3)
   ============================================== */
.eq-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.eq-door {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #0f172a;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: -1;
}
.eq-door-top {
    top: 0;
    transform: translateY(-100%);
}
.eq-door-bottom {
    bottom: 0;
    transform: translateY(100%);
}
.eq-overlay.active .eq-door-top,
.eq-overlay.active .eq-door-bottom {
    transform: translateY(0);
}
.eq-overlay.active {
    pointer-events: all;
}
.eq-overlay.finished .eq-door-top {
    transform: translateY(-100%);
}
.eq-overlay.finished .eq-door-bottom {
    transform: translateY(100%);
}
.eq-overlay img {
    max-width: 250px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease;
}
.eq-overlay.active img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.3s;
}
.eq-overlay.finished img {
    opacity: 0;
    transform: scale(1.1);
    transition-delay: 0s;
}
/* ==============================================
   4. CHATBOT LILA
   ============================================== */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    animation: entradaChat 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.8s;
}
@keyframes entradaChat {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.chat-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2b5d9b, #6f42c1);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-btn:hover {
    transform: scale(1.1);
}
.chat-window {
    display: none;
    width: 320px;
    height: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    animation: subirChat 0.3s ease-out;
}
@keyframes subirChat {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.chat-header {
    background: linear-gradient(135deg, #2b5d9b, #6f42c1);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lila-avatar {
    width: 35px;
    height: 35px;
    background: white;
    color: #6f42c1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.chat-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f4f6f9;
}
.bot-msg {
    background-color: white;
    padding: 12px 16px;
    border-radius: 15px 15px 15px 0;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.user-msg {
    background-color: #2b5d9b;
    color: white;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    align-self: flex-end;
    font-size: 14px;
}
.option-btn {
    background: white;
    border: 1px solid #2b5d9b;
    color: #2b5d9b;
    padding: 10px;
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    text-align: left;
}
.option-btn:hover {
    background-color: #2b5d9b;
    color: white;
    transform: translateX(5px);
}
.chat-tooltip {
    position: absolute;
    bottom: 80px;
    right: 0;
    background-color: white;
    color: #444;
    padding: 8px 15px;
    border-radius: 20px 20px 5px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    animation: aparecerTooltip 1s ease-out forwards 2s;
}
.chat-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}
@keyframes aparecerTooltip {
    to {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
.chat-widget:hover .chat-tooltip {
    transform: translateY(-5px);
}
/* ==============================================
   5. BOTONES DE CONTACTO
   ============================================== */
.contact-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.contact-btn:hover,
.contact-btn:hover i {
    color: #ffffff !important;
}
.btn-whatsapp:hover {
    background-color: #25D366 !important;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transform: scale(1.1);
}
.btn-maps:hover {
    background-color: #4285F4 !important;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.4);
    transform: scale(1.1);
}
.btn-mail:hover {
    background-color: #EA4335 !important;
    box-shadow: 0 5px 15px rgba(234, 67, 53, 0.4);
    transform: scale(1.1);
}
.hover-link {
    transition: color 0.3s ease;
}
.hover-link:hover {
    color: #2b5d9b !important;
    text-decoration: underline !important;
}
/* ==============================================
   6. MARCAS INFINITAS (MARQUEE)
   ============================================== */
.marcas-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #0d0d0d;
    overflow: hidden;
}
.marquee-wrapper {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-content {
    display: flex;
    gap: 4rem;
    animation: scrollMarcas 20s linear infinite;
    white-space: nowrap;
}
.marca-item {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.3s ease;
    cursor: default;
}
.marca-item:hover {
    color: #2b5d9b;
    text-shadow: 0 0 15px rgba(43, 93, 155, 0.5);
}
@keyframes scrollMarcas {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
/* ==============================================
   7. SECCI07N SPOTIFY (MB VIBES)
   ============================================== */
.spotify-section {
    background: linear-gradient(to bottom, #111, #0a0a0a);
    position: relative;
    overflow: hidden;
}
.spotify-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(29, 185, 84, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.spotify-wrapper {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.spotify-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(29, 185, 84, 0.2);
    border-color: rgba(29, 185, 84, 0.3);
}
/* ==============================================
   8. M07TRICAS (COUNTERS) - MATCH FOOTER
   ============================================== */
.stats-section {
    /* Color exacto de Bootstrap bg-dark (Footer) */
    background-color: #212529;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}
.stat-item {
    padding: 20px;
    transition: transform 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-5px);
}
.stat-item i {
    display: inline-block;
    transition: transform 0.3s ease;
}
.stat-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: #fff !important;
    text-shadow: 0 0 10px #2b5d9b;
}
.counter {
    font-family: 'Montserrat', sans-serif;
    background: -webkit-linear-gradient(#fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Icono Latido */
.icono-latido {
    display: inline-block;
    animation: latido-musical 1.5s ease-in-out infinite both;
    color: #0d6efd;
    text-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}
@keyframes latido-musical {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
        text-shadow: 0 0 20px #0d6efd;
    }
}
/* ==============================================
   GALER01A MASONRY (PINTEREST STYLE)
   ============================================== */
.masonry-grid {
    column-count: 3;
    /* 3 Columnas en PC */
    column-gap: 1.5rem;
    /* Espacio entre columnas */
}
.masonry-item {
    break-inside: avoid;
    /* Evita que una foto se corte a la mitad */
    margin-bottom: 1.5rem;
    /* Espacio abajo de cada foto */
}
/* RESPONSIVE: En tablets 2 columnas, en celu 1 */
@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}
@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
}
/* ==============================================
   BOTONES DE FILTRO ISOTOPE (PORTFOLIO)
   ============================================== */
.portfolio-filters .nav-link {
    color: #444 !important;
    background-color: transparent !important;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 10px 24px !important;
}
.portfolio-filters .nav-link:hover {
    color: #2b5d9b !important;
    background-color: #f8f9fa !important;
}
.portfolio-filters .nav-link.active {
    color: #ffffff !important;
    background-color: #2b5d9b !important;
    box-shadow: 0 4px 15px rgba(43, 93, 155, 0.4);
    border-color: #2b5d9b;
}
/* TARJETA DE FOTO */
.portfolio-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.portfolio-card img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}
/* EFECTO HOVER (ZOOM + TEXTO) */
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.portfolio-card:hover img {
    transform: scale(1.1);
    /* La imagen se acerca suavemente */
}
/* OVERLAY NEGRO CON TEXTO */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}
.bot-msg button {
    background-color: #25D366;
    /* Verde WhatsApp */
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 20px;
    padding: 8px 15px;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.bot-msg button:hover {
    transform: scale(1.05);
    background-color: #128C7E;
}
/* Contenedor del input: Lo hacemos ms limpio */
.chat-input-container {
    padding: 12px 15px !important;
    background-color: #ffffff !important;
    border-top: 1px solid #eee !important;
    display: flex;
    align-items: center;
}
/* El rectngulo de escritura: Ahora es una pldora suave */
#chat-input {
    border-radius: 25px !important;
    /* Bordes bien redondeados */
    padding: 10px 18px !important;
    border: 1px solid #e0e0e0 !important;
    background-color: #f8f9fa !important;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
    /* Sombra interna sutil */
}
/* Efecto cuando el usuario hace clic para escribir */
#chat-input:focus {
    background-color: #ffffff !important;
    border-color: #6f42c1 !important;
    /* El color violeta de Lila */
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1) !important;
    /* Resplandor suave */
    outline: none;
}
/* 1. Contenedor: Alineacin perfecta */
.chat-input-container {
    display: flex !important;
    align-items: center !important;
    /* Centra verticalmente */
    padding: 10px 12px !important;
    /* Un poco menos de padding lateral */
    gap: 8px !important;
    /* Espacio exacto entre input y botn */
    background-color: #fff !important;
    border-top: 1px solid #f0f0f0 !important;
}
/* 2. Input: Ocupa todo el espacio y misma altura que el botn */
#chat-input {
    flex-grow: 1 !important;
    /* Clave: hace que el input ocupe el espacio sobrante */
    height: 42px !important;
    /* Altura fija para coincidir con el botn */
    border-radius: 21px !important;
    /* Mitad de la altura para que sea redondo perfecto */
    padding: 0 15px !important;
    /* Padding lateral interno */
    border: 1px solid #e0e0e0 !important;
    background-color: #f8f9fa !important;
    font-size: 14px !important;
    box-shadow: none !important;
    /* Limpiamos sombras raras */
}
#chat-input:focus {
    background-color: #fff !important;
    border-color: #0d6efd !important;
    outline: none !important;
}
/* 3. Botn: Crculo perfecto y centrado */
#chat-send {
    width: 42px !important;
    /* Misma medida que el height del input */
    height: 42px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    flex-shrink: 0 !important;
    /* Evita que se aplaste si hay poco espacio */
    background: #0d6efd !important;
    /* Azul Bootstrap (o cambi a tu violeta) */
    color: white !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}
/* Ajuste fino del cono (el avioncito a veces se ve descentrado) */
#chat-send i {
    font-size: 18px !important;
    margin-left: -2px !important;
    /* Correccin ptica: el cono suele estar corrido */
    margin-top: 2px !important;
}
#chat-send:hover {
    transform: scale(1.05);
    background: #0b5ed7 !important;
}
/* =========================================
   P09GINA NOSOTROS (Efectos Cinemticos)
   ========================================= */
/* Clase maestra para el efecto Parallax */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
/* Filtro oscuro para que el texto blanco se lea perfecto sobre las fotos */
.overlay-dark::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Oscuridad al 50% */
    z-index: 1;
}
/* Asegura que el contenido quede por encima del filtro */
.parallax-content {
    position: relative;
    z-index: 2;
}
/* Hroe Principal (Arriba de todo) */
.hero-section {
    background-image: url('../img/nosotros.webp?v=1.1');
    min-height: 60vh;
    /* Ocupa el 60% de la altura de la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Franja de Inmersin (Al medio) */
.immersive-break {
    background-image: url('../img/nosotros.webp?v=1.1');
    /* Cambi a .jpg si es necesario */
    min-height: 50vh;
}
/* Banner Final */
.final-banner {
    background-image: url('../img/nosotros.webp?v=1.1');
    padding: 100px 0;
}
/* Tipografa refinada */
.section-title {
    font-weight: 800;
    letter-spacing: -1px;
}
.lead-text {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
}
/* =========================================
   DETALLES DE REFINAMIENTO (NUEVO)
   ========================================= */
/* Separador elegante para ttulos */
.separator-line {
    width: 60px;
    height: 3px;
    background-color: var(--bs-primary);
    /* Usa el azul de tu marca */
    margin: 20px auto 30px;
    /* Centrado y con espacio */
}
/* Sombra premium y suave para las tarjetas */
.shadow-premium {
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Efecto sutil al pasar el mouse por las tarjetas */
.shadow-premium:hover {
    transform: translateY(-5px);
    /* Se levanta un poquito */
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.2) !important;
}
/* Texto destacado en el cuerpo */
.highlight-text {
    color: var(--bs-primary);
    font-weight: 600;
}
/* =========================================
   PARCHE PARA CELULARES (Desactiva Parallax)
   ========================================= */
/* PARCHE PARA CELULARES ACTUALIZADO */
@media (max-width: 991px) {
    .parallax-bg,
    .hero-section,
    .immersive-break,
    .final-banner,
    .bg-servicios { /* Se agreg¨® la secci¨®n para evitar el fondo negro en iOS */
        background-attachment: scroll !important;
        background-position: center center !important;
    }
    /* SOLO ESTO: Oculta la segunda franja de imagen en mviles */
    .immersive-break {
        display: none !important;
    }
}
/* ==============================================
   ANIMACIONES AL HACER SCROLL (Reveal)
   ============================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ==============================================
   BOT07N FLOTANTE WHATSAPP
   ============================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 24px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}
/* ==============================================
   9. ESTILOS PREMIUM PARA GLightbox (PORTFOLIO)
   ============================================== */
.glightbox-clean .gslide-description {
    background: #151515 !important;
    border-radius: 0 0 16px 16px !important;
    text-align: center !important;
    padding: 25px 20px !important;
}
.glightbox-clean .gslide-title {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
}
.glightbox-clean .gslide-desc {
    color: #aaaaaa !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 400 !important;
    margin: 0 !important;
}