/* =========================================
   VARIABLES Y RESET
   ========================================= */
:root {
  --azul-profundo: #16425b;
  --azul-mar: #2f6690;
  --azul-claro: #3a7ca5;
  --arena: #f4ede4;
  --arena-oscura: #e3d5c3;
  --blanco: #ffffff;
  --texto: #1f2d3a;
  --texto-suave: #5c6b78;
  --whatsapp: #25d366;
  --whatsapp-oscuro: #1ebe57;
  --sombra: 0 10px 30px rgba(22, 66, 91, 0.12);
  --radio: 14px;
  --fuente: "Poppins", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

.contenedor {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  scroll-margin-top: 100px;
}

.titulo-seccion {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--azul-profundo);
  margin-bottom: 10px;
}

.subtitulo-seccion {
  text-align: center;
  color: var(--texto-suave);
  max-width: 620px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--primario {
  background: var(--blanco);
  color: var(--azul-profundo);
}

.btn--outline {
  background: transparent;
  color: var(--blanco);
  border: 2px solid var(--blanco);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--blanco);
  width: 100%;
  text-align: center;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-oscuro);
}

/* =========================================
   HEADER / NAV
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 52px;
  width: auto;
  display: block;
}

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

  section {
    scroll-margin-top: 130px;
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-weight: 500;
  color: var(--texto);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--azul-claro);
}

.nav__whatsapp {
  background: var(--whatsapp);
  color: var(--blanco) !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
}

.nav__whatsapp-grupo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.nav__firma {
  font-size: 0.7rem;
  color: var(--texto-suave);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  width: 26px;
  height: 3px;
  background: var(--azul-profundo);
  border-radius: 2px;
  transition: 0.3s;
}

.nav__toggle.activo span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__toggle.activo span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.activo span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   BANNER PROMOCION (marquee)
   ========================================= */
.promo-marquee {
  background: linear-gradient(90deg, var(--azul-claro), var(--azul-profundo));
  color: var(--blanco);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}

.promo-marquee__track {
  display: inline-flex;
  animation: promo-marquee-mover 24s linear infinite;
}

.promo-marquee__track span {
  padding: 0 40px;
  font-weight: 600;
  font-size: 0.95rem;
}

@keyframes promo-marquee-mover {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0%);
  }
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanco);
  padding: 0 20px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 66, 91, 0.55), rgba(22, 66, 91, 0.75));
  z-index: 2;
}

.hero__contenido {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero__contenido h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero__contenido p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 32px;
  opacity: 0.95;
}

.hero__botones {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   DEPARTAMENTOS
   ========================================= */
.departamentos {
  background: var(--arena);
}

.departamentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card-depto {
  background: var(--blanco);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.card-depto:hover {
  transform: translateY(-6px);
}

.card-depto__foto {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-depto__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.card-depto__foto:hover img {
  transform: scale(1.06);
}

.card-depto__capacidad {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(22, 66, 91, 0.85);
  color: var(--blanco);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-depto__info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-depto__info h3 {
  color: var(--azul-profundo);
  font-size: 1.2rem;
}

.card-depto__ubicacion {
  color: var(--azul-claro);
  font-size: 0.88rem;
  font-weight: 500;
}

.card-depto__ambientes {
  font-size: 0.88rem;
  color: var(--texto-suave);
}

.card-depto__desc {
  font-size: 0.92rem;
  color: var(--texto-suave);
  margin: 4px 0;
}

.card-depto__comodidades {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.card-depto__comodidades li {
  background: var(--arena-oscura);
  color: var(--azul-profundo);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

/* =========================================
   MODAL INFO ALOJAMIENTO
   ========================================= */
.modal-info {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-info.activo {
  opacity: 1;
  pointer-events: auto;
}

.modal-info__contenido {
  position: relative;
  background: var(--blanco);
  border-radius: var(--radio);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-info__contenido h2 {
  color: var(--azul-profundo);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.modal-info__contenido h3 {
  color: var(--azul-profundo);
  font-size: 1.05rem;
  margin: 22px 0 8px;
}

.modal-info__contenido p {
  color: var(--texto-suave);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.modal-info__contenido ul {
  color: var(--texto-suave);
  font-size: 0.95rem;
  padding-left: 20px;
  list-style: disc;
}

.modal-info__contenido li {
  margin-bottom: 4px;
}

.modal-info__contenido .btn--whatsapp {
  margin-top: 24px;
}

.modal-info__cerrar {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--arena);
  color: var(--azul-profundo);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-info__cerrar:hover {
  background: var(--arena-oscura);
}

/* =========================================
   PANORAMICAS
   ========================================= */
.panoramicas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.panoramica-item {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radio);
  cursor: pointer;
  box-shadow: var(--sombra);
  transition: transform 0.3s ease;
}

.panoramica-item:hover {
  transform: scale(1.02);
}

/* =========================================
   PUEBLO / INFO LOCAL
   ========================================= */
.pueblo {
  background: var(--arena);
}

.enlaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card-enlace {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-enlace__icono {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.card-enlace h3 {
  color: var(--azul-profundo);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card-enlace p {
  color: var(--texto-suave);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex: 1;
}

.card-enlace__btn {
  display: inline-block;
  background: var(--azul-claro);
  color: var(--blanco);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.card-enlace__btn:hover {
  background: var(--azul-profundo);
  transform: translateY(-2px);
}

/* =========================================
   VIDEO DESTINO
   ========================================= */
.video-destino {
  text-align: center;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================
   UBICACION / MAPA
   ========================================= */
.ubicacion {
  text-align: center;
}

.ubicacion iframe {
  width: 100%;
  max-width: 900px;
  height: 400px;
  border: 0;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

/* =========================================
   CONTACTO
   ========================================= */
.contacto {
  background: linear-gradient(135deg, var(--azul-profundo), var(--azul-mar));
  color: var(--blanco);
  text-align: center;
}

.contacto .titulo-seccion,
.contacto .subtitulo-seccion {
  color: var(--blanco);
}

.contacto .subtitulo-seccion {
  opacity: 0.9;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--azul-profundo);
  color: var(--blanco);
  padding: 40px 0 24px;
  text-align: center;
}

.footer p {
  opacity: 0.85;
  font-size: 0.88rem;
  margin-top: 6px;
}

/* =========================================
   BOTON WHATSAPP FLOTANTE
   ========================================= */
.whatsapp-flotante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--whatsapp);
  color: var(--blanco);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: transform 0.2s ease;
}

.whatsapp-flotante:hover {
  transform: scale(1.08);
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.lightbox.activo {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox__cerrar,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: var(--blanco);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox__cerrar:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__cerrar {
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  top: 20px;
  right: 20px;
}

.lightbox__prev,
.lightbox__next {
  width: 210px;
  height: 210px;
  font-size: 4rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev {
  left: -40px;
}

.lightbox__next {
  right: -40px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 800px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanco);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }

  .nav__links.activo {
    transform: translateY(0);
  }

  .nav__toggle {
    display: flex;
  }

  section {
    padding: 56px 0;
  }

  .hero-bg {
    display: none;
  }

  .hero-video {
    display: block;
  }
}
