@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #53a7ce;
  --primary-color-dark: #101416;
  --text-dark: #222;
  --text-light: #666;
  --white: #fff;
  --shadow: 0 8px 20px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f7f9fc;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Sección general */
.section__container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  text-align: center;
}

.section__subheader {
  font-size: 1.8rem;
  color: var(--primary-color-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}

.section__header {
  font-size: 2.2rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Botones de filtro */
.filter__controls {
  margin-bottom: 30px;
}

.chip {
  border: none;
  padding: 10px 22px;
  margin: 5px;
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.chip.active,
.chip:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Grid habitaciones */
.room__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
}

/* Tarjeta habitación */
.room__card {
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Imagen / Carrusel */
.room__image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.room__carousel {
  width: 100%;
  aspect-ratio: 16 / 9; /* Mantiene proporción como video HD */
  border-radius: 12px;
  overflow: hidden;
}

/* Imágenes dentro del carrusel */
.swiper-slide img {
  width: 120%;
  height: 100%;
  object-fit: cover; /* rellena el contenedor sin deformarse */
  display: block;
}

.room__image img:hover {
  transform: scale(1.05);
}

/* Contenido */
.room__content {
  padding: 20px;
  text-align: left;
}

.room__content h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--primary-color-dark);
}

.room__content p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Características */
.room__features {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.room__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #444;
}

.room__features li i {
  background: #f0f4ff;
  color: #2d6cdf;
  padding: 8px;
  border-radius: 50%;
  font-size: 0.9rem;
  min-width: 34px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Íconos extra (ej: Wi-Fi, TV, etc.) */
.room__icons {
  font-size: 0.9rem;
  color: var(--primary-color-dark);
  margin-bottom: 15px;
}

.room__icons span {
  margin-right: 12px;
}

/* Botones */
.room__buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.btn {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--primary-color);
  color: var(--white);
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--primary-color-dark);
}

.whatsapp {
  background: #25d366;
}

.whatsapp:hover {
  background: #1da851;
}

/* ================= CARRUSEL ================= */
.carousel {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.carousel img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: none;
}

.carousel img.active {
  display: block;
}

/* Botones del carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 1.2rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}
