/* ====================================================
   Home / Index — estilos específicos
   ==================================================== */

/* ---------- Hero ---------- */

/* =======================================================================
       HERO — estilos aislados bajo #hero-rancho para no tocar el resto del sitio
       ======================================================================= */
#hero-rancho {
    --hero-h: 100svh; /* alto del hero */
    --ink: #f6efe4; /* texto claro cálido */
    --interval: 7s; /* debe coincidir con data-bs-interval */
    position: relative;
    height: var(--hero-h);
    overflow: hidden;
    background: #14100b;
    font-family: "Archivo", system-ui, sans-serif;
    color: var(--ink);
}

    /* ---- Carousel base ---- */
    #hero-rancho .carousel,
    #hero-rancho .carousel-inner,
    #hero-rancho .carousel-item {
        height: var(--hero-h);
    }

    #hero-rancho .carousel-inner {
        overflow: hidden;
    }

    /* ---- SLIDER VERTICAL: transición en el eje Y ---- */
    #hero-rancho .carousel-vertical .carousel-item {
        transition: transform 0.9s cubic-bezier(0.66, 0, 0.34, 1);
        backface-visibility: hidden;
    }

    #hero-rancho .carousel-vertical .carousel-item-next:not(.carousel-item-start),
    #hero-rancho .carousel-vertical .active.carousel-item-end {
        transform: translateY(100%);
    }

    #hero-rancho .carousel-vertical .carousel-item-prev:not(.carousel-item-end),
    #hero-rancho .carousel-vertical .active.carousel-item-start {
        transform: translateY(-100%);
    }

    /* ---- Fondo de cada slide (imagen real + gradiente de respaldo) + Ken Burns ---- */
    #hero-rancho .hero-media {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        animation: kenburns 22s ease-in-out infinite alternate; /* continuo, sin salto */
        will-change: transform;
    }

@keyframes kenburns {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.14) translate(-1.5%, -1%);
    }
}

/* Overlay para legibilidad: espresso a la izquierda + viñeta inferior */
#hero-rancho .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(20,14,8,.82) 0%, rgba(20,14,8,.45) 42%, rgba(20,14,8,0) 72%), linear-gradient(0deg, rgba(20,14,8,.6) 0%, rgba(20,14,8,0) 38%);
}

/* ---- Contenido del slide ---- */
#hero-rancho .hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
/*    max-width: 720px;*/
    padding: 0 clamp(1.5rem, 6vw, 6rem);
}

#hero-rancho .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent, #e0a458);
    margin-bottom: 1.1rem;
}

    #hero-rancho .hero-eyebrow::before {
        content: "";
        width: 2.4rem;
        height: 2px;
        background: var(--accent, #e0a458);
    }

#hero-rancho .hero-title {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    font-size: clamp(2.6rem, 6.2vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    margin: 0 0 1.2rem;
    text-wrap: balance;
}

    #hero-rancho .hero-title em {
        font-style: italic;
        font-weight: 400;
        color: var(--accent, #e0a458);
    }

#hero-rancho .hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.55;
    max-width: 42ch;
    color: rgba(246, 239, 228, 0.86);
    margin: 0 0 2rem;
}

#hero-rancho .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    padding: 0.85rem 1.7rem;
    border: 1px solid rgba(246, 239, 228, 0.35);
    border-radius: 999px;
    background: rgba(246, 239, 228, 0.04);
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

    #hero-rancho .hero-cta:hover {
        background: var(--accent, #e0a458);
        border-color: var(--accent, #e0a458);
        color: #1a120a;
        transform: translateX(4px);
    }

    #hero-rancho .hero-cta svg {
        transition: transform 0.35s ease;
    }

    #hero-rancho .hero-cta:hover svg {
        transform: translateX(3px);
    }

/* ---- Animación escalonada del texto al activarse el slide ---- */
#hero-rancho .hero-content > * {
    opacity: 0;
}

#hero-rancho .carousel-item.active .hero-eyebrow {
    animation: riseIn 0.7s 0.25s cubic-bezier(0.2,0.7,0.2,1) both;
}

#hero-rancho .carousel-item.active .hero-title {
    animation: riseIn 0.8s 0.40s cubic-bezier(0.2,0.7,0.2,1) both;
}

#hero-rancho .carousel-item.active .hero-sub {
    animation: riseIn 0.8s 0.55s cubic-bezier(0.2,0.7,0.2,1) both;
}

#hero-rancho .carousel-item.active .hero-cta {
    animation: riseIn 0.8s 0.70s cubic-bezier(0.2,0.7,0.2,1) both;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================================================================
       ÍNDICE DE EXPERIENCIAS (signature) — navegación vertical a la derecha
       ======================================================================= */
#hero-rancho .hero-index {
    position: absolute;
    z-index: 5;
    top: 50%;
    right: clamp(1.25rem, 4vw, 3.5rem);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

    #hero-rancho .hero-index button {
        display: grid;
        grid-template-columns: 1.6rem 1fr;
        align-items: center;
        gap: 0.9rem;
        padding: 0.65rem 0.4rem;
        background: transparent;
        border: 0;
        color: rgba(246, 239, 228, 0.55);
        text-align: left;
        cursor: pointer;
        opacity: 0.75;
        transition: opacity 0.3s ease, color 0.3s ease;
    }

        #hero-rancho .hero-index button .idx-num {
            font-family: "Fraunces", serif;
            font-size: 0.9rem;
            font-variant-numeric: tabular-nums;
        }

        #hero-rancho .hero-index button .idx-label {
            font-size: 0.82rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            white-space: nowrap;
            text-shadow: 0 1px 6px #000;
        }

        #hero-rancho .hero-index button:hover {
            opacity: 1;
            color: rgba(246, 239, 228, 0.9);
        }

        #hero-rancho .hero-index button.active {
            opacity: 1;
            color: var(--ink);
        }

        /* riel de progreso a la derecha de cada item del índice */
        #hero-rancho .hero-index button .idx-rail {
            grid-column: 1 / -1;
            height: 2px;
            margin-top: 0.55rem;
            background: rgba(246, 239, 228, 0.18);
            overflow: hidden;
            border-radius: 2px;
        }

            #hero-rancho .hero-index button .idx-rail::after {
                content: "";
                display: block;
                height: 100%;
                width: 100%;
                transform: scaleX(0);
                transform-origin: left;
                background: var(--accent, #e0a458);
            }
        /* la barra activa se llena durante el intervalo del autoplay */
        #hero-rancho .hero-index button.active .idx-rail::after {
            animation: fillRail var(--interval) linear both;
        }

@keyframes fillRail {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* Acentos por experiencia (se aplican al slide y sincronizan con el índice) */
#hero-rancho [data-accent="cooking"] {
    --accent: #e0603f;
}
/* chile      */
#hero-rancho [data-accent="daypass"] {
    --accent: #46b39a;
}
/* sierra     */
#hero-rancho [data-accent="gotcha"] {
    --accent: #a9c14a;
}
/* jungla     */
#hero-rancho [data-accent="cowboy"] {
    --accent: #e0a458;
}
/* hora dorada*/

/* Hint de scroll / marca */
#hero-rancho .hero-brand {
    position: absolute;
    z-index: 5;
    top: clamp(1.25rem, 4vw, 2.5rem);
    left: clamp(1.5rem, 6vw, 6rem);
    font-family: "Fraunces", serif;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-top: 90px;
}

    #hero-rancho .hero-brand span {
        color: var(--accent, #e0a458);
    }

/* =======================================================================
       RESPONSIVE — en móvil el índice pasa a puntos abajo
       ======================================================================= */
@media (max-width: 767.98px) {
    #hero-rancho .hero-index {
        top: auto;
        bottom: 1.5rem;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        gap: 0.5rem;
    }

        #hero-rancho .hero-index button {
            grid-template-columns: none;
            gap: 0;
            padding: 0.5rem;
        }

            #hero-rancho .hero-index button .idx-num,
            #hero-rancho .hero-index button .idx-label {
                display: none;
            }

            #hero-rancho .hero-index button .idx-rail {
                width: 26px;
                height: 3px;
                margin: 0;
            }

    #hero-rancho .hero-content {
        justify-content: flex-end;
        padding-bottom: 5.5rem;
    }
}

/* =======================================================================
       ACCESIBILIDAD — menos movimiento
       ======================================================================= */
@media (prefers-reduced-motion: reduce) {
    #hero-rancho .carousel-vertical .carousel-item {
        transition: none;
    }

    /* antes: .carousel-item.active .hero-media  →  ahora directo a .hero-media */
    #hero-rancho .hero-media,
    #hero-rancho .carousel-item.active .hero-content > *,
    #hero-rancho .hero-index button.active .idx-rail::after {
        animation: none;
    }

    #hero-rancho .hero-content > * {
        opacity: 1;
    }

    #hero-rancho .hero-media {
        transform: scale(1);
    }
}

#hero-rancho .hero-cta:focus-visible,
#hero-rancho .hero-index button:focus-visible {
    outline: 2px solid var(--accent, #e0a458);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================
   TOURS PAGINATED SLIDER - 3 ITEMS PER PAGE
   Desktop: 3 items per page, arrows + dots
   Mobile: Vertical stack, no slider
   ============================================ */

/* --- Container --- */
.tours-slider-container {
    position: relative;
}

/* --- Viewport (defines visible area) --- */
.tours-slider-viewport {
    overflow: hidden;
    width: 100%;
}

/* --- Track --- */
.tours-slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* --- Slides --- */
.tour-slide {
    flex-shrink: 0;
    transition: opacity 0.4s ease;
}

/* ============================================
   DESKTOP (≥992px) - Paginated Carousel
   ============================================ */
@media (min-width: 992px) {
    .tours-slider-container {
        padding: 0 3.5rem; /* Space for arrows */
    }

    .tours-slider-viewport {
        overflow: hidden;
    }

    /* 
       3 items per page with 1.5rem (24px) gap
       Each item = (viewport - 2 gaps) / 3
    */
    .tour-slide {
        width: calc((100% - 3rem) / 3);
        min-width: 0;
    }

    /* Navigation Arrows */
    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        opacity: 0.7;
    }

        .slider-arrow:hover {
            opacity: 1;
            transform: translateY(-50%) scale(1.1);
            background-color: var(--tblr-primary) !important;
            color: white !important;
            box-shadow: 0 4px 12px rgba(var(--tblr-primary-rgb), 0.4) !important;
        }

        .slider-arrow:active {
            transform: translateY(-50%) scale(0.95);
        }

        .slider-arrow:disabled {
            opacity: 0.2 !important;
            cursor: not-allowed;
            transform: translateY(-50%) scale(1);
            background-color: var(--tblr-light) !important;
            color: inherit !important;
            box-shadow: none !important;
        }

    .slider-arrow-prev {
        left: 0;
    }

    .slider-arrow-next {
        right: 0;
    }

    /* Page Dots */
    .slider-dots {
        margin-top: 2rem !important;
    }

    .slider-dot {
        width: 32px;
        height: 6px;
        border-radius: 3px;
        background: var(--tblr-border-color);
        border: none;
        padding: 0;
        transition: all 0.3s ease;
        cursor: pointer;
    }

        .slider-dot:hover {
            background: var(--tblr-muted);
        }

        .slider-dot.active {
            background: var(--tblr-primary);
            width: 48px;
        }
}

/* ============================================
   MOBILE (<992px) - Vertical Stack
   ============================================ */
@media (max-width: 991.98px) {
    .tours-slider-container {
        padding: 0;
    }

    .tours-slider-viewport {
        overflow: visible;
    }

    .tours-slider-track {
        flex-direction: column;
        gap: 1.5rem;
        transform: none !important;
    }

    .tour-slide {
        width: 100%;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .activity-card {
        height: 450px;
    }

    /* Hide arrows on mobile */
    .slider-arrow {
        display: none !important;
    }

    /* Hide dots on mobile */
    .slider-dots {
        display: none !important;
    }
}

/* ============================================
   ACTIVITY CARD (preserved animations)
   ============================================ */
.activity-card {
    height: 520px !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

    .activity-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    }

    .activity-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.85) 100% );
        z-index: 1;
        transition: background 0.5s ease;
    }

    .activity-card:hover::before {
        background: linear-gradient( 180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.9) 100% );
    }

.activity-card-image {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.activity-card:hover .activity-card-image {
    transform: scale(1.08);
}

.activity-card .card-img-overlay {
    z-index: 2;
    background: none !important;
}

/* Content */
.activity-title,
.activity-description,
.activity-highlight-item,
.activity-btn {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.activity-card:hover .activity-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.activity-btn .btn-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.activity-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Shine effect */
.activity-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient( 45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60% );
    z-index: 3;
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.activity-card:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* Stagger highlights on hover */
.activity-card:hover .activity-highlight-item:nth-child(1) {
    transition-delay: 0.05s;
}

.activity-card:hover .activity-highlight-item:nth-child(2) {
    transition-delay: 0.1s;
}

.activity-card:hover .activity-highlight-item:nth-child(3) {
    transition-delay: 0.15s;
}

.activity-card:hover .activity-highlight-item:nth-child(4) {
    transition-delay: 0.2s;
}
#section-making-adventures img {
    object-position: center right
}
#section-making-adventures::after {
    position: absolute;
    top: 0;
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient( 90deg, rgb(0 0 0 / 0.7) 0%, rgb(0 0 0 / 0) 100% ) !important;
}