/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f7f7f7;
  color: #333;
}

/* CABECERA */
.cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #fff;
  border-bottom: 2px solid #e0e0e0;
}
.logo img {
  height: 60px;
}
.menu-principal ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
.menu-principal a {
  text-decoration: none;
  color: #2e7d32;
  font-weight: bold;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}
.menu-principal a:hover,
.menu-principal a.activo {
  border-color: #2e7d32;
}

/* HERO */
.hero {
  background-image: url('../imagenes/fondo-bienvenida.jpg');
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  color: white;
  text-align: center;
}
.contenido-hero h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}
.contenido-hero p {
  font-size: 1.2rem;
  margin-top: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* SECCIONES */
section {
  padding: 60px 20px;
  text-align: center;
}
.quienes-somos {
  background-color: #ffffff;
}
.quienes-somos h2,
.servicios h2 {
  color: #2e7d32;
  font-size: 2rem;
  margin-bottom: 20px;
}
.quienes-somos p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #444;
}

/* TARJETAS HABITACIONES */
.contenedor-tarjetas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.tarjeta-habitacion {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 330px;
  display: flex;
  flex-direction: column;
}
.tarjeta-habitacion img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.info-habitacion {
  background-color: #f5f5f5;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #444;
}
.texto-habitacion {
  padding: 20px;
  text-align: left;
}
.texto-habitacion h3 {
  font-size: 1.2rem;
  color: #2e7d32;
  margin-bottom: 10px;
}
.texto-habitacion p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}
.btn-reservar {
  display: inline-block;
  padding: 10px 18px;
  background-color: #2e7d32;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
}
.btn-reservar:hover {
  background-color: #1a5d21;
}

/* PIE DE PÁGINA */
.footer-info {
  background: #2e7d32;
  color: white;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 30px 15px;
  text-align: center;
}
.footer-info .info-box {
  flex: 1 1 200px;
  margin: 10px;
}
.footer-info h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.footer-copy {
  width: 100%;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-principal {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .menu-toggle {
    display: block;
    align-self: flex-start;
    font-size: 2rem;
    background: none;
    border: none;
    margin: 10px 0;
  }
  .menu-principal ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    padding: 15px 20px;
    border-top: 1px solid #ccc;
  }
  .menu-principal ul.active {
    display: flex;
  }
  .menu-principal ul li {
    margin: 10px 0;
  }
  .menu-principal a {
    font-size: 1.2rem;
    color: #2e7d32;
  }
  .contenedor-tarjetas {
    flex-direction: column;
    align-items: center;
  }
}

/* BOTÓN WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  width: 55px;
  height: 55px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
.whatsapp-float img {
  width: 30px;
  height: 30px;
}

/* GALERÍA */
.galeria {
  padding: 60px 20px;
  background-color: #f0f8f5;
  text-align: center;
}
.galeria h2 {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 30px;
}
.contenedor-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.contenedor-galeria img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.contenedor-galeria img:hover {
  transform: scale(1.05);
}

.slide {
  position: relative;
  display: none;
}
.slide.active {
  display: block;
}
.slide img {
  width: 100%;
  height: auto;
  display: block;
}
.texto-slide {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background-color: rgba(0,0,0,0.5);
  color: white;
  padding: 10px 20px;
  font-size: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2e7d32;
  cursor: pointer;
  margin-right: 15px;
}

/* MAPA */
.mapa {
  padding: 60px 20px;
  background-color: #f0f8f5;
  text-align: center;
}
.mapa h2 {
  color: #2e7d32;
  margin-bottom: 20px;
}
.mapa-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FORMULARIO VERTICAL */
.formulario-vertical {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  gap: 15px;
  padding: 20px;
}
.formulario-vertical input,
.formulario-vertical select,
.formulario-vertical textarea,
.formulario-vertical button,
.formulario-vertical label {
  width: 100%;
  font-size: 1rem;
}

.contenedor-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.tarjeta-servicio {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tarjeta-servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.tarjeta-servicio img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.contenido-servicio {
  padding: 20px;
}

.contenido-servicio h3 {
  margin-bottom: 10px;
  color: #2e7d32;
  font-size: 1.5rem;
}

.contenido-servicio p {
  color: #555;
  font-size: 1rem;
}

.iconos-redes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.iconos-redes img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: none;
  transition: transform 0.3s ease;
}

.iconos-redes img:hover {
  transform: scale(1.2);
}

/* === FORMULARIO DE RESERVAS === */
.formulario-contacto {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.formulario-contacto label {
  text-align: left;
  font-weight: 600;
  margin-top: 15px;
  color: #2e7d32;
}

.formulario-contacto input,
.formulario-contacto select,
.formulario-contacto textarea {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.formulario-contacto input:focus,
.formulario-contacto select:focus,
.formulario-contacto textarea:focus {
  border: 1px solid #2e7d32;
  outline: none;
}

.formulario-contacto button {
  background-color: #2e7d32;
  color: white;
  font-weight: bold;
  border: none;
  padding: 14px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #1a5e20;
}


/* === MEJORAS DE RESPONSIVIDAD PARA <480px === */
@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }
  .formulario-contacto,
  .formulario-vertical {
    padding: 15px;
  }
  .menu-principal a {
    font-size: 1rem;
  }
  .contenido-hero h1 {
    font-size: 2rem;
  }
}

/* === EFECTO HOVER EN TARJETAS DE HABITACIÓN === */
.tarjeta-habitacion:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* === BOTÓN DE FORMULARIO CON GRADIENTE === */
.formulario-contacto button {
  background: linear-gradient(to right, #2e7d32, #66bb6a);
  color: white;
  font-weight: bold;
  border: none;
  padding: 14px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.formulario-contacto button:hover {
  background: linear-gradient(to right, #1b5e20, #388e3c);
  transform: scale(1.03);
}

/* === INDICADOR DE MENÚ ACTIVO DESTACADO === */
.menu-principal a.activo {
  background-color: #e8f5e9;
  padding: 5px 10px;
  border-radius: 5px;
  border-bottom: 2px solid #2e7d32;
  color: #1b5e20;
}

/* === BOTÓN WHATSAPP CON ANIMACIÓN DE REBOTE === */
@keyframes bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}
.whatsapp-float:hover {
  animation: bounce 0.4s;
}

/* === ESTILO PARA INDICADORES DEL CARRUSEL === */
.carousel-indicadores {
  text-align: center;
  margin-top: 15px;
}
.carousel-indicadores span {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #ccc;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}
.carousel-indicadores span.activo {
  background-color: #2e7d32;
}
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}
.modal .contenido {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.modal .contenido h2 {
  color: #2e7d32;
}
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal .contenido {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}
