/* ===== RESET ===== */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}

/* ===== SECCIÓN HABITACIONES ===== */
.habitaciones {
  padding: 40px 15px;
  background-color: #fff;
}

.contenedor-habitaciones h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #333;
}

/* ===== GRID ===== */
.grid-habitaciones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Tablets */
@media (min-width: 600px) {
  .grid-habitaciones {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Escritorio */
@media (min-width: 900px) {
  .grid-habitaciones {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== TARJETA HABITACIÓN ===== */
.habitacion {
  background: #fff;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.habitacion:hover {
  transform: translateY(-5px);
}

.habitacion h3 {
  font-size: 1.2em;
  margin-top: 12px;
  color: #1e90ff;
}

.habitacion p {
  margin: 10px 0 15px;
  color: #555;
  font-size: 0.95em;
}

/* ===== GALERÍA ===== */
.galeria {
  position: relative;
  width: 100%;
  height: 250px; /* ajustable según diseño */
  overflow: hidden;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .galeria {
    height: 300px;
  }
}

@media (min-width: 1024px) {
  .galeria {
    height: 350px;
  }
}

.galeria img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 4s ease-in-out;
  pointer-events: none; /* No bloquea clics si no está activa */
}

.galeria img.active {
  opacity: 1;
  pointer-events: auto; /* Activa clic solo en la imagen visible */
}


/* ===== LISTAS ===== */
.caracteristicas,
.servicios {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  text-align: left;
}

.caracteristicas li,
.servicios li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  margin-bottom: 6px;
  color: #444;
}

.caracteristicas i,
.servicios i {
  color: #1e90ff;
}

/* ===== BOTONES ===== */
.botones-habitacion {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-wsp,
.btn-precio {
  padding: 8px 14px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

.btn-wsp {
  background-color: #25D366;
}

.btn-wsp:hover {
  transform: scale(1.05);
  background-color: #1ebe5b;
}

.btn-precio {
  background-color: #ff9800;
}


/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-contenido {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

.cerrar {
  position: absolute;
  top: 15px;
  right: 30px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.cerrar:hover {
  color: #bbb;
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Mantener proporción 16:9 */
  overflow: hidden;
  border-radius: 12px;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.comentarios-video {
  margin-top: 15px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

.comentario-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #444;
}

.comentario-item i {
  font-size: 1.2rem;
  color: #666;
  margin-right: 8px;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  .comentario-item {
    font-size: 0.85rem;
  }
  .comentario-item i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .video-container {
    padding-top: 60%; /* un poco más alto en móvil */
  }
  .comentario-item {
    font-size: 0.8rem;
  }
  .comentario-item i {
    font-size: 0.9rem;
  }
}
