
@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:1000;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}
.menu{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:90px;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
    margin-left: 40px;
}

.logo img{
    width:65px;
}

.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%;
}
.usuarioSesion{
display:flex;
align-items:center;
gap:15px;
color:var(--verdeOscuro);
font-weight:bold;
font-size: 20px;
}

.btnSalir i{
background:var(--verde);
color:white;
padding:8px 15px;
border-radius:5px;
text-decoration:none;
}
.btnSalir:hover{
background:var(--verdeClaro);
border-radius:5px;
}
/*---------------Banner----------------*/

.banner{
    width:100%;
    min-height:600px;
    background-image:url("../img/fondo_banner.png");
    background-size:cover;
    background-position:center;
    position:relative;
}

.overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.35);
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
}

.overlay h2{
    color:#fff;
    font-size:52px;
   padding-top:80px;
    margin:30px;
    font-weight:700;
}

button{
    transition:.35s;
    cursor:pointer;
}

button:hover{
    transform:translateY(-3px);
}



/*-----------Regla de diseño responsivo a 1200px----*/
@media(max-width:1200px){
    nav ul{
    gap:25px;
    }
    .logo h1{
    font-size:24px;
    }
    .overlay h2{
    font-size:45px;
    }
}

/*-----------Regla de diseño responsivo a 992px----*/
@media(max-width:992px){
    .menu{
    flex-direction:column;
    height:auto;
    padding:20px 0;
    gap:20px;
    }
    nav ul{
    flex-wrap:wrap;
    justify-content:center;
    }
    .banner{
    height:700px;
    }
    .overlay h2{
    text-align:center;
    font-size:38px;
    }
}

/*-----------Regla de diseño responsivo a 768px----*/
@media(max-width:768px){
    .logo{
    flex-direction:column;
    }
    .logo img{
    width:55px;
    }
    .logo h1{
    font-size:22px;
    }
    nav ul{
    flex-direction:column;
    gap:18px;
    }
    .overlay h2{
    font-size:34px;
    }
    .banner{
    height:760px;
    }
}

/*-----------Regla de diseño responsivo a 576px----*/
  
@media(max-width:576px){
    .overlay{
    padding:20px;
    }
    .overlay h2{
    font-size:28px;
    }
    .banner{
    height:780px;
    }
}


/*-----------Formulario de reservas----*/

.reserva{
    width:90%;
    max-width:1400px;
    margin:20px auto;
    display:grid;
    grid-template-columns:380px 1fr;
    gap:30px;
    align-items:start;
}

.detalle{
    background:#fff;
    padding:40px;
   
    border-radius:20px;
    box-shadow:var(--sombra);
}

.detalle h2{
    color:var(--verde);
    margin-bottom:20px;
    font-size:30px;
}

.detalle hr{
    margin-bottom:25px;
    border:none;
    height:2px;
    background:#ddd;
}

.detalle p{
    margin:18px 0;
    color:#555;
    font-size:17px;
}

.total{
    font-size:22px;
    font-weight:bold;
    color:var(--verde);
}

.total span{
    float:right;
}

.detalle button{
    width:100%;
    height:55px;
    margin-top:30px;
    border:none;
    border-radius:10px;
    background:var(--verde);
    color:#fff;
    font-size:18px;
    cursor:pointer;
    transition:.35s;
}

.detalle button:hover{
    background:var(--verdeOscuro);
}

/*-----------Formulario----*/

.buscador{
    width:90%;
    max-width:1200px;
    background:rgba(255,255,255,.95);
    border-radius:20px;
    padding:35px;
    margin-bottom:50px;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:20px;
    box-shadow:0 15px 35px rgba(0,0,0,.20);
    backdrop-filter:blur(8px);
}

.campo{
    display:flex;
    flex-direction:column;
}

.campo label{
    font-size:14px;
    font-weight:600;
    color:#555;
    margin-bottom:8px;
}

.input{
    height:60px;
    background:#fff;
    border:1px solid #dcdcdc;
    border-radius:12px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 18px;
    transition:.3s;
}

.input:hover{
    border-color:var(--verde);
}

.input:focus-within{
    border:2px solid var(--verde);
    box-shadow:0 0 10px rgba(58,107,53,.20);
}

.input i{
    color:var(--verde);
    font-size:18px;
    width:20px;
    text-align:center;
}

.input input{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    font-size:15px;
    color:#444;
}

.input select{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    font-size:15px;
    color:#444;
    cursor:pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator{
    cursor:pointer;
    opacity:.8;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover{
    opacity:1;
}

.ancho{
    grid-column:span 2;
}

.buscador button{
    height:60px;
    border:none;
    border-radius:12px;
    background:var(--verde);
    color:#fff;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:.35s;
    align-self:end;
}

.buscador button:hover{
    background:var(--verdeOscuro);
    transform:translateY(-3px);
    box-shadow:0 10px 20px rgba(0,0,0,.20);
}

.buscador button:active{
    transform:scale(.98);
}

input::placeholder{
    color:#999;
}

select{
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
}

/*-----------Regla de diseño responsivo a 992px----*/
@media(max-width:992px){
    .buscador{
        grid-template-columns:repeat(2,1fr);
        padding:30px;
    }

    .ancho{
        grid-column:span 2;
    }

    .buscador button{
        grid-column:span 2;
        width:100%;
    }
}
/*-----------Regla de diseño responsivo a 768px----*/

@media(max-width:768px){
    .buscador{
        grid-template-columns:1fr;
        padding:25px;
    }
    .ancho{
        grid-column:span 1;
    }
    .buscador button{
        grid-column:span 1;
    }
}
/*-----------Regla de diseño responsivo a 480px----*/
@media(max-width:480px){
    .buscador{
        width:100%;
        padding:18px;
        border-radius:15px;
        gap:15px;
    }
    .input{
        height:55px;
        padding:0 15px;
    }
    .buscador button{
        height:55px;
        font-size:16px;
    }
}
/*-----------seccion de habitaciones----*/

.habitaciones{
    width:90%;
    max-width:1300px;
    margin:80px auto;
}

.habitaciones h2{
    text-align:center;
    font-size:40px;
    color:var(--verde);
    margin-bottom:50px;
}

/*-----------catalogo----*/
.catalogo{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:30px;
}

.hab{
    width:320px;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
}

.hab img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.contenido{
    padding:20px;
}

.precio{
    font-size:22px;
    font-weight:bold;
    color:var(--verdeClaro);
    margin:15px 0;
}
.hab i{
    font-size:22px;
    font-weight:bold;
    color:var(--verdeClaro);
    margin:15px;
}

.btnReservar{
    width:100%;
    padding:12px;
    border:none;
    background:var(--verde);
    color:#fff;
    cursor:pointer;
    border-radius:5px;
}

.btnReservar:hover{
    background:var(--verdeClaro);
}

.sinResultados{
    text-align:center;
    padding:60px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.sinResultados i{
    font-size:60px;
    color:var(--verde);
    margin-bottom:20px;
}

.sinResultados h3{
    margin-bottom:15px;
}

/*-----------fotter----*/

footer{
    background:#264525;
    color:#fff;
    margin-top:80px;
}

.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;
    }

}

/* estilo para el modal*/

.modal{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.65);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.modal-contenido{
    position: relative;
    z-index: 100000;
    background: #fff;
    width: 700px;
    max-width: 90%;
    border-radius: 10px;
    padding: 25px;
}

.cerrarModal{
float:right;
font-size:35px;
cursor:pointer;
font-weight:bold;
}

.detalleReserva{
display:flex;
gap:25px;
align-items:center;
margin-bottom:20px;
}

.detalleReserva img{
width:260px;
height:180px;
object-fit:cover;
border-radius:10px;
}

.infoReserva{
flex:1;
}

.infoReserva p{
margin:10px 0;
font-size:17px;
}

#valorTotal{
color:#0a8b46;
font-size:32px;
font-weight:bold;
}

.btnConfirmar{
width:100%;
padding:15px;
font-size:18px;
background:#0a8b46;
color:white;
border:none;
border-radius:8px;
cursor:pointer;
margin-top:20px;
}

.btnConfirmar:hover{
background:#066935;
}
.grupo{
display:flex;
flex-direction:column;
margin:15px 0;
}

.grupo input{
padding:10px;
border:1px solid #ccc;
border-radius:6px;
}

.btnConfirmar{
width:100%;
padding:15px;
background:var(--verdeOscuro);
color:white;
border:none;
border-radius:6px;
font-size:17px;
cursor:pointer;
margin-top:20px;
}
.btnConfirmar:hover{
background:var(--verdeClaro);
}