/* ============================================================
   style.css — Estilos principales
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.bg-alt { background: var(--surface-2); }
.bg-white { background: var(--surface); }

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 1.1rem;
  display: inline-block;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head .rule { width: 54px; height: 2px; background: var(--gold); margin: 1.25rem auto 0; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--gold); color: #fff; }
.btn--solid:hover { background: var(--gold-deep); }

.btn--outline { background: transparent; color: var(--gold-deep); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: #fff; }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              height var(--dur) var(--ease);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav.is-scrolled {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  height: 70px;
}

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__img { height: 40px; width: auto; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.32em;
  color: var(--ink);
  font-weight: 500;
}
.brand__sub {
  font-size: 0.56rem;
  letter-spacing: 0.42em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 5px;
  padding-left: 3px;
}

.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav__menu a:hover::after { width: 100%; }

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--cream);
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 3rem;
  max-width: 640px;
  margin-left: auto;
  width: 100%;
}
.hero__title { font-size: var(--fs-hero); font-weight: 500; }
.hero__divider { width: 64px; height: 2px; background: var(--gold); margin: 1.6rem 0 1.4rem; }
.hero__subtitle { font-size: var(--fs-lead); max-width: 30ch; margin: 0 0 2.2rem; color: var(--ink-soft); }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--cream) 0%, rgba(250,247,241,0) 22%);
}

/* ============================================================
   BENEFICIOS (banda de íconos)
   ============================================================ */
.benefits { border-block: 1px solid var(--line); }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.benefit {
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem) 1.25rem;
  position: relative;
}
.benefit + .benefit::before {
  content: "";
  position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--line);
}
.benefit__icon { color: var(--gold); margin: 0 auto 1rem; width: 34px; height: 34px; }
.benefit__icon svg { width: 100%; height: 100%; }
.benefit h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.5;
}

/* ============================================================
   SPLIT (Diseño / Ubicación)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; aspect-ratio: 5/4.4; object-fit: cover; }
.split__body h2 { font-size: var(--fs-h2); margin-bottom: 1.25rem; }
.split__body p { margin: 0 0 2rem; max-width: 46ch; }

/* ============================================================
   AMENIDADES (fila de íconos)
   ============================================================ */
.amenities__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.amenity {
  text-align: center;
  padding: clamp(1.8rem, 3.5vw, 2.6rem) 1rem;
  position: relative;
}
.amenity + .amenity::before {
  content: "";
  position: absolute; left: 0; top: 24%; bottom: 24%;
  width: 1px; background: var(--line);
}
.amenity__icon { color: var(--gold); width: 40px; height: 40px; margin: 0 auto 1rem; }
.amenity__icon svg { width: 100%; height: 100%; }
.amenity h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.5;
}

/* ============================================================
   MODELOS (tarjetas)
   ============================================================ */
.models__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.model-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.model-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.model-card__media { overflow: hidden; }
.model-card__media img { aspect-ratio: 4/3; object-fit: cover; transition: transform 0.7s var(--ease); }
.model-card:hover .model-card__media img { transform: scale(1.05); }
.model-card__body { padding: 1.6rem 1.75rem 1.9rem; }
.model-card__name { font-size: 1.5rem; margin-bottom: 0.35rem; }
.model-card__desc { font-size: var(--fs-small); color: var(--ink-mute); margin: 0 0 1.25rem; }
.model-card__specs { display: flex; gap: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.model-card__spec { display: flex; flex-direction: column; }
.model-card__spec b { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.model-card__spec span { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.model-card__price {
  margin-top: 1.25rem;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
}

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item {
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery__item img { aspect-ratio: 4/3.4; object-fit: cover; width: 100%; transition: transform 0.7s var(--ease); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,28,22,0) 55%, rgba(33,28,22,0.35));
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.75rem; }
.gallery__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); border: 0; padding: 0; transition: background 0.3s, width 0.3s; }
.gallery__dot.is-active { background: var(--gold); width: 22px; border-radius: 4px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(24, 20, 16, 0.9);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.75rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 0; color: #fff; font-size: 1.4rem;
}

/* ============================================================
   UBICACIÓN (mapa)
   ============================================================ */
.location__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.location__media img,
.location__media iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; object-fit: cover; }

/* ============================================================
   CONTACTO / FORMULARIO
   ============================================================ */
.contact { background: var(--surface-3); }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.4fr auto; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.contact__intro h2 { font-size: var(--fs-h2); margin-bottom: 0.5rem; }
.contact__intro p { margin: 0; color: var(--ink-soft); }
.contact__form { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.field { flex: 1 1 190px; }
.field input {
  width: 100%;
  padding: 1rem 1.1rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input::placeholder { color: var(--ink-mute); }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.contact__form .btn { flex: 1 1 150px; justify-content: center; }
.contact__phone {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-deep);
  display: grid; place-items: center; flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}
.contact__phone:hover { background: var(--gold); color: #fff; }
.contact__phone svg { width: 24px; height: 24px; }
.form-note { flex-basis: 100%; font-size: 0.75rem; color: var(--ink-mute); margin: 0.25rem 0 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--cream); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 2.5rem;
}
.footer__brand .brand__name { font-size: 1.35rem; }
.footer__tagline { font-size: 0.85rem; color: var(--ink-mute); max-width: 30ch; margin-top: 1.1rem; line-height: 1.7; }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 1.1rem; font-weight: 700;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__col a, .footer__col li { font-size: 0.85rem; color: var(--ink-soft); }
.footer__col a:hover { color: var(--gold-deep); }
.footer__contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer__contact svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer__socials { display: flex; gap: 0.6rem; }
.footer__socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--cream);
  transition: background 0.3s, transform 0.3s;
}
.footer__socials a:hover { background: var(--gold); transform: translateY(-3px); }
.footer__socials svg { width: 16px; height: 16px; }
.footer__bottom {
  text-align: center;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-mute);
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; opacity: 0.5;
  animation: wa-pulse 2.4s var(--ease) infinite;
  z-index: -1;
}

/* ============================================================
   GALERÍA PRO — Carrusel coverflow (reemplaza el look básico)
   Este bloque va al final: sobrescribe las reglas previas.
   ============================================================ */
.gallery__stage { position: relative; }

.gallery__track {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: center;
  /* padding que permite centrar la primera y la última imagen */
  padding-inline: max(0px, calc((100% - min(60%, 520px)) / 2));
  padding-block: 1.5rem;
  scroll-snap-type: x mandatory;
}

.gallery__item {
  flex: 0 0 min(60%, 520px);
  scroll-snap-align: center;
  transform: scale(0.8);
  opacity: 0.45;
  filter: saturate(0.85);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), filter 0.6s var(--ease);
}
.gallery__item.is-focused {
  transform: scale(1);
  opacity: 1;
  filter: none;
  box-shadow: var(--shadow-md);
}
.gallery__item img { aspect-ratio: 16 / 10; }

/* Flechas */
.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  z-index: 5;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.25s var(--ease);
}
.gallery__arrow:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.gallery__arrow:active { transform: translateY(-50%) scale(0.92); }
.gallery__arrow svg { width: 22px; height: 22px; }
.gallery__arrow--prev { left: clamp(0.25rem, 2vw, 1.25rem); }
.gallery__arrow--next { right: clamp(0.25rem, 2vw, 1.25rem); }
.gallery__arrow--next svg { transform: rotate(180deg); }

@media (max-width: 760px) {
  .gallery__track { padding-inline: max(0px, calc((100% - 84%) / 2)); }
  .gallery__item { flex-basis: 84%; }
  .gallery__arrow { width: 44px; height: 44px; }
  .gallery__arrow svg { width: 18px; height: 18px; }
}
