: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;
    }
}



.carousel-section {
    padding: 3rem clamp(40px, 9vw, 110px);
    background: #fff;
    text-transform: uppercase;
}


.section-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 0 clamp(20px, 4vw, 55px);
    background: #fff;
    margin-bottom: 2.5rem;
}

/* TÍTULO IZQUIERDA */
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-principal);
    text-align: left;
    margin: 0;
    margin-left: -55px;
}

.section-header p {
    font-size: 1.1rem;
    line-height: 1.5;

    font-weight: 700;
    color: #444;
    text-align: center;
    margin: 0;
    white-space: pre-line;
}

.category-filter {
    display: flex;

    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-right: -55px;
}


.category-filter label {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.category-filter select {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    background: #f8f8f8;
    transition: all 0.3s ease;
}

.category-filter select:hover {
    border-color: var(--color-principal);
    box-shadow: 0 0 5px rgba(212, 160, 23, 0.5);
}

@media (max-width: 900px) {
    .section-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .category-filter {
        justify-content: center;
        margin-top: 1rem;
    }
}


.section-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-principal);
}


.carousel-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.tour-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.img-container {
    position: relative;
    width: 100%;
    height: clamp(250px, 18vw, 320px);
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-card:hover {
    transform: translateY(-6px);
}

.overlay {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    transition: right 0.5s ease;
    padding: 1rem;
}

.img-container:hover .overlay {
    right: 0;
}

.overlay-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

.overlay-info p {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
    position: relative;
    padding-right: 2.5rem;
}

.overlay-info i {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-principal);
    color: #000;
    border-radius: 50%;
    padding: 8px;
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Info */
.card-info {
    padding: 1.2rem 1.4rem;
}

.card-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}

/* Footer: botón + precio */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-principal);
    color: #fff;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    user-select: none;
}

.btn-card i {
    font-size: 1rem;
}

.btn-card:hover {
    background: #b38900;
    transform: translateY(-2px);
}

/* Precio */
.tour-price {
    text-align: right;
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: bold;
    color: var(--color-principal);
}

.tour-price strong {
    font-size: 1.6rem;
    color: var(--color-principal);
}

.tour-price span {
    display: block;
    font-size: 0.85rem;
    color: #666;
    text-transform: none;
    font-family: "Arial", sans-serif;
}


/*=========================
        RESPONSIVE HERO
=========================*/


@media(max-width:1100px){



    .hero-content h1{

        font-size:36px;

    }


    .carousel-section{

        padding:3rem 50px;

    }


    .carousel-container{

        grid-template-columns:repeat(2,1fr);

    }


}



/*=========================
        TABLETS
=========================*/


@media(max-width:900px){



    .hero-content h1{

        font-size:30px;

    }


    .hero-content p{

        font-size:16px;

    }



    .carousel-section{

        padding:2.5rem 35px;

    }




    /* HEADER */

    .section-header{

        grid-template-columns:1fr;

        text-align:center;

        gap:20px;

        padding:0;

    }



    .section-header h2{

        text-align:center;

        margin-left:0;

        font-size:2rem;

    }



    .section-header p{

        font-size:1rem;

    }



    .category-filter{

        justify-content:center;

        margin-right:0;

    }


    .carousel-container{

        grid-template-columns:repeat(2,1fr);

        gap:1.5rem;

    }



    .img-container{

        height:200px;

    }



}



/*=========================
        CELULARES
=========================*/


@media(max-width:600px){


    .hero::before{

        height:70%;

    }



    .hero-content h1{

        font-size:24px;

        line-height:1.2;

    }



    .hero-content p{

        font-size:14px;

    }




    .carousel-section{

        padding:2rem 15px;

    }




    .section-header{

        margin-bottom:1.5rem;

    }



    .section-header h2{

        font-size:1.6rem;

    }



    .section-header p{

        font-size:.9rem;

    }




    .category-filter{

        flex-direction:column;

        gap:10px;

    }



    .category-filter select{

        width:100%;

    }




    .carousel-container{

        grid-template-columns:1fr;

        gap:1.5rem;

    }




    .img-container{

        height:220px;

    }




    .tour-card{

        border-radius:12px;

    }




    .card-info{

        padding:1rem;

    }



    .card-info h3{

        font-size:1rem;

    }





    .card-footer{

        flex-direction:column;

        align-items:stretch;

        gap:15px;

    }


    .btn-card{

        justify-content:center;

        width:100%;

    }


    .tour-price{

        text-align:center;

    }



    .tour-price strong{

        font-size:1.4rem;

    }



}



/*=========================
        CELULAR PEQUEÑO
=========================*/


@media(max-width:380px){



    .hero-content h1{

        font-size:21px;

    }



    .carousel-section{

        padding:1.5rem 10px;

    }



    .img-container{

        height:180px;

    }



    .overlay-info p{

        font-size:.8rem;

    }



    .overlay-info i{

        width:24px;

        height:24px;

        padding:5px;

    }



}

.img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f1f1f1;
    color: #999;
}

.img-placeholder i {
    font-size: 4rem;
    opacity: 0.6;
}

.img-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}





/* =========================================================
   RESPONSIVE HERO
========================================================= */

@media (max-width: 1100px) {



    .carousel-section {
        padding: 3rem 50px;
    }

    .carousel-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 900px) {



    /* ---------- CARRUSEL ---------- */

    .carousel-section {
        padding: 2.5rem 35px;
    }

    .carousel-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }


    /* ---------- HEADER ---------- */

    .section-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 0;
    }

    .section-header h2 {
        text-align: center;
        margin-left: 0;
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }


    /* ---------- FILTRO ---------- */

    .category-filter {
        justify-content: center;
        margin-right: 0;
    }


    /* ---------- IMAGEN ---------- */

    .img-container {
        height: 200px;
    }


    /* ---------- CARD FOOTER ---------- */

    .card-footer {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .btn-card {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .tour-price {
        margin-left: auto;
        text-align: right;
        flex-shrink: 0;
    }

    .tour-price strong {
        display: block;
    }

    .tour-price span {
        display: block;
    }
}


/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 600px) {


    /* ---------- CARRUSEL ---------- */

    .carousel-section {
        padding: 2rem 15px;
    }

    .carousel-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }


    /* ---------- HEADER ---------- */

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }


    /* ---------- FILTRO ---------- */

    .category-filter {
        flex-direction: column;
        gap: 10px;
    }

    .category-filter select {
        width: 100%;
    }


    /* ---------- IMAGEN ---------- */

    .img-container {
        height: 220px;
    }


    /* ---------- CARD ---------- */

    .tour-card {
        border-radius: 12px;
    }

    .card-info {
        padding: 1rem;
    }

    .card-info h3 {
        font-size: 1rem;
    }


    /* ---------- BOTÓN + PRECIO ---------- */

    .card-footer {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }

    .btn-card {
        width: auto;
        flex-shrink: 0;
        white-space: nowrap;
        justify-content: center;
    }

    .tour-price {
        margin-left: auto;
        text-align: right;
        flex-shrink: 0;
    }

    .tour-price strong {
        display: block;
        font-size: 1.15rem;
    }

    .tour-price span {
        display: block;
        font-size: 0.7rem;
    }
}


/* =========================================================
   CELULAR PEQUEÑO
========================================================= */

@media (max-width: 380px) {

    /* ---------- HERO ---------- */

    .hero-content h1 {
        font-size: 21px;
    }


    /* ---------- CARRUSEL ---------- */

    .carousel-section {
        padding: 1.5rem 10px;
    }


    /* ---------- IMAGEN ---------- */

    .img-container {
        height: 180px;
    }


    /* ---------- OVERLAY ---------- */

    .overlay-info p {
        font-size: 0.8rem;
    }

    .overlay-info i {
        width: 24px;
        height: 24px;
        padding: 5px;
    }


    /* ---------- CARD FOOTER ---------- */

    .card-footer {
        gap: 8px;
    }

    .btn-card {
        font-size: 0.75rem;
        padding: 8px 10px;
    }

    .tour-price strong {
        font-size: 1rem;
    }

    .tour-price span {
        font-size: 0.65rem;
    }
}

.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;
    }
}


@media (max-width: 900px) {

    .img-container {
        height: 280px;
    }

}.tour-destacado {
    position: relative;
    color: var(--color-principal);
    font-size: 16px;
    margin-left: 6px;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease;
}

.tour-destacado:hover {
    transform: scale(1.25);
}

/* Tooltip */
.tour-destacado::after {
    content: "TOUR DESTACADO";
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);

    background: #1f1f1f;
    color: #fff;

    padding: 6px 10px;
    border-radius: 6px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: all 0.2s ease;
    z-index: 999;
}

/* Flechita */
.tour-destacado::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);

    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #1f1f1f;

    opacity: 0;
    visibility: hidden;

    transition: all 0.2s ease;
}

/* Mostrar */
.tour-destacado:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tour-destacado:hover::before {
    opacity: 1;
    visibility: visible;
}



