/* ===== HEADER (SOLO UNA VEZ) ===== */
#header {
    background: #fff;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 70px;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 100%;
}

/* Estilos para el logo */
#header img {
    transition: all 0.3s ease;
    max-width: 250px;
    width: 100%;
    height: auto;
}

#header img:hover {
    transform: scale(1.05);
}

/* Estilos para la navbar */
#navbar {
    display: flex;
}

#navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

#navbar ul li {
    position: relative;
    padding: 0 15px;
}

#navbar ul li a {
    color: #011c40;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

#navbar ul li a:hover {
    color: #0d6efd;
}

/* Estilos para el dropdown */
#navbar ul li.dropdown > a {
    position: relative;
}

#navbar ul li.dropdown > a i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

#navbar ul li.dropdown:hover > a i {
    transform: rotate(180deg);
}

#navbar ul li.dropdown ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1001;
    flex-direction: column;
    padding: 10px 0;
}

#navbar ul li.dropdown:hover ul {
    display: block;
}

#navbar ul li.dropdown ul li {
    padding: 0;
    width: 100%;
}

#navbar ul li.dropdown ul li a {
    padding: 10px 20px;
    width: 100%;
    white-space: nowrap;
}

#navbar ul li.dropdown ul li a:hover {
    background-color: #f8f9fa;
}

/* Estilos para el mobile nav toggle */
.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #011c40;
    position: absolute;
    right: 20px;
    top: 20px;
}

/* ===== BODY Y MAIN ===== */

body {
    padding-top: -90px;
}

main {
    min-height: calc(100vh - 150px);
    padding-top: 20px;
}

/* ===== FOOTER ===== */
.gm-footer {
    background-color: rgb(0, 67, 90);
    color: #ffffff;
    font-size: 0.9rem;
}

.footer-gov-logo.blanco {
    filter: brightness(0) invert(1);
}

/* ===== CARRUSELES ===== */
.carrusel-aeropuerto-puebla {
    width: 100%;
    height: 23vw;
    min-height: 150px;
    animation: carrusel_aeropuerto_puebla 20s infinite linear alternate;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes carrusel_aeropuerto_puebla {
    0%, 30% {
        background-image: url("../img/BANNERS-AEROPUERTOS/Banner\ LARGO\ PUEBLA.jpg");
    }
    35%, 60% {
        background-image: url("../img/aeropuerto_puebla/aeropuebla1.jpg");
    }
    65%, 100% {
        background-image: url("../img/aeropuerto_puebla/aeropuebla2.jpg");
    }
}

.carrusel-aeropuerto-apodaca {
    width: 100%;
    height: 23vw;
    min-height: 150px;
    animation: carrusel_aeropuerto_apodaca 20s infinite linear alternate;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes carrusel_aeropuerto_apodaca {
    0%, 100% {
        background-image: url("../img/BANNERS-AEROPUERTOS/Banner\ del\ norte\ largo.jpg");
    }
}

.carrusel-aeropuerto-ixtepec {
    width: 100%;
    height: 23vw;
    min-height: 150px;
    animation: carrusel_aeropuerto_ixtepec 20s infinite linear alternate;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes carrusel_aeropuerto_ixtepec {
    0%, 30% {
        background-image: url("../img/BANNERS-AEROPUERTOS/Banner\ IXTEPEC\ LARGO.jpg");
    }
    35%, 60% {
        background-image: url("../img/aeropuerto_ciudad_ixtepec/a_izt_1.jpg");
    }
    65%, 100% {
        background-image: url("../img/aeropuerto_ciudad_ixtepec/a_izt_3.jpg");
    }
}

.carrusel-aeropuerto-campeche {
    width: 100%;
    height: 23vw;
    min-height: 150px;
    animation: carrusel_aeropuerto_campeche 20s infinite linear alternate;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes carrusel_aeropuerto_campeche {
    0%, 30% {
        background-image: url("../img/BANNERS-AEROPUERTOS/Banner\ CAMPECHE\ LARGO.jpg");
    }
    35%, 60% {
        background-image: url("../img/aeropuerto_campeche/a_cpe_1.jpg");
    }
    65%, 100% {
        background-image: url("../img/aeropuerto_campeche/a_cpe_3.jpg");
    }
}

.carrusel-aeropuerto-chetumal {
    width: 100%;
    height: 23vw;
    min-height: 150px;
    animation: carrusel_aeropuerto_chetumal 20s infinite linear alternate;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes carrusel_aeropuerto_chetumal {
    0%, 30% {
        background-image: url("../img/BANNERS-AEROPUERTOS/Banner\ chetumal\ largo.jpg");
    }
    35%, 60% {
        background-image: url("../img/aeropuerto_chetumal/a_ctm_1.jpg");
    }
    65%, 100% {
        background-image: url("../img/aeropuerto_chetumal/a_ctm_3.jpg");
    }
}

.carrusel-aeropuerto-ciudad-victoria {
    width: 100%;
    height: 23vw;
    min-height: 150px;
    animation: carrusel_aeropuerto_ciudad_victoria 20s infinite linear alternate;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes carrusel_aeropuerto_ciudad_victoria {
    0%, 30% {
        background-image: url("../img/BANNERS-AEROPUERTOS/banner\ largo\ cd\ victoria.jpg");
    }
    35%, 60% {
        background-image: url("../img/aeropuerto_ciudad_victoria/a_cvm_1.jpg");
    }
    65%, 100% {
        background-image: url("../img/aeropuerto_ciudad_victoria/a_cvm_3.jpg");
    }
}

.carrusel-aeropuerto-del-norte {
    width: 100%;
    height: 23vw;
    min-height: 150px;
    animation: carrusel_aeropuerto_del_norte 20s infinite linear alternate;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes carrusel_aeropuerto_del_norte {
    0%, 100% {
        background-image: url("../img/BANNERS-AEROPUERTOS/Banner\ del\ norte\ largo.jpg");
    }
}

/* ===== RESPONSIVE (MÍNIMO NECESARIO) ===== */

/* Tablets y móviles */
@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    #navbar {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        height: calc(100vh - 70px);
        transition: all 0.3s ease;
        flex-direction: column;
        padding: 20px 0;
    }
    
    #navbar.active {
        right: 0;
    }
    
    #navbar ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    
    #navbar ul li {
        width: 100%;
        padding: 0;
    }
    
    #navbar ul li a {
        padding: 12px 20px;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    #navbar ul li.dropdown ul {
        position: static;
        box-shadow: none;
        display: none;
        background: #f8f9fa;
        padding-left: 20px;
    }
    
    #navbar ul li.dropdown:hover ul {
        display: block;
    }
    
    #navbar ul li.dropdown ul li a {
        padding-left: 40px;
    }
    
    /* Indicador de dropdown en móvil */
    #navbar ul li.dropdown > a::after {
        content: '+';
        position: absolute;
        right: 20px;
        font-size: 18px;
    }
    
    #navbar ul li.dropdown.active > a::after {
        content: '-';
    }
    
    /* Logo más pequeño en móvil */
    #header img {
        max-width: 200px;
    }
    
    /* Carruseles más altos en móvil */
    .carrusel-aeropuerto-apodaca,
    .carrusel-aeropuerto-puebla,
    .carrusel-aeropuerto-ixtepec,
    .carrusel-aeropuerto-campeche,
    .carrusel-aeropuerto-chetumal,
    .carrusel-aeropuerto-ciudad-victoria,
    .carrusel-aeropuerto-del-norte {
        height: 40vw;
    }
}

/* Móviles pequeños */
@media (max-width: 768px) {
    /* Carruseles aún más altos */
    .carrusel-aeropuerto-apodaca,
    .carrusel-aeropuerto-puebla,
    .carrusel-aeropuerto-ixtepec,
    .carrusel-aeropuerto-campeche,
    .carrusel-aeropuerto-chetumal,
    .carrusel-aeropuerto-ciudad-victoria,
    .carrusel-aeropuerto-del-norte {
        height: 50vw;
        min-height: 120px;
    }
    
    /* Logo más pequeño */
    #header img {
        max-width: 180px;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 576px) {
    .carrusel-aeropuerto-apodaca,
    .carrusel-aeropuerto-puebla,
    .carrusel-aeropuerto-ixtepec,
    .carrusel-aeropuerto-campeche,
    .carrusel-aeropuerto-chetumal,
    .carrusel-aeropuerto-ciudad-victoria,
    .carrusel-aeropuerto-del-norte {
        height: 60vw;
        min-height: 100px;
    }
    
    #header img {
        max-width: 150px;
    }
}

/* Ajuste para evitar texto desbordado en móvil (solo si es necesario) */
@media (max-width: 576px) {
    .texto-justificado {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}