/* ========================================
   ESTILOS — SECCIÓN EXCURSIONES Y CAMPAMENTOS (HOME)
   - Contenedor blanco envolvente con sombra suave y esquinas redondeadas
   - PC: 3 tarjetas en una fila ordenadas y centradas con efectos hover
   - Móvil: Carrusel interactivo con swipe, dots y flechas
   ======================================== */

@keyframes excursiones-subtle-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.03);
    }
}

@keyframes excursiones-enter {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes excursiones-hint-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* ---------- Contenedor blanco para la sección en Home ---------- */
.excursiones-home-section {
    background: transparent;
    padding: 30px 24px 40px;
    width: 100%;
    box-sizing: border-box;
}

.excursiones-home-container {
    max-width: 1420px;
    margin: 0 auto;
    width: 100%;
}

.excursiones-home-box {
    background-color: #ffffff;
    border-radius: 28px;
    padding: 44px 36px 42px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.excursiones-title-img {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.excursiones-title-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ---------- Carrusel / Grid de Excursiones ---------- */
.excursiones-carousel {
    --excursiones-gap: 28px;
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0 0;
    scroll-margin-top: 120px;
    opacity: 0;
    animation: excursiones-enter 0.7s ease 0.25s both;
    box-sizing: border-box;
}

.excursiones-carousel__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.excursiones-carousel__track {
    display: flex;
    gap: var(--excursiones-gap);
    width: 100%;
    transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
}

.excursiones-slide {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.excursiones-slide__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.excursiones-slide__link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.excursiones-slide__img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 0;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

/* Hover suave en PC */
@media (hover: hover) and (pointer: fine) {
    .excursiones-slide__link:hover .excursiones-slide__img {
        transform: translateY(-8px) scale(1.02);
        filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.12));
    }
}

/* Flechas de navegación */
.excursiones-carousel__nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 5;
    width: 50px;
    height: 50px;
    border: 1.5px solid #1a1a1a;
    border-radius: 50%;
    background: #fff;
    color: #1a1a1a;
    font-size: 1.05rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.excursiones-carousel__nav:hover,
.excursiones-carousel__nav:focus-visible {
    background: #e85d04;
    border-color: #e85d04;
    color: #fff;
    outline: none;
}

.excursiones-carousel__nav--prev { left: -8px; }
.excursiones-carousel__nav--next { right: -8px; }

/* Indicador de ayuda en móvil */
.excursiones-carousel__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0 12px;
    font-family: 'Barlow', sans-serif;
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    font-weight: 600;
    color: #e85d04;
    text-align: center;
}

.excursiones-carousel__hint-icon {
    color: #e85d04;
    animation: excursiones-hint-nudge 1.6s ease-in-out infinite;
}

.excursiones-carousel__hint-arrows {
    display: inline-flex;
    gap: 4px;
    color: #e85d04;
    animation: excursiones-hint-nudge 1.6s ease-in-out infinite;
}

.excursiones-carousel__dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.excursiones-carousel__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ffd8b5;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.excursiones-carousel__dot.is-active {
    background: #e85d04;
    transform: scale(1.2);
}

.excursiones-carousel__dot:focus-visible {
    outline: 2px solid #e85d04;
    outline-offset: 3px;
}

/* ========================================
   PC / DESKTOP (>= 992px):
   - NO carrusel
   - 3 columnas distribuidas y centradas
   - Mismas medidas exactas
   - Ocultar flechas, hints e indicadores
   ======================================== */
@media (min-width: 992px) {
    .excursiones-carousel {
        padding: 0;
        max-width: 100%;
    }

    .excursiones-carousel__viewport {
        overflow: visible;
    }

    .excursiones-carousel__track {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 36px 32px;
        transform: none !important;
        width: 100%;
    }

    .excursiones-slide {
        /* Tamaño calibrado en desktop similar a las tarjetas de atracciones */
        flex: 0 0 310px;
        max-width: 320px;
        width: 310px;
    }

    .excursiones-slide__inner {
        max-width: 310px;
        width: 100%;
    }

    .excursiones-carousel__nav,
    .excursiones-carousel__hint,
    .excursiones-carousel__dots {
        display: none !important;
    }
}

/* ========================================
   MÓVIL / TABLET (< 992px):
   - Sí carrusel interactivo con swipe y dots
   - Tarjeta en proporción cómoda
   ======================================== */
@media (max-width: 991px) {
    .excursiones-home-section {
        padding: 20px 14px 30px;
    }

    .excursiones-home-box {
        border-radius: 20px;
        padding: 28px 14px 26px;
    }

    .excursiones-title-image {
        max-width: 360px;
    }

    .excursiones-title-img {
        margin-bottom: 18px;
    }

    .excursiones-carousel {
        padding: 6px 0 0;
    }

    .excursiones-carousel__track {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
    }

    .excursiones-slide {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .excursiones-slide__inner {
        max-width: 280px;
        width: 100%;
        margin: 0 auto;
    }

    .excursiones-carousel__nav {
        display: flex;
    }

    .excursiones-carousel__hint {
        display: flex;
        margin-top: 18px;
    }

    .excursiones-carousel__dots {
        display: flex;
        margin-top: 14px;
    }
}

@media (max-width: 480px) {
    .excursiones-carousel__nav {
        display: none; /* En pantallas muy pequeñas, swipe puro y dots */
    }

    .excursiones-title-image {
        max-width: 300px;
    }

    .excursiones-slide__inner {
        max-width: 255px;
    }

    .excursiones-home-box {
        padding: 22px 10px 20px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .excursiones-carousel {
        opacity: 1;
        animation: none;
        transform: none;
    }

    .excursiones-carousel__track {
        transition: none;
    }

    .excursiones-carousel__hint-icon,
    .excursiones-carousel__hint-arrows {
        animation: none;
    }

    .excursiones-slide__img {
        transition: none;
    }
}
