 /* ==========================================================================
   CONFIGURACIONES GENERALES & TIPOGRAFÍA base (ANTONIO ALARGADA)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Antonio', sans-serif !important;
    background-color: #0F0F11 !important; /* Negro Profundo MGP */
    color: #FFFFFF !important; /* Blanco Puro Titanio */
    line-height: 1.6;
    font-size: 1.05rem;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.text-center-clean {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   MENÚ HORIZONTAL (Efecto esmerilado adaptado a la nueva paleta)
   ========================================================================== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99999 !important;
    padding: 25px 0;
    transition: all 0.4s ease;
    background-color: transparent;
}

header.scrolled {
    background-color: rgba(26, 30, 36, 0.9) !important; /* Gris Grafito Esmerilado */
    backdrop-filter: blur(12px) !important; 
    -webkit-backdrop-filter: blur(12px) !important; 
    padding: 12px 0; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.03); 
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    font-family: 'Antonio', sans-serif !important;
    text-decoration: none;
    color: #ffffff; 
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

header.scrolled nav a {
    color: #B9BEC5 !important; /* Plata sutil en scroll */
    text-shadow: none;
}

nav a:hover, header.scrolled nav a:hover {
    color: #C8102E !important; /* Resalte en Rojo MGP al pasar el cursor */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Selector de Idiomas */
.lang-picker {
    background: rgba(15, 15, 17, 0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

header.scrolled .lang-picker {
    background: transparent !important;
    color: #F5F5F3 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Botón Menú Superior (Request a Quote) */
.btn-menu {
    font-family: 'Antonio', sans-serif !important;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px !important;
    transition: all 0.3s ease;
}

header.scrolled .btn-menu {
    border-color: #C8102E !important;
    color: #C8102E !important;
}

header.scrolled .btn-menu:hover {
    background-color: #C8102E !important;
    color: #F5F5F3 !important;
    border-color: #C8102E !important;
}

/* ==========================================================================
   LOGOTIPO ORIGINAL TRANSPARENTE EN ESCALA CROMADA MATE
   ========================================================================== */
.logo-img {
    height: 90px;
    width: auto;
    transition: all 0.4s ease;
    filter: invert(0.9) saturate(0) brightness(1.6) contrast(1.2);
}

header.scrolled .logo-img {
    height: 70px;
    filter: invert(0.9) saturate(0) brightness(1.8) contrast(1.1);
}

/* ==========================================================================
   HERO SECTION (Tu fotografía limpia editada)
   ========================================================================== */
.hero {
    height: 100vh;
    position: relative;
    background-image: url('images/hero-jet.png');
    background-size: cover;
    background-position: center center; 
    background-repeat: no-repeat;
    display: flex;
    align-items: center; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 15, 17, 0.85) 0%, rgba(15, 15, 17, 0.6) 30%, rgba(15, 15, 17, 0) 60%);
    z-index: 1;
}

/* BRILLO Y NITIDEZ MÁXIMA PARA EL TEXTO DEL HERO */
.hero-left-content {
    /* 1. Aseguramos que el contenedor de texto no tenga filtros de opacidad */
    filter: none !important;
    opacity: 1 !important;
}

.hero h1 {
    font-family: 'Syncopate', sans-serif !important; /* Mantenemos tu fuente */
    font-size: 3.2rem !important; /* Mantenemos tu tamaño original */
    font-weight: 800 !important;
    color: #ffffff !important; /* Blanco PURO y BRILLANTE */
    text-transform: uppercase;
    line-height: 1.3 !important;
    margin-bottom: 25px !important;
    text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.6); /* Sombra nítida para contraste */
    letter-spacing: 3px !important;
    white-space: normal !important; /* Forzamos las 2 líneas del título */
}

/* Tono de ROJO VIVO e INTENSO para CADA DETALLE */
.text-red-accent {
    color: #c8102e !important; /* Rojo fuerte e iluminado igual al de la foto */
    opacity: 1 !important;
}

.hero-tagline {
    font-size: 1rem !important; /* Mantenemos el tamaño de la bajada */
    line-height: 1.5 !important;
    color: #e0e0e0 !important; /* Blanco suave, pero nítido (no opaco) */
    opacity: 1 !important;
    max-width: 420px !important; /* Mantenemos tus 3 renglones */
}

/* Botón Principal */
.btn-primary {
    display: inline-block;
    padding: 18px 55px !important;
    background-color: #C8102E !important;
    color: #F5F5F3 !important;
    text-decoration: none;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.95rem !important;
    letter-spacing: 2px !important;
    transition: all 0.3s ease;
    border: 1px solid #C8102E !important;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3) !important;
}

.btn-primary:hover {
    background-color: transparent !important;
    color: #C8102E !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   NUEVO ABOUT SECTION (Diseño Asimétrico Premium con Imagen de Impacto)
   ========================================================================== */
.about-section {
    padding: 120px 0;
    background-color: #1a1e24 !important; /* Gris Grafito Mate original */
}

.about-top-title {
    text-align: center;
    margin-bottom: 50px;
}

.about-section h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-layout-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 50px;
    align-items: center;
}

.about-image-side {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-featured-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.9) grayscale(0.1); 
    transition: filter 0.3s ease;
}

.about-image-side:hover .about-featured-img {
    filter: brightness(1) grayscale(0); 
}

.about-content-side {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-block {
    background: #0F0F11 !important; /* Bloques Negros Profundos */
    padding: 35px !important;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-block:hover {
    transform: translateX(5px); 
    border-color: rgba(200, 16, 46, 0.3) !important; 
}

.about-block h3 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #C8102E !important; /* Títulos en Rojo MGP */
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.about-block p {
    font-family: 'Antonio', sans-serif !important;
    color: #FFFFFF !important;
    font-size: 1.1rem;
    line-height: 1.6; 
    font-weight: 400 !important;
    letter-spacing: 0.8px !important; 
}

/* Subtítulos generales */
.contact-subtitle {
    font-family: 'Antonio', sans-serif !important;
    color: #D1D5DB !important; /* Plata Metálico */
    font-size: 1.1rem;
    line-height: 1.7;
    letter-spacing: 1px !important;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* ==========================================================================
   SLIDER ANTES Y DESPUÉS
   ========================================================================== */
.comparison-section {
    padding: 100px 0;
    background-color: #0F0F11;
    text-align: center;
}

.comparison-section h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 560px;
    margin: 50px auto 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
}

.slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #0b0e14;
    position: absolute;
    top: 0;
    left: 0;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.img-overlay img {
    width: 1000px;
    max-width: none;
}

.slider {
    position: absolute;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 5;
    outline: none;
    margin: 0;
    cursor: ew-resize;
}

.slider-button {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #ffffff;
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.slider-button::after {
    content: "↔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    color: #0F0F11;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 1.2rem;
}

/* ==========================================================================
   SERVICES SECTION (Gris Grafito Mate)
   ========================================================================== */
.services-section {
    padding: 120px 0;
    background-color: #1a1e24 !important;
}

.services-section .section-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 60px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.service-category {
    background: #0F0F11 !important;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid rgba(185, 188, 197, 0.05) !important;
}

.service-category h3 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.3rem;
    color: #F5F5F3 !important;
    border-bottom: 2px solid #C8102E !important; 
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-category ul {
    list-style: none;
}

.service-category li {
    font-family: 'Antonio', sans-serif !important;
    padding: 10px 0;
    color: #FFFFFF !important;
    font-weight: 400 !important;
    font-size: 0.95rem;
    letter-spacing: 0.8px !important;
}

/* ==========================================================================
   WHY CHOOSE US (Contraste Alto - Blanco Humo)
   ========================================================================== */
.why-section {
    padding: 120px 0;
    background-color: #F5F5F3 !important;
    color: #0F0F11 !important;
    text-align: center;
}

.why-section h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 60px;
    letter-spacing: 2px;
    color: #0F0F11 !important;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.why-card {
    background: #ffffff !important;
    padding: 40px 20px;
    border: 1px solid rgba(15, 15, 17, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.why-card.active {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-family: 'Syncopate', sans-serif;
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #C8102E !important; 
    margin-bottom: 10px;
}

.stat-label {
    font-family: 'Antonio', sans-serif !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3C3F44 !important; 
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-section {
    background-color: #0F0F11;
}

.gallery-large-item {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.gallery-large-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-large-item:hover img {
    transform: scale(1.05);
}

.gallery-large-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    align-items: flex-end;
    padding: 60px;
}

.gallery-large-text span {
    font-family: 'Antonio', sans-serif !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.6);
}

.gallery-large-text h3 {
    font-family: 'Syncopate', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    color: #fff;
    margin-top: 5px;
}

/* ==========================================================================
   CONTACT SECTION (Negro Profundo MGP)
   ========================================================================== */
.contact-section {
    padding: 120px 0;
    background-color: #0F0F11 !important;
    text-align: center;
}

.contact-section h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff !important;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.contact-link {
    font-family: 'Antonio', sans-serif !important;
    color: #FFFFFF !important;
    font-size: 1.15rem !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    letter-spacing: 0.8px !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

a.contact-link:hover {
    color: #C8102E !important;
}

/* ==========================================================================
   FOOTER & RESPONSIVIDAD
   ========================================================================== */
footer {
    padding: 40px 0;
    background-color: #0F0F11;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

footer p {
    font-family: 'Antonio', sans-serif !important;
    letter-spacing: 0.8px;
}

@media (max-width: 992px) {
    .about-layout-grid { grid-template-columns: 1fr; gap: 35px; }
    nav { display: none; }
    .hero h1 { white-space: normal; font-size: 2.4rem !important; }
}
/* ==========================================================================
   OPTIMIZACIÓN DE TAMAÑO PARA EL NUEVO LOGO PREMIUM
   ========================================================================== */
.logo img, 
.logo-container img,
nav .logo img {
    height: 75px !important;    /* Aumenta la altura para que resalte */
    width: auto !important;      /* Mantiene la proporción perfecta sin deformar */
    max-height: 90px !important; /* Límite para que no rompa la barra de navegación */
    transform: scale(1.1);       /* Le da un 10% extra de escala visual */
    transition: transform 0.3s ease;
}

/* Efecto sutil al pasar el mouse */
.logo img:hover, 
.logo-container img:hover {
    transform: scale(1.15);      /* Crece un poquito al pasar el cursor */
}
/* ==========================================================================
   EFECTO DE REVELADO DE IMAGEN (NOSOTROS)
   ========================================================================= */

.hover-reveal-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    width: 100%;
}

/* Forzamos a que ambas imágenes ocupen el mismo espacio exacto */
.hover-reveal-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Imagen 1 (Técnico): Visible al inicio */
.hover-reveal-container .img-base {
    opacity: 1;
}

/* Imagen 2 (Logo Fondo Negro): Superpuesta y oculta */
.hover-reveal-container .img-reveal {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(1.08); /* Sutil efecto de zoom invertido */
}

/* ==========================================================================
   ACCION HOVER (EL INTERCAMBIO)
   ========================================================================== */

/* Al pasar el cursor, el técnico se desvanece suavemente */
.hover-reveal-container:hover .img-base {
    opacity: 0;
    transform: scale(0.95);
}

/* El logo con fondo negro toma el control */
.hover-reveal-container:hover .img-reveal {
    opacity: 1;
    transform: scale(1);
}
/* ==========================================================================
   CORRECCIÓN DE TAMAÑO EN SECCIÓN "POR QUÉ ELEGIRNOS"
   ========================================================================== */

/* Ajustamos el tamaño de la tipografía grande dentro de las tarjetas */
.why-card .stat-number {
    font-size: 2.2rem !important;   /* Reduce el tamaño para que quepan palabras largas */
    letter-spacing: -1px !important; /* Junta ligeramente las letras para optimizar espacio */
    display: block;
    width: 100%;
    overflow-wrap: break-word;      /* Evita que se salga bajo cualquier circunstancia */
    text-align: center;
    line-height: 1.2 !important;
    margin-bottom: 10px;
}

/* Espaciado extra en los recuadros para dar más margen de aire a los lados */
.why-card {
    padding: 30px 15px !important;  /* Reduce el padding lateral interno */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
/* ==========================================================================
   OPTIMIZACIÓN SIMÉTRICA PARA LA GALERÍA PREMIUM
   ========================================================================== */
.gallery-section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.gallery-large-item {
    flex: 1 1 50%; /* Divide la pantalla exactamente a la mitad en monitores */
    min-width: 300px;
    height: 550px; /* Altura fija para que ambas tarjetas queden alineadas al píxel */
    overflow: hidden;
    position: relative;
}

.gallery-large-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Centra y recorta los bordes sobrantes mágicamente sin deformar */
    object-position: center center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/* ==========================================================================
   OPTIMIZACIÓN SIMÉTRICA PARA LA GALERÍA PREMIUM
   ========================================================================== */
.gallery-section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.gallery-large-item {
    flex: 1 1 50%; /* Divide la pantalla exactamente a la mitad en monitores */
    min-width: 300px;
    height: 550px; /* Altura fija para que ambas tarjetas queden alineadas al píxel */
    overflow: hidden;
    position: relative;
}

.gallery-large-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Centra y recorta los bordes sobrantes mágicamente sin deformar */
    object-position: center center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arreglo de color y legibilidad para el correo y WhatsApp */
.contact-channels a {
    color: #ffffff !important;   /* Forzamos el color blanco */
    text-decoration: none;     /* Quitamos la línea de subrayado */
    font-weight: bold;         /* Lo hacemos un poco más grueso */
    transition: color 0.3s ease;
}

.contact-channels a:hover {
    color: #ffd700 !important; /* Al pasar el ratón, se pone dorado elegante */
}
/* ==========================================================================
   CONFIGURACIÓN FINAL Y DEFINITIVA DE TIPOGRAFÍAS
   ========================================================================== */

/* 1. ROBOTO: Únicamente para textos, párrafos, subtítulos y listas */
p, 
span, 
li, 
.about-block p, 
.contact-subtitle, 
.service-category li, 
.stat-label, 
footer p, 
.hero-tagline {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 300 !important;       /* Letra finita, limpia y elegante */
    letter-spacing: 0.5px !important;  /* Espaciado perfecto sin amontonar */
    line-height: 1.7 !important;       /* Espacio cómodo entre renglones */
}

/* 2. SYNCOPATE: Restaurada para tus títulos principales originales */
h1, h2, h3, 
.hero h1, 
.about-section h2, 
.comparison-section h2, 
.services-section .section-title, 
.why-section h2, 
.contact-section h2 {
    font-family: 'Syncopate', sans-serif !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

/* 3. Enlaces de Contacto (Correo y WhatsApp) */
.contact-channels a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-channels a:hover {
    color: #ffd700 !important;
}
/* AJUSTE PARA GALERÍA EN CELULARES */
@media (max-width: 768px) {
    .gallery-large-item {
        height: 250px; /* O una proporción más horizontal de acuerdo a tu diseño */
        min-height: auto;
    }

    .gallery-large-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Mantiene la imagen limpia ajustada al contenedor */
        object-position: center; /* Asegura que el avión quede centrado */
    }
}
/* TRAER EL TEXTO AL FRENTE Y QUITAR CUALQUIER SOMBRA O CAPA SOBRE ÉL */

/* 1. Mantenemos el overlay/nube al fondo */
.hero-overlay {
    z-index: 1 !important;
}

/* 2. Traemos TODO el contenedor del texto al frente de todo */
.hero-left-content {
    position: relative !important;
    z-index: 100 !important; /* Lo pone arriba de cualquier capa oscura */
    opacity: 1 !important;
    filter: none !important;
}

/* 3. Brillo 100% puro para las letras */
.hero-left-content h1,
.hero-left-content h1 span,
.hero-left-content p,
.hero-left-content p span {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important; /* Desactiva cualquier modo de fusión que lo oscurezca */
}

/* Blanco resplandeciente */
.hero h1 {
    color: #ffffff !important;
}

/* Rojo vivo e intenso sin atenuar */
.text-red-accent {
    color: #e50914 !important;
}
/* AJUSTE RESPONSIVO PARA EL ANTES Y DESPUÉS EN MÓVILES */

/* 1. Asegurar que el contenedor del slider no se salga del teléfono */
.before-after-container,
.ba-slider,
.image-comparison { 
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important; /* Mantiene la proporción correcta de la foto */
    position: relative !important;
    overflow: hidden !important;
    margin: 0 auto !important;
}

/* 2. Forzar a que las imágenes del antes/después se adapten exactamente al tamaño */
.before-after-container img,
.ba-slider img,
.image-comparison img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Evita que las imágenes se estiren o se deformen */
    display: block !important;
}

/* 3. Reglas específicas para pantallas pequeñas (Celulares) */
@media (max-width: 768px) {
    .before-after-section,
    .projects-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Si las etiquetas "Antes" y "Después" tapan mucho la foto en móvil */
    .ba-label,
    .comparison-label {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
    }
}
/* ANTES Y DESPUÉS PERFECTO PARA CELULAR Y PC */
.ba-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    margin: 30px auto 0 auto;
    overflow: hidden;
    border-radius: 8px;
    touch-action: pan-y;
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    pointer-events: none;
}

.ba-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #c8102e;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.ba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 20;
    cursor: ew-resize;
}

@media (max-width: 768px) {
    .ba-wrapper {
        aspect-ratio: 4 / 3;
    }
}
/* ==========================================================================
   ANTES Y DESPUÉS RESPONSIVO
   ========================================================================== */
.ba-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 900px !important;
    aspect-ratio: 16 / 9 !important;
    margin: 30px auto 0 auto !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    touch-action: pan-y !important;
}

.ba-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
}

.ba-before-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-line {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 3px !important;
    background: #c8102e !important;
    pointer-events: none !important;
    z-index: 10 !important;
    box-shadow: 0 0 8px rgba(0,0,0,0.5) !important;
}

.ba-slider {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    z-index: 20 !important;
    cursor: ew-resize !important;
}

@media (max-width: 768px) {
    .ba-wrapper {
        aspect-ratio: 4 / 3 !important;
    }
}

/* ==========================================================================
   GALERÍA LADO A LADO Y RESPONSIVA (CON FIX DE ALTURA)
   ========================================================================== */
.gallery-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.gallery-large-item {
    flex: 1 1 calc(50% - 10px) !important;
    height: 380px !important; /* Forzamos altura fija para que no tape */
    min-height: 380px !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

.gallery-large-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* ENCUADRE DE AVIONES */
.gallery-large-item img[src*="citation"] {
    object-position: left center !important;
}

.gallery-large-item img[src*="phenom"] {
    object-position: center center !important;
}

/* DESACTIVAR CLIC EN EL OVERLAY PARA QUE PASE A LA FOTO */
.gallery-large-overlay, 
.gallery-large-text,
.gallery-large-text span,
.gallery-large-text h3 {
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .gallery-container {
        gap: 15px !important;
    }
    
    .gallery-large-item {
        flex: 1 1 100% !important;
        height: 240px !important;
        min-height: 240px !important;
    }
}

/* ==========================================================================
   LIGHTBOX (VENTANA EMERGENTE EN PANTALLA COMPLETA)
   ========================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain !important;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000000;
}
