/* --- ESTILOS GENERALES Y RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

/* --- NAVBAR SUPERIOR BLANCA --- */
.main-header {
    background-color: #ffffff;
    padding-top: 15px;
    border-bottom: 1px solid #e6e6e6;
    position: relative;
    z-index: 20; /* Mantiene la zona blanca por encima del fondo */
}

.header-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Logo + Texto Corporativo */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text .sub {
    font-size: 13px;
    color: #757575;
}

.logo-text .main {
    font-size: 19px;
    font-weight: 700;
    color: #2c2c2c;
    letter-spacing: -0.5px;
}

.logo-text .main .red {
    color: #dc3545;
}

/* Header Derecho */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #4a4a4a;
    align-items: center;
}

.header-meta span {
    cursor: pointer;
}

.phone-reserve strong {
    color: #000;
}

.btn-login {
    background: transparent;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 500;
}

/* --- CONTENEDOR DE PESTAÑAS (Fondo blanco garantizado) --- */
.nav-wrapper {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 12px 14px 12px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item.active {
    color: #0056b3;
    font-weight: bold;
    border-bottom: 4px solid #1a6fe3;
}

/* Badges */
.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.badge.green { color: #28a745; background-color: rgba(40,167,69,0.1); }
.badge.orange { color: #fd7e14; background-color: rgba(253,126,20,0.1); }

/* --- HERO CON IMAGEN --- */
.hero-section {
    background-image: url('img/intro.webp'); /* Nombre exacto de tu archivo de imagen */
    background-size: cover;
    background-position: center bottom; /* Ajusta la imagen para que la maleta quede apoyada abajo */
    height: 505px; /* Altura ideal para que la composición se vea igual al diseño original */
    position: relative;
    z-index: 10;
}

/* --- TARJETA DE BÚSQUEDA (El secreto del solapamiento exacto) --- */
.search-box-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    /* Movemos la caja hacia arriba exactamente el espacio para que corte a la mitad la línea */
    top: -24px; 
    z-index: 30;
}

.search-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

/* Inputs Rejilla */
.search-inputs-grid {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
}

.route-group {
    display: flex;
    align-items: center;
    flex: 2;
    position: relative;
}

.route-group .input-field { flex: 1; }
.route-group .input-field:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: none; }
.route-group .input-field:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.btn-switch-route {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0056b3;
}

.input-field {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    flex: 1;
    height: 58px;
}

.input-icon { color: #555; font-size: 16px; }
.input-text-wrapper { display: flex; flex-direction: column; width: 100%; }
.input-text-wrapper label { font-size: 11px; color: #757575; font-weight: 500; }
.input-text-wrapper input { border: none; outline: none; font-size: 14px; font-weight: 600; color: #222; width: 100%; margin-top: 2px; background: transparent; }

.btn-search {
    background-color: #1a6fe3;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 45px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    height: 58px;
}

/* Selector del tipo de vuelo (Ahora abajo) */
.flight-type-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #4a4a4a;
}

.label-tipo {
    color: #555;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}



/* --- SECCIÓN DE OFERTAS Y FORMAS DE PAGO --- */
.offers-payment-section {
    padding: 40px 0;
    background-color: #f4f6f9; /* Mantiene la consistencia del fondo de la página */
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Encabezados */
.offers-header {
    margin-bottom: 24px;
}

.offers-header h2 {
    font-size: 24px;
    color: #1c1c1c;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.offers-header p {
    font-size: 14px;
    color: #666666;
}

/* Grilla de Ofertas */
.offers-grid {
    display: flex;
    gap: 32px;
    margin-bottom: 30px;
    position: relative; /* Permite posicionar la flecha flotante */
}

.offer-card {
    flex: 1;
    height: 220px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.offer-card:hover {
    transform: translateY(-2px);
}

.offer-title {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Botón de navegación (Flecha derecha) */
.slide-next-btn {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #333333;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 5;
}

/* Tarjeta unificada de pasarelas de pago */
.payment-info-card {
    background-color: #ffffff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.payment-left {
    flex: 1;
    border-right: 1px solid #ededed;
    padding-right: 20px;
}

.payment-left h3 {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 8px;
}

.payment-link {
    color: #1a6fe3;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.payment-link:hover {
    text-decoration: underline;
}

.payment-right {
    flex: 2.5;
    padding-left: 40px;
}

/* Distribución de logos de Marcas */
.brand-logos-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.brand-logo {
    max-height: 24px;
    object-fit: contain;
    filter: grayscale(10%) contrast(95%);
    opacity: 0.95;
}


/* ==========================================================================
   NUEVOS ESTILOS: BLOQUES INFORMATIVOS Y HOTELES
   ========================================================================== */

/* Contenedor de las dos columnas superiores */
.info-features-grid {
    display: flex;
    gap: 32px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.feature-box {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon-wrapper {
    font-size: 28px;
    color: #444444;
    margin-top: 4px;
}

.feature-content h3 {
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.feature-content p {
    font-size: 14px;
    color: #666666;
    margin: 0 0 16px 0;
}

.feature-link {
    font-size: 13px;
    color: #0066f5;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feature-link i {
    font-size: 10px;
}

/* Envoltura para separar la sección de hoteles */
.hotels-section-wrapper {
    margin-top: 20px;
}

/* Tarjetas de Hoteles específicas (Diseño con footer blanco) */
.hotel-card {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 250px; /* Ajusta la altura general si lo deseas */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hotel-image-container {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hotel-info-footer {
    padding: 16px 20px;
    background-color: #ffffff;
}

.hotel-title {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}






/* Grilla específica para los 4 destinos */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}

/* Tarjetas verticales de destino */
.destination-card {
    height: 440px; /* Mayor altura para que quepa todo el banner vertical */
    background-size: 100% 100%; /* Fuerza a que la imagen ocupe exactamente todo el contenedor sin recortes */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px; /* Bordes redondeados más exactos al diseño */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.destination-card:hover {
    transform: translateY(-4px);
}

/* Ajuste adaptativo para pantallas más pequeñas */
@media (max-width: 992px) {
    .destination-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .destination-grid {
        grid-template-columns: 1fr;
    }
}




/* ================= BANNER DESCUENTOS ================= */
.discount-banner {
    margin-top: 40px;
    height: 240px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    color: #ffffff;
}

.discount-content h2 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.discount-content p {
    font-size: 15px;
    margin-bottom: 24px;
    color: #e4e7ec;
}

.discount-buttons {
    display: flex;
    gap: 12px;
}

.btn-discount-login {
    background-color: #0060e6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-discount-register {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* ================= PREGUNTAS FRECUENTES ================= */
.faq-section {
    margin-top: 50px;
    margin-bottom: 60px;
}

.faq-section h2 {
    font-size: 24px;
    color: #1d2939;
    margin-bottom: 24px;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px; /* Separación horizontal entre columnas */
}

.faq-item {
    border-bottom: 1px solid #eaecf0; /* Línea gris delgada clásica del diseño */
}

.faq-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    color: #344054;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.faq-trigger:hover {
    color: #0060e6;
}

.faq-trigger i {
    color: #667085;
    font-size: 14px;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .discount-banner {
        height: auto;
        padding: 30px 20px;
    }
}





/* ================= TEXTO INFORMATIVO SEO ================= */
.seo-info-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.seo-info-section p {
    font-size: 14px;
    color: #475467;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.seo-info-section strong {
    color: #1d2939;
    font-weight: 600;
}

/* ================= SOPORTE Y DESCARGA APP ================= */
/* ==========================================================================
   RECREACIÓN DE LA IMAGEN DE REFERENCIA (Soporte, Descarga y Newsletter)
   ========================================================================== */

/* Bloque Superior Gris claro (Soporte y Descarga) */
.support-download-banner {
    background-color: #f0f2f5;
    border-top: 1px solid #e0e0e0;
    padding: 30px 40px 70px 40px; /* Padding inferior amplio para compensar la tarjeta que flota */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 40px;
}

.support-side, .download-side {
    flex: 1;
}

.support-download-banner h3 {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Divisor central sutil */
.support-side {
    border-right: 1px solid #d0d0d0;
    padding-right: 20px;
}

.download-side {
    padding-left: 40px;
}

/* Botones de Canales de Ayuda */
.support-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-support-channel {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #333333;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.whatsapp-color { color: #25D366; font-size: 16px; }
.messenger-color { color: #006AFF; font-size: 16px; }
.phone-channel strong { color: #000; }

/* Badges de las tiendas de Apps */
.app-badges {
    display: flex;
    gap: 12px;
}

.badge-app {
    height: 40px;
    object-fit: contain;
}

/* ==========================================================================
   FOOTER PRINCIPAL (COLOR AZUL INSTITUCIONAL)
   ========================================================================== */
/* ==========================================================================
   FOOTER PRINCIPAL (CORREGIDO PARA SUBIR LA TARJETA)
   ========================================================================== */
.main-blue-footer {
    background-color: #0044a6; 
    color: #ffffff;
    padding: 0 0 60px 0;
    font-family: Arial, sans-serif;
    position: relative;
    
    /* CORRECCIÓN AQUÍ: Quitamos el margin-top positivo y usamos uno negativo 
       para succionar el footer y su tarjeta flotante hacia arriba */
    margin-top: -35px; 
    z-index: 10; /* Asegura que la tarjeta blanca se renderice por encima de la sección gris */
}

.footer-inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* --- TARJETA BLANCA FLOTANTE (NEWSLETTER) --- */
.newsletter-floating-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    
    /* CORRECCIÓN AQUÍ: Ajustamos el desfase exacto para que muerda de forma 
       equilibrada la sección gris de arriba y el fondo azul de abajo */
    position: relative;
    top: -45px; 
    margin-bottom: -15px;
}
.newsletter-text h3 {
    color: #0044a6;
    font-size: 22px;
    margin: 0 0 5px 0;
    font-weight: bold;
}

.newsletter-text p {
    margin: 0;
    color: #666666;
    font-size: 14px;
}

.newsletter-inline-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.form-input-container input {
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 14px;
    width: 260px;
    outline: none;
}

/* Contenedor ReCAPTCHA simulado */
.captcha-box {
    border: 1px solid #d3d3d3;
    background: #f9f9f9;
    border-radius: 3px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    box-sizing: border-box;
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #000000;
    user-select: none;
}

.captcha-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 8px;
    color: #555555;
    border-left: 1px solid #e0e0e0;
    padding-left: 10px;
}

.captcha-brand img {
    width: 18px;
    height: 18px;
    margin-bottom: 2px;
}

.btn-subscribe-outline {
    background: transparent;
    border: 2px solid #0044a6;
    color: #0044a6;
    padding: 11px 24px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-subscribe-outline:hover {
    background-color: #0044a6;
    color: #ffffff;
}

/* --- SECCIÓN DE ENLACES Y CONTENIDO INFERIOR --- */
.footer-links-container {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

/* Columna Izquierda: Logo y Redes */
.footer-logo-column {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-round-logo {
    width: 110px;
    height: auto;
}

.footer-social-section p {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 12px 0;
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    background-color: #ffffff;
    color: #0044a6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
    background-color: #e6f0ff;
}

/* Rejilla de Enlaces (4 columnas ordenadas) */
.footer-columns-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    display: inline-block;
    opacity: 0.9;
    transition: opacity 0.2s ease, padding-left 0.2s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
    text-decoration: underline;
    padding-left: 2px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (DISEÑO ADAPTABLE)
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
    .footer-links-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-logo-column {
        align-items: center;
        flex: 1;
        margin-bottom: 20px;
    }
    .social-icons {
        justify-content: center;
    }
    .newsletter-floating-card {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-inline-form {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .footer-columns-grid {
        grid-template-columns: 1fr; /* 1 columna en móviles */
    }
    .form-input-container input {
        width: 100%;
    }
    .newsletter-inline-form {
        width: 100%;
        flex-direction: column;
    }
    .captcha-box {
        width: 100%;
        justify-content: space-between;
    }
    .btn-subscribe-outline {
        width: 100%;
    }
}



/* --- LÍNEA DIVISORA Y SECCIÓN FINAL DE MARCAS --- */
.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 40px 0;
}

.footer-brands-section {
    margin-bottom: 40px;
}

.footer-brands-section h3 {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 20px 0;
}

/* --- CONTENEDOR DE MARCAS: CENTRADO TOTAL --- */
.brands-logos-grid {
    display: flex;
    align-items: center;       /* Centrado vertical exacto de todas las marcas */
    justify-content: center;   /* Centrado horizontal de todo el bloque */
    gap: 40px;                 /* Espaciado uniforme entre logotipos */
    flex-wrap: wrap;           /* Permite adaptarse si la pantalla se reduce */
    margin: 0 auto;
}

/* --- LOGOTIPOS MÁS PEQUEÑOS --- */
.footer-brand-img {
    height: 18px;              /* Ajuste hacia abajo para hacerlos más finos y elegantes */
    width: auto;
    opacity: 0.9;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* El primer logotipo (circular) es proporcionalmente más alto por su forma */
.brands-logos-grid .footer-brand-img:first-child {
    height: 28px;              /* Escalado hacia abajo manteniendo la jerarquía visual */
}

/* Efecto sutil interactivo */
.footer-brand-img:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* --- TEXTOS LEGALES Y CRÉDITOS --- */
.footer-legal-credits {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-legal-credits p {
    font-size: 11.5px;
    line-height: 1.6;
    color: #ffffff;
    opacity: 0.85;
    margin: 0 0 25px 0;
}

.footer-legal-credits p strong {
    color: #ffffff;
    opacity: 1;
}

/* Texto de la ley 679 con ligera separación */
.footer-legal-credits .law-text {
    margin-bottom: 0;
    opacity: 0.8;
}

/* --- AJUSTES RESPONSIVE ADICIONALES --- */
@media (max-width: 768px) {
    .brands-logos-grid {
        justify-content: center;
        gap: 20px;
    }
    .footer-brands-section h3 {
        text-align: center;
    }
    .footer-legal-credits p {
        font-size: 11px;
        text-align: justify;
    }
}


/* Alineación del selector de idioma */
.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Espacio uniforme entre la bandera y el texto "Español - COP" */
}

/* Estilos para tu propia bandera */
/* Estilos para que tu bandera quede perfectamente redonda */
.custom-flag-img {
    width: 18px;          /* Ancho exacto */
    height: 18px;         /* Alto idéntico al ancho para formar un cuadrado perfecto */
    border-radius: 50%;   /* Corta las esquinas en forma de círculo perfecto */
    object-fit: cover;    /* Centra y recorta la bandera por los lados sin estirarla */
    display: inline-block;
}




/* --- ESTILOS DEL ACORDEÓN FAQ --- */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* O el color de borde que prefieras */
    margin-bottom: 10px;
}

.faq-trigger {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    user-select: none;
}

/* Transición suave para el icono de la flecha */
.faq-trigger i {
    transition: transform 0.3s ease;
}

/* Ocultar el contenido inicialmente con transición de altura */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content p {
    padding-bottom: 15px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #000; /* Color suave para el texto de la respuesta */
}

/* --- ESTADOS ACTIVOS (Gestionados por JS) --- */
.faq-item.active .faq-trigger i {
    transform: rotate(180deg); /* Rota la flecha hacia arriba */
}



/* Asegura que los items tengan posición relativa para el borde */
.nav-item {
    position: relative;
    text-decoration: none;
    color: #333; /* Color por defecto */
    padding-bottom: 10px; /* Espacio para que la línea no toque el texto */
    transition: color 0.3s;
}

/* El estado activo */
.nav-item.active {
    color: #0056b3; /* Color azul */
    font-weight: bold;
}

/* La línea azul (usamos un pseudo-elemento para mayor control) */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Grosor de la línea */
    background-color: #0056b3; /* Color de la línea */
}


/* Estilo del borde azul para la opción seleccionada */
.nav-item.active {
    color: #007bff; /* Ajusta a tu azul */
    border-bottom: 0.1px solid #007bff;
    padding-bottom: 5px;
}



/* 1. El contenedor padre debe ser relativo */
.dropdown-container {
    position: relative;
    display: inline-block;
}

/* 2. El menú se posiciona absolutamente respecto al contenedor padre */
.dropdown-menu {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 100%; /* Se posiciona justo al final del botón de ofertas */
    left: 0;
    background: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    min-width: 220px;
    z-index: 1000;
    padding: 10px 0;
    border-radius: 4px;
}

/* Clase que se activa con el JS */
.dropdown-menu.show {
    display: block;
}

/* Estilo para los links dentro del desplegable */
.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
}

.dropdown-menu a:hover {
    background-color: #f8f8f8;
}




/* ==========================================================================
   MEDIA QUERIES - RESPONSIVE COMPLETO
   ========================================================================== */

/* ================= TABLETS GRANDES (max-width: 1024px) ================= */
@media (max-width: 1024px) {
    .offers-grid {
        flex-wrap: wrap;
    }
    .offer-card {
        flex: 1 1 calc(50% - 16px);
        min-width: 250px;
    }
    .info-features-grid {
        flex-direction: column;
    }
    .payment-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .payment-left {
        border-right: none;
        border-bottom: 1px solid #ededed;
        padding-right: 0;
        padding-bottom: 15px;
        width: 100%;
    }
    .payment-right {
        padding-left: 0;
        width: 100%;
    }
    .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-links-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-logo-column {
        align-items: center;
        flex: 1;
        margin-bottom: 20px;
    }
    .social-icons {
        justify-content: center;
    }
    .newsletter-floating-card {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-inline-form {
        justify-content: center;
    }
}

/* ================= TABLETS (max-width: 992px) ================= */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    .search-inputs-grid {
        flex-wrap: wrap;
    }
    .route-group {
        flex: 1 1 100%;
    }
    .btn-search {
        flex: 1 1 100%;
        padding: 16px 0;
    }
    .destination-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .support-download-banner {
        flex-direction: column;
        gap: 30px;
    }
    .support-side {
        border-right: none;
        border-bottom: 1px solid #d0d0d0;
        padding-right: 0;
        padding-bottom: 20px;
        width: 100%;
    }
    .download-side {
        padding-left: 0;
        width: 100%;
    }
}

/* ================= HEADER, NAV Y BÚSQUEDA MÓVIL (max-width: 768px) ================= */
@media (max-width: 768px) {

    /* --- Header limpio: oculta lo secundario --- */
    .logo-img {
        height: 36px;
    }
    .logo-text .main {
        font-size: 14px;
    }
    .logo-text .sub {
        font-size: 10px;
    }
    .header-meta {
        display: none;
    }
    .lang-selector {
        display: none;
    }
    .btn-login span {
        display: none;
    }
    .btn-login {
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
    .header-right {
        gap: 10px;
    }
    .header-container {
        padding: 0 12px;
        margin-bottom: 10px;
        flex-wrap: nowrap;
    }

    /* --- Tabs de navegación scrolleables --- */
    .nav-wrapper {
        padding: 0 12px;
    }
    .category-nav {
        gap: 4px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-nav::-webkit-scrollbar {
        display: none;
    }
    .nav-item {
        font-size: 12px;
        padding: 10px 8px 12px 8px;
        flex-shrink: 0;
    }
    .badge {
        font-size: 8px;
        top: -8px;
    }

    /* --- Caja de búsqueda apilada --- */
    .hero-section {
        height: 340px;
    }
    .search-box-container {
        padding: 0 12px;
        top: -15px;
    }
    .search-card {
        padding: 14px;
        border-radius: 12px;
    }
    .search-inputs-grid {
        flex-direction: column;
        gap: 8px;
    }
    .route-group {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    .route-group .input-field {
        width: 100%;
        border: 1px solid #ccc !important;
        border-radius: 8px !important;
    }
    .btn-switch-route {
        position: static;
        transform: none;
        margin: -4px auto;
        align-self: center;
    }
    .btn-search {
        width: 100%;
        height: 50px;
        padding: 0;
    }
    .input-field {
        height: 52px;
    }
    .flight-type-selector {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }

    /* --- Ofertas y tarjetas --- */
    .offers-header h2 {
        font-size: 20px;
    }
    .offer-card {
        flex: 1 1 100%;
        height: 180px;
    }
    .slide-next-btn {
        display: none;
    }
    .hotel-card {
        height: 220px;
    }

    /* --- Banner de descuento --- */
    .discount-content h2 {
        font-size: 22px;
    }
    .discount-buttons {
        flex-direction: column;
    }
    .discount-banner {
        height: auto;
        padding: 30px 20px;
    }

    /* --- FAQ --- */
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* --- Footer / marcas --- */
    .brands-logos-grid {
        justify-content: center;
        gap: 20px;
    }
    .footer-brands-section h3 {
        text-align: center;
    }
    .footer-legal-credits p {
        font-size: 11px;
        text-align: justify;
    }
}

/* ================= MÓVILES (max-width: 576px) ================= */
@media (max-width: 576px) {
    .destination-grid {
        grid-template-columns: 1fr;
    }
    .offers-payment-section {
        padding: 24px 0;
    }
    .payment-info-card {
        padding: 16px;
    }
    .brand-logos-container {
        justify-content: center;
        gap: 20px;
    }
    .feature-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .support-buttons {
        justify-content: center;
    }
    .app-badges {
        justify-content: center;
    }
    .discount-banner {
        text-align: center;
        justify-content: center;
    }
    .discount-buttons {
        width: 100%;
    }
    .btn-discount-login,
    .btn-discount-register {
        width: 100%;
    }
}

/* ================= FOOTER / NEWSLETTER (max-width: 600px) ================= */
@media (max-width: 600px) {
    .footer-columns-grid {
        grid-template-columns: 1fr;
    }
    .form-input-container input {
        width: 100%;
    }
    .newsletter-inline-form {
        width: 100%;
        flex-direction: column;
    }
    .captcha-box {
        width: 100%;
        justify-content: space-between;
    }
    .btn-subscribe-outline {
        width: 100%;
    }
}

/* ================= MÓVILES PEQUEÑOS (max-width: 400px) ================= */
@media (max-width: 400px) {
    .logo-text .main {
        font-size: 12px;
    }
    .logo-text .sub {
        display: none;
    }
    .hero-section {
        height: 300px;
    }
    .header-right {
        gap: 10px;
    }
    .newsletter-text h3 {
        font-size: 18px;
    }
    .form-input-container input {
        font-size: 13px;
    }
}

.payment-option,
.payment-option * {
    text-decoration: none !important;
}

.payment-option span,
.payment-option a {
    text-decoration: none;
}