@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    letter-spacing: normal;
}

body{

    font-family:'Montserrat',sans-serif;
    overflow-x: hidden;
}

.regiones-title {
    text-align: center;
    color: #000;
    margin: 70px;
    font-size: 3.8rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
}

.regiones-title span {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.regiones-title span::before {
    content: "";
    position: absolute;

    top: 50%;
    left: -99.5vw;       /* sale desde el borde izquierdo de la pantalla */
    width: calc(100vw + 100%);
    height: 65px;

    background: #F2EE00;

    transform: translateY(-50%) scaleX(0);
    transform-origin: left;

    z-index: -1;
    transition: transform .7s ease;
}

.regiones-title.animar span::before {
    transform: translateY(-50%) scaleX(1);
}

.regiones-header{
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 90px;   /* baja el bloque */
    padding-bottom: 40px;
    

    padding-top:clamp(120px, 12vw, 180px);

}

/* 🔥 TÍTULO PERFECTAMENTE CENTRADO EN LA PANTALLA */
.regiones-title{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

/* 🔥 FILTRO A LA DERECHA SIN AFECTAR CENTRO */
.region-filter{
  
    margin-left: auto;
}

.region-filter{
    position: relative;
    display: inline-block;
}

/* 🔥 SELECT LIMPIO */
.region-filter select{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: transparent;
    border: none;
    outline: none;

    padding: 10px 10px 10px 10px;

    font-family: inherit;
    font-size: 14px;
    cursor: pointer;

    width: 200px;          /* ancho fijo */
    max-width: 200px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: all 0.25s ease;
}

/* 🔥 HOVER SUAVE */
.region-filter select:hover{
    transform: translateY(-2px);
}

/* 🔥 FLECHA PERSONALIZADA */
.region-filter::after{
    content: "▾";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #333;

    transition: transform 0.3s ease;
}

/* 🔥 EFECTO AL INTERACTUAR */
.region-filter select:focus + .region-filter::after,
.region-filter:focus-within::after{
    transform: translateY(-50%) rotate(180deg);
}
.region-filter{
    margin-left: auto;
    transform: translateX( -0px); /* 👈 micro ajuste a la izquierda */
}
.Descripcion p{
    margin-top: 40px;
    font-size: 16px;
    text-align: justify;
    line-height: 1.7;
}
/* =========================
   RESPONSIVE TABLET Y CELULAR
========================= */

@media (max-width:768px){

    body{
        overflow-x:hidden;
    }

    .hero{
        padding:30px 20px;
    }


    /* =========================
       HEADER
    ========================= */

    .regiones-header{

        display:flex;
        flex-direction:column;
        align-items:center;
        gap:20px;
        padding-top:25px;
        padding-bottom:30px;
        
        padding-top:clamp(120px, 12vw, 180px);

    }


    .regiones-title{

        position:relative;
        left:auto;
        transform:none;
        margin:0;

        width:100%;
        text-align:center;

        font-size:2.2rem;
        line-height:1.2;

    }


    .regiones-title span::before{

        left:-49vw;
        width:calc(50vw + var(--ancho-franja));
        height:45px;

    }



    /* =========================
       SELECT
    ========================= */

    .region-filter{

        width:100%;
        margin-top:20px;

        display:flex;
        justify-content:center;

        padding:0 20px;

    }


    .region-filter select{

        width:100%;
        max-width:320px;

        height:44px;

        border-radius:12px;

    }



    /* =========================
       DESCRIPCIÓN
    ========================= */

    .Descripcion{

        padding:0 20px;

    }


    .Descripcion p{

        margin-top:20px;

        font-size:15px;

        line-height:1.6;

        text-align:justify;

    }



    /* =========================
       SLIDER CELULAR
       1 TARJETA POR VEZ
    ========================= */


    .departamentos-grid{

        margin-top:35px;

    }


    .slider-wrapper{

        width:100%;

        overflow:hidden;

        position:relative;

        padding:0;

    }


    .departamentos-track{

        display:flex;

        gap:0;

        overflow-x:auto;

        scroll-snap-type:x mandatory;

        scroll-behavior:smooth;

        -webkit-overflow-scrolling:touch;

        scrollbar-width:none;

    }


    .departamentos-track::-webkit-scrollbar{

        display:none;

    }



    .dep-card{

        flex:0 0 100%;

        min-width:100%;

        max-width:100%;

        width:100%;

        margin:0;

        padding:0 15px;

        scroll-snap-align:center;

    }



    .dep-card img{

        width:100%;

        height:240px;

        object-fit:cover;

        border-radius:25px;

    }



    .dep-info{

        padding:18px;

    }


    .dep-title{

        font-size:20px !important;

    }


    .desc{

        font-size:14px;

        line-height:1.5;

    }



    /* =========================
       OCULTAR BOTONES EN CELULAR
       SE USA EL DEDO
    ========================= */


    .slider-btn{

        display:none !important;

    }

    .departamentos-track{

    display:flex;

    overflow-x:auto;

    transform:none !important;

    gap:0;

    scroll-snap-type:x mandatory;

}


.dep-card{

    flex:0 0 100%;

    min-width:100%;

    scroll-snap-align:center;

}

.departamentos-track{
    display:flex;
    transition:transform .5s ease;
}


}




.departamentos-grid{
  margin-top: 60px;
}


.slider-wrapper{
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 900px;   /* 👈 no 100% infinito */
    margin: auto;
}

/* TRACK */
.departamentos-track{
    display: flex;
    transition: transform 0.5s ease;
}

/* CARD (1 POR VEZ) */
.dep-card{
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    justify-content: center;   /* 👈 centra horizontal */
    align-items: center;       /* 👈 centra vertical */
    flex-direction: column;
}

/* IMAGEN */
.dep-card img{
    width: 100%;        /* 👈 QUITA el 85% */
    max-width: 700px;   /* opcional si quieres limitar */
    height: 500px;
    object-fit: cover;
    border-radius: 50px;
}



/* CONTENEDOR */
.dep-info{
    padding: 15px !important;
    text-align: center !important;
}

/* 🔥 TÍTULO CENTRADO */
.dep-title{
    font-size: 40px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin: 0 auto 10px !important;
    display: inline-block !important;
    position: relative !important;

    max-width: 700px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    line-height: 1.2 !important;
}

/* 🔥 LÍNEA DEL ANCHO DEL TÍTULO */
.dep-title::after{
    content: "" !important;
    display: block !important;
    width: 100% !important;
    height: 4px !important;
    background: #F2EE00 !important;
    margin-top: 6px !important;
}

/* 🔥 DESCRIPCIÓN */
.dep-info .desc{
    text-align: justify;
    font-size: 15px;
    max-width: 700px; 
    line-height: 1.6;
    margin: 10px 0;
    color: #444;
}

/* 🔥 DEPARTAMENTO CENTRADO Y EN MAYÚSCULAS */
.dep-badge{
    display: inline-block;
    background: #F2ee00;
    color: #111;
    padding: 6px 14px;
    border-radius: 25px;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    margin-top: 10px;
}


/* =========================
   BOTONES SLIDER (MÁS CERCA)
========================= */
.slider-btn{
    position: absolute;
    top: 33.3%;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    border-radius: 50%;
    border: none;

    background: #F2EE00;
    color: #111;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.slider-btn.prev{ left: 55px; }  /* 👈 MÁS CERCA */
.slider-btn.next{ right: 55px; } /* 👈 MÁS CERCA */



