/* --- VARIABLES Y RESET --- */
:root {
    --beige: #f2ebe4; --beige-oscuro: #e6ddd5;
    --marron: #724f0e; --terracota: #c76d43; --text: #3e3a37;
    --font-title: 'Playfair Display', serif; --font-body: 'Lato', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 65px; }
body { font-family: var(--font-body); color: var(--text); background: var(--beige); line-height: 1.6; }
a { color: inherit; text-decoration: none; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; border-radius: 4px; }
ul { list-style: none; }
h2 { font-family: var(--font-title); color: #ffe9b9; }
h1, h3, h4 { font-family: var(--font-title); color: var(--marron); }

/* --- UTILIDADES Y COMPARTIDOS --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.bg-alt { background: var(--beige-oscuro); }
section { padding: 70px 0; }
.grid { display: grid; gap: 30px; }
h3 { margin-bottom: 30px; font-size: 2.2rem; text-align: center; }

/* Cajas blancas (Habitaciones, Lugares, Formulario) */
.room, .place-item, form, .activity-item, .about-box { 
    background: white; border-radius: 8px; overflow: hidden; 
    box-shadow: 0 5px 15px rgba(107, 63, 46, 0.1); transition: 0.3s; 
}
.room:hover, .place-item:hover, .activity-item:hover { transform: translateY(-5px); }

/* Botones (CTA y Big Btn) */
.cta, .big-btn { 
    background: var(--terracota); color: white !important; padding: 10px 18px; 
    border-radius: 4px; transition: 0.3s; border: none; font-weight: bold; cursor: pointer; display: inline-block;
}
.cta:hover, .big-btn:hover { background: #a65530; }

/* --- HEADER --- */
header { position: sticky; top: 0; z-index: 100; background: rgba(242, 235, 228, 0.98); border-bottom: 1px solid rgba(107, 63, 46, 0.1); }

.nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 5%; 
}

.brand { display: flex; gap: 12px; align-items: center; }
.brand h1 { font-size: 1.4rem; font-weight: bold; }
nav ul { display: flex; gap: 15px; align-items: center; }
nav a { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
nav a:hover { color: var(--terracota); }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--marron); }

/* --- HERO --- */
.hero {
    min-height: 95vh; display: grid; place-items: center; text-align: center; color: white;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/foto1.jpg') center/cover;
}
.hero h2 { font-size: 3.5rem; line-height: 1.1; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.3rem; margin: 10px 0 30px; opacity: 0.95; font-weight: 300; }

/* --- ALOJAMIENTO & ZONAS COMUNES --- */
.alojamiento-intro { text-align: center; max-width: 800px; margin: 50PX auto 70px; padding: 0 20px; }
.alojamiento-intro h3 { font-size: 2.5rem; margin-bottom: 10px; }
.alojamiento-intro p { margin-bottom: 15px; font-size: 1.1rem; color: #555; }
.highlight { color: var(--terracota); font-style: italic; font-size: 1.3rem; display: block; margin-top: 25px; }

/* NUEVOS ESTILOS para la información de la casa */
.casa-info {
    margin-top: 40px;
    padding: 30px;
    background: var(--beige-oscuro);
    border-radius: 8px;
    text-align: left;
}
.casa-info h4 {
    font-size: 1.5rem;
    color: var(--terracota);
    margin-bottom: 15px;
    text-align: center;
}
.list-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px; /* Espaciado entre elementos de la lista */
}
.list-info li {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}
.list-info li i {
    color: var(--marron);
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Grid de habitaciones y lugares */
.rooms,
.common-areas {
  grid-template-columns: repeat(2, 1fr);
}
.room img, .place-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: pointer; }
.room .meta, .place-info { padding: 12px 15px; text-align: center; }


/* --- CARACTERÍSTICAS & IMPRESCINDIBLES --- */
#caracteristicas { padding-top: 80px; }
.features { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-top: 40px; text-align: center; }
.icon-circle { width: 80px; height: 80px; background: var(--terracota); color: white; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; margin-left: auto; margin-right: auto; }
.quote-box { text-align: center; margin-top: 50px; padding: 30px; border-block: 1px solid #ccc; font-style: italic; font-size: 1.4rem; color: var(--marron); font-family: var(--font-title); }


/* --- ENTORNO GRID --- */

#entorno {padding-top: 30px;}
.entorno-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.entorno-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
  cursor: pointer;
}

.entorno-item:hover {
  transform: translateY(-6px);
}

.entorno-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.entorno-info {
  padding: 20px;
  text-align: center;
}

.entorno-info h4 {
  font-family: var(--font-title);
  color: var(--marron);
  margin-bottom: 5px;
  font-size: 1.4rem;
}

.entorno-info .distance {
  display: inline-block;
  background: var(--terracota);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.entorno-info p {
  color: #555;
  line-height: 1.4;
}


.imprescindibles { margin-top: 50px; background: white; padding: 40px; border-radius: 8px; }
.imprescindibles h4 { font-size: 1.5rem; border-bottom: 2px solid var(--terracota); display: inline-block; margin-bottom: 20px; }
.imprescindibles li { padding-left: 20px; position: relative; margin-bottom: 15px; }
.imprescindibles li::before { content: '•'; color: var(--terracota); font-weight: bold; position: absolute; left: 0; }

.common-areas {
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}


/* --- QUÉ HACER  --- */
#que-hacer { padding-top: 50px;}
.activity-item { height: 250px; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.activity-item img { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: 0.5s; }
.activity-item:hover img { transform: scale(1.1); }
.activity-text { position: relative; z-index: 2; width: 100%; background: rgba(0,0,0,0.6); color: white; text-align: center; padding: 10px; font-weight: bold; }


/* --- CONTACTO & FOOTER --- */
#contacto {padding-top: 40px; }
.contact { grid-template-columns: 1fr 1fr; }
form { padding: 30px; border: 1px solid #eee; }
input, textarea, select { width: 100%; padding: 10px; margin: 5px 0 15px; border: 1px solid #ddd; border-radius: 4px; background: #fafafa; }
label { font-weight: bold; color: var(--marron); font-size: 0.9rem; }
.big-btn { width: 100%; text-align: center; padding: 15px; font-size: 1.1rem; }
.info-col p { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.info-col i { color: var(--terracota); }
.map-container { height: 250px; background: #eee; margin-top: 20px; border-radius: 4px; overflow: hidden; }
.social-icons {
    display: flex; /* Para usar gap */
    justify-content: center; /* Para centrarlos */
    gap: 20px; /* Aumentamos la separación entre los iconos */
    font-size: 1.8rem; /* Aumentamos ligeramente el tamaño del icono (era 1.5rem inline) */
    margin-bottom: 15px; /* Separación con los enlaces del footer */
}

footer { padding: 40px 0; background: #2c2825; color: #dcdcdc; margin-top: 60px; text-align: center; }
.footer-links a { color: #999; margin: 0 10px; }

/* GALERÍA */
#galeria {padding-top: 50px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { overflow: hidden; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); height: 250px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-feature {
    width: 100%;
    max-width: 900px;      /* ajusta el tamaño de tu portada */
    height: 600px;
    margin: 0 auto;        /* centra horizontalmente */
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.gallery-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-feature:hover img {
    transform: scale(1.05);
}


/* --- RESPONSIVE --- */

@media (max-width: 768px) {

  .nav {
    flex-wrap: nowrap;
    padding: 10px 15px;
  }

  .brand h1 {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  nav {
    width: 100%;
  }

  nav ul li a {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .rooms,
  .common-areas {
    grid-template-columns: repeat(1,1fr);
  }
}


@media (max-width: 480px) {
  .entorno-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {

  /* botón hamburguesa visible */
  .mobile-menu-btn {
    display: block;
  }

  /* menú oculto */
  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--beige);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    z-index: 999;
  }

  /* menú visible SOLO cuando tiene .active */
  nav ul.active {
    display: flex;
  }
}

@media (max-width: 768px) {

  .nav {
    position: relative;
  }

  .mobile-menu-btn {
    display: block;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 1.7rem;
    z-index: 1001;
  }

  /* evitamos que el nav empuje el botón */
  nav {
    width: auto;
  }
}

@media (max-width: 768px) {
  nav ul {
    margin-top: 0;
  }
}




/* --- LIGHTBOX --- */
/* Lightbox carrusel */
#lightbox {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.8);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition: 0.3s;
  z-index: 9999;
}

#lightbox.active {
  opacity:1;
  visibility: visible;
}

#lightbox img {
  max-width:90%;
  max-height:80%;
  border-radius:8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#lightbox span {
  position:absolute;
  color:white;
  font-size:2rem;
  cursor:pointer;
  user-select:none;
}

#close-lightbox {
  top:20px;
  right:30px;
}

#prev {
  left:20px;
}

#next {
  right:20px;
}

