/* HADER */
@media (max-width: 900px){

    /* HEADER BASE */
    header{
        height: 90px;
        padding: 10px 20px;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    /* LOGO CENTRADO */
    .logo{
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
    }

    header img{
        height: 56px;
    }

    /* BOTÓN HAMBURGUESA */
    .menu-toggle{
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
    }

    /* NAV OCULTO */
    .container-nav{
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: #ffffff;
        transform: translateY(-120%);
        transition: transform .4s ease;
        /* box-shadow: 0 10px 30px rgba(0,0,0,.12); */
        z-index: 999;
    }

    .container-nav.active{
        transform: translateY(0);
    }

    .container-nav ul{
        flex-direction: column;
        gap: 28px;
        padding: 40px 0;
        text-align: center;
    }

    /* REDES */
    .section-media{
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        gap: 14px;
        z-index: 1000;
    }

    .section-media p{
        display: none;
    }
}



/* SWIPER */
@media (max-width: 900px){

    /* HERO */
    .hero{
        height: calc(100vh - 72px);
        width: 100%;
        overflow: hidden;
    }

    /* SWIPER */
    .swiper{
        width: 100%;
        height: 100%;
    }

    .swiper-slide{
        position: relative;
        width: 100%;
        height: 100%;
    }

    /* IMAGEN */
    .swiper-slide img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* OVERLAY */
    .swiper-slide::before{
        background: rgba(0,0,0,0.35);
    }

    /* TEXTO */
    .slide-text{
        left: 50%;
        bottom: 16%;
        transform: translateX(-50%);
        text-align: center;
        max-width: 90%;
        padding: 0 16px;
    }

    .slide-text h2{
        font-size: clamp(1.9rem, 6vw, 2.4rem);
        line-height: 1.25;
    }
}

/* INICIO */

@media (max-width: 1024px) {

    .inicio-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .inicio-images {
        max-width: 680px;
        margin: 0 auto;
    }

    .inicio-content {
        text-align: center;
    }

    .inicio-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .inicio-content ul {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {

    .section-inicio {
        padding: 100px 24px;
    }

    /* Imágenes como carrusel visual */
    .inicio-images {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .inicio-images::-webkit-scrollbar {
        display: none;
    }

    .img-box {
        min-width: 80%;
        height: 260px;
        scroll-snap-align: center;
    }

    /* Quitamos el mosaico */
    .img-box.big {
        grid-column: auto;
        grid-row: auto;
    }

    /* Texto */
    .inicio-content h1 {
        font-size: 2rem;
    }

    .inicio-content p {
        font-size: 1rem;
    }

    .inicio-content ul li {
        font-size: 0.9rem;
    }
}

/* EL LUGAR */

@media (max-width: 1024px) {

    .el-lugar-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .el-lugar-image {
        order: 1;
    }

    .el-lugar-content {
        order: 2;
        margin: -80px auto 0;
        max-width: 640px;
        padding: 45px 40px;
    }

    .el-lugar-content h2 {
        text-align: center;
    }

    .el-lugar-content p {
        text-align: center;
    }
}

@media (max-width: 640px) {

    .section-el-lugar {
        padding: 100px 24px;
    }

    .el-lugar-content {
        margin: -60px auto 0;
        padding: 32px 26px;
        max-width: 100%;
    }

    .el-lugar-content h2 {
        font-size: 2.1rem;
        line-height: 1.15;
        margin-bottom: 24px;
        text-align: left;
    }

    .el-lugar-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left;
    }

    .el-lugar-image img {
        border-radius: 2px;
    }
}


/* CTA MARQUEE */

/* TABLET */
@media (max-width: 1024px) {

    .cta-marquee {
        padding: 80px 0 70px;
    }

    .marquee span {
        font-size: 2.6rem;
        letter-spacing: 0.12em;
    }

    .marquee {
        gap: 60px;
        animation-duration: 32s;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .cta-marquee {
        padding: 70px 0 60px;
        min-height: 200px;
    }

    .marquee span {
        font-size: 2.1rem;
        letter-spacing: 0.1em;
    }

    .marquee {
        gap: 40px;
        animation-duration: 26s;
    }

    .cta-button {
        margin-top: 30px;
        padding: 14px 36px;
        font-size: 0.8rem;
    }
}

/* MOBILE PEQUEÑO */
@media (max-width: 480px) {

    .marquee span {
        font-size: 1.8rem;
        letter-spacing: 0.08em;
    }

    .cta-button {
        padding: 12px 32px;
    }
}

/* JARDINES Y SALON */

/* =========================
   RESPONSIVE
========================= */

/* TABLET */
@media (max-width: 1024px) {

    .section.jardines {
        padding: 120px 6vw;
    }

    .jardines-grid {
        gap: 60px;
    }

    .jardines-img img {
        height: 420px;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .section.jardines {
        padding: 90px 6vw;
    }

    .jardines-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .jardines-text {
        order: 1;
    }

    .jardines-img {
        order: 2;
    }

    .jardines-text h2 {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }

    .jardines-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .jardines-img img {
        height: 360px;
    }
}

/* MOBILE PEQUEÑO */
@media (max-width: 480px) {

    .section.jardines {
        padding: 80px 5vw;
    }

    .jardines-text h2 {
        font-size: 2rem;
    }

    .jardines-img img {
        height: 300px;
        border-radius: 4px;
    }
}

/* EVENTOS SOCIALES */

/* TABLET */
@media (max-width: 1024px) {

    .eventos-wrapper {
        gap: 50px;
    }

    .eventos-header {
        max-width: 100%;
    }

    .eventos-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .evento-card img {
        height: 240px;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .eventos-wrapper {
        gap: 40px;
    }

    .eventos-header h2 {
        font-size: 2.2rem;
    }

    .eventos-cards {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .evento-card img {
        height: 320px;
    }

    .evento-card h3 {
        font-size: 1.3rem;
    }

    .evento-card p {
        font-size: 0.95rem;
    }

    .btn-cta {
        margin-top: 50px;
    }
}

/* MOBILE PEQUEÑO */
@media (max-width: 480px) {

    .eventos-header h2 {
        font-size: 2rem;
    }

    .evento-card img {
        height: 280px;
        border-radius: 4px;
    }

    .evento-card h3 {
        font-size: 1.25rem;
    }
}

/* EXPERIENCIA FAMILIAR */

/* TABLET */
@media (max-width: 1024px) {

    .familia-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .familia-img img {
        height: 420px;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    .familia-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .familia-img {
        order: 1;
    }

    .familia-text {
        order: 2;
    }

    .familia-text h2 {
        font-size: 2.2rem;
    }

    .familia-img img {
        height: 340px;
        border-radius: 4px;
    }

    .familia-text p {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* MOBILE PEQUEÑO */
@media (max-width: 480px) {

    .familia-text h2 {
        font-size: 2rem;
    }

    .familia-img img {
        height: 280px;
    }
}

/* ENTORNO */

/* =========================
   ENTORNO
========================= */

.entorno-header {
    max-width: 700px;
    margin-bottom: 60px;
}

.entorno-header h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.6rem, 3.5vw, 3.2rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: #042b2c;
}

.entorno-header p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
}

/* GALERÍA DESKTOP */
.entorno-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.entorno-gallery .img-box {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.entorno-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform .6s ease;
}

/* Hover sutil */
.entorno-gallery .img-box:hover img {
    transform: scale(1.05);
}

/* ENTORNO */

/* TABLET */
@media (max-width: 1024px) {

    .entorno-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .entorno-gallery img {
        height: 230px;
    }
}

/* MOBILE – SLIDER HORIZONTAL */
@media (max-width: 768px) {

    .entorno-header {
        margin-bottom: 40px;
    }

    .entorno-header h2 {
        font-size: 2.2rem;
    }

    .entorno-header p {
        font-size: 1rem;
        line-height: 1.8;
    }

    /* Slider tipo Inicio */
    .entorno-gallery {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .entorno-gallery .img-box {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    .entorno-gallery img {
        width: 100%;
        height: 320px;
    }

    /* Ocultar scrollbar */
    .entorno-gallery::-webkit-scrollbar {
        display: none;
    }

    .entorno-gallery {
        scrollbar-width: none;
    }
}

/* MOBILE PEQUEÑO */
@media (max-width: 480px) {

    .entorno-header h2 {
        font-size: 2rem;
    }

    .entorno-gallery .img-box {
        flex: 0 0 90%;
    }

    .entorno-gallery img {
        height: 260px;
    }
}

