
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    text-decoration:none;
    list-style:none;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f5f5;
    color:#333;
    overflow-x:hidden;

}

img{
    width:100%;
    display:block;
}

button,
input,
select{
    font-family:'Poppins',sans-serif;
}

/*---------------Definicion de variables----------------*/

:root{
    --verde:#3A6B35;
    --verdeOscuro:#254b21;
    --verdeClaro:#5c8b56;
    --crema:#F5F3EE;
    --gris:#7b7b7b;
    --negro:#222;
    --blanco:#ffffff;
    --sombra:0 10px 30px rgba(0,0,0,.15);
    --radio:18px;
    --transicion:.35s;
}

/*---------------Header----------------*/

header{
    width:100%;
    background:#fff;
    position:fixed;
    top:0;
    left:0;
    z-index:999;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}
.menu{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:90px;
}

/*---Logo-----*/

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img{
    width:65px;
    margin-left: 40px;
}

.logo h1{
    font-size:28px;
    color:var(--verde);
    font-weight:700;
}
/*------------Menu-----------*/

nav ul{
    display:flex;
    gap:40px;
    margin-right: 40px;
}
nav ul li a{
    color:#333;
    font-size:17px;
    font-weight:500;
    transition:.3s;
    position:relative;
}

nav ul li a:hover{
    color:var(--verde);
}

nav ul li a::after{
    content:"";
    width:0;
    height:3px;
    background:var(--verde);
    position:absolute;
    bottom:-8px;
    left:0;
    transition:.3s;
}
nav ul li a:hover::after{
    width:100%;
}
.habitaciones{
    padding: 30px;
    background-image:url("../img/fondo_banner.png");
    background-size:cover;
}
.habitaciones h1{
    text-align:center;
    font-size:40px;
    color:var(--verde);
    padding: 80px;
}


.habitaciones h2{
    text-align:center;
    font-size:40px;
    color:var(--verde);
    margin-bottom:50px;
}

.catalogo{
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 35px;
    justify-content: center;
}

@media (max-width: 992px){
    .catalogo{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px){
    .catalogo{
        grid-template-columns: 1fr;
    }
}

.hab{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--sombra);
    transition:.4s;
}

.hab:hover{
    transform:translateY(-12px);
    box-shadow:0 20px 45px rgba(0,0,0,.18);
}

.hab img{
    width:100%;
    height:240px;
    object-fit:cover;
    transition:.5s;
}

.hab:hover img{
    transform:scale(1.08);
}

.hab .contenido{
    padding:25px;
}
.hab h3{
    color:var(--verde);
    font-size:26px;
    margin-bottom:10px;
}
.hab p{
    color:#666;
    margin-bottom:20px;
    line-height:1.6;
    font-style:justify;
}

.precio{
    font-size:18px;
    margin-bottom:25px;
}

.precio span{
    color:var(--verde);
    font-size:30px;
    font-weight:bold;
}

.hab button{
    width:100%;
    height:50px;
    border:none;
    background:var(--verde);
    color:#fff;
    border-radius:10px;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:.35s;
}

.hab button:hover{
    background:var(--verdeOscuro);
}


@media(max-width:992px){
    .habitaciones h2{
        font-size:34px;
    }
}

@media(max-width:576px){
    .habitaciones{
        width:95%;
    }

    .hab h3{
        font-size:22px;
    }

    .precio span{
        font-size:24px;
    }

}


/*----Acciones del boton ver habitacion para que muestre el video en una ventana emergente*/
.modal{
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.8);
    z-index:9999;
}

.contenidoModal{
    width:70%;
    max-width:900px;
    margin:60px auto;
    background:#fff;
    border-radius:10px;
    padding:20px;
    position:relative;
}

.cerrar{
    position:absolute;
    right:20px;
    top:10px;
    font-size:35px;
    cursor:pointer;
    font-weight:bold;
}

iframe{
    border-radius:10px;
}

/*-----------fotter----*/

footer{
    background:#264525;
    color:#fff;
    
}

.footer{
    width:90%;
    max-width:1300px;
    margin:auto;
    padding:60px 0;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:40px;
}

.footer h3{
    font-size:30px;
    margin-bottom:15px;
}

.footer h4{
    margin-bottom:15px;
}

.footer p{
    color:#ddd;
    line-height:1.8;
}

.redes{
    display:flex;
    gap:15px;
    margin-top:20px;
}

.redes i{
    width:45px;
    height:45px;
    border-radius:50%;
    background:#fff;
    color:var(--verde);
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:20px;
    transition:.35s;
    cursor:pointer;
}

.redes i:hover{
    background:var(--verdeClaro);
    color:#fff;
}

.copyright{
    text-align:center;
    padding:20px;
    border-top:1px solid rgba(255,255,255,.2);
    font-size:14px;
}

/*-----------Regla de diseño responsivo a 992px----*/

@media(max-width:992px){
    .reserva{
        grid-template-columns:1fr;
    }
    .imagen img{
        height:380px;
    }
}
/*-----------Regla de diseño responsivo a 768px----*/
@media(max-width:768px){
    .detalle{
        padding:30px;
    }

    .servicios h2{
        font-size:30px;
    }
}
/*-----------Regla de diseño responsivo a 576px----*/
@media(max-width:576px){

    .detalle{
        padding:20px;
    }

    .detalle h2{
        font-size:26px;
    }

    .servicios{
        padding:60px 0;
    }

    .footer{
        text-align:center;
    }

    .redes{
        justify-content:center;
    }

}