/* ============================================= */
/* FONTS & GLOBAL VARIABLES - MODERN & WARM      */
/* ============================================= */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Montserrat:wght@400;500;700&display=swap");

:root {
  --color-primary: #2fafc5;
  --color-background: #cee6f0;
  --color-surface: #ffffff;
  --color-text-primary: #6d6875;
  --color-text-secondary: #6298b7;
  --color-border: #e0e0e0;

  --font-heading: "Roboto", sans-serif;
  --font-body: "Montserrat", sans-serif;

  --shadow: 0 15px 35px rgba(109, 104, 117, 0.1);
  --border-radius: 12px;
}

/* ============================================= */
/* BASE & GLOBAL STYLES                          */
/* ============================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.8;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-size: 16px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-primary);
}
p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}
section {
  padding: 100px 0;
  scroll-margin-top: 90px;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}
section > .container > p {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4rem;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(181, 131, 141, 0.2);
}
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-text-primary);
}
.btn-secondary:hover {
  background-color: #fff;
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

/* ============================================= */
/* HEADER & NAVIGATION                           */
/* ============================================= */
header {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}
.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text-primary);
}

.nav-brand:hover {
  color: var(--color-primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}
nav a {
  color: var(--color-text-primary);
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 1rem;
  position: relative;
  padding-bottom: 5px;
}
nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}
nav a:hover::after {
  width: 100%;
}

.nav-btn {
  padding: 10px 25px;
  border-radius: 50px;
}

/* ============================================= */
/* HERO SECTION                                  */
/* ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image: url("images/26-1.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(33, 41, 44, 0.822), transparent 50%);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}
.hero h1 {
  font-size: 6.5rem;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 auto 2.5rem auto;
  font-family: var(--font-body);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ============================================= */
/* ABOUT SECTION                                 */
/* ============================================= */
#about {
  scroll-margin-top: 90px;
  background-color: var(--color-surface);
}
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .section-title,
.about-text p {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* ============================================= */
/* AMENITIES SECTION                             */
/* ============================================= */
#amenities {
  scroll-margin-top: 90px;
}
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

#amenities .section-title {
  color: #ffffff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

.amenity-item {
  background: var(--color-surface);
  padding: 30px;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  border: 0px solid var(--color-border);
}
.amenity-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--color-primary);
}
.amenity-item i {
  color: var(--color-primary);
  font-size: 1.8rem;
}

/* ============================================= */
/* GALLERY SLIDER SECTION                        */
/* ============================================= */
#gallery {
  scroll-margin-top: 90px;
  background-color: var(--color-surface);
}
.swiper {
  width: 100%;
  height: 75vh;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.swiper-slide {
  background: var(--color-surface);
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary) !important;
}
.swiper-pagination-bullet-active {
  background: var(--color-primary) !important;
}

/* ============================================= */
/* LOCATION SECTION                              */
/* ============================================= */
#location {
  scroll-margin-top: 90px;
}
.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

#location .section-title {
  color: #ffffff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

/* ============================================= */
/* RESERVATION SECTION (REDESIGNED)              */
/* ============================================= */
.reservation-section {
  background-color: var(--color-surface);
  text-align: center;
  padding: 100px 0;
}

/* El input donde se activa el calendario */
#date-picker {
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 20px;
  border-radius: var(--border-radius);
  border: 2px solid var(--color-border);
  box-shadow: none; /* Quitamos la sombra para un look más plano */
  text-align: center;
  cursor: pointer;
  width: 100%;
  max-width: 450px;
  margin: 1rem auto;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

#date-picker:hover {
  border-color: var(--color-primary); /* Resalta el borde al pasar el ratón */
}

/* Contenedor del resumen de la reserva */
#booking-summary {
  margin-top: 1.5rem;
  padding: 0; /* Quitamos el padding para un diseño más limpio */
  background-color: transparent; /* Fondo transparente */
  border-radius: 0;
  border: none; /* Sin bordes */
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.booking-summary-hidden {
  display: none;
}

/* Detalles del precio */
.summary-details {
  padding: 20px 0;
  font-size: 1rem;
}

.summary-details p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

#price-calculation {
  color: var(--color-text-secondary);
}

#total-price {
  font-weight: 700;
  font-size: 1.2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}

/* Botón de reserva */
#booking-summary .btn {
  width: 100%; /* El botón ocupa todo el ancho */
  padding: 18px; /* Botón más grande */
  font-size: 1rem;
}

/* ============================================= */
/* FOOTER                                        */
/* ============================================= */
footer {
  padding: 50px 0;
  background-color: #6d6875;
  text-align: center;
}
footer p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
/* ESTILOS PERSONALIZADOS PARA FLATPICKR CALENDAR */
/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */

/* Contenedor principal del calendario */
.flatpickr-calendar {
  font-family: var(--font-body) !important;
  background: var(--color-surface) !important;
  border-radius: var(--border-radius) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow) !important;
  width: 320px !important;
}

/* Mes y año */
.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-family: var(--font-heading) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--color-text-primary) !important;
}
.numInputWrapper .numInput.cur-year {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  color: var(--color-text-primary) !important;
}

/* Flechas de navegación */
.flatpickr-arrowUp,
.flatpickr-arrowDown {
  display: none !important; /* Ocultamos las flechas de número del año que no usamos */
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: var(--color-primary) !important; /* Color de las flechas */
  width: 16px !important;
  height: 16px !important;
}
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: var(--color-background) !important;
}

/* Días de la semana (Mon, Tue, etc.) */
.flatpickr-weekday {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  color: var(--color-text-secondary) !important;
  font-size: 0.8rem !important;
  text-transform: uppercase;
}

/* Estilo de cada día (número) */
.flatpickr-day {
  color: var(--color-text-primary) !important;
  border: none !important;
  font-weight: 500 !important;
  transition: all 0.2s ease;
}
.flatpickr-day:hover {
  background: var(--color-background) !important;
}

/* Días deshabilitados (pasados y ya reservados) */
.flatpickr-day.flatpickr-disabled {
  color: #ccc !important;
  text-decoration: line-through;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(0, 0, 0, 0.02) 4px,
    rgba(0, 0, 0, 0.02) 8px
  ) !important;
}

/* Día de hoy */
.flatpickr-day.today {
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
  font-weight: 700 !important;
}
.flatpickr-day.today:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
}

/* Días seleccionados (check-in y check-out) */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}

/* Rango entre las fechas seleccionadas */
.flatpickr-day.inRange {
  background: rgba(
    52,
    152,
    219,
    0.1
  ) !important; /* Usamos el color primario con baja opacidad */
  box-shadow: -5px 0 0 rgba(52, 152, 219, 0.1), 5px 0 0 rgba(52, 152, 219, 0.1) !important;
  border-color: transparent !important;
}

/* ============================================= */
/*               MEDIA QUERIES (RESPONSIVE)      */
/* ============================================= */

/* --------------------------------------------- */
/* TABLETS Y DISPOSITIVOS MEDIANOS (~992px)      */
/* --------------------------------------------- */
@media (max-width: 992px) {
  body {
    font-size: 16px;
  }
  section {
    padding: 80px 0;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image {
    grid-row: 1;
  }
  .about-text .section-title,
  .about-text p {
    text-align: center;
  }
  .swiper {
    height: 60vh;
  }
  .contact-info {
    padding: 80px 40px;
  }
  .contact-image {
    min-height: 350px;
  }
}

/* --------------------------------------------- */
/* MÓVILES Y DISPOSITIVOS PEQUEÑOS (~768px)      */
/* --------------------------------------------- */
@media (max-width: 768px) {
  header,
  nav {
    height: 70px;
  }
  .nav-brand {
    font-size: 1.2rem;
  }
  nav ul {
    display: none;
  }
  .hero {
    min-height: 85vh;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero h2 {
    font-size: 1.1rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  section {
    padding: 60px 0;
    scroll-margin-top: 70px;
  }
  .section-title {
    font-size: 2rem;
  }
  .amenities-grid {
    grid-template-columns: 1fr;
  }
  .contact-info {
    padding: 60px 20px;
  }
}
