/* =========================================================
   TIBURÓN DULCE — Ometepe
   Sistema de diseño: lago, volcán, amanecer.
   Mobile-first.
   ========================================================= */

:root {
  /* Color — inspirado en el lago y los volcanes, no en plantillas de hotel */
  --color-deep: #0b2a3a;      /* Lago Profundo — navy, header sólido, texto oscuro */
  --color-deep-2: #0a2130;    /* variante más oscura, para overlays */
  --color-water: #2f6b7a;     /* Agua Media — hover, acentos secundarios */
  --color-dawn: #c99a4d;      /* Amanecer — acento cálido, único color vivo */
  --color-dawn-dim: #a97e3a;  /* amanecer hover */
  --color-mist: #d4eff9;       /*Bruma — fondo claro de secciones */
  --color-stone: #6b6259;     /* Ceniza — texto secundario sobre claro */
  --color-white: #ffffff;

  /* Tipografía */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;sli

  /* Espaciado fluido */
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm: clamp(0.9rem, 0.7rem + 0.6vw, 1.25rem);
  --space-md: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
  --space-lg: clamp(2.5rem, 1.8rem + 2.5vw, 4.5rem);
  --space-xl: clamp(4rem, 3rem + 4vw, 7rem);

  --header-h: 64px;
  --container-w: 1240px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--color-deep);
  background: var(--color-mist);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-dawn);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.header--scrolled {
  background: rgba(11, 42, 58, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -12px rgba(10, 22, 30, 0.5);
}

.nav {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.nav__logo-link {
  display: block;
  line-height: 0;
}

.nav__logo-img {
  height: 35px;
  width: auto;
  /* Si tu logo es oscuro/monocromático y se pierde sobre fotos claras,
     descomenta la línea de abajo para forzarlo a blanco: */
  /* filter: brightness(0) invert(1); */
  transition: height 0.4s var(--ease);
}

@media (min-width: 900px) {
  .nav__logo-img {
    height: 30px;
  }
}

/* Links: fullscreen drawer on mobile, inline on desktop */
.nav__menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  background: var(--color-deep);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease),
    visibility 0.5s;
}

.nav__menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.nav__links a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 2vw, 2.1rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-white);
  transition: color 0.3s var(--ease);
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--color-dawn);
}

.nav__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.lang {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

/* Hamburger toggle */
.nav__toggle {
  position: relative;
  z-index: 95;
  width: 32px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Botón "Reservar" del header — visible solo en desktop dentro del nav bar,
   en móvil vive dentro del menú a pantalla completa */
.nav__actions .btn {
  display: none;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-dawn);
  color: var(--color-deep);
  border: 1px solid var(--color-dawn);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-dawn-dim);
  border-color: var(--color-dawn-dim);
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Una sola imagen; reemplaza la url() por la foto final del hotel */
.hero__slide {
  position: absolute;
  inset: 0;
  background-image: url("/img/hero-ometepe.png");
  background-size: cover;
  background-position: center;
  animation: kenburns 22s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 33, 48, 0.75) 0%,
    rgba(10, 33, 48, 0.25) 32%,
    rgba(10, 33, 48, 0.35) 60%,
    rgba(9, 24, 34, 0.88) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: calc(var(--header-h) + var(--space-lg)) var(--space-sm) var(--space-lg);
  text-align: left;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 1.9rem + 3.2vw, 4.6rem);
  line-height: 1.06;
  color: var(--color-white);
  max-width: 15ch;
}

.hero__subtitle {
  margin-top: var(--space-sm);
  font-size: clamp(1rem, 0.93rem + 0.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 42ch;
}

.hero__buttons {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* ---------- Frases dinámicas ---------- */
.hero__phrases {
  margin-top: var(--space-md);
  position: relative;
  height: 1.8em;
  display: flex;
  align-items: center;
}

.phrase {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.phrase::before {
  content: "";
  width: 18px;
  height: 10px;
  flex-shrink: 0;
  background: var(--color-dawn);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 6c3-6 6-6 9 0s6 6 9 0 6-6 6-6v6c-2 5-4 6-6 6s-6-6-9-6-6 6-9 6-3-1-3-1z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 6c3-6 6-6 9 0s6 6 9 0 6-6 6-6v6c-2 5-4 6-6 6s-6-6-9-6-6 6-9 6-3-1-3-1z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.phrase.active {
  opacity: 1;
  transform: translateY(0);
}

.hero__scroll {
  display: none;
}

/* ---------- Divisor de ola (firma visual) ---------- */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(28px, 6vw, 56px);
  background: var(--color-mist);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30c100-30 200-30 300 0s200 30 300 0 200-30 300 0 200 30 300 0v30H0z'/%3E%3C/svg%3E")
    bottom / 400px 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30c100-30 200-30 300 0s200 30 300 0 200-30 300 0 200 30 300 0v30H0z'/%3E%3C/svg%3E")
    bottom / 400px 100% repeat-x;
}













/* --- Estilos Generales de la Sección --- */
.rooms-section {
  background-color: var(--color-mist);
  padding: 60px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.rooms-container {
  max-width: 1200px;
  margin: 0 auto;
}

.rooms-title {
  color: var(--color-deep);
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.rooms-subtitle {
  color: var(--color-stone);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* --- Flexbox Layout (Mobile-First por defecto) --- */
.rooms-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
}

/* --- Estructura de la Tarjeta --- */
.room-card {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(11, 42, 58, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  width: 100%;
}

.room-card:hover {
  transform: translateY(-5px);
}

/* --- Contenedor de Imagen y Efecto Zoom --- */
.room-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.room-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Efecto de acercamiento solicitado */
.room-card:hover .room-image {
  transform: scale(1.1);
}

/* Badge / Etiqueta tipo de habitación (Navy, redondeada) */
.room-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--color-deep);
  color: var(--color-white);
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- Contenido de la Tarjeta --- */
.room-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.room-name {
  color: var(--color-deep);
  font-size: 1.4rem;
  margin: 0 0 12px 0;
}

.room-description {
  color: var(--color-stone);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-0: 0 0 20px 0;
  flex-grow: 1; /* Empuja las amenidades y botón hacia abajo para alineación uniforme */
}

/* --- Lista de Incluye (Amenidades) --- */
.room-amenities {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  border-top: 1px solid rgba(107, 98, 89, 0.15);
  padding-top: 15px;
}

.room-amenities li {
  color: var(--color-stone);
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.room-amenities li .icon {
  margin-right: 10px;
  font-size: 1.1rem;
}

/* --- Botón Consultar (Redirige a contacto) --- */
.btn-consultar {
  display: block;
  text-align: center;
  background-color: var(--color-dawn);
  color: var(--color-deep);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-consultar:hover {
  background-color: var(--color-dawn-dim);
  color: var(--color-white);
}







/* --- Estilos de Contenedor General --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. SECCIÓN: BIENVENIDA Y GALERÍA INFINITA
   ========================================================================== */
.welcome-gallery-section {
  background-color: var(--color-mist);
  padding: 60px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden; /* Crucial para ocultar el desborde de la galería */
}

.welcome-text-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.welcome-title {
  color: var(--color-deep);
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.welcome-description {
  color: var(--color-stone);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Contenedor del Carrusel Infinito --- */
.infinite-carousel-wrapper {
  width: 100%;
  overflow-x: auto; /* Permite arrastrar con el dedo o mouse en móvil/PC */
  white-space: nowrap;
  cursor: grab;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

.infinite-carousel-wrapper::-webkit-scrollbar {
  display: none; /* Oculta la barra de scroll para mantenerlo limpio */
}

.infinite-carousel-wrapper:active {
  cursor: grabbing;
}

/* El "track" mantiene todas las imágenes alineadas */
.infinite-carousel-track {
  display: inline-flex;
  gap: 20px;
  /* Ejecuta la animación infinita de derecha a izquierda */
  animation: scrollInfinito 30s linear infinite;
}

/* Pausa la animación automática cuando el usuario pone el mouse encima */
.infinite-carousel-wrapper:hover .infinite-carousel-track {
  animation-play-state: paused;
}

.carousel-slide {
  width: 280px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(11, 42, 58, 0.1);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Keyframes para la animación infinita (calculada al 50% por las imágenes duplicadas) */
@keyframes scrollInfinito {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px)); /* Se mueve exactamente la mitad del ancho total */
  }
}

/* ==========================================================================
   2. SECCIÓN: ¿QUÉ PUEDES HACER Y ENCONTRAR? (SERVICIOS)
   ========================================================================== */
.services-section {
  background-color: var(--color-white);
  padding: 60px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.services-title {
  color: var(--color-deep);
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.services-subtitle {
  color: var(--color-stone);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* --- Rejilla de Servicios (Mobile-First: 1 Columna) --- */
.services-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: auto;
}


/* Tarjeta del Servicio */
.service-card {
  background-color: var(--color-white);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(11, 42, 58, 0.04);
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

/* Efectos al posicionar el mouse */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(11, 42, 58, 0.08);
  border-bottom: 3px solid var(--color-water); /* Acento sutil en azul de agua */
}

.service-icon-box {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: inline-block;
}

.service-card-title {
  color: var(--color-deep);
  font-size: 1.25rem;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.service-card-text {
  color: var(--color-stone);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}



/* --- SALON DE EVENTOS --- */


/* --- Estilos Generales --- */
.events-space-section {
  background-color: var(--color-white); /* Alterna con las habitaciones que usan mist */
  padding: 60px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.events-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.events-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.events-title {
  color: var(--color-deep);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.events-subtitle {
  color: var(--color-stone);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- Layout Flexbox Mobile-First (Una sola columna vertical) --- */
.events-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* --- Galería del Espacio --- */
.events-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.gallery-main-img {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(11, 42, 58, 0.08);
}

.gallery-main-img img, .gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-main-img:hover img {
  transform: scale(1.05); /* Efecto zoom sutil solicitado */
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.thumb-img {
  flex: 1;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
}

/* --- Contenido Informativo (Derecha) --- */
.events-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.space-name {
  color: var(--color-deep);
  font-size: 1.6rem;
  margin: 0 0 15px 0;
}

.space-description {
  color: var(--color-stone);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Lista de Características */
.space-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.space-features li {
  color: var(--color-stone);
  font-size: 0.95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

.feature-icon {
  margin-right: 12px;
  font-size: 1.1rem;
}

/* --- Bloque de Aviso de Hospedaje Limitado --- */
.accommodation-notice {
  background-color: var(--color-mist);
  border-left: 4px solid var(--color-water); /* Acento azul agua sutil */
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 30px;
}

.notice-badge {
  display: inline-block;
  color: var(--color-water);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 0.05em;
}

.notice-text {
  color: var(--color-stone);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Botón Cotizar --- */
.btn-events-consultar {
  display: inline-block;
  text-align: center;
  background-color: var(--color-dawn);
  color: var(--color-deep-2);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  align-self: flex-start; /* Hace que el botón mida lo que mide su texto en PC */
  width: 100%; /* En móviles toma todo el ancho */
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(201, 154, 77, 0.2);
}

.btn-events-consultar:hover {
  background-color: var(--color-dawn-dim);
  color: var(--color-white);
  transform: translateY(-2px);
}



/* --- GALLERY --- */

.gallery-section {
  background-color: var(--color-mist); /* Fondo sutil para destacar las fotos */
  padding: 60px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.gallery-section-title {
  color: var(--color-deep);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.gallery-section-subtitle {
  color: var(--color-stone);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- Rejilla de Álbumes --- */
.albums-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Tarjeta del Álbum Único */
.album-card {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(11, 42, 58, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(11, 42, 58, 0.1);
}

/* =========================================================
   REJILLA DE VISTA PREVIA DE IMÁGENES (3 Visibles)
   ========================================================= */
.album-preview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 110px 110px;
  gap: 8px;
  padding: 12px;
  background-color: #fafafa;
}

.preview-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
}

.preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Imagen Grande de la Izquierda */
.main-preview {
  grid-row: 1 / span 2;
  height: 228px; /* Suma de las dos filas + gap */
}

/* Overlay indicador de "+ fotos" */
.thumb-preview-2 {
  position: relative;
}

.more-photos-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(11, 42, 58, 0.7); /* Tono lago profundo traslúcido */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.3rem;
}

/* =========================================================
   BLOQUE DE DETALLES E INFORMACIÓN
   ========================================================= */
.album-info-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Fila de Etiquetas (Categoría y Grupo) */
.album-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.type-badge {
  background-color: rgba(47, 107, 122, 0.1);
  color: var(--color-water);
}

.group-badge {
  background-color: rgba(201, 154, 77, 0.15);
  color: var(--color-dawn-dim);
}

.album-title {
  color: var(--color-deep);
  font-size: 1.4rem;
  margin: 0 0 10px 0;
}

/* Metadata de Fecha y Lugar */
.album-meta-data {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.88rem;
  color: var(--color-stone);
}

.album-description {
  color: var(--color-stone);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

/* Botón Ver Álbum */
.btn-view-album {
  background-color: transparent;
  color: var(--color-deep);
  border: 2px solid var(--color-deep);
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: auto; /* Empuja el botón al fondo si las tarjetas tienen textos distintos */
}

.btn-view-album:hover {
  background-color: var(--color-deep);
  color: var(--color-white);
}

.photo-count {
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.8;
}


/* --- RESEÑAS --- */


.testimonials-section {
  background-color: var(--color-white); /* Alterna limpiamente con la sección de galerías */
  padding: 80px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.testimonials-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.testimonials-title {
  color: var(--color-deep);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.testimonials-subtitle {
  color: var(--color-stone);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- Rejilla Responsiva (Mobile-First: 1 Columna) --- */
.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Tarjeta de Testimonio */
.testimonial-card {
  background-color: var(--color-white); /* Fondo sutil para enmarcar el texto */
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

/* Detalle estético: Comillas elegantes de fondo */
.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 5rem;
  color: rgba(11, 42, 58, 0.05);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(11, 42, 58, 0.06);
  background-color: var(--color-mist); /* Aclarado sutil al pasar el mouse */
}

/* Estrellas de Calificación */
.testimonial-rating {
  color: var(--color-dawn);
  font-size: 1.1rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--color-deep);
  font-size: 0.98rem;
  line-height: 1.6;
  font-style: italic;
  margin: 0 0 20px 0;
}

/* --- Bloque del Autor --- */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Contenedor del Avatar Redondo */
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Estilo Especial para Iniciales en caso de no haber foto */
.avatar-initials {
  background-color: var(--color-water); /* Fondo corporativo */
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-initials span {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* Datos del Texto del Autor */
.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  color: var(--color-deep);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 2px 0;
}

.author-type {
  color: var(--color-stone);
  font-size: 0.82rem;
  font-weight: 500;
}




/* --- FOOTER --- */


/* --- Estilos del Footer Principal --- */
.main-footer {
  background-color: var(--color-deep-2);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-top: 4px solid var(--color-dawn);
}

/* Contenedor Grid (Mobile-First: 1 columna por defecto) */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* Encabezados de Columna */
.footer-heading {
  color: var(--color-white);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  position: relative;
  letter-spacing: 0.03em;
}

/* Detalles estéticos para los títulos */
.footer-heading::after {
  content: '';
  display: block;
  width: 35px;
  height: 2px;
  background-color: var(--color-dawn);
  margin-top: 8px;
}

/* --- Estilos Columna 1: Branding y Redes --- */
.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.footer-logo .logo-text { color: var(--color-white); }
.footer-logo .logo-accent { color: var(--color-dawn); }

.footer-brand-text {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--color-dawn);
  color: var(--color-deep-2);
  transform: translateY(-3px);
}

/* --- Estilos Columna 2: Enlaces --- */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links-list a:hover {
  color: var(--color-dawn);
  padding-left: 5px; /* Efecto sutil de desplazamiento */
  transition: all 0.3s ease;
}

/* --- Estilos Columna 3: Información --- */
.footer-address, .footer-hours {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.info-icon {
  margin-right: 10px;
}

/* --- Estilos Columna 4: Formulario de Correo --- */
.footer-form-text {
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.footer-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-input {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 12px;
  color: var(--color-white);
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.footer-input:focus {
  outline: none;
  border-color: var(--color-dawn);
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-submit-btn {
  background-color: var(--color-dawn);
  color: var(--color-deep-2);
  border: none;
  border-radius: 4px;
  padding: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-submit-btn:hover {
  background-color: var(--color-dawn-dim);
  color: var(--color-white);
}

/* =========================================================
   BARRA INFERIOR DE COPYRIGHT
   ========================================================= */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 20px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.developer-credit a {
  color: var(--color-dawn);
  text-decoration: none;
  font-weight: 500;
}

.developer-credit a:hover {
  text-decoration: underline;
}








/* Whatsapp flotante */


/* =========================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================= */
.whatsapp-btn-floating {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* Verde oficial de WhatsApp */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 9999; /* Asegura que siempre esté por encima de todo el contenido */
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  
  /* Aplicamos la animación de atención de forma infinita */
  animation: whatsapp-attention 4s ease-in-out infinite;
}

/* Efecto Hover al pasar el mouse */
.whatsapp-btn-floating:hover {
  background-color: #20ba5a;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Icono interno */
.whatsapp-btn-floating svg {
  width: 28px;
  height: 28px;
  fill: #ffffff; /* Rellena el icono telefónico / chat */
  stroke: none;  /* Eliminamos el borde de trazo para que luzca sólido */
}

/* Pequeño globo de notificación rojo (Atracción visual elegante) */
.whatsapp-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #e74c3c; /* Rojo notificación */
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #25D366; /* Enmarca la notificación con el fondo */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* =========================================================
   ANIMACIÓN LLAMATIVA (Sutil y no molesta)
   ========================================================= */
@keyframes whatsapp-attention {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  }
  /* Pequeño efecto de rebote doble para despertar interés visual */
  10% {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  }
  15% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.06);
  }
  25% {
    transform: scale(1);
  }
  /* El resto del tiempo (del 25% al 100%) se queda estático para no estresar al usuario */
}


/* Responsividad para pantallas muy pequeñas (Móviles) */
@media (max-width: 480px) {
  .whatsapp-btn-floating {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-btn-floating svg {
    width: 24px;
    height: 24px;
  }
}


/* =========================================================
   BREAKPOINTS
   ========================================================= */
@media (min-width: 640px) {

.infinite-carousel-wrapper {
  width: 80%;
  margin: auto;
}

  .hero__buttons {
    gap: var(--space-sm);
  }

.rooms-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .room-card {
    width: calc(40% - 10px); 
  }

 
.services-grid {
  grid-template-columns: repeat(2, 1fr);
  }

  .carousel-slide {
    width: 340px; /* Fotos ligeramente más grandes en pantallas grandes */
    height: 240px;
  }



   .footer-container {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  }
  
  .footer-bottom-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }


  .gallery-main-img {
    height: 360px;
  }
  
  .btn-events-consultar {
    width: auto; /* El botón deja de ser gigante en pantallas más anchas */
  }



  }



  @media (min-width: 768px) {


.album-card {
    flex-direction: row; /* Imagen a la izquierda, texto a la derecha */
    height: 285px;
  }

  .album-preview-grid {
    width: 320px; /* Ancho fijo para la cuadrícula de fotos en PC */
    flex-shrink: 0;
    height: 100%;
  }

  .main-preview {
    height: auto;
  }

  .btn-view-album {
    width: max-content; /* El botón mide solo su texto en pantallas grandes */
  }



  .testimonials-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .testimonial-card {
    width: calc(50% - 13px); /* Dos por fila exactas */
  }
}

@media (min-width: 900px) {
  :root {
    --header-h: 84px;
  }

  .nav__toggle {
    display: none;
  }

  .nav__menu {
    position: static;
    inset: auto;
    z-index: auto;
    flex-direction: row;
    background: transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
    gap: var(--space-md);
    flex: 1;
    justify-content: flex-end;
  }

  .nav__links {
    flex-direction: row;
    gap: var(--space-md);
  }

  .nav__links a {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.88);
  }

  .nav__links a:hover,
  .nav__links a:focus-visible {
    color: var(--color-dawn);
  }

  .nav__actions {
    flex-direction: row;
    gap: var(--space-md);
  }

  .nav__actions .btn {
    display: inline-flex;
    padding: 0.7em 1.5em;
    font-size: 0.88rem;
  }

  .hero__content {
    text-align: left;
  }

  .hero__scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-lg);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    animation: bob 2.4s ease-in-out infinite;
  }

  .services-grid {
  grid-template-columns: repeat(3, 1fr);
  }

  @keyframes bob {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(6px);
    }
  }
}

@media (min-width: 1024px) {
  .hero__content {
    padding-bottom: calc(var(--space-xl));
  }

  .room-card {
    width: calc(33.333% - 20px); /* Toma un tercio del espacio */
  }

.services-grid {
  grid-template-columns: repeat(4, 1fr);
  }
  
  /* Ajuste para que si son 7 servicios, queden distribuidos armónicamente */
  .service-card:nth-last-child(-n+3):first-child, 
  .service-card:nth-last-child(-n+3) ~ .service-card {
    /* Mantiene las tarjetas inferiores proporcionales */
  }


   .footer-container {
    grid-template-columns: 2fr 1fr 1fr 2fr; /* Distribución equilibrada de anchos */
    gap: 30px;
  }


  .events-layout {
    flex-direction: row; /* Divide la pantalla en 50/50 de manera fluida */
    align-items: flex-start;
    gap: 50px;
  }

  .events-gallery {
    width: 45%; /* Galería toma el 45% */
  }

  .events-content {
    width: 55%; /* Información toma el 55% */
  }
  
  .gallery-main-img {
    height: 340px;
  }

  .albums-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas completas de álbumes */
    gap: 30px;
  }

  .album-card {
    flex-direction: column; /* Vuelven a diseño vertical pero uno a la par del otro */
    height: auto;
  }

  .album-preview-grid {
    flex-shrink: 1;
    width: 100%;
    grid-template-rows: 130px 130px;
  }
  
  .main-preview {
    height: 268px;
  }


   .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas de igual ancho */
    gap: 25px;
  }

  .testimonial-card {
    width: 100%; /* Deja que Grid controle el ancho proporcional */
  }


}

/* =========================================================
   ACCESIBILIDAD — reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__slide {
    animation: none;
  }
  .hero__scroll {
    animation: none;
  }
  .phrase {
    transition: opacity 0.3s linear;
  }
.whatsapp-btn-floating {
    animation: none;
  }

  
}
