/* --- SECCIÓN HABITACIONES (#habitaciones) --- */

.lah-habitaciones-section {
    position: relative;
    padding: 70px 20px 80px;
    background-color: var(--lah-white);
    overflow: hidden;
}

.lah-habitaciones-pattern {
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2025/12/patterns.jpg');
    background-position: bottom center;
    background-size: 49%;
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
}

.lah-habitaciones-inner {
    position: relative;
    z-index: 2;
    max-width: var(--lah-max-w);
    margin: 0 auto;
}

.lah-habitaciones-header {
    text-align: center;
    margin-bottom: 35px;
}

.lah-habitaciones-title {
    font-family: var(--lah-font-title);
    color: var(--lah-blue);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 12px;
    text-align: center;
}

.lah-habitaciones-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
}

.lah-btn-reserva-hab-wrap {
    text-align: center;
    margin-top: 45px;
}

.lah-btn-reserva-hab {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--lah-font-title);
    font-size: 1.35rem;
    color: var(--lah-blue-navy) !important;
    background: var(--lah-green-lime);
    border: 2px solid var(--lah-green-lime);
    border-radius: 18px;
    padding: 14px 35px;
    letter-spacing: 2px;
    text-shadow: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-decoration: none;
}

.lah-btn-reserva-hab i {
    font-size: 1.3rem;
    color: inherit;
    transition: color 0.25s ease;
}

.lah-btn-reserva-hab:hover {
    background: var(--lah-green-lime);
    border-color: var(--lah-green-lime);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    text-shadow: none;
}

.lah-btn-reserva-hab:hover i {
    color: #ffffff !important;
}

.hab-modulo { 

        font-family: 'Oxygen', sans-serif; 

        max-width: 1100px; 

        margin: 0 auto; 

        color: #333; 

        padding: 20px;

    }



    /* 1. BOTONES DE NAVEGACIÓN */

    .tab-input { display: none; }



    .cat-nav { 

        display: flex; 

        flex-wrap: wrap; 

        gap: 15px; 

        justify-content: center; 

        margin-bottom: 40px; 

    }

    

    .btn-cat { 

        background: #fff; 

        border: 2px solid #5283A8; 

        border-radius: 12px; 

        padding: 15px 25px;

        color: #5283A8; 

        cursor: pointer; 

        transition: 0.3s;

        display: flex;

        flex-direction: column; 

        align-items: center;

        justify-content: center;

        text-align: center;

        min-height: 70px;

        flex: 1 1 200px; /* En escritorio son anchos */

        box-shadow: 0 4px 10px rgba(0,0,0,0.05);

    }



    .btn-cat:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(82, 131, 168, 0.2); }



    .btn-top-text {

        font-family: 'Oxygen', sans-serif;

        font-size: 0.8rem;

        font-weight: 700;

        letter-spacing: 1px;

        margin-bottom: 5px;

        opacity: 0.8;

    }



    .btn-main-text {

        font-family: 'Lilita One', cursive;

        font-size: 1.6rem;

        text-transform: uppercase;

        line-height: 1;

    }



    /* Estado Activo */

    #tabPriv:checked ~ .cat-nav label[for="tabPriv"],

    #tabCasa:checked ~ .cat-nav label[for="tabCasa"],

    #tabHost:checked ~ .cat-nav label[for="tabHost"] {

        background: #5283A8;

        color: #fff;

        border-color: #5283A8;

    }



    /* 2. CONTENEDORES DE CATEGORÍA */

    .cat-content { display: none; animation: fadeIn 0.5s ease; }



    #tabPriv:checked ~ #contentPriv,

    #tabCasa:checked ~ #contentCasa,

    #tabHost:checked ~ #contentHost { display: block !important; }



    /* 3. SLIDER / CARRUSEL PERSONALIZADO */

    .slider-wrapper {

        position: relative;

        width: 100%;

        height: 500px; 

        border-radius: 20px;

        overflow: hidden;

        box-shadow: 0 15px 30px rgba(0,0,0,0.15);

        margin-bottom: 40px;

        background: #000;

    }



    .slides-track {

        display: flex;

        width: 100%;

        height: 100%;

        overflow-x: auto;

        scroll-snap-type: x mandatory;

        scroll-behavior: smooth;

        scrollbar-width: none; 

    }

    .slides-track::-webkit-scrollbar { display: none; } 



    .slide {

        flex: 0 0 100%;

        width: 100%;

        height: 100%;

        scroll-snap-align: center;

        position: relative;

    }



    .slide img {

        width: 100%;

        height: 100%;

        object-fit: cover;

    }



    /* TÍTULO SOBRE LA FOTO */

    .slide-caption {

        position: absolute;

        bottom: 0;

        left: 0;

        width: 100%;

        padding: 40px 20px 20px 30px;

        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);

        color: white;

        text-align: left;

    }



    .slide-title {

        font-family: 'Lilita One', cursive;

        font-size: 28px;

        margin: 0;

        text-shadow: 0 2px 4px rgba(0,0,0,0.5);

    }



    /* FLECHAS DE NAVEGACIÓN */

    .slider-btn {

        position: absolute;

        top: 50%;

        transform: translateY(-50%);

        background: rgba(255,255,255,0.2);

        backdrop-filter: blur(5px);

        color: white;

        border: 2px solid white;

        width: 50px;

        height: 50px;

        border-radius: 50%;

        font-size: 24px;

        cursor: pointer;

        z-index: 10;

        display: flex;

        align-items: center;

        justify-content: center;

        transition: 0.3s;

    }

    .slider-btn:hover { background: white; color: #5283A8; }

    .prev-btn { left: 20px; }

    .next-btn { right: 20px; }



    /* 4. BLOQUE DE DESCRIPCIÓN (INFO TÉCNICA) */

    .info-box {

        background: #f9fcff;

        border: 2px solid #e0efff;

        border-radius: 20px;

        padding: 40px;

    }



    .info-header {

        border-bottom: 2px solid #C34670;

        padding-bottom: 15px;

        margin-bottom: 25px;

    }



    .info-title {

        font-family: 'Oxygen', sans-serif;

        font-weight: 800;

        color: #5283A8;

        font-size: 1.8rem;

        margin: 0;

        text-transform: uppercase;

    }



    .amenities-grid {

        display: grid;

        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

        gap: 15px;

        margin-bottom: 30px;

    }



    .amenity-item {

        display: flex;

        align-items: center;

        gap: 10px;

        font-size: 1rem;

        color: #555;

    }

    .amenity-item::before {

        content: '✓';

        font-weight: bold;

        color: #B5D170; /* Verde marca */

        font-size: 1.2rem;

    }



    .distrib-box {

        background: #fff;

        padding: 20px;

        border-radius: 10px;

        border-left: 5px solid #5283A8;

    }



    .distrib-title {

        font-weight: 700;

        color: #C34670;

        margin-bottom: 10px;

        display: block;

        text-transform: uppercase;

        font-size: 0.9rem;

    }



    .total-places {

        margin-top: 20px;

        font-family: 'Lilita One', cursive;

        color: #5283A8;

        font-size: 1.4rem;

        text-align: right;

    }



    /* --- RESPONSIVE OPTIMIZADO PARA MÓVIL --- */

    @media (max-width: 768px) {

        .cat-nav { 

            flex-direction: row; /* Forzamos que estén en fila */

            gap: 8px; /* Menos espacio entre botones */

            margin-bottom: 25px;

        }

        .btn-cat { 

            width: auto; 

            flex: 1; /* Se reparten el ancho equitativamente */

            padding: 8px 4px; /* Relleno compacto */

            min-height: 55px; /* Altura compacta */

            border-radius: 8px;

        }

        .btn-top-text {

            font-size: 9px; /* Texto "Habitaciones" chiquito */

            margin-bottom: 2px;

            letter-spacing: 0;

        }

        .btn-main-text {

            font-size: 13px; /* Texto Categoría legible pero chico */

        }

        

        .slider-wrapper { height: 280px; /* Slider más bajo en móvil */ }

        .slide-title { font-size: 18px; }

        .slide-caption { padding: 20px 15px 15px 15px; }

        

        .info-box { padding: 20px; }

        .info-title { font-size: 1.4rem; }

        .amenities-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

        .amenity-item { font-size: 0.9rem; }

    }



    @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }