/* Achicar imagen de fondo en Servicios y Calidad */
@media (min-width: 769px) {
    .section.parallax,
    #inicio.lazy-background.section.parallax.full-screen,
    #nosotros.lazy-background.section.parallax.full-screen,
    #contacto.lazy-background.section.parallax.full-screen {
        background-size: cover !important;
        background-position: center center;
        background-attachment: fixed !important;
    }
    #servicios.lazy-background.section.parallax.full-screen,
    #calidad.lazy-background.section.parallax.full-screen {
        background-size: cover !important;
        background-position: 70% center;
        background-attachment: fixed !important;
    }
}
#servicios.lazy-background.section.parallax.full-screen {
    background-size: 80%;
}
/* Subir la imagen de fondo en la sección de contacto */
#contacto.lazy-background.section.parallax.full-screen {
    background-position: center 0%;
    background-size: cover !important;
}
.emphasis-title.text-center.stats {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
@media (max-width: 768px) {
    #servicios .row {
        justify-content: center;
    }

    #servicios .col-lg-3 {
        display: flex;
        justify-content: center;
    }

    .emphasis-title.text-center.stats {
        max-width: 95vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .emphasis-title.text-center.cuadro-angosto {
        max-width: 95vw !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #calidad .vertical-middle {
        margin-top: 0 !important;
    }
}

/* Ajustar slider para que ocupe exactamente el viewport */
#inicio.slider-element.full-screen,
#inicio.slider-element.force-full-screen,
#inicio.slider-element.with-header {
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    overflow: visible !important;
    position: relative !important;
}

#inicio .slider-parallax-inner {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

#inicio video {
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 0 !important;
    object-fit: cover !important;
}

/* Asegurar que el overlay no agregue altura extra */
.video-overlay {
    max-height: 100vh !important;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 120px;
    gap: 25px;
    z-index: 2;
}

.video-overlay h1.titulo {
    font-size: clamp(1.6rem, calc(5vw + 0.2rem), 2.4rem) !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 !important;
    padding: 0.35em 0.9em !important;
    text-align: center;
    line-height: 1.05 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
}

.video-overlay p {
    font-size: 0.83rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-align: center;
    margin: 0 !important;
    padding: 0.65em 2.2em !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* ── Desktop: WebGL glass handles everything, kill CSS glassmorphism ── */
@media (min-width: 769px) {
    .video-overlay h1.titulo,
    .video-overlay p {
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0;
    }
    .video-overlay h1.titulo::before,
    .video-overlay p::before {
        display: none;
    }
}

/* ── Mobile: CSS glassmorphism fallback (WebGL disabled) ── */
@media (max-width: 768px) {
    .video-overlay h1.titulo {
        background: rgba(255, 255, 255, 0.12) !important;
        backdrop-filter: blur(20px) saturate(1.4) !important;
        -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 20px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    }
    .video-overlay h1.titulo::before {
        display: none;
    }
    .video-overlay p {
        background: rgba(255, 255, 255, 0.10) !important;
        backdrop-filter: blur(16px) saturate(1.3) !important;
        -webkit-backdrop-filter: blur(16px) saturate(1.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 18px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    }
    .video-overlay p::before {
        display: none;
    }
}

/* Responsive: Ajustar tamaños en móviles */
@media (max-width: 768px) {
    .video-overlay {
        padding-top: 100px;
        gap: 18px;
    }

    /* El font-size ya es responsivo con clamp(), solo ajustamos otros detalles */
    .video-overlay h1.titulo {
        padding: 0.3em 0.75em !important;
        border-radius: 20px;
    }

    .video-overlay h1.titulo::before {
        border-radius: 20px 20px 0 0;
    }

    .video-overlay p {
        font-size: 0.7rem !important;
        letter-spacing: 0.25em;
        padding: 0.55em 1.8em !important;
        border-radius: 18px;
    }

    .video-overlay p::before {
        border-radius: 18px 18px 0 0;
    }

    /* Ocultar hamburguesa en móvil */
    #primary-menu-trigger {
        display: none !important;
    }

    /* Ocultar menú completo en móvil ya que no es necesario */
    #primary-menu {
        display: none !important;
    }
}

/* Animacion de scroll en video */
.scroll-downs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.mousey {
    display: block;
    width: 25px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 13px;
    position: relative;
    pointer-events: none;
}

.scroller {
    width: 3px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-animate 1.5s infinite;
}

@keyframes scroll-animate {
    0% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    80% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Header empieza abajo y JavaScript lo mueve */
#header.transparent-header {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    will-change: top;
}

/* Ajustar el contenido para que no quede oculto bajo el header */
#content {
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
}

/* Efecto liquid glass para el header/menú */
#header.transparent-header #header-wrap {
    backdrop-filter: blur(10px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.04)) !important;
    border-bottom: none !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s ease;
}

/* Mantener efecto liquid glass cuando está sticky */
#header.sticky-header #header-wrap {
    backdrop-filter: blur(10px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.08)) !important;
    border-bottom: none !important;
}

/* Mantener texto blanco en sticky - máxima especificidad */
html body #header.sticky-header #primary-menu>ul>li>a,
html body #header.sticky-header #primary-menu>ul>li>a>div,
html body #header.sticky-header:not(.static-sticky) #primary-menu>ul>li>a,
html body #header.sticky-header #primary-menu ul li a,
html body #header.sticky-header:not(.static-sticky) #primary-menu ul>li>a {
    color: #ffffff !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600 !important;
}

/* Hover en sticky */
html body #header.sticky-header #primary-menu>ul>li:hover>a,
html body #header.sticky-header #primary-menu>ul>li.current>a {
    color: #ffffff !important;
    opacity: 0.8 !important;
}

/* Mejorar contraste del texto del menú */
#header.transparent-header #primary-menu>ul>li>a,
#header.transparent-header #primary-menu>ul>li>a>div {
    color: #ffffff !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600 !important;
}

/* Hover en el menú */
#header.transparent-header #primary-menu>ul>li:hover>a,
#header.transparent-header #primary-menu>ul>li.current>a {
    color: #ffffff !important;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.7),
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(255, 255, 255, 0.4) !important;
}

/* Alinear menú a la derecha */
#primary-menu {
    float: right !important;
    margin-right: 0 !important;
    margin-left: auto !important;
}

#primary-menu>ul {
    justify-content: flex-end !important;
    text-align: right !important;
    padding-right: 20px !important;
}

#header-wrap .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-right: 20px !important;
    max-width: 100% !important;
}

/* Hamburguesa a la derecha en móvil */
#primary-menu-trigger {
    right: 20px !important;
    left: auto !important;
    margin-right: 0 !important;
}

/* Logo responsivo - tamaño y posición fluida */
#logo-video {
    position: fixed !important;
    left: clamp(10px, 5vw, 100px) !important;
    top: 8px !important;
    z-index: 9999 !important;
    width: auto;
}

#logo-video a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: clamp(60px, 7.3vw, 88px) !important;
    height: clamp(60px, 7.3vw, 88px) !important;
    border-radius: 50% !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

#logo-video a:hover {
    transform: scale(1.05) !important;
    box-shadow: none !important;
}

#logo-video a img {
    height: clamp(44px, 5.6vw, 63px) !important;
    width: clamp(63px, 7.9vw, 91px) !important;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.5));
}

/* Secciones parallax */
/* Mejor encuadre para la sección Sobre Nosotros */
#nosotros.lazy-background.section.parallax.full-screen {
    background-position: center 10%;
    background-size: cover;
}
#content .section.parallax,
.content-wrap .section.parallax {
    background-size: cover !important;
    background-position: center center;
    width: 100%;
    position: relative;
}

/* Asegurar altura exacta en desktop para secciones full-screen */
@media (min-width: 769px) {
    .section.parallax.full-screen {
        min-height: 100vh !important;
        height: 100vh !important;
        max-height: 100vh !important;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    /* Asegurar que el contenido vertical-middle ocupe el espacio completo */
    .section.parallax.full-screen .vertical-middle {
        width: 100%;
    }
}

/* Eliminar líneas/márgenes entre secciones */
.section.nomargin {
    margin: 0 !important;
}

.section.noborder {
    border: 0 !important;
}

/* Cuadro "Calidad, Seguridad y Respaldo" con liquid glass ultra translúcido */
.emphasis-title.text-center {
    backdrop-filter: blur(2px) saturate(105%) !important;
    -webkit-backdrop-filter: blur(2px) saturate(105%) !important;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.01),
            rgba(255, 255, 255, 0.005)) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 4px 16px 0 rgba(0, 0, 0, 0.08),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.1) !important;
    padding: 50px 40px !important;
    max-width: 100% !important;
    width: 80% !important;
    margin: 0 auto;
    height: 380px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Hacer que todas las filas con emphasis-title tengan display flex para altura uniforme */
.section .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Hacer los cuadros de la sección 2 (aeropuerto) un poco más opacos */
.section.parallax:nth-of-type(1) .emphasis-title.text-center {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.05)) !important;
    backdrop-filter: blur(8px) saturate(110%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(110%) !important;
}

.emphasis-title.text-center h2 {
    font-size: 1.8rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 1px 5px rgba(0, 0, 0, 0.9) !important;
    margin-bottom: 18px !important;
    letter-spacing: 0.05em;
}

.emphasis-title.text-center h1,
.emphasis-title.text-center h3,
.emphasis-title.text-center h4,
.emphasis-title.text-center h5 {
    color: #ffffff !important;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 1px 5px rgba(0, 0, 0, 0.9) !important;
}

.emphasis-title.text-center h3 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.emphasis-title.text-center .counter,
.emphasis-title.text-center .counter-large {
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 1px 5px rgba(0, 0, 0, 0.9) !important;
    display: block;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.emphasis-title.text-center p.lead {
    font-size: 1.08rem !important;
    color: #ffffff !important;
    line-height: 1.6 !important;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.7),
        0 1px 4px rgba(0, 0, 0, 0.85) !important;
    margin-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .emphasis-title.text-center {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 28px 24px !important;
        border-radius: 18px !important;
    }

    .emphasis-title.text-center h2 {
        font-size: 1.5rem !important;
    }

    .emphasis-title.text-center p.lead {
        font-size: 0.9rem !important;
    }

    /* Imágenes responsivas en móvil: siempre cubren la pantalla sin zoom excesivo */
    .section.parallax,
    #inicio.lazy-background.section.parallax.full-screen,
    #nosotros.lazy-background.section.parallax.full-screen,
    #servicios.lazy-background.section.parallax.full-screen,
    #calidad.lazy-background.section.parallax.full-screen,
    #contacto.lazy-background.section.parallax.full-screen {
        background-size: cover !important;
        background-position: center center !important;
    }

    /* Mover imagen a la derecha en móvil SOLO para servicios y calidad */
    #servicios.lazy-background.section.parallax.full-screen {
        background-position: 70% center !important;
    }
    #calidad.lazy-background.section.parallax.full-screen {
        background-position: 70% center !important;
    }
}

/* Liquid glass effect para las secciones principales */
#inicio .col-lg-4,
#nosotros .col-lg-4,
#servicios .col-lg-4,
#calidad .col-lg-4,
#contacto .col-lg-4 {
    position: relative;
    overflow: hidden;
}

/* Ajustar emphasis-title dentro de cada sección para que no tenga max-width */
#inicio .emphasis-title.text-center,
#nosotros .emphasis-title.text-center,
#servicios .emphasis-title.text-center,
#calidad .emphasis-title.text-center,
#contacto .emphasis-title.text-center {
    max-width: none !important;
    width: 90% !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 420px;
    padding-bottom: 32px !important;
}

/* Ajustes específicos para los cuadros de estadísticas en desktop */
#servicios .emphasis-title.text-center.stats {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 32px 20px !important;
}

#servicios .counter.counter-large {
    white-space: normal;
}

#servicios .counter.counter-large span {
    margin-right: 0.15em;
}

#inicio .col-lg-4,
#nosotros .col-lg-4,
#servicios .col-lg-4,
#calidad .col-lg-4,
#contacto .col-lg-4 {
    padding: 20px;
}

#inicio .emphasis-title.text-center h3,
#nosotros .emphasis-title.text-center {
    max-width: none !important;
    width: 90% !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 520px;
    padding-bottom: 32px !important;
}
#calidad .emphasis-title.text-center p,
#contacto .emphasis-title.text-center p {
    line-height: 1.8;
    color: white;
}

#inicio .emphasis-title.text-center i,
#nosotros .emphasis-title.text-center h3,
#servicios .emphasis-title.text-center h3,
#calidad .emphasis-title.text-center h3,
#contacto .emphasis-title.text-center h3 {
    font-weight: 600;
    margin-bottom: 18px !important;
}

#nosotros .emphasis-title.text-center i {
    display: block;
    margin: 0 auto 18px auto !important;
    font-size: 3rem;
    color: #fff !important;
    position: static !important;
}
@media (max-width: 768px) {
    #inicio .emphasis-title.text-center,
    #nosotros .emphasis-title.text-center,
    #servicios .emphasis-title.text-center,
    #calidad .emphasis-title.text-center,
    #contacto .emphasis-title.text-center {
        width: 100% !important;
        min-height: 0 !important;
    }
}

/* Estilos para sección final de contacto/footer */
.lazy-background.section.parallax.dark.full-screen .emphasis-title.text-center h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

/* Iconos sociales y textos más ordenados */
.social-text {
    font-size: 0.85rem;
    line-height: 1.2;
    max-width: 220px;
}

.social-text-whatsapp {
    font-size: 0.8rem;
    line-height: 1.15;
}

.social-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.social-item .social-icon {
    margin-right: 0 !important;
    flex: 0 0 auto;
    float: none;
    margin-top: 2px;
}

.social-item a {
    text-align: left;
}

/* Nota de reserva en el footer */
.pre-reserva {
    font-size: 1.05rem !important;
}
.lazy-background.section.parallax.dark.full-screen .emphasis-title.text-center h2 {
    color: white;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.lazy-background.section.parallax.dark.full-screen .emphasis-title.text-center p.lead {
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
}

/* Solo el párrafo de contacto */
.lazy-background.section.parallax.dark.full-screen .emphasis-title.text-center p.contact-lead {
    font-size: clamp(1.1875rem, calc(2.5vw + 0.1875rem), 1.4875rem) !important;
}


/* Reglas ultra específicas para móvil: mover imagen a la derecha en servicios y calidad */
@media (max-width: 768px) {
    #servicios.lazy-background.section.parallax.full-screen {
       background-position: 60% center !important;
       background-size: cover !important;
    }
    #calidad.lazy-background.section.parallax.full-screen {
       background-position: 60% center !important;
       background-size: cover !important;
    }
}
