/* ==========================================================================
   FRONT PAGE — CSS combinado (home)
   Fusiona hero.css + hero-search.css + front-page-seo.css + front-benefits.css
   + front-popular-tours.css + front-destinations.css + front-stats.css
   + front-testimonials.css + front-cta.css en un solo archivo para reducir
   solicitudes de red en el home (antes: 9 archivos, ahora: 1).
   ========================================================================== */

/* =========================================
   HERO SECTION
========================================= */

.vxm-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* =========================================
   BACKGROUND IMAGE
========================================= */

.vxm-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;

    /* 🔥 EFECTO CINEMATIC */
    transform: scale(1);
    animation: heroZoom 12s ease-in-out forwards;
}

.vxm-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;

    /* 🔥 EFECTO CINEMATIC */
    transform: scale(1);
    animation: heroZoom 12s ease-in-out forwards;
}

/* =========================================
   OVERLAY (CLAVE PARA LEGIBILIDAD)
========================================= */

.vxm-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.75));
}

/* =========================================
   CONTENT
========================================= */

.vxm-hero__content {
    position: relative;
    z-index: 3;

    max-width: 900px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

/* =========================================
   TITLE
========================================= */

.vxm-hero__title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-wrap: balance;

    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* =========================================
   SUBTITLE
========================================= */

.vxm-hero__subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;

    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
/* =========================================
   ACTION BUTTONS
========================================= */

.vxm-hero__actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* BOTONES BASE */

.vxm-btn {
    padding: 14px 28px;
    border-radius: 0px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* BOTÓN PRINCIPAL */

.vxm-btn--primary {
    background: var(--vxm-secondary);
    border: 2px solid #fff;
    color: var(--vxm-white);
}

.vxm-btn--primary:hover {
    background: var(--vxm-secondary-dark);
    transform: translateY(-2px);
}

/* BOTÓN SECUNDARIO */

.vxm-btn--secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.vxm-btn--secondary:hover {
    background: #fff;
    color: #000;
}

/* =========================================
   ANIMACIÓN ZOOM (CINEMATIC)
========================================= */

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .vxm-hero {
        /* Antes 90vh: dejaba casi una pantalla completa vacía antes del contenido */
        height: 70vh;
        min-height: 420px;
    }

    .vxm-hero__content {
        padding-top: 80px;
        max-width: 100%;
    }

    .vxm-hero__title {
        font-size: 32px;
        text-wrap: balance;
    }

    .vxm-hero__subtitle {
        font-size: 16px;
    }

    .vxm-btn {
        width: 100%;
        text-align: center;
    }

}

/* ==========================================================================
   HERO SEARCH
   ========================================================================== */

.vxm-hero-search {
    padding: var(--vxm-space-md) 0;
    text-align: center;
}

.vxm-hero-search__form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    width: 100%;
    margin: 0 auto;
    background: var(--vxm-white);
    padding: 18px 22px;
    border-radius: 10px;
    border-top: 4px solid var(--vxm-secondary);
    box-shadow: 0 16px 40px rgba(2, 24, 47, 0.16);
}

.vxm-hero-search__field {
    flex: 1;
    text-align: left;
}

.vxm-hero-search__field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vxm-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.vxm-hero-search__field select,
.vxm-hero-search__field input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--vxm-gray-300);
    border-radius: 6px;
    font-family: var(--vxm-font-body);
    font-size: 0.9rem;
    color: var(--vxm-gray-800);
    background: var(--vxm-white);
    cursor: pointer;
}

.vxm-hero-search__field input[type="text"] {
    cursor: text;
}

.vxm-hero-search__field select:focus,
.vxm-hero-search__field input[type="text"]:focus {
    border-color: var(--vxm-secondary);
    box-shadow: 0 0 0 3px rgba(30, 168, 160, 0.15);
    outline: none;
}

.vxm-hero-search__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--vxm-secondary);
    color: var(--vxm-white);
    border: none;
    border-radius: 6px;
    font-family: var(--vxm-font-body);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(30, 168, 160, 0.35);
    transition: background var(--vxm-transition), transform var(--vxm-transition);
}

.vxm-hero-search__btn:hover {
    background: var(--vxm-secondary-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .vxm-hero-search__form {
        flex-direction: column;
        align-items: stretch;
    }

    .vxm-hero-search__btn {
        justify-content: center;
    }
}

/* ==========================================================================
   SEO CONTEXT SECTION
   ========================================================================== */

.vxm-seo {
    margin-top: var(--vxm-space-xl);
    padding: var(--vxm-section-pad-top) 0 var(--vxm-section-pad-bottom);
}

/* CONTENEDOR */
.vxm-seo__inner {
    max-width: 1300px;
    margin: 0 auto;
}

/* LAYOUT: imagen + texto */
.vxm-seo__layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
    align-items: flex-start;
}

.vxm-seo__layout--no-media {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* COLLAGE DE IMÁGENES */
.vxm-seo__media {
    position: relative;
    min-height: 620px;
}

.vxm-seo__media-img {
    display: block;
    object-fit: cover;
}

.vxm-seo__media-img--1 {
    width: 74%;
    height: 620px;
}

.vxm-seo__media-img--2 {
    position: absolute;
    right: 0;
    top: 22%;
    width: 56%;
    height: 440px;
}

/* TÍTULO */
.vxm-seo__title {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 800;
    color: var(--vxm-primary);
    margin-bottom: var(--vxm-space-lg);
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-align: left;
}

.vxm-seo__layout--no-media .vxm-seo__title {
    text-align: center;
}

/* HIGHLIGHT */
.vxm-highlight {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--vxm-secondary);
    letter-spacing: 0.5px;
}

/* CONTENIDO */
.vxm-seo__content {
    font-size: 1rem;
    color: var(--vxm-gray-600);
    line-height: 1.75;
    text-align: left;
}

.vxm-seo__layout--no-media .vxm-seo__content {
    text-align: center;
}

/* PÁRRAFOS */
.vxm-seo__content p {
    margin-bottom: var(--vxm-space-md);
}

/* NEGRITAS */
.vxm-seo__content strong {
    color: var(--vxm-primary);
    font-weight: 600;
}

/* MEJOR LECTURA (espaciado visual) */
.vxm-seo__content p+p {
    margin-top: var(--vxm-space-sm);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .vxm-seo__layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .vxm-seo__media {
        min-height: 0;
        max-width: 420px;
        margin: 0 auto var(--vxm-space-xl);
    }

    .vxm-seo__media-img--1 {
        height: 420px;
    }

    .vxm-seo__media-img--2 {
        height: 280px;
    }

    .vxm-seo__title,
    .vxm-seo__content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .vxm-seo {
        padding: var(--vxm-section-pad-top) var(--vxm-space-md) var(--vxm-section-pad-bottom);
    }

    .vxm-seo__content {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   BENEFITS SECTION (imagen parallax)
   ========================================================================== */

.vxm-benefits {
    position: relative;
    padding: 90px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* TÍTULO DE SECCIÓN */
.vxm-benefits__title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--vxm-white);
    margin-bottom: var(--vxm-space-xl);
}

/* GRID */
.vxm-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--vxm-space-lg);
}

/* CARD (vidrio esmerilado) */
.vxm-benefit {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: var(--vxm-space-lg) var(--vxm-space-md);
    text-align: center;
    transition: var(--vxm-transition);
}

/* HOVER SUAVE */
.vxm-benefit:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-5px);
}

/* ICONO */
.vxm-benefit__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto var(--vxm-space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--vxm-white);
}

.vxm-benefit__icon--blue {
    background: #2563EB;
}

.vxm-benefit__icon--teal {
    background: var(--vxm-secondary);
}

.vxm-benefit__icon--orange {
    background: #EA580C;
}

/* TÍTULO */
.vxm-benefit__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--vxm-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

/* TEXTO */
.vxm-benefit p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .vxm-benefits__grid {
        grid-template-columns: 1fr;
    }
}

/* background-attachment:fixed da problemas en iOS/mobile, se desactiva */
@media (max-width: 768px) {
    .vxm-benefits {
        background-attachment: scroll;
        padding: 60px 0;
    }
}

/* ==========================================================================
   POPULAR TOURS
   ========================================================================== */

.vxm-popular-tours {
    padding: var(--vxm-section-pad-top) 0 var(--vxm-section-pad-bottom);
    margin: 0;
}

.vxm-section-title {
    text-align: center;
    font-size: 1.6rem;
    color: var(--vxm-primary);
    margin: 0 0 8px;
}

.vxm-section-text {
    text-align: center;
    color: var(--vxm-gray-600);
    margin: 0 auto 20px;
    max-width: 600px;
}

.vxm-section-cta {
    text-align: center;
    margin: 20px 0 0;
}

.vxm-section-cta .vxm-btn--outline {
    background: var(--vxm-primary);
    color: var(--vxm-white);
    border-color: var(--vxm-primary);
}

.vxm-section-cta .vxm-btn--outline:hover {
    background: var(--vxm-primary-dark);
    border-color: var(--vxm-primary-dark);
}

/* ==========================================================================
   DESTINATIONS
   ========================================================================== */

.vxm-destinations {
    padding: 10px 0 30px;
}

.vxm-destinations__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.vxm-destinations__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    color: var(--vxm-primary);
    margin: 0;
}

.vxm-destinations__title svg {
    color: var(--vxm-secondary);
}

.vxm-destinations__viewall {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--vxm-gray-600);
    text-decoration: none;
    white-space: nowrap;
}

.vxm-destinations__viewall:hover {
    color: var(--vxm-primary);
}

.vxm-destinations__text {
    color: var(--vxm-gray-600);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Grid tipo masonry */
.vxm-destinations__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: 200px;
    gap: 12px;
}

.vxm-dest-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    text-decoration: none;
}

/* Layout: primero grande, segundo pequeño, luego 3 iguales, luego 2 */
.vxm-dest-card--0 {
    grid-row: span 2;
}

.vxm-dest-card--2,
.vxm-dest-card--3,
.vxm-dest-card--4 {
    grid-column: auto;
}

/* A partir del 3er card, 3 columnas */
.vxm-destinations__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 12px;
}

.vxm-dest-card--0 {
    grid-column: span 2;
    grid-row: span 2;
}

.vxm-dest-card--5,
.vxm-dest-card--6 {
    grid-column: auto;
}

/* Imagen */
.vxm-dest-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    filter: saturate(1.15) contrast(1.08) brightness(0.85);
}

.vxm-dest-card:hover .vxm-dest-card__img {
    transform: scale(1.08);
    filter: saturate(1.25) contrast(1.12) brightness(0.8);
}

/* Overlay cinematográfico */
.vxm-dest-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top,
            rgba(27, 61, 90, 0.7) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(27, 61, 90, 0.15) 100%);
    transition: background 0.4s ease;
}

.vxm-dest-card:hover .vxm-dest-card__overlay {
    background: linear-gradient(to top,
            rgba(27, 61, 90, 0.85) 0%,
            rgba(0, 0, 0, 0.15) 50%,
            rgba(27, 61, 90, 0.2) 100%);
}

/* Nombre */
.vxm-dest-card__name {
    position: absolute;
    bottom: 16px;
    left: 20px;
    color: var(--vxm-white);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.vxm-dest-card--0 .vxm-dest-card__name {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .vxm-destinations__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

    .vxm-dest-card--0 {
        grid-column: span 2;
        grid-row: span 1;
    }

    .vxm-dest-card__name {
        font-size: 1.1rem;
    }

    .vxm-dest-card--0 .vxm-dest-card__name {
        font-size: 1.4rem;
    }

    .vxm-destinations__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   STATS
   ========================================================================== */

.vxm-stats {
    padding: var(--vxm-section-pad-bottom) 0;
    background: var(--vxm-primary);
}

.vxm-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.vxm-stats__number {
    display: block;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--vxm-secondary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.vxm-stats__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--vxm-white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 768px) {
    .vxm-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.vxm-testimonials {
    padding: var(--vxm-section-pad-top) 0 var(--vxm-section-pad-bottom);
}

/* Tabs */
.vxm-reviews-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.vxm-reviews-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--vxm-white);
    border: 1px solid var(--vxm-gray-200);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--vxm-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--vxm-gray-600);
    transition: all var(--vxm-transition);
}

.vxm-reviews-tab:hover {
    border-color: var(--vxm-gray-400);
}

.vxm-reviews-tab.is-active {
    background: var(--vxm-primary);
    border-color: var(--vxm-primary);
    color: var(--vxm-white);
}

.vxm-reviews-tab__logo {
    height: 18px;
    width: auto;
    object-fit: contain;
}

.vxm-reviews-tab.is-active .vxm-reviews-tab__logo {
    filter: brightness(0) invert(1);
}

/* Paneles */
.vxm-reviews-panel {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vxm-reviews-panel.is-active {
    visibility: visible;
    height: auto;
    opacity: 1;
}

/* Carrusel */
.vxm-reviews-carousel {
    position: relative;
    overflow: hidden;
}

.vxm-reviews-carousel__track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.vxm-review-card {
    flex: 0 0 calc(25% - 15px);
    background: var(--vxm-white);
    border: 1px solid var(--vxm-gray-200);
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.vxm-review-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.vxm-review-card__text {
    font-size: 0.88rem;
    color: var(--vxm-gray-600);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vxm-review-card__text p {
    margin: 0;
}

.vxm-review-card__author {
    border-top: 1px solid var(--vxm-gray-200);
    padding-top: 10px;
}

.vxm-review-card__author strong {
    display: block;
    font-size: 0.85rem;
    color: var(--vxm-primary);
    font-weight: 500;
}

.vxm-review-card__author span {
    font-size: 0.72rem;
    color: var(--vxm-gray-400);
}

/* Botones carrusel */
.vxm-reviews-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--vxm-white);
    border: 1px solid var(--vxm-gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: var(--vxm-shadow-sm);
    transition: all var(--vxm-transition);
}

.vxm-reviews-carousel__btn:hover {
    background: var(--vxm-primary);
    border-color: var(--vxm-primary);
    color: var(--vxm-white);
}

.vxm-reviews-carousel__btn:hover svg {
    stroke: var(--vxm-white);
}

.vxm-reviews-carousel__btn--prev { left: 0; }
.vxm-reviews-carousel__btn--next { right: 0; }

/* Link ver reseñas */
.vxm-reviews-panel__link {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--vxm-secondary);
    text-decoration: none;
}

.vxm-reviews-panel__link:hover {
    color: var(--vxm-primary);
}

@media (max-width: 1024px) {
    .vxm-review-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .vxm-reviews-tabs {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .vxm-review-card {
        flex: 0 0 calc(50% - 10px);
    }

    .vxm-reviews-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .vxm-review-card {
        flex: 0 0 100%;
    }
}

/* ==========================================================================
   BLOG FRONTPAGE + CTA FINAL
   ========================================================================== */

.vxm-front-blog {
    padding: var(--vxm-section-pad-top) 0 var(--vxm-section-pad-bottom);
}

.vxm-cta-final {
    padding: var(--vxm-section-pad-bottom) 0;
    background: var(--vxm-primary);
    text-align: center;
}

.vxm-cta-final__title {
    font-size: 2rem;
    color: var(--vxm-white);
    margin-bottom: 12px;
}

.vxm-cta-final__text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.vxm-cta-final__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vxm-cta-final__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all var(--vxm-transition);
}

.vxm-cta-final__btn--primary {
    background: var(--vxm-secondary);
    color: var(--vxm-white);
}

.vxm-cta-final__btn--primary:hover {
    background: var(--vxm-secondary-dark);
    color: var(--vxm-white);
}

.vxm-cta-final__btn--wa {
    background: transparent;
    color: var(--vxm-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.vxm-cta-final__btn--wa:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--vxm-white);
    color: var(--vxm-white);
}

@media (max-width: 480px) {
    .vxm-cta-final__buttons {
        flex-direction: column;
    }

    .vxm-cta-final__btn {
        width: 100%;
        justify-content: center;
    }
}
