/* =========================================
   RESET GLOBAL Y CONFIGURACIÓN GENERAL
========================================= */
/* Elimina márgenes y rellenos por defecto, y establece un modelo de caja uniforme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif; /* Fuente predeterminada */
}

/* Estilo general del body */
body {
  background: #fff; /* Fondo blanco */
  scroll-behavior: smooth; /* Desplazamiento suave */
}

/* =========================================
   ENCABEZADO PRINCIPAL (HEADER)
========================================= */
/* Estilo fijo del encabezado en la parte superior */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(185, 182, 182, 0.55); /* Fondo semitransparente */
  backdrop-filter: blur(6px); /* Efecto de desenfoque */
  z-index: 999; /* Se asegura que esté por encima del contenido */
}

/* Contenedor principal dentro del header */
.container {
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

/* Logo del sitio */
.logo {
  color: #fff;
  font-weight: 700;
  font-size: 30px;
  text-decoration: none;
}

/* =========================================
   NAVEGACIÓN
========================================= */
/* Lista horizontal de enlaces de navegación */
.nav-links ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

/* Estilo de los enlaces */
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  position: relative;
}

/* Línea divisoria entre elementos de navegación, excepto el último */
.nav-links li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: #dddddd;
}

/* Efecto al pasar el mouse */
.nav-links a:hover {
  opacity: 0.8;
}

/* =========================================
   BOTÓN DE LOGIN
========================================= */
.btn-login {
  background: #fdfdfd;
  color: #000;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-login:hover {
  background: #d0d3d3;
}

/* =========================================
   SECCIÓN HERO (PORTADA)
========================================= */
.hero {
  height: 100vh;
  background: url("img/fondo_principal.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0px;
}

/* Superposición oscura para mejorar contraste */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* Contenido del hero */
.hero-overlay {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 800px;
}

/* Título */
.hero-overlay h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: initial;
}

/* Subtítulo o descripción */
.hero-overlay p {
  font-size: 25px;
  letter-spacing: 1px;
  font-family: Cambria, serif;
}

/* =========================================
   SECCIONES GENERALES
========================================= */
/* Estilo base para secciones del sitio */
.section {
  max-width: 90%;
  margin: 80px auto;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

/* Título de sección */
h2 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 600;
  color: #222;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
}

/* =========================================
   HABITACIONES
========================================= */
/* Contenedor principal */
.habitaciones-wrapper {
  background: #fff;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 80px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

/* Contenedor de cada habitación */
.habitacion-container {
  max-width: 1100px;
  margin: 0 auto 60px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Carrusel de imágenes */
.habitacion-carousel {
  position: relative;
  flex: 1 1 60%;
  overflow: hidden;
  border-radius: 4px;
}
.slide {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: none;
}
.slide.active {
  display: block;
}

/* Flechas del carrusel */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}
.carousel-arrow.left {
  left: 10px;
}
.carousel-arrow.right {
  right: 10px;
}
.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Información textual de la habitación */
.habitacion-info {
  flex: 1 1 40%;
  max-width: 380px;
}
.habitacion-info h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #006d6e;
}
.datos-basicos {
  margin-bottom: 20px;
  font-size: 14px;
  color: #7a7a7a;
}

/* Lista de amenidades */
.amenidades {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  columns: 2;
  column-gap: 20px;
  font-size: 14px;
}
.amenidades li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  break-inside: avoid;
}
.amenidades i {
  color: #007b5e;
}

/* Botón de reserva */
.btn-reservar {
  display: inline-block;
  padding: 10px 34px;
  border: 1px solid #007b5e;
  color: #007b5e;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.25s, color 0.25s;
}
.btn-reservar:hover {
  background: #007b5e;
  color: #fff;
}

/* =========================================
   GASTRONOMÍA (restaurante y bar)
========================================= */

/* Estilo general de la sección */
.gastronomia-section {
  background: #ffffff;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 80px auto;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Experiencia gastronómica en columnas */
.gastro-experiencia {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.gastro-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Carrusel de imágenes */
.gastro-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 320px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.gastro-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.gastro-slide.active {
  display: block;
}

/* Flechas de carrusel gastronómico */
.gastro-carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
}
.gastro-carousel .carousel-arrow.left {
  left: 10px;
}
.gastro-carousel .carousel-arrow.right {
  right: 10px;
}
.gastro-carousel .carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Texto explicativo del restaurante/bar */
.gastro-info {
  max-width: 800px;
  text-align: left;
  padding: 0 20px;
}
.gastro-info h3 {
  font-size: 28px;
  color: #006d6e;
  margin-bottom: 12px;
}
.gastro-info p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Responsive gastronomía */
@media (max-width: 768px) {
  .gastro-info {
    text-align: center;
    padding: 0;
  }
  .gastro-info h3 {
    font-size: 24px;
  }
  .gastro-carousel {
    height: 240px;
  }
}

/* =========================================
   ACTIVIDADES
========================================= */
.actividades-ayana {
  background: #fff;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 80px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}
.actividad-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  align-items: start;
}

/* Tarjeta individual */
.actividad-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.actividad-box:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.actividad-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Información */
.actividad-box h3 {
  font-size: 20px;
  margin: 16px 20px 8px;
  color: #222;
}
.actividad-box .horario {
  font-size: 14px;
  margin: 0 20px 16px;
  color: #555;
}
.descripcion-btn {
  margin: 0 20px;
  background: none;
  border: none;
  color: #007b5e;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 8px;
}
.descripcion {
  margin: 0 20px 20px;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
  display: none;
}
.descripcion.visible {
  display: block;
}

/* =========================================
   DESTINOS
========================================= */
/* Contenedor de destinos */
.destinos-section {
  padding: 40px 20px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  max-width: 1200px;
  margin: 60px auto;
}
.destinos-row {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
.row-3 {
  grid-template-columns: repeat(3, 1fr);
}
.row-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Responsive destinos */
@media (max-width: 768px) {
  .row-3,
  .row-2 {
    grid-template-columns: 1fr;
  }
}

/* Tarjetas con efecto flip */
.destino-card {
  perspective: 1000px;
  height: 380px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  background: white;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}
.destino-card.is-flipped .card-inner {
  transform: rotateY(180deg);
}
.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Imagen cara frontal */
.card-front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-front h3 {
  position: relative;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 12px;
  text-align: center;
  font-size: 18px;
}

/* Parte trasera */
.card-back {
  background: #fdfdfd;
  color: #070707;
  transform: rotateY(180deg);
  padding: 20px;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  contain: content;
}
.card-back img {
  width: 100%;
  height: 100%;
  display: grid;
}
.card-back p {
  font-size: 16px;
  line-height: 1.4;
  padding: 5px;
}

/* =========================================
   FOOTER
========================================= */

.footer-container {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 20px 20px 20px 20px rgba(0, 0, 0, 0.1); /* Sombra suave */
  color: #000000;
  padding: 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Sección del logo y sobre nosotros */
.footer-sobre-nosotros {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 300px;
}

.footer-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

/* Textos sobre nosotros */
.footer-sobre-nosotros-texto {
  max-width: 400px;
}

/* Sección de contacto */
.footer-contacto {
  flex: 1;
  min-width: 300px;
  color: #000000;
}

footer a {
  color: rgb(19, 31, 39);
  text-decoration: none;
}

/* Títulos */
.footer-titulos {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 24px;
  margin-bottom: 10px;
}

/* Parte inferior */
.footer-derechos {
  text-align: center;
  border-top: 1px solid #464343;
  padding-top: 10px;
  font-size: 14px;
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 768px) {
  .row-3,
  .row-2 {
    grid-template-columns: 1fr;
  }
  .habitacion-container {
    flex-direction: column;
  }
  .slide {
    height: 260px;
  }
}
