:root {
    --gold: var(--color-principal);
    --gold-dark: #b8911e;
    --bg: #ffffff;
    --text: #1a1a1a;
}

html,
body {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

/* =========================================
   SLIDER
========================================= */

.slider {
    position: relative;
    width: 100%;
}

/* Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

/* IMPORTANTE: el activo vuelve al flujo y da altura al contenedor */
.slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Imagen */
.slide img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* =========================================
   OSCURECIDO SUPERIOR
========================================= */

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0) 100%
    );

    z-index: 5;
    pointer-events: none;
}

/* =========================================
   PC / CELULAR
========================================= */

.slider-pc {
    display: block;
}

.slider-celu {
    display: none;
}

/* =========================================
   CELULAR
========================================= */

@media (max-width: 750px) {

    .slider-pc {
        display: none;
    }

    .slider-celu {
        display: block;
    }

    .slider-celu .slide img {
        width: 100%;
        height: auto;
        display: block;
    }
}



.tour-detail {
    max-width: 100%;
    margin: 0.1rem auto 4rem;
    padding: 3rem clamp(40px, 9vw, 110px);
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #eee;
}

.tour-category-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.category-label {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-principal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: #555;
    text-transform: uppercase;
}

.btn-back {
    background: transparent;
    color: var(--color-principal);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    border: 2px solid var(--color-principal);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--color-principal);
    color: white;
    transform: scale(1.05);
}

.tour-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tour-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.tour-info p {
    font-size: 1.05rem;
    color: #444;
    text-align: justify;
    line-height: 1.6;
}

.price-reserve {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem;
}

.tour-price {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: bold;
    color: var(--color-principal);
}

.tour-price strong {
    font-size: 1.7rem;
    display: block;
}

.tour-price span {
    font-size: 1rem;
    color: #666;
}

.btn-action.reservar {
    background: var(--color-principal);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-action.reservar:hover {
    background: #b38900;
    transform: translateY(-2px);
}


.tour-media img {
    width: 100%;
    height: 370px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tour-map {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
}

#mapaLugar {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tour-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


/* ==========================================
   PLACEHOLDER DEL MAPA
   ========================================== */

.mapa-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    background: #f7f7f7;
    color: #777;
}

.mapa-placeholder i {
    font-size: 45px;
    margin-bottom: 12px;
    color: var(--color-principal);
}

.mapa-placeholder p {
    margin: 0;
    font-size: 15px;
    color: #777;
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 900px) {

    .tour-map {
        height: 320px;
    }

}


/* ==========================================
   CELULAR
   ========================================== */

@media (max-width: 600px) {

    .tour-map {
        width: 100%;
        height: 280px;
        border-radius: 10px;
    }

    .mapa-placeholder i {
        font-size: 38px;
    }

    .mapa-placeholder p {
        font-size: 14px;
        padding: 0 15px;
    }

}


/* ==========================================
   CELULAR PEQUEÑO
   ========================================== */

@media (max-width: 400px) {

    .tour-map {
        height: 250px;
    }

    .mapa-placeholder i {
        font-size: 34px;
    }

    .mapa-placeholder p {
        font-size: 13px;
    }

}

@media (max-width: 900px) {
    .tour-detail {
        padding: 0 1rem;
    }

    .tour-content {
        grid-template-columns: 1fr;
    }

  .price-reserve {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .price-reserve .btn-action.reservar {
        width: fit-content !important;
        max-width: max-content !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        align-self: center !important;
        display: inline-flex !important;
        white-space: nowrap !important;
        padding: 9px 16px !important;
    }
}


.tour-extra {
    margin: 1.2rem 0;
}

.tour-extra h3 {
    font-size: 1.2rem;
    color: #444;
    margin: 1rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.tour-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tour-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #555;
    cursor: default;
}


.tour-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--color-principal);
    font-weight: bold;
    transition: transform 0.3s ease, color 0.3s ease;
}

.tour-list li:hover::before {
    transform: translateX(4px);
    color: #b38900;
}

/* Contenedor principal flex */
.hour-tour {
    margin: 1.2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centra verticalmente el bus con respecto a los textos */
    position: relative;
}

/* Las columnas de las horas */
.hour-tour .horas {
    width: max-content;
}

.hour-tour h3 {
    font-size: 1.2rem;
    color: #444;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.hour-tour .horas p {
    font-size: 1.15rem;
    color: #555;
    margin: 0;
    padding-left: 32px;
    text-align: center;
}

/* ==========================================================================
    CAMINO Y ANIMACIÓN DEL ICONO LUCIDE (.icon-bus)
   ========================================================================== */
.route-animation-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 2rem; /* Espaciado entre la animación y los textos */
    height: 40px;
}

/* Línea de camino punteada */
.route-line {
    width: 100%;
    height: 2px;
    border-top: 2px dashed #cbd5e1;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1;
}

/* Tu icono Lucide animado */
.traveling-bus {
    position: absolute;
    z-index: 2;
    background-color: transparent; /* Oculta la línea punteada al pasar por encima */
    padding: 0 8px;        /* Pequeño colchón blanco a los lados */
    /* CONFIGURACIÓN DEL ICONO */
    font-size: 2.5rem !important;      /* Define el tamaño del bus de Lucide */
    color: var(--color-principal);         /* El color dorado que hace juego con tu web */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* ANIMACIÓN */
    animation: drive 6s linear infinite;
}

/* ANIMACIÓN: Movimiento de izquierda a derecha con vibración */
@keyframes drive {
    0% {
        left: 0%;
        transform: translateY(-50%) rotate(0deg);
    }
    15% { transform: translateY(-54%) rotate(-1deg); }
    30% { transform: translateY(-46%) rotate(1deg); }
    45% { transform: translateY(-52%) rotate(-0.5deg); }
    60% { transform: translateY(-48%) rotate(0.5deg); }
    75% { transform: translateY(-53%) rotate(-1deg); }
    90% { transform: translateY(-47%) rotate(1deg); }
    100% {
        left: 85%; /* Detiene el bus justo antes de chocar con el texto de llegada */
        transform: translateY(-50%) rotate(0deg);
    }
}
.category-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*=========================
        RESPONSIVE TOUR DETAIL
=========================*/


/* LAPTOP */
@media(max-width:1100px){


    .tour-detail{

        padding:3rem 60px;

    }


    .category-label{

        font-size:1.4rem;

    }


    .category-name{

        font-size:1.3rem;

    }


}



/* TABLETS */
@media(max-width:900px){



    .tour-detail{

        padding:2rem 35px;

        margin:3rem auto;

    }




    .tour-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .btn-back {
        width: auto !important;
        flex: 0 0 auto !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        padding: 8px 14px;
    }



    .tour-category-wrapper{

        flex-wrap:wrap;

    }



    .category-label{

        font-size:1.3rem;

    }



    .category-name{

        font-size:1.1rem;

    }





    .tour-content{

        grid-template-columns:1fr;

    }





    .tour-info h2{

        font-size:1.7rem;
        
        text-align: center;

    }




    .tour-info p{

        font-size:1rem;
        
        text-align: justify;

    }





    .price-reserve {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .price-reserve .btn-action.reservar {
        width: fit-content !important;
        max-width: max-content !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        align-self: center !important;
        display: inline-flex !important;
        white-space: nowrap !important;
        padding: 9px 16px !important;
    }



    .btn-action.reservar{

        align-self:center;

    }





    /* HORARIOS */

    .hour-tour{

        flex-direction:column;

        align-items:flex-start;

        gap:25px;

    }




    .route-animation-container{

        width:100%;

        margin:0;

    }



    .traveling-bus{

        animation-duration:5s;

    }



}



/* CELULAR */
@media(max-width:600px){


    .hero-content h1{

        font-size:24px;

    }



    .hero-content p{

        font-size:14px;

    }





    .tour-detail{

        padding:1.5rem 15px;

        margin:2rem auto;

    }





    .tour-header{

        margin-bottom:1.2rem;

    }




    .tour-category-wrapper{

        flex-direction:column;

        gap:5px;

    }



    .category-label{

        font-size:1.15rem;

    }



    .category-name{

        font-size:1rem;

    }




    .btn-back{

        width:100%;

        justify-content:center;

        font-size:.9rem;

    }





    .tour-info h2{

        font-size:1.4rem;
        
        text-align: center;

    }



    .tour-info p{

        font-size:.95rem;

        text-align: justify;

    }





    .price-reserve {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.price-reserve .btn-action.reservar {
    width: fit-content !important;
    max-width: max-content !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    display: inline-flex !important;
    white-space: nowrap !important;
    padding: 9px 16px !important;
}




    .tour-price{

        text-align:center;

    }




    .tour-price strong{

        font-size:1.5rem;

    }





    .btn-action.reservar{

        width:100%;

        justify-content:center;

    }





    .tour-media img{

        border-radius:8px;

    }




    .tour-map{

        height:220px;

    }





    .tour-extra h3{

        font-size:1.05rem;

    }




    .tour-list li{

        font-size:.9rem;

    }





    /* HORARIO */

    .hour-tour{

        gap:20px;

    }




    .hour-tour .horas{

        width:100%;

    }




    .hour-tour .horas p{

        padding-left:0;

        text-align:left;

        font-size:1rem;

    }




    .route-animation-container{

        height:35px;

        width:100%;

    }



    .traveling-bus{

        font-size:2rem !important;

    }



}



/* CELULAR PEQUEÑO */
@media(max-width:380px){



    .tour-detail{

        padding:1rem 10px;

    }



    .hero-content h1{

        font-size:21px;

    }




    .category-label{

        font-size:1rem;

    }



    .tour-info h2{

        font-size:1.2rem;

    }



    .tour-map{

        height:180px;

    }



    .traveling-bus{

        font-size:1.7rem !important;

    }

}


.slider-pc {
    display: block;
}

.slider-celu {
    display: none;
}

@media (max-width: 750px) {

    .slider-pc {
        display: none;
    }

    .slider-celu {
        display: block;
    }

    .slider-celu .slide img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
        display: block;
    }
}

/* =========================================
   RESPONSIVE - HORARIO EN UNA SOLA FILA
========================================= */

@media (max-width: 750px) {

    .hour-tour {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        margin: 1rem 0;
    }

    /* Horas izquierda y derecha */
    .hour-tour .horas {
        width: auto;
        flex: 0 0 auto;
        min-width: 0;
    }

    .hour-tour h3 {
        font-size: 0.85rem;
        margin: 0 0 3px;
        gap: 4px;
        white-space: nowrap;
    }

    .hour-tour .horas p {
        font-size: 0.85rem;
        padding-left: 0;
        text-align: center;
        white-space: nowrap;
    }

    /* Camino central */
    .route-animation-container {
        flex: 1;
        min-width: 30px;
        height: 35px;
        margin: 0 5px;
    }

    .route-line {
        width: 100%;
        border-top-width: 1.5px;
    }

    /* Bus */
    .traveling-bus {
        font-size: 1.7rem !important;
        padding: 0 3px;
    }

    @keyframes drive {
        0% {
            left: 0%;
            transform: translateY(-50%) rotate(0deg);
        }

        15% {
            transform: translateY(-53%) rotate(-1deg);
        }

        30% {
            transform: translateY(-47%) rotate(1deg);
        }

        45% {
            transform: translateY(-51%) rotate(-0.5deg);
        }

        60% {
            transform: translateY(-49%) rotate(0.5deg);
        }

        75% {
            transform: translateY(-52%) rotate(-1deg);
        }

        90% {
            transform: translateY(-48%) rotate(1deg);
        }

        100% {
            left: 82%;
            transform: translateY(-50%) rotate(0deg);
        }
    }
}


/* =========================================
   CELULARES MUY PEQUEÑOS
========================================= */

@media (max-width: 400px) {

    .hour-tour {
        gap: 3px;
    }

    .hour-tour h3 {
        font-size: 0.72rem;
    }

    .hour-tour .horas p {
        font-size: 0.72rem;
    }

    .route-animation-container {
        margin: 0 3px;
        min-width: 25px;
    }

    .traveling-bus {
        font-size: 1.4rem !important;
    }
}