/* =========================================================================
                    SECCIÓN HABITACIONES - HOTEL D'CONFORT
============================================================================= */

/* Variables de color (si no las tienes ya en otro CSS) */
:root {
  --primary-green: #2d5016;
  --dark-green: #1f3a10;
  --light-green: #4a7c2c;
  --accent-yellow: #f4c430;
  --gold: #d4af37;
  --white: #ffffff;
  --black: #1a1a1a;
  --gray-light: #f8f8f8;
  --gray-medium: #e0e0e0;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.room__container {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.room__container .section__subheader {
  text-align: center;
  color: var(--accent-yellow);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.room__container .section__subheader::before,
.room__container .section__subheader::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background: var(--accent-yellow);
}

.room__container .section__subheader::before {
  right: calc(100% + 15px);
}

.room__container .section__subheader::after {
  left: calc(100% + 15px);
}

.room__container .section__header {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4rem;
  line-height: 1.3;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== GRID DE HABITACIONES ===== */
.room__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

/* ===== TARJETA DE HABITACIÓN ===== */
.room__card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.room__card:nth-child(1) {
  animation-delay: 0.1s;
}

.room__card:nth-child(2) {
  animation-delay: 0.2s;
}

.room__card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.room__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(45, 80, 22, 0.15);
}

/* ===== CARRUSEL DE IMÁGENES ===== */
.room__card__image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--gray-light);
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Botones del Carrusel */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  transition: all 0.3s ease;
  z-index: 100;
  opacity: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.carousel__btn:active {
  transform: translateY(-50%) scale(0.95);
}

.room__card:hover .carousel__btn,
.room__card__image:hover .carousel__btn {
  opacity: 1;
}

.carousel__btn:hover {
  background: var(--primary-green);
  transform: translateY(-50%) scale(1.1);
}

.carousel__btn:hover svg path {
  stroke: var(--white);
}

.carousel__btn--prev {
  left: 15px;
}

.carousel__btn--next {
  right: 15px;
}

.carousel__btn svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.carousel__btn svg path {
  stroke: var(--primary-green);
  transition: stroke 0.3s ease;
}

/* Indicadores del Carrusel */
.carousel__indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer !important;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel__indicator.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

.carousel__indicator:hover {
  background: var(--white);
}

/* ===== DETALLES DE LA HABITACIÓN ===== */
.room__card__details {
  padding: 2rem;
}

.room__card__details h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.room__card__details h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-yellow);
  border-radius: 2px;
}

.room__card__details p {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  min-height: 80px;
}

.room__card__details h5 {
  font-size: 1rem;
  color: #777;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.room__card__details h5 span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-left: 0.5rem;
}

/* ===== BOTÓN DE WHATSAPP ===== */
.room__card__details .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(45, 80, 22, 0.25);
  position: relative;
  overflow: hidden;
}

.room__card__details .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.room__card__details .btn:hover::before {
  width: 300px;
  height: 300px;
}

.room__card__details .btn:hover {
  background: var(--dark-green);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(45, 80, 22, 0.35);
}

.room__card__details .btn i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.room__card__details .btn:hover i {
  transform: scale(1.2);
}

/* ===== EFECTOS DE CARGA ===== */
.room__card__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
  z-index: 5;
}

.room__card:hover .room__card__image::before {
  left: 100%;
}

/* Estilos para el botón Ver Más Habitaciones */
.room__more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.btn--view-more {
    background-color: var(--primary-color, #2d5f3f);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn--view-more:hover {
    background-color: var(--primary-color-dark, #234a32);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn--view-more:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .room__more-container {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .btn--view-more {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .room__container .section__header {
    font-size: 2.4rem;
  }
  
  .room__grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .room__container {
    padding: 4rem 1.5rem;
  }
  
  .room__container .section__header {
    font-size: 2rem;
    margin-bottom: 3rem;
  }
  
  .room__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .room__card__image {
    height: 250px;
  }
  
  .room__card__details p {
    min-height: auto;
  }
  
  /* Mostrar siempre los botones en móviles */
  .carousel__btn {
    opacity: 0.9 !important;
    width: 40px;
    height: 40px;
  }
  
  .carousel__btn--prev {
    left: 10px;
  }
  
  .carousel__btn--next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .room__container .section__header {
    font-size: 1.8rem;
  }
  
  .room__container .section__subheader::before,
  .room__container .section__subheader::after {
    width: 40px;
  }
  
  .room__card__details {
    padding: 1.5rem;
  }
  
  .room__card__details h4 {
    font-size: 1.3rem;
  }
  
  .room__card__details h5 span {
    font-size: 1.7rem;
  }
  
  .room__card__details .btn {
    width: 100%;
    justify-content: center;
  }
}