/* ========================================
   ESTILOS PROPIOS — SECCIÓN Y PÁGINA ATRACCIONES
   - Contenedor blanco envolvente desde el título hasta la base
   - PC: 4 actividades por línea (ordenadas sin carrusel, medidas idénticas)
   - Móvil: Carrusel interactivo con swipe y dots
   - Imágenes intactas sin cortes ni bordes redondeados
   ======================================== */

@keyframes atracciones-subtle-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.75;
        transform: scale(1.05);
    }
}

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

@keyframes atracciones-enter-soft {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.hospedaje-banner.hero-carousel {
    animation: atracciones-enter-soft 0.7s ease both;
}

.atracciones-boton-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    opacity: 0;
    animation: atracciones-enter 0.65s ease 0.2s both;
}

.atracciones-boton-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: atracciones-subtle-pulse 2s ease-in-out 0.85s infinite;
}

.atracciones-boton-img:hover {
    transform: scale(1.08);
    animation: none;
}

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

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

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

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

.atracciones-title-image {
    max-width: 760px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

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

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

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

.atracciones-slide {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Card: fotos y textos sin bordes redondeados que corten las imágenes */
.atracciones-slide__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    height: 100%;
}

.atracciones-slide__media {
    position: relative;
    width: 100%;
}

.atracciones-slide__media a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.atracciones-slide__img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 0; /* Sin redondeo para preservar esquinas e imágenes completas */
}

/* Flechas estilo referencia */
.atracciones-carousel__nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 5;
    width: 52px;
    height: 52px;
    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;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.atracciones-carousel__nav:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.atracciones-carousel__nav--prev { left: -10px; }
.atracciones-carousel__nav--next { right: -10px; }

/* Indicador permanente en móvil */
.atracciones-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: #023675;
    text-align: center;
}

.atracciones-carousel__hint-icon {
    color: #0e58ad;
    animation: atracciones-hint-nudge 1.6s ease-in-out infinite;
}

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

.atracciones-carousel__hint-text--desktop { display: none; }
.atracciones-carousel__hint-text--mobile { display: inline; }

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

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

.atracciones-carousel__dot.is-active {
    background: #023675;
    transform: scale(1.15);
}

.atracciones-carousel__dot:focus-visible {
    outline: 2px solid #0e58ad;
    outline-offset: 3px;
}

.atracciones-carousel--reduce-motion .atracciones-carousel__track {
    transition: none;
}

/* ========================================
   PC / DESKTOP (>= 992px):
   - NO carrusel
   - 4 actividades por fila en la primera línea
   - Las demás actividades abajo ordenadas y centradas
   - Mismas medidas exactas en todos los contenedores
   - Ocultar flechas, hints e indicadores de desplazamiento
   ======================================== */
@media (min-width: 992px) {
    .atracciones-carousel {
        padding: 0;
        max-width: 100%;
    }

    .atracciones-carousel__viewport {
        overflow: visible;
    }

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

    .atracciones-slide {
        /* Exactamente 4 columnas en 100% de ancho con 24px de gap */
        flex: 0 0 calc((100% - 3 * 24px) / 4);
        max-width: calc((100% - 3 * 24px) / 4);
        width: calc((100% - 3 * 24px) / 4);
    }

    .atracciones-slide__inner {
        gap: 16px;
    }

    /* Ocultar elementos de carrusel en PC */
    .atracciones-carousel__nav,
    .atracciones-carousel__hint,
    .atracciones-carousel__dots {
        display: none !important;
    }
}

/* ========================================
   MÓVIL / TABLET (< 992px):
   - Sí carrusel interactivo con swipe y dots
   - Indicador “Desliza para ver más atracciones”
   ======================================== */
@media (max-width: 991px) {
    .atracciones-home-section {
        padding: 20px 14px 30px;
    }

    .atracciones-home-box {
        border-radius: 20px;
        padding: 30px 14px 28px;
    }

    .atracciones-title-image {
        max-width: 92%;
    }

    .atracciones-title-img {
        margin-bottom: 20px;
    }

    .atracciones-carousel {
        --atracciones-visible: 1;
        --atracciones-gap: 16px;
        padding: 10px 0 0;
    }

    .atracciones-carousel__track {
        display: flex;
        flex-wrap: nowrap;
    }

    .atracciones-slide {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .atracciones-slide__img {
        max-width: 92%;
        margin: 0 auto;
    }

    .atracciones-slide__media--foto .atracciones-slide__img {
        max-width: 86%;
    }

    .atracciones-carousel__nav {
        display: none;
    }

    .atracciones-carousel__hint {
        display: flex;
    }

    .atracciones-carousel__dots {
        display: flex;
    }
}

@media (max-width: 480px) {
    .atracciones-boton-img {
        max-width: 200px;
    }

    .atracciones-home-box {
        padding: 24px 10px 22px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hospedaje-banner.hero-carousel,
    .atracciones-boton-wrapper,
    .atracciones-carousel {
        opacity: 1;
        animation: none;
        transform: none;
    }

    .atracciones-carousel__track {
        transition: none;
    }

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

    .atracciones-boton-img {
        animation: none;
    }
}
