/* ============================= */
/*        ESTILOS GENERALES      */
/* ============================= */

body {
    font-family: Arial, sans-serif;
}

h1 {
    font-size: 1.7rem;
    margin: 10px 0px 10px 0px;
    text-align:left;
}

/* ============================= */
/*        MOBILE SLIDER          */
/* ============================= */

.mobile-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: block;
}

.slider-contenedor {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slider-eventos {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.slider-eventos::-webkit-scrollbar {
    display: none;
}

.tarjeta-evento {
    min-width: 100vw;
    max-width: 100vw;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.imagen-evento {
    width: 100%;
    height: 35vh;
    overflow: hidden;
}

.imagen-evento img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* 🔒 CLAVE PARA EVITAR ARRASTRE DE LA IMAGEN */
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Flechas */

.mobile-slider .prev,
.mobile-slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

.mobile-slider .prev { left: 10px; }
.mobile-slider .next { right: 10px; }

/* ============================= */
/*        DESKTOP GRID           */
/* ============================= */

.desktop-grid {
    display: none;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease, filter .3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
    filter: brightness(55%);
}

.hover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-weight: bold;
    opacity: 0;
    transition: opacity .3s ease;
}

.image-container:hover .hover-overlay {
    opacity: 1;
}

/* ============================= */
/*        DESKTOP (>=1200px)     */
/* ============================= */

@media (min-width: 1200px) {

    /* Ocultamos carrusel móvil */
    .mobile-slider {
        display: none;
    }

    /* Activamos grid */
    .desktop-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 8px;
        height: 60vh;
    }

    .desktop-grid .imagen-pequena:first-child {
        grid-row: 1 / 3;
    }

    .lugar-container,
    .piscinas-container {
        width: 70vw;
        margin: 0 auto;
    }

    h1 {
        font-size: 3rem;
        margin: 30px 0;
        margin-bottom: 0;
    }

    .text-acordeon .texto-intermedio-container{
        margin-top:0;
    }
}
