/* ==================================================================================
   ARCHIVO CSS ADAPTADO PARA 'Cabaña Romántica'
   Color de acento principal (Terracota/Natural): #b37860
   ================================================================================== */

/* ----------------------------------------------------------------------------------
   NUEVO CARRUSEL PERSONALIZADO
   ---------------------------------------------------------------------------------- */

.custom-carousel {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background-color: #b37860;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Agregando overlay oscuro para mejorar legibilidad del texto */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #b37860;
  z-index: 0;
}

.carousel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.carousel-content h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.carousel-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.carousel-btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: #b37860;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
  background-color: #9a6752;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Controles de navegación */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(179, 120, 96, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.carousel-control:hover {
  background-color: rgba(179, 120, 96, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: #b37860;
  transform: scale(1.3);
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive para el carrusel */
@media (max-width: 768px) {
  .custom-carousel {
    height: 500px;
  }

  .carousel-content h1 {
    font-size: 2.5rem;
  }

  .carousel-content p {
    font-size: 1.2rem;
  }

  .carousel-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-control.prev {
    left: 10px;
  }

  .carousel-control.next {
    right: 10px;
  }
}

@media (max-width: 575px) {
  .custom-carousel {
    height: 400px;
  }

  .carousel-content h1 {
    font-size: 1.8rem;
  }

  .carousel-content p {
    font-size: 1rem;
  }

  .carousel-btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

/* ----------------------------------------------------------------------------------
   SECCIÓN 2: CARACTERÍSTICAS DESTACADAS
   ---------------------------------------------------------------------------------- */
.u-section-2 {
  background-color: #f7f7f7;
}

.u-section-2 .u-sheet-1 {
  min-height: 414px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.u-section-2 .u-text-1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 auto 0;
  color: #b37860;
}

.u-section-2 .u-text-2 {
  line-height: 1.8;
  width: 780px;
  margin: 20px auto 40px;
  color: #333333;
}

.u-section-2 .u-repeater-1 {
  grid-template-columns: repeat(3, 1fr) !important;
  grid-gap: 30px;
}

.u-section-2 .u-list-item {
  border: 1px solid #e0e0e0;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  background-color: white;
  transition: transform 0.3s, box-shadow 0.3s;
}

.u-section-2 .u-list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.u-section-2 .u-icon-1,
.u-section-2 .u-icon-2,
.u-section-2 .u-icon-3 {
  color: #b37860;
  font-size: 5rem;
  margin-bottom: 15px;
}

.u-section-2 .u-text-3,
.u-section-2 .u-text-5,
.u-section-2 .u-text-7 {
  font-weight: 700;
  margin-top: 15px;
  color: #444444;
  font-size: 1.5rem;
}

.u-section-2 .u-text-4,
.u-section-2 .u-text-6,
.u-section-2 .u-text-8 {
  margin-top: 10px;
  color: #666666;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .u-section-2 .u-repeater-1 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .u-section-2 .u-text-2 {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .u-section-2 .u-text-1 {
    font-size: 2.25rem;
  }
  .u-section-2 .u-repeater-1 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .u-section-2 .u-text-2 {
    width: 100%;
    padding: 0 15px;
  }
}

/* ----------------------------------------------------------------------------------
   SECCIÓN 3: RESERVAS / CALL TO ACTION (CTA)
   ---------------------------------------------------------------------------------- */

.u-section-3 {
  background-color: #b37860;
  padding: 60px 0;
}

.u-section-3 .u-sheet-1 {
  padding-top: 50px;
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.u-section-3 .u-text-1 {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  width: 100%;
}

.u-section-3 .u-text-2 {
  color: #f0f0f0;
  font-size: 1.25rem;
  margin: 15px auto 40px;
  text-align: center;
  width: 100%;
}

.u-section-3 .u-repeater-2 {
  grid-template-columns: repeat(1, 1fr) !important;
  max-width: 400px;
  margin: 0 auto;
}

.u-section-3 .u-list-item {
  background-color: transparent !important;
  display: flex;
  justify-content: center;
}

.u-section-3 .u-btn-4,
.u-section-3 .u-btn-5,
.u-section-3 .u-btn-6 {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  width: 100%;
  max-width: 280px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Agregando estilos para el botón de ubicación */
.u-section-3 .u-btn-7 {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  width: 100%;
  max-width: 280px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #b37860 ;
  color: white !important;
}

.u-section-3 .u-btn-4 {
  background-color: #25d366 ;
  color: white !important;
}

.u-section-3 .u-btn-5 {
  background-color: #c5282f ;
  color: white !important;
}

.u-section-3 .u-btn-6 {
  background-color: #b37860 ;
  color: white !important;
}

.u-section-3 .u-btn-4:hover {
  background-color: #1da851 ;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.u-section-3 .u-btn-5:hover {
  background-color: #a02a6d ;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.u-section-3 .u-btn-6:hover {
  background-color: #9a6752 ;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Agregando hover para el botón de ubicación */
.u-section-3 .u-btn-7:hover {
  background-color: #9a6752 ;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .u-section-3 .u-repeater-2 {
    grid-template-columns: repeat(1, 1fr) ;
  }
  .u-section-3 .u-text-1 {
    font-size: 2rem;
  }
  .u-section-3 .u-btn-4,
  .u-section-3 .u-btn-5,
  .u-section-3 .u-btn-6 {
    max-width: 100%;
  }
  /* Agregando responsive para el botón de ubicación */
  .u-section-3 .u-btn-7 {
    max-width: 100%;
  }
}

/* ----------------------------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------------------------- */
.u-footer {
  background-color: #2c2c2c;
}

.u-footer .u-text-1,
.u-footer .u-text-2 {
  color: #aaaaaa !important;
  margin-top: 10px;
  font-size: 0.9rem;
}

.u-footer .u-sheet-1 {
  padding-top: 30px;
  padding-bottom: 30px;
}

.u-footer .u-text-1 {
  font-weight: 500;
}

/* ----------------------------------------------------------------------------------
   BOTÓN "VOLVER ARRIBA"
   ---------------------------------------------------------------------------------- */
.u-back-to-top {
  background-color: #b37860 !important;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.u-back-to-top:hover {
  background-color: #9a6752 !important;
  transform: scale(1.1);
}

/* ----------------------------------------------------------------------------------
   MEJORAS GENERALES
   ---------------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

a {
  transition: color 0.3s ease;
}

.u-text-1,
.u-text-2,
.u-text-3,
.u-text-4,
.u-text-5,
.u-text-6,
.u-text-7,
.u-text-8 {
  font-family: "Roboto", sans-serif;
}

.u-container-style {
  box-sizing: border-box;
}

.u-image {
  max-width: 100%;
  height: auto;
}

.u-btn-1,
.u-btn-4,
.u-btn-5,
.u-btn-6,
.u-list-item,
.u-back-to-top {
  transition: all 0.3s ease;
}

/* ----------------------------------------------------------------------------------
   MODAL DE GALERÍA
   ---------------------------------------------------------------------------------- */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery-modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 2% auto;
  padding: 40px;
  width: 90%;
  max-width: 1200px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.gallery-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #b37860;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.gallery-close:hover,
.gallery-close:focus {
  color: #9a6752;
}

.gallery-title {
  text-align: center;
  color: #b37860;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  font-family: "Montserrat", sans-serif;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(179, 120, 96, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-modal-content {
    padding: 30px;
    width: 95%;
  }

  .gallery-title {
    font-size: 2rem;
  }
}

@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }

  .gallery-modal-content {
    padding: 20px;
    width: 95%;
    margin: 5% auto;
  }

  .gallery-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .gallery-close {
    font-size: 32px;
    top: 10px;
    right: 15px;
  }
}

/* Agregando estilos para el modal de ubicación */
.location-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #b37860;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.location-close:hover,
.location-close:focus {
  color: #9a6752;
}

.location-description {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  padding: 0 20px;
}

.map-container {
  width: 100%;
  margin-top: 20px;
}

@media (max-width: 575px) {
  .location-description {
    font-size: 1rem;
    padding: 0 10px;
  }

  .map-container iframe {
    height: 300px;
  }

  .location-close {
    font-size: 32px;
    top: 10px;
    right: 15px;
  }
}
