/* =========================================================
   ESTILOS — SECCIONES HOSPEDAJE Y EVENTOS ESPECIALES (HOME)
   - Contenedores blancos envolventes idénticos a atracciones y excursiones
   - Hospedaje: Banner unificado con botón y bordes redondeados (sin carrusel)
   - Eventos: 3 columnas en PC y carrusel interactivo en móviles
   ========================================================= */

/* Animación de entrada */
@keyframes he-box-enter {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

/* =========================================================
   1. SECCIÓN HOSPÉDATE Y RESERVA
   ========================================================= */
.hospedate-home-section {
    background: transparent;
    padding: 30px 24px 40px;
    width: 100%;
    box-sizing: border-box;
}

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

.hospedate-home-box {
    background-color: #ffffff;
    border-radius: 28px;
    padding: 44px 0 0 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    opacity: 0;
    animation: he-box-enter 0.7s ease 0.25s both;
}

.hospedate-home-header {
    padding: 0 36px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hospedate-home-title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    text-align: center;
}

.hospedate-home-title-img {
    max-width: 520px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.hospedate-home-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4px;
    margin-bottom: 8px;
}

.hospedate-home-btn-img {
    max-width: 340px;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: he-subtle-pulse 2s ease-in-out infinite;
}

.hospedate-home-btn-img:hover {
    transform: scale(1.06);
    animation: none;
}

.hospedate-home-banner-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 0;
}

.hospedate-home-banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
    cursor: pointer;
    line-height: 0;
}

.hospedate-home-banner-img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: block;
    transition: transform 0.4s ease;
}

.hospedate-home-banner-link:hover .hospedate-home-banner-img {
    transform: scale(1.015);
}

/* =========================================================
   2. SECCIÓN EVENTOS ESPECIALES
   ========================================================= */
.eventos-home-section {
    background: transparent;
    padding: 30px 24px 40px;
    width: 100%;
    box-sizing: border-box;
}

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

.eventos-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;
    opacity: 0;
    animation: he-box-enter 0.7s ease 0.25s both;
}

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

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

/* Carrusel y grid de eventos */
.eventos-carousel {
    --eventos-gap: 28px;
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0 0;
    scroll-margin-top: 120px;
    box-sizing: border-box;
}

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

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

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

.evento-card-nuevo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.evento-imagen-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.evento-imagen-nuevo {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.evento-card-nuevo:hover .evento-imagen-nuevo {
    transform: translateY(-5px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.evento-descripcion-nuevo {
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 1.05rem;
    color: #224c7b;
    line-height: 1.38;
    margin: 0;
    padding: 0 8px;
    text-align: center;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evento-boton-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 6px;
    width: 100%;
}

.evento-boton-wrapper a {
    display: inline-block;
    text-decoration: none;
}

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

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

/* Flechas de navegación para eventos */
.eventos-carousel__nav {
    position: absolute;
    top: 40%;
    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;
}

.eventos-carousel__nav:hover,
.eventos-carousel__nav:focus-visible {
    background: #224c7b;
    border-color: #224c7b;
    color: #fff;
    outline: none;
}

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

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

.eventos-carousel__hint-icon,
.eventos-carousel__hint-arrows {
    color: #224c7b;
    animation: he-hint-nudge 1.6s ease-in-out infinite;
}

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

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

.eventos-carousel__dot.is-active {
    background: #224c7b;
    transform: scale(1.2);
}

.eventos-carousel__dot:focus-visible {
    outline: 2px solid #224c7b;
    outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE: DESKTOP (>= 992px)
   ========================================================= */
@media (min-width: 992px) {
    .eventos-carousel {
        padding: 0;
        max-width: 100%;
    }

    .eventos-carousel__viewport {
        overflow: visible;
    }

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

    .eventos-slide {
        flex: 0 0 310px;
        max-width: 320px;
        width: 310px;
    }

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

/* =========================================================
   RESPONSIVE: TABLET / MÓVIL (< 992px)
   ========================================================= */
@media (max-width: 991px) {
    .hospedate-home-section,
    .eventos-home-section {
        padding: 20px 14px 30px;
    }

    .hospedate-home-box {
        border-radius: 20px;
        padding: 28px 0 0 0;
    }

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

    .hospedate-home-header {
        padding: 0 16px 14px;
    }

    .hospedate-home-title-img,
    .eventos-home-title-img {
        max-width: 360px;
        margin-bottom: 14px;
    }

    .hospedate-home-banner-img {
        border-radius: 0;
    }

    .hospedate-home-btn-img {
        max-width: 270px;
    }

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

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

    .evento-card-nuevo {
        max-width: 280px;
    }

    .evento-descripcion-nuevo {
        font-size: 1rem;
        min-height: auto;
    }

    .eventos-carousel__nav {
        display: flex;
    }

    .eventos-carousel__hint {
        display: flex;
    }

    .eventos-carousel__dots {
        display: flex;
    }
}

@media (max-width: 480px) {
    .hospedate-home-box {
        padding: 22px 0 0 0;
        border-radius: 16px;
    }

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

    .hospedate-home-header {
        padding: 0 12px 10px;
    }

    .hospedate-home-title-img,
    .eventos-home-title-img {
        max-width: 290px;
    }

    .hospedate-home-btn-img {
        max-width: 220px;
    }

    .evento-card-nuevo {
        max-width: 255px;
    }

    .eventos-carousel__nav {
        display: none;
    }
}

/* =========================================================
   3. SECCIÓN COMIDA Y RESTAURANTES (HOME)
   - Contenedor blanco unificado sin alterar comportamiento
   ========================================================= */
.comida-home-section {
    background: transparent;
    padding: 30px 24px 40px;
    width: 100%;
    box-sizing: border-box;
}

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

.comida-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;
    opacity: 0;
    animation: he-box-enter 0.7s ease 0.25s both;
}

.comida-home-box .hospedaje-container {
    padding: 0;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .comida-home-section {
        padding: 20px 14px 30px;
    }

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

@media (max-width: 480px) {
    .comida-home-box {
        padding: 22px 10px 20px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hospedate-home-box,
    .eventos-home-box,
    .comida-home-box,
    .hospedate-home-btn-img,
    .evento-boton-img {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .eventos-carousel__track {
        transition: none;
    }

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