/********** Template CSS **********/
:root {
    --primary: #86B817;
    --secondary: #FE8800;
    --light: #F5F5F5;
    --dark: #14141F;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 90px !important; /* Ajuste para que el botón "Back to Top" no se encime */
    bottom: 45px;
    z-index: 99;
}

.overlay-mosaic {
    padding: 15px; /* Espacio para que la sombra de la imagen pequeña no se corte */
}

.overlay-mosaic img {
    transition: 0.5s;
}

/* Efecto sutil al pasar el mouse */
.overlay-mosaic:hover img:first-child {
    transform: scale(1.01);
}

/* Botones con estilo moderno */
.rounded-pill {
    border-radius: 50px !important;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* Contenedor del avión que define el área de vuelo */
.airplane-container {
    position: relative;
    width: 150px; 
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airplane-container i {
    position: absolute;
    /* Desplazamos el centro de rotación 75px hacia abajo */
    /* Esto hace que el avión orbite un círculo de 150px de diámetro */
    transform-origin: center 75px; 
    animation: orbitar-avion 2s linear infinite;
    top: 0;
}

@keyframes orbitar-avion {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}

/* ==========================================================================
   ESTILOS PREMIUM - CARD UI TRAZANDO MI VIAJE
   ========================================================================== */

/* Estructura limpia de la tarjeta con bordes muy curvos */
.modern-card {
    border-radius: 20px;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

/* Fijar el tamaño exacto del cuerpo para que nada se descuadre en el carrusel */
.card-content {
    height: 250px;
}

/* Efectos al pasar el cursor sobre la tarjeta */
.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
}

/* Contenedor de imagen y Zoom sutil */
.card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 210px;
}

.card-img-wrap img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

/* Badge base */
.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 30px;
}

/* Efecto Glassmorphic (Efecto cristal translúcido para el precio) */
.card-badge.bg-blur {
    background: rgba(134, 184, 23, 0.85); /* Color verde TrazAndo con transparencia */
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card-badge small {
    font-size: 0.7rem;
    font-weight: 400;
}

/* Badge para los que no tienen precio directo */
.card-badge.bg-dark-modern {
    background: rgba(33, 37, 41, 0.85);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Etiquetas internas minimalistas */
.destination-tag {
    background: #f1f3f5;
    color: #495057;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-duration {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
}

.card-text {
    font-size: 0.82rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Asegura un corte de texto limpio en el tercer renglón */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botón moderno de conversión directa */
.btn-modern-primary {
    background: #86B817; /* El verde de tu marca */
    color: #ffffff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-modern-primary:hover {
    background: #739d14;
    transform: scale(1.01);
}

/* Link para el itinerario con animación de subrayado limpia */
.btn-itinerary-link {
    color: #86B817;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-itinerary-link:hover {
    color: #212529;
    text-decoration: underline;
}

/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: #FFFFFF !important;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

/* Estilos del Blog */
.blog-item {
    transition: .5s;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,.12);
}
.blog-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4; /* Proporción vertical tipo Reel/Foto móvil */
    background: #000;
}
.blog-img-container img,
.blog-img-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.badge-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    padding: 8px 15px;
    border-radius: 50px;
}
.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/*** Hero Header ***/
.hero-header,
.hero-header2,
.hero-header3,
.hero-header4 {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.hero-header {
    background-image: linear-gradient(rgba(20, 20, 31, .7), rgba(20, 20, 31, .7)), url(../img/bg-hero.jpg);
}
.hero-header2 {
    background-image: linear-gradient(rgba(20, 20, 31, .7), rgba(20, 20, 31, .7)), url(../img/bg-hero2.jpg);
}
.hero-header3 {
    background-image: linear-gradient(rgba(20, 20, 31, .7), rgba(20, 20, 31, .7)), url(../img/bg-hero3.jpg);
}
.hero-header4 {
    background-image: linear-gradient(rgba(20, 20, 31, .7), rgba(20, 20, 31, .7)), url(../img/bg-hero4.jpg);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}

/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}

/*** Destination ***/
.destination img {
    transition: .5s;
}

.destination a:hover img {
    transform: scale(1.1);
}

/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.whatsapp-fixed {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-fixed:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

/* Control del botón de cerrar modal (Visible sobre fondos oscuros en todos los tamaños) */
#ofertaEspecialModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 1;
    transform: scale(1.3);
}

/* ==========================================================================
   MEDIA QUERIES CONSOLIDADAS
   ========================================================================== */

/* 1. Optimización para móviles pequeños (hasta 576px) */
@media (max-width: 576px) {
    .whatsapp-fixed {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 28px;
    }
    .back-to-top {
        right: 75px !important;
    }
}

/* 2. Control para tablets y móviles medianos (Pantallas entre 768px y 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    #ofertaEspecialModal .modal-dialog {
        max-width: 80%; /* Un poco más ancho en tablets para asegurar legibilidad */
        margin: 10vh auto; /* Margen centrado */
    }
}

/* 3. Ajustes generales para pantallas medianas/móviles (hasta 991.98px) */
@media (max-width: 991.98px) {
    .brand-logo-responsive {
        max-height: 40px !important; /* Ajuste final */
    }
    .brand-title-responsive {
        font-size: 1.2rem !important; /* Ajuste final */
    }
    .navbar-brand {
        display: flex;
        align-items: center;
        max-width: 80%; /* Evita que el logo empuje al botón de hamburguesa */
    }
    .sticky-top.navbar-light {
        position: relative;
        background: #FFFFFF;
    }
    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--dark) !important;
    }
    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

/* 4. Estilos para pantallas grandes / Laptops y PCs (992px en adelante) */
@media (min-width: 992px) {
    /* Modal de Oferta Especial */
    #ofertaEspecialModal .modal-dialog {
        max-width: 600px; 
        margin-top: 5vh;
        margin-bottom: 5vh;
    }
    #ofertaEspecialModal .modal-body img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Navbar en escritorio */
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    .sticky-top.navbar-light {
        position: fixed;
        background: #FFFFFF;
    }
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }
    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }
    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}