:root {
    --primary-dark: #1D3252;
    --primary-orange: #E67E22;
    --secondary-orange: #D35400;
    --gray: #95A5A6;
    --light: #ECF0F1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--primary-dark);
    line-height: 1.6;
}

/* ========== NAVBAR ========== */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(29, 50, 82, 0.95) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-orange) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ========== DROPDOWN ========== */
.dropdown-menu {
    background: var(--primary-dark);
    border: none;
    border-top: 3px solid var(--primary-orange);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-top: 15px;
}

.dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(230, 126, 34, 0.2);
    color: var(--primary-orange);
    border-left-color: var(--primary-orange);
    padding-left: 25px;
}

.dropdown-menu .dropdown-item i {
    margin-right: 10px;
    color: var(--primary-orange);
}

/* ========== HERO SECTION (CON FONDO TRANSPARENTE E INTERACTIVO) ========== */
.hero-section {
    position: relative; /* Esencial para contener la foto de fondo en su lugar */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-dark); /* Tu azul base de fondo */
    overflow: hidden; /* Evita cualquier desborde de la imagen */
}

/* Marca de agua transparente vinculada directamente desde el HTML */
.hero-watermark-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;       /* Ajusta la imagen para que llene el espacio sin deformarse ni aplastarse */
    object-position: center;  /* Centra la imagen para que el avión y los contenedores queden en el medio en el celular */
    z-index: 1;
    opacity: 0.35;
}

/* Estilos tipográficos del Hero con sombras reforzadas para máxima legibilidad */
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    /* Sombra de respaldo para que las letras blancas resalten sobre las nubes claras */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.85), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #ffffff !important;;
    /* Sombra de respaldo para el subtítulo */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.btn-primary-custom {
    background: var(--primary-orange);
    border: none;
    color: white;
    padding: 12px 40px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 10px;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(230, 126, 34, 0.3);
    color: white;
    text-decoration: none;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    padding: 80px 20px;
    background: var(--light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
}

.service-card {
    background: white;
    padding: 30px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-orange);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(230, 126, 34, 0.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    padding: 80px 20px;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1rem;
}

.about-image {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 10px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* Imagen estilizada con diseño flotante y totalmente responsiva */
.about-img-custom {
    width: 100%;
    max-width: 500px;
    height: 380px;        /* Altura ideal para pantallas de escritorio */
    object-fit: cover;    /* Recorta y centra la imagen inteligentemente para que no se deforme */
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(11, 29, 51, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ajuste específico para pantallas pequeñas (Celulares) */
@media (max-width: 767px) {
    .about-img-custom {
        height: 280px;    /* Reducimos un poco la altura en celulares para que mantenga una excelente proporción */
        object-fit: cover; /* Mantiene el enfoque perfecto en la operaria sin achatarse */
    }
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    padding: 80px 20px;
    background: var(--primary-dark);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-orange);
    margin-top: 5px;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 15px;
    border-radius: 5px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--primary-orange);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(230, 126, 34, 0.3);
}

/* ========== CONTROL DE ALIANZA ANTERIOR (RESERVADO) ========== */
.contact-alliance {
    padding: 10px;
}

.alliance-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alliance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(230, 126, 34, 0.15);
    border-color: var(--primary-orange);
}

.alliance-badge {
    background-color: var(--primary-orange);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.alliance-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 25px;
}

.alliance-logo-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.alliance-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.alliance-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ========== INTEGRACIÓN DE BANNER ALIANZA JAH FINAL ========== */
.contact-alliance-banner {
    padding: 10px;
    width: 100%;
}

.banner-wrapper {
    max-width: 550px;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(230, 126, 34, 0.2);
}

.final-alliance-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ========== FOOTER ========== */
footer {
    background: rgba(29, 50, 82, 0.95);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 30px 20px;
    border-top: 3px solid var(--primary-orange);
}

/* ========== COBERTURA Y ACORDEÓN ========== */
.coverage-section {
    padding: 80px 0;
}

.map-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.coverage-section .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #0d6efd;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.coverage-section .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.coverage-section .list-group-item {
    font-size: 0.95rem;
    color: #495057;
}

/* ========== SECCIÓN REGIONAL TERRESTRE ========== */
.regional-section {
    padding: 60px 0;
}

.regional-map-container {
    background: #101d2c;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.border-badge {
    background-color: #f26f21;
    color: white;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.country-branch-card {
    border-left: 4px solid #101d2c;
    transition: all 0.2s ease;
}

.country-branch-card:hover {
    border-left-color: #f26f21;
    background-color: #f8f9fa;
}

/* ========== RESPONSIVE GENERAL ========== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .contact-alliance,
    .contact-alliance-banner {
        margin-top: 30px;
        order: 2; /* Mantiene la alianza debajo del formulario de contacto en celulares */
    }
    
    .alliance-card {
        padding: 30px 20px;
    }

    .alliance-title {
        font-size: 1.4rem;
    }

    .banner-wrapper {
        max-width: 100%;
    }
}

/* ========== SMOOTH SCROLL ========== */
html {
    scroll-behavior: smooth;
}

/* Configuración del contenedor de la sección About en modo flex/grid */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

/* Cuando la pantalla es de computadora (Mediana/Grande) se ponen en dos columnas */
@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
    }
    
    .about-text {
        flex: 1;
    }
    
    .about-image {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Estilos específicos para la nueva imagen */
.about-img-custom {
    width: 100%;
    max-width: 500px; /* Evita que la imagen se agigante en pantallas muy grandes */
    height: 350px;    /* Altura fija ideal para nivelar con el texto */
    object-fit: cover; /* Recorta la imagen de forma inteligente para que no se deforme ni se estire */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Una sombra suave para darle profundidad */
    transition: transform 0.3s ease;
}

/* Efecto visual sutil al pasar el mouse */
.about-img-custom:hover {
    transform: translateY(-5px);
}

/* Contenedor de la imagen limpio, sin fondo naranja */
.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none !important; /* Elimina el fondo naranja */
    padding: 0 !important;       /* Quita el espacio interno que generaba el recuadro */
}

/* Estilo elegante y directo para la imagen */
.about-img-custom {
    width: 100%;
    max-width: 500px;
    height: 380px;             /* Un poco más alta para aprovechar el espacio */
    object-fit: cover;
    border-radius: 12px;       /* Bordes redondeados suaves directamente en la foto */
    box-shadow: 0 15px 35px rgba(16, 37, 66, 0.15); /* Sombra suave con tono azul corporativo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover refinado */
.about-img-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(16, 37, 66, 0.25);
}

/* OPCIONAL: Si querés quitar o cambiar la línea naranja debajo del título "Quiénes Somos" */
.section-title::after {
    background-color: #102542 !important; /* Cambia la línea a azul corporativo, o pon 'display: none;' para quitarla */
}