/* Declaración de fuente personalizada - Nexa Heavy */
@font-face {
    font-family: 'Nexa Heavy';
    src: url('../fonts/Nexa-Heavy.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Estilos principales para la página de inicio */

/* Imagen de fondo del hero por defecto para DESKTOP (si no hay configurada en la BD) - cubrir pantalla */
.hero-background-image-default-desktop {
    background-image: url('https://ik.imagekit.io/zygo791np0/zambparte3/principalCompu?updatedAt=1758379704739');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Imagen de fondo del hero por defecto para MOBILE (si no hay configurada en la BD) - cubrir pantalla */
.hero-background-image-default-mobile {
    background-image: url('https://ik.imagekit.io/zygo791np0/zambparte3/mobile3?updatedAt=1758133787704');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Las imágenes de fondo ahora se gestionan desde el panel administrativo y se cargan dinámicamente desde Firebase Storage */

/* Control de visibilidad según dispositivo */
@media (max-width: 768px) {
    .hero-background-mobile {
        display: block !important;
    }
    .hero-background-desktop {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hero-background-mobile {
        display: none !important;
    }
    .hero-background-desktop {
        display: block !important;
    }
}

/* Estilos para que el fondo cubra todo el contenedor (puede recortar bordes) */
.hero-background-mobile,
.hero-background-desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Contenedor del fondo */
.hero-background-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
}

/* Para imágenes de fondo con background-image - cubrir contenedor */
.hero-background-mobile[style*="background-image"],
.hero-background-desktop[style*="background-image"],
.hero-image-mobile {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* Para videos - cubrir contenedor */
.hero-video-mobile,
.hero-video-desktop {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* Desktop: puede usar fixed para efecto parallax */
@media (min-width: 769px) {
    .hero-background-desktop[style*="background-image"],
    .hero-image-desktop {
        background-attachment: fixed;
    }

    .hero-background-container {
        min-height: 100vh;
        height: 100vh;
    }
}

/* Mobile: usar scroll para mejor rendimiento */
@media (max-width: 768px) {
    .hero-background-mobile[style*="background-image"],
    .hero-image-mobile {
        background-attachment: scroll;
    }
    
    /* Asegurar que el section cubra completamente en mobile */
    .hero-section-inicio {
        min-height: 100vh !important;
        height: 100vh !important;
        padding: 0 !important;
    }
    
    /* Asegurar que el contenedor cubra completamente */
    .hero-background-container {
        min-height: 100vh !important;
        height: 100vh !important;
        min-width: 100% !important;
        width: 100% !important;
    }
    
    /* Asegurar que la imagen cubra en mobile (puede recortar) */
    .hero-background-mobile {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        min-width: 100% !important;
        min-height: 100vh !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    
    .hero-image-mobile {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        min-width: 100% !important;
        min-height: 100vh !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    
    .hero-video-mobile {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        min-width: 100% !important;
        min-height: 100vh !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
    
    /* Para dispositivos móviles en orientación vertical */
    @media (orientation: portrait) {
        .hero-section-inicio {
            min-height: 100vh !important;
            height: 100vh !important;
        }

        .hero-background-container {
            min-height: 100vh !important;
            height: 100vh !important;
        }

        .hero-background-mobile,
        .hero-image-mobile {
            height: 100vh !important;
            min-height: 100vh !important;
        }

        .hero-video-mobile {
            height: 100vh !important;
            min-height: 100vh !important;
        }
    }
    
    /* Para dispositivos móviles en orientación horizontal */
    @media (orientation: landscape) {
        .hero-section-inicio {
            min-height: 100vh !important;
            height: 100vh !important;
        }

        .hero-background-container {
            min-height: 100vh !important;
            height: 100vh !important;
        }

        .hero-background-mobile,
        .hero-image-mobile {
            height: 100vh !important;
            min-height: 100vh !important;
        }

        .hero-video-mobile {
            height: 100vh !important;
            min-height: 100vh !important;
        }
    }
}

/* Ajuste específico para desktop - cubrir contenedor */
@media (min-width: 769px) {
    .hero-background-desktop {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    
    .hero-image-desktop {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    
    .hero-video-desktop {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
    
    /* Para pantallas desktop en orientación horizontal (pantalla normal) */
    @media (orientation: landscape) {
        .hero-background-desktop,
        .hero-image-desktop {
            background-size: cover !important;
            background-position: center center !important;
        }
    }
    
    /* Para pantallas desktop en orientación vertical (tablets verticales) */
    @media (orientation: portrait) {
        .hero-background-desktop,
        .hero-image-desktop {
            background-size: cover !important;
            background-position: center center !important;
        }
    }
}

/* Estilos para títulos 3D */
.titulo-3d {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    color: #1f2937;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.titulo-3d-text {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emoji-original {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Estilos para el fondo de tipos de viajes - Diseño profesional */
.travel-background {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    position: relative;
}

.travel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* Estilos para iconos de avión */
.airplane-icon-modern {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Estilos para tarjetas de destinos destacados */
.destinos-destacados-card {
    perspective: 1000px;
}

.destinos-destacados-title {
    font-family: 'Manor™', 'Montserrat', sans-serif;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.destinos-destacados-image {
    transition: transform 0.5s ease;
}

.destinos-destacados-button {
    transition: all 0.5s ease;
}

/* Efectos de partículas flotantes */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-10px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-5px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
        opacity: 0.6;
    }
}

/* Estilos para tarjetas de tipos de viajes - Diseño profesional */
.travel-card-individual {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.travel-card-grupal {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.travel-icon-individual {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.travel-icon-grupal {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.travel-title-individual {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #1e40af !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #8b5cf6, #3b82f6, #1e40af);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerAccent 3s ease-in-out infinite;
}

.travel-title-grupal {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #047857 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    background: linear-gradient(90deg, #047857, #10b981, #06b6d4, #10b981, #047857);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerAccent 3s ease-in-out infinite;
}

/* Animación de acento que se recorre */
@keyframes shimmerAccent {
    0% {
        background-position: -200% 0;
    }
    50% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Efecto de brillo adicional para los títulos */
.travel-title-individual::before,
.travel-title-grupal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmerGlow 2.5s ease-in-out infinite;
    pointer-events: none;
    border-radius: 4px;
}

@keyframes shimmerGlow {
    0% {
        background-position: -200% 0;
        opacity: 0;
    }
    50% {
        background-position: 200% 0;
        opacity: 1;
    }
    100% {
        background-position: -200% 0;
        opacity: 0;
    }
}

/* Efecto de hover para acelerar la animación */
.travel-card-individual:hover .travel-title-individual,
.travel-card-grupal:hover .travel-title-grupal {
    animation-duration: 1.5s;
}

.travel-card-individual:hover .travel-title-individual::before,
.travel-card-grupal:hover .travel-title-grupal::before {
    animation-duration: 1s;
    opacity: 0.8;
}

/* Efecto de pulso sutil para los títulos */
.travel-title-individual,
.travel-title-grupal {
    animation: shimmerAccent 3s ease-in-out infinite, 
               subtlePulse 4s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.1);
    }
}

.travel-btn-individual {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.travel-btn-individual:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.travel-btn-grupal {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.travel-btn-grupal:hover {
    background: linear-gradient(135deg, #059669, #0891b2) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Estilos para slides de transporte */
.transport-slide {
    transition: all 0.5s ease;
}

.transport-slide.active-slide {
    opacity: 1;
    transform: translateX(0);
}

.transport-slide.hidden {
    opacity: 0;
    transform: translateX(100%);
}

/* Estilos para ajustar la posición del formulario de búsqueda */
.hero-search-form-container {
    margin-top: 12rem; /* Más espacio superior para no tapar el texto ZAMBERLAN TURISMO */
}

/* Título 3D digital para desktop */
@media (min-width: 1025px) {
    .titulo-3d-viaja {
        font-size: 5rem;
        transform: perspective(1200px) rotateX(18deg) rotateY(-6deg);
        letter-spacing: 0.15em;
        animation: digitalReveal 3.2s ease-in-out forwards,
                   digitalGlitch 0.08s ease-in-out infinite alternate,
                   digitalPulse 2.1s ease-in-out infinite alternate;
    }
}

/* Estilos para el título 3D "Viajá" con efecto Revelar Digital */
.titulo-3d-viaja {
    font-family: 'Arial Black', 'Helvetica Neue', 'Helvetica', 'Impact', 'Franklin Gothic Bold', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0;
    position: relative;
    
    /* Efecto 3D con frente blanco */
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    
    /* Múltiples sombras para efecto 3D */
    text-shadow: 
        /* Sombra principal */
        0 0 0 transparent,
        /* Capas de extrusión */
        1px 1px 0 #333,
        2px 2px 0 #333,
        3px 3px 0 #333,
        4px 4px 0 #333,
        5px 5px 0 #333,
        6px 6px 0 #333,
        7px 7px 0 #333,
        8px 8px 0 #333,
        9px 9px 0 #333,
        10px 10px 0 #333,
        /* Sombra de profundidad */
        15px 15px 20px rgba(0, 0, 0, 0.4),
        20px 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Efecto de iluminación digital */
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5)) 
            drop-shadow(0 0 20px rgba(255, 0, 255, 0.3));
    
    /* Animación de revelar digital */
    animation: digitalReveal 3s ease-in-out forwards,
               digitalGlitch 0.1s ease-in-out infinite alternate,
               digitalPulse 2s ease-in-out infinite alternate;
    
    /* Transformación 3D */
    transform: perspective(1000px) rotateX(15deg) rotateY(-5deg);
    transform-style: preserve-3d;
    
    /* Efecto de máscara para revelar */
    background: linear-gradient(90deg, 
        transparent 0%, 
        transparent 20%, 
        rgba(0, 255, 255, 0.1) 50%, 
        transparent 80%, 
        transparent 100%);
    background-size: 200% 100%;
    background-position: -200% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: digitalScan 2s ease-in-out infinite;
}

/* Efecto de partículas digitales */
.titulo-3d-viaja::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px, 15px 15px, 25px 25px;
    animation: digitalParticles 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Efecto de glitch digital */
.titulo-3d-viaja::after {
    content: 'VIAJÁ';
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(255, 0, 255, 0.3);
    text-shadow: 
        2px 0 0 rgba(0, 255, 255, 0.5),
        -2px 0 0 rgba(255, 255, 0, 0.5);
    animation: digitalGlitch 0.1s ease-in-out infinite alternate;
    z-index: -1;
}

/* Animación de revelar digital */
@keyframes digitalReveal {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateX(15deg) rotateY(-5deg) scale(0.8);
        filter: drop-shadow(0 0 0px rgba(0, 255, 255, 0)) 
                drop-shadow(0 0 0px rgba(255, 0, 255, 0));
    }
    50% {
        opacity: 0.7;
        transform: perspective(1000px) rotateX(15deg) rotateY(-5deg) scale(0.95);
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.3)) 
                drop-shadow(0 0 10px rgba(255, 0, 255, 0.2));
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateX(15deg) rotateY(-5deg) scale(1);
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5)) 
                drop-shadow(0 0 20px rgba(255, 0, 255, 0.3));
    }
}

/* Animación de glitch digital */
@keyframes digitalGlitch {
    0% {
        transform: translateX(0) translateY(0);
        filter: hue-rotate(0deg);
    }
    10% {
        transform: translateX(-1px) translateY(1px);
        filter: hue-rotate(90deg);
    }
    20% {
        transform: translateX(1px) translateY(-1px);
        filter: hue-rotate(180deg);
    }
    30% {
        transform: translateX(-1px) translateY(0);
        filter: hue-rotate(270deg);
    }
    40% {
        transform: translateX(1px) translateY(1px);
        filter: hue-rotate(360deg);
    }
    50% {
        transform: translateX(0) translateY(-1px);
        filter: hue-rotate(0deg);
    }
    60% {
        transform: translateX(-1px) translateY(1px);
        filter: hue-rotate(90deg);
    }
    70% {
        transform: translateX(1px) translateY(0);
        filter: hue-rotate(180deg);
    }
    80% {
        transform: translateX(0) translateY(-1px);
        filter: hue-rotate(270deg);
    }
    90% {
        transform: translateX(-1px) translateY(1px);
        filter: hue-rotate(360deg);
    }
    100% {
        transform: translateX(0) translateY(0);
        filter: hue-rotate(0deg);
    }
}

/* Animación de pulso digital */
@keyframes digitalPulse {
    0% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5)) 
                drop-shadow(0 0 20px rgba(255, 0, 255, 0.3))
                brightness(1);
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8)) 
                drop-shadow(0 0 30px rgba(255, 0, 255, 0.5))
                brightness(1.2);
    }
}

/* Animación de escaneo digital */
@keyframes digitalScan {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animación de partículas digitales */
@keyframes digitalParticles {
    0% {
        opacity: 0.3;
        transform: translateY(0) scale(1);
    }
    25% {
        opacity: 0.6;
        transform: translateY(-5px) scale(1.1);
    }
    50% {
        opacity: 0.4;
        transform: translateY(0) scale(0.9);
    }
    75% {
        opacity: 0.7;
        transform: translateY(5px) scale(1.05);
    }
    100% {
        opacity: 0.3;
        transform: translateY(0) scale(1);
    }
}

/* Responsive design para el fondo del hero */
@media (max-width: 640px) {
    .hero-background-image-default-mobile,
    .hero-background-image-default-desktop {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }
    
    .titulo-3d {
        font-size: 1.5rem;
    }
    
    .destinos-destacados-card {
        margin-bottom: 1rem;
    }
    
    .travel-background {
        padding: 2rem 0;
    }
    
    /* Ajuste específico para móviles - formulario más abajo */
    .hero-search-form-container {
        margin-top: 6rem; /* Formulario ajustado para ver mejor el logo */
    }
    
    /* Estilos del título 3D digital en móviles */
    .titulo-3d-viaja {
        font-size: 2.5rem;
        transform: perspective(600px) rotateX(8deg) rotateY(-2deg);
        letter-spacing: 0.05em;
        animation: digitalReveal 2.5s ease-in-out forwards,
                   digitalGlitch 0.15s ease-in-out infinite alternate,
                   digitalPulse 1.8s ease-in-out infinite alternate;
    }
    
    /* Optimizaciones específicas para el hero en móviles */
    .hero-section-mobile {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-form-mobile {
        margin: 0 0.5rem;
        padding: 1rem;
        border-radius: 0.75rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .hero-input-mobile {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
        border-radius: 0.5rem;
        border: 2px solid #e5e7eb;
        transition: all 0.3s ease;
    }
    
    .hero-input-mobile:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        outline: none;
    }
    
    .hero-button-mobile {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        border-radius: 0.75rem;
        font-weight: 700;
        transition: all 0.3s ease;
    }
}

/* Mejoras adicionales para tablets */
@media (min-width: 641px) and (max-width: 1024px) {
    .destinos-destacados-card {
        margin-bottom: 1.5rem;
    }
    
    .travel-background {
        padding: 3rem 0;
    }
    
    /* Ajuste para tablets */
    .hero-search-form-container {
        margin-top: 9rem; /* Espacio intermedio para tablets */
    }
    
    /* Título 3D digital para tablets */
    .titulo-3d-viaja {
        font-size: 3.5rem;
        transform: perspective(800px) rotateX(12deg) rotateY(-4deg);
        animation: digitalReveal 2.8s ease-in-out forwards,
                   digitalGlitch 0.12s ease-in-out infinite alternate,
                   digitalPulse 1.9s ease-in-out infinite alternate;
    }
}

/* Optimizaciones para pantallas altas */
@media (max-width: 480px) and (min-height: 600px) {
    .hero-search-form-container {
        margin-top: 10rem; /* Espaciado extra para pantallas altas */
    }
    
    /* Título 3D digital optimizado para pantallas altas */
    .titulo-3d-viaja {
        font-size: 3.5rem;
        transform: perspective(800px) rotateX(10deg) rotateY(-3deg);
        animation: digitalReveal 2.6s ease-in-out forwards,
                   digitalGlitch 0.13s ease-in-out infinite alternate,
                   digitalPulse 1.7s ease-in-out infinite alternate;
    }
}

/* Optimizaciones para pantallas muy pequeñas */
@media (max-width: 480px) {
    .hero-background-image-default-mobile,
    .hero-background-image-default-desktop {
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }
    
    /* Ajuste para pantallas muy pequeñas */
    .hero-search-form-container {
        margin-top: 4rem; /* Formulario ajustado para pantallas muy pequeñas */
    }
    
    /* Título 3D digital para pantallas muy pequeñas */
    .titulo-3d-viaja {
        font-size: 2rem;
        transform: perspective(500px) rotateX(5deg) rotateY(-1deg);
        letter-spacing: 0.03em;
        animation: digitalReveal 2.2s ease-in-out forwards,
                   digitalGlitch 0.18s ease-in-out infinite alternate,
                   digitalPulse 1.6s ease-in-out infinite alternate;
    }
    
    .hero-form-mobile {
        margin: 0 0.25rem;
        padding: 0.75rem;
    }
    
    .hero-input-mobile {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .hero-button-mobile {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Estilos para el menú de navegación con fuente Nexa Heavy */
.nav-menu-item {
    font-family: 'Nexa Heavy', 'Arial Black', 'Helvetica Neue', 'Helvetica', 'Impact', sans-serif !important;
    font-weight: 900 !important;
    font-style: normal !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

/* Estilos específicos para elementos del menú */
.nav-menu-item:hover {
    transform: scale(1.05) !important;
    transition: all 0.3s ease !important;
}

/* Estilos para sombras de texto en etiquetas del formulario */
.form-label-shadow {
    text-shadow: 
        /* Sombra gris oscura con baja opacidad */
        1px 1px 2px rgba(64, 64, 64, 0.3),
        2px 2px 4px rgba(64, 64, 64, 0.2),
        /* Sombra blanca con baja opacidad para efecto de borde */
        -1px -1px 1px rgba(255, 255, 255, 0.4),
        -2px -2px 2px rgba(255, 255, 255, 0.3),
        1px -1px 1px rgba(255, 255, 255, 0.4),
        -1px 1px 1px rgba(255, 255, 255, 0.4);
}

/* Tamaño de fuente más grande para etiquetas del formulario en móviles */
@media (max-width: 640px) {
    .form-label-shadow {
        font-size: 1.125rem !important; /* 18px - más grande que el text-sm original */
    }
}

/* Tamaño de fuente aún más grande para pantallas muy pequeñas */
@media (max-width: 480px) {
    .form-label-shadow {
        font-size: 1.25rem !important; /* 20px - aún más grande para pantallas muy pequeñas */
    }
}

/* Estilos específicos para imágenes de destinos destacados */
.destino-image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
}

.destino-image-container img {
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    display: block;
}

.destino-image-container:hover img {
    transform: scale(1.05);
}

/* Fallback para imágenes que no cargan */
.destino-image-fallback {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 1rem;
    width: 100%;
    height: 100%;
}

.destino-image-fallback i {
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

/* Optimización para mobile (orientación vertical) */
@media (max-width: 640px) {
    .destino-image-container {
        height: 14rem; /* un poco más grande en móvil */
        min-height: 14rem;
    }
    
    .destino-image-container img {
        min-height: 14rem;
        object-position: center center;
        object-fit: contain; /* Evita recortes de imágenes verticales en móvil */
    }
    
    /* Ajuste para pantallas muy pequeñas */
    @media (max-width: 480px) {
        .destino-image-container {
            height: 12rem; /* un poco más grande incluso en pantallas muy pequeñas */
            min-height: 12rem;
        }
        
        .destino-image-container img {
            min-height: 12rem;
            object-fit: contain; /* Mantener imagen completa en móviles muy pequeños */
        }
    }
}

/* Optimización para tablet y desktop */
@media (min-width: 641px) {
    .destino-image-container {
        height: 14rem; /* h-56 - 224px */
        min-height: 14rem;
    }
    
    .destino-image-container img {
        min-height: 14rem;
    }
}

/* Optimización para desktop grande */
@media (min-width: 1024px) {
    .destino-image-container {
        height: 16rem; /* h-64 - 256px */
        min-height: 16rem;
    }
    
    .destino-image-container img {
        min-height: 16rem;
    }
}

/* Mejoras para orientación vertical en móvil */
@media (max-width: 640px) and (orientation: portrait) {
    .destino-image-container {
        height: 13rem; /* más alto en portrait para verlas más grandes */
        min-height: 13rem;
    }
    
    .destino-image-container img {
        min-height: 13rem;
        object-position: center center;
        object-fit: contain; /* Mostrar completa en portrait */
    }
}

/* Mejoras para orientación horizontal en móvil */
@media (max-width: 640px) and (orientation: landscape) {
    .destino-image-container {
        height: 12rem; /* un poco más grande en landscape */
        min-height: 12rem;
    }
    
    .destino-image-container img {
        min-height: 12rem;
        object-position: center center;
        object-fit: contain; /* Mostrar completa en landscape móvil */
    }
}

/* Optimizaciones adicionales para mejor rendimiento */
.destino-image-container img {
    will-change: transform; /* Optimización para animaciones */
    backface-visibility: hidden; /* Mejora el rendimiento de las transformaciones */
}

/* Mejoras para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .destino-image-container img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Ajustes para tablets en orientación portrait */
@media (min-width: 641px) and (max-width: 1023px) and (orientation: portrait) {
    .destino-image-container {
        height: 15rem; /* h-60 - 240px */
        min-height: 15rem;
    }
    
    .destino-image-container img {
        min-height: 15rem;
    }
}

/* Ajustes para tablets en orientación landscape */
@media (min-width: 641px) and (max-width: 1023px) and (orientation: landscape) {
    .destino-image-container {
        height: 12rem; /* h-48 - 192px */
        min-height: 12rem;
    }
    
    .destino-image-container img {
        min-height: 12rem;
    }
}

.index-no-gap {
    padding-top: 0 !important;
}

.banner-fondo {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);
}

.banner-fondo-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-fondo-mobile,
.banner-fondo-desktop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.banner-fondo-desktop {
    display: none;
}

.banner-fondo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.banner-fondo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.banner-fondo-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.88), rgba(99, 102, 241, 0.88));
    text-align: center;
    padding: 3rem 1rem;
}

.banner-fondo-overlay h1 {
    font-family: 'Nexa Heavy', 'Montserrat', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .banner-fondo {
        padding-top: var(--header-height);
    }

    .banner-fondo-overlay {
        padding: 4rem 1.5rem;
    }
}

@media (min-width: 769px) {
    .banner-fondo-mobile {
        display: none;
    }

    .banner-fondo-desktop {
        display: block;
    }
}

:root {
    --header-height: 6rem;
}

@media (max-width: 768px) {
    :root {
        --header-height: 5.5rem;
    }
}
