/* =========================
   RESET
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:"Montserrat",sans-serif;
  background:#f8f6f2;
  color:#333;
  overflow-x:hidden;
}

img{
  width:100%;
  display:block;
}

a{
  text-decoration:none;
}

ul{
  list-style:none;
}

section{
  padding:100px 8%;
}

/* =========================
   TITULOS GENERALES
========================= */

.section-title{
  text-align:center;
  margin-bottom:60px;
}

.section-title span{
  display:block;
  color:#6f8d76;
  letter-spacing:3px;
  font-size:.9rem;
  margin-bottom:10px;
}

.section-title h2{
  font-family:"Playfair Display",serif;
  font-size:3rem;
  color:#1f2d23;
}

/* =========================
   HEADER
========================= */

.header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  padding:15px 8%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:rgba(15,15,15,.35);
  backdrop-filter:blur(10px);
  transition:all .3s ease;
  z-index:1000;
}

.header.scrolled{
  padding:10px 8%;
  background:rgba(15,15,15,.9);
}

.logo,
.nav-links a{
  text-shadow:0 2px 10px rgba(0,0,0,.7);
}

.logo{
  font-family:"Playfair Display",serif;
  font-size:1.7rem;
  color:white;
}

.nav-links{
  display:flex;
  gap:25px;
}

.nav-links a{
  color:white;
  font-weight:500;
  position:relative;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:0;
  height:2px;
  background:white;
  transition:.3s;
}

.nav-links a:hover::after{
  width:100%;
}

.menu-btn{
  display:none;
  color:white;
  font-size:2rem;
  cursor:pointer;
}

/* =========================
   HERO
========================= */

.hero{
  height:100vh;
  background:url("imagenes/fondo.jpg") center center/cover no-repeat;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    rgba(0,0,0,.25),
    rgba(0,0,0,.60)
  );
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:850px;
  color:white;
}

.hero-content h1{
  font-family:"Playfair Display",serif;

  font-size:clamp(2.3rem,8vw,5.5rem);

  line-height:1.05;

  margin-bottom:20px;

  text-shadow:
    0 4px 15px rgba(0,0,0,.4),
    0 8px 30px rgba(0,0,0,.3);
}

.hero-content p{
  font-size:1.2rem;
  line-height:1.7;
  margin-bottom:35px;

  opacity:0;
  animation:fadeSubtitle 1s ease forwards;
  animation-delay:.8s;
}

.hero-btn{
  display:inline-block;
  padding:16px 40px;
  border-radius:50px;
  background:#6f8d76;
  color:white;
  font-weight:600;
  transition:.3s;
}

.hero-btn:hover{
  transform:translateY(-3px);
  background:#5d7864;
}

@keyframes fadeSubtitle{

  from{
    opacity:0;
    transform:translateY(20px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }

}

/* =========================
   ABOUT
========================= */

.about{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:center;
}

.about-image img{
  border-radius:20px;
  object-fit:cover;
}

.about-content span{
  color:#6f8d76;
  letter-spacing:3px;
  font-size:.9rem;
}

.about-content h2{
  font-family:"Playfair Display",serif;
  font-size:3rem;
  margin:15px 0 25px;
  color:#1f2d23;
}

.about-content p{
  line-height:1.9;
  margin-bottom:18px;
}

/* =========================
   CABAÑAS
========================= */

.cabins{
  background:white;
}

.cabins-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(350px,500px));
  justify-content:center;
  gap:40px;
}

.cabin-card{
  background:white;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 15px 40px rgba(0,0,0,.08);
  transition:.3s;
}

.cabin-card:hover{
  transform:translateY(-8px);
}

.cabin-card img{
  height:260px;
  object-fit:cover;
}

.cabin-card h3{
  padding:25px 25px 10px;
  font-size:1.3rem;
}

.cabin-card p{
  padding:0 25px 25px;
  line-height:1.7;
}

.cabin-modal{
  position:fixed;
  inset:0;

  background:rgba(0,0,0,.75);

  display:none;
  justify-content:center;
  align-items:center;

  z-index:9999;

  padding:40px;
}

.cabin-modal.active{
  display:flex;
}

.modal-content{
  background:white;

  width:90%;
  max-width:1200px;

  border-radius:20px;

  display:grid;
  grid-template-columns:1fr 450px;

  overflow:hidden;

  position:relative;
}

.close-modal{
  position:absolute;

  top:20px;
  right:25px;

  font-size:2rem;
  cursor:pointer;

  z-index:2;
}

.modal-gallery{
  display:flex;
  flex-direction:column;
  gap:15px;
  padding:20px;
}

.main-image{
  width:100%;
  height:450px;

  object-fit:cover;

  border-radius:15px;

  display:block;
}

.modal-info{
  padding:50px 40px;

  display:flex;
  flex-direction:column;
  justify-content:center;
}

.modal-info h2{
  font-family:"Playfair Display",serif;
  font-size:2.5rem;
  margin-bottom:20px;
}

.modal-info p{
  line-height:1.8;
  margin-bottom:25px;
}

.modal-info ul{
  margin-bottom:30px;
}

.modal-info li{
  margin-bottom:12px;
}

.modal-btn{
  align-self:flex-start;

  background:#6f8d76;
  color:white;

  padding:15px 30px;

  border-radius:50px;
}

.main-image:hover{
  transform:scale(1.02);
}

.thumbs-container{
  display:flex;
  align-items:center;
  gap:15px;
}

.thumbnails{
  display:flex;
  gap:10px;

  overflow-x:auto;
  scroll-behavior:smooth;

  flex:1;

  scrollbar-width:none;
}

.thumbnails::-webkit-scrollbar{
  display:none;
}

.thumb{
  width:80px;
  height:80px;

  min-width:80px;

  object-fit:cover;

  border-radius:10px;

  cursor:pointer;

  opacity:.7;

  transition:.3s;

  display:block;
}

.thumb:hover{
  opacity:1;
}

.thumb.active{
  opacity:1;
  border:3px solid #6f8d76;
}

.thumb-btn{
  border:none;

  width:40px;
  height:40px;

  border-radius:50%;

  cursor:pointer;

  font-size:1.2rem;

  background:#6f8d76;
  color:white;

  flex-shrink:0;
}

/* =========================
   GALERIA
========================= */

.gallery{
  background:#f8f6f2;
}

.gallery-grid{
  columns:3;
  column-gap:20px;
}

.gallery-grid img{
  margin-bottom:20px;
  border-radius:20px;
  transition:.3s;
}

.gallery-grid img:hover{
  transform:scale(1.02);
}

/* =========================
   UBICACION
========================= */

.location-content{
  display:grid;
  grid-template-columns:450px 1fr;
  gap:60px;
  align-items:center;
}

.location-text span{
  color:#6f8d76;
  letter-spacing:3px;
  font-size:.9rem;
}

.location-text h2{
  font-family:"Playfair Display",serif;
  font-size:3rem;
  margin:15px 0 20px;
}

.location-text p{
  line-height:1.8;
}

.location-map iframe{
  width:100%;
  height:450px;
  border:none;
  border-radius:20px;
  box-shadow:0 15px 35px rgba(0,0,0,.1);
}

/* =========================
   CONTACTO
========================= */

.contact{
  background:#1f2d23;
  color:white;
  text-align:center;
}

.contact .section-title h2{
  color:white;
}

.contact-buttons{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
}

.contact-buttons a{
  background:#6f8d76;
  color:white;
  padding:15px 35px;
  border-radius:50px;
  transition:.3s;
  font-weight:600;
}

.contact-buttons a:hover{
  transform:translateY(-3px);
  background:#7d9c84;
}

/* =========================
   FOOTER
========================= */

footer{
  background:#162018;
  color:white;
  text-align:center;
  padding:25px;
  font-size:.95rem;
}

/* =========================
   ANIMACIONES
========================= */

@keyframes fadeUp{

  from{
    opacity:0;
    transform:translateY(40px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }

}

.hero-content{
  animation:fadeUp 1s ease;
}