@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
    scroll-behavior:smooth;
}

body{
    background:#ffffff;
    color:#222;
}

/* NAVBAR */

header{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    z-index:1000;
    background:rgba(0,0,0,0.6);
    backdrop-filter:blur(10px);
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
}

.logo{
    color:white;
    font-size:28px;
    font-weight:700;
    letter-spacing:2px;
}

.menu{
    display:flex;
    list-style:none;
}

.menu li{
    margin-left:30px;
}

.menu li a{
    text-decoration:none;
    color:white;
    font-size:16px;
    transition:0.3s;
}

.menu li a:hover{
    color:#00c2a8;
}

/* SLIDER */

.slider{
    width:100%;
    height:100vh;
    overflow:hidden;
    position:relative;
}

.slides{
    width:400%;
    height:100%;
    display:flex;
    animation:slide 16s infinite;
}

.slides img{
    width:25%;
    height:100vh;
    object-fit:cover;
}
.logo{
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}

.logo img{
    width: 40px;
    height: 40px;
}
.foto-modal{
width:100%;
height:350px;
object-fit:cover;
border-radius:15px;
margin-bottom:20px;
}

.destacados{
display:flex;
justify-content:center;
gap:15px;
flex-wrap:wrap;
margin-bottom:25px;
}

.destacados span{
background:#00b894;
padding:10px 15px;
border-radius:30px;
font-weight:bold;
}

.info-modal{
text-align:left;
}

.info-modal h3{
color:#00866c;
margin-top:20px;
margin-bottom:10px;
}

.info-modal ul{
padding-left:25px;
}

.info-modal li{
margin-bottom:8px;
font-size:18px;
}

.modal-contenido{
max-height:85vh;
overflow-y:auto;
}
@keyframes slide{

    0%{
        margin-left:0;
    }

    20%{
        margin-left:0;
    }

    25%{
        margin-left:-100%;
    }

    45%{
        margin-left:-100%;
    }

    50%{
        margin-left:-200%;
    }

    70%{
        margin-left:-200%;
    }

    75%{
        margin-left:-300%;
    }

    95%{
        margin-left:-300%;
    }

    100%{
        margin-left:0;
    }

}

/* HERO */

.hero{
    width:100%;
    height:100vh;
    background:url(https://www.casaborka.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fgallery-14.1c462ddd.webp&w=3840&q=75);
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
}

.overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
}

.contenido-hero{
    position:relative;
    text-align:center;
    color:whitesmoke;
    z-index:10;
    padding:20px;
}

.contenido-hero h1{
    font-size:70px;
    margin-bottom:20px;
}

.contenido-hero p{
    font-size:22px;
    max-width:700px;
    margin:auto;
    margin-bottom:30px;
}

.btn{
    display:inline-block;
    padding:15px 35px;
    background:#00c2a8;
    color:white;
    text-decoration:none;
    border-radius:50px;
    transition:0.3s;
    font-weight:600;
}

.btn:hover{
    transform:scale(1.05);
    background:#009e8a;
}

/* SECCIONES */

section{
    padding:100px 8%;
}

section h2{
    font-size:42px;
    margin-bottom:50px;
    text-align:center;
}

/* NOSOTROS */

.contenedor-nosotros{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:50px;
    align-items:center;
}

.texto-nosotros span{
    color:#00c2a8;
    font-weight:600;
}

.texto-nosotros h2{
    text-align:left;
    margin:15px 0;
}

.texto-nosotros p{
    line-height:1.8;
    margin-bottom:20px;
}

.imagen-nosotros img{
    width:100%;
    border-radius:20px;
    box-shadow:0 10px 20px rgba(0,0,0,0.2);
}

/* CARDS */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:35px;
}

.card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
    transition:0.4s;
}

.card:hover{
    transform:translateY(-10px);
}

.card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.contenido-card{
    padding:25px;
}

.contenido-card h3{
    margin-bottom:15px;
}

.contenido-card p{
    margin-bottom:20px;
    line-height:1.7;
}

.btn-card{
    text-decoration:none;
    color:#00c2a8;
    font-weight:600;
}

/* SERVICIOS */

.servicios{
    background:#111;
    color:white;
}

.servicios h2{
    color:white;
}

.contenedor-servicios{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.servicio{
    background:#1e1e1e;
    padding:40px;
    text-align:center;
    border-radius:20px;
    transition:0.3s;
}

.servicio:hover{
    transform:translateY(-10px);
}

.servicio i{
    font-size:50px;
    margin-bottom:20px;
    color:#00c2a8;
}

/* GALERIA */

.imagenes-galeria{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.imagenes-galeria img{
    width:100%;
    height:300px;
    object-fit:cover;
    border-radius:20px;
    transition:0.4s;
}

.imagenes-galeria img:hover{
    transform:scale(1.05);
}

/* CONTACTO */

.contacto{
    background:#f0f0f0;
}

.contenedor-contacto{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:50px;
}

.info-contacto h2{
    text-align:left;
}

.info-contacto p{
    margin-bottom:20px;
    font-size:18px;
}

form{
    display:flex;
    flex-direction:column;
}

form input,
form textarea{
    margin-bottom:20px;
    padding:15px;
    border:none;
    border-radius:10px;
    font-size:16px;
}

form textarea{
    resize:none;
    height:150px;
}

form button{
    padding:15px;
    border:none;
    background:#00c2a8;
    color:white;
    font-size:16px;
    border-radius:50px;
    cursor:pointer;
    transition:0.3s;
}

form button:hover{
    background:#009e8a;
}

form button:disabled{
    opacity:0.6;
    cursor:not-allowed;
}

#form-respuesta{
    margin-top:12px;
    font-size:15px;
    text-align:center;
    border-radius:8px;
    padding:0;
    min-height:1em;
}

#form-respuesta.form-ok{
    color:#00c2a8;
}

#form-respuesta.form-error{
    color:#e05252;
}

/* FOOTER */

footer{
    background:#111;
    color:white;
    text-align:center;
    padding:30px;
}

/* RESPONSIVE */

/* HABITACIONES - CONTENEDOR */

.contenedor-habitaciones{
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    padding: 50px;
}

/* TARJETAS DE HABITACIONES */

.card{
    width: 350px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.card:hover{
    transform: translateY(-10px);
}

.card img{
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.contenido{
    padding: 25px;
}

.contenido h2{
    margin-bottom: 15px;
    font-size: 30px;
}

.contenido p{
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* BOTON VER MAS */

.btn-ver{
    background: #00b894;
    color: black;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 17px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-ver:hover{
    background: #019875;
    transform: scale(1.05);
}

/* MODAL */

.modal{
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

/* CONTENIDO MODAL */

.modal-contenido{
    background: white;
    width: 60%;
    margin: 8% auto;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    animation: aparecer 0.4s ease;
}

.modal-contenido h2{
    font-size: 40px;
    margin-bottom: 20px;
}

.modal-contenido p{
    font-size: 20px;
    line-height: 1.8;
}

/* BOTON CERRAR */

.cerrar{
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 40px;
    cursor: pointer;
}

/* ANIMACION MODAL */

@keyframes aparecer{

    from{
        opacity: 0;
        transform: translateY(-50px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }

}

/* RESPONSIVE */

@media(max-width:900px){

    .navbar{
        flex-direction:column;
    }

    .menu{
        margin-top:20px;
        flex-wrap:wrap;
        justify-content:center;
    }

    .menu li{
        margin:10px;
    }

    .contenido-hero h1{
        font-size:45px;
    }

    .contenido-hero p{
        font-size:18px;
    }

}
