/* ==========================================================================
   GAVIA REALTY GROUP — 2026 EDITION
   Sistema de diseño inmobiliario de lujo · Cancún · Riviera Maya · Quintana Roo
   Inspiración: Carolwood Estates / Kumara Wilcoxon / Brizolis Janzen
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Marca — azul profundo Caribe + arena/oro + marfil */
  --ink:        #0A1628;   /* navy casi negro */
  --ink-800:    #10203A;
  --ink-700:    #16304F;
  --ink-600:    #1D4373;
  --blue:       #1E5AA8;   /* azul fuerte de marca */
  --blue-400:   #4A8FD4;
  --blue-200:   #A9CBEA;
  --blue-50:    #EDF4FB;

  --sand:       #B99A63;   /* oro arena — acento de lujo */
  --sand-light: #D6BE92;
  --sand-50:    #F5EFE4;

  --ivory:      #F7F5F1;   /* fondo cálido */
  --ivory-200:  #EDEAE3;
  --white:      #FFFFFF;

  --slate-700:  #3D4A5C;
  --slate-500:  #6B7787;
  --slate-300:  #B6BDC7;
  --slate-200:  #DCE0E6;
  --slate-100:  #EFF1F4;

  /* Tipografía */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans:    "Jost", "Helvetica Neue", -apple-system, sans-serif;

  --tracking-wide:  .22em;
  --tracking-wider: .32em;

  /* Layout */
  --shell:  1400px;
  --gutter: clamp(20px, 5vw, 80px);

  /* Motion */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur:  .8s;
  --dur-s: .45s;

  --header-h: 92px;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
ul  { margin: 0; padding: 0; list-style: none; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.75rem, 6.5vw, 6.5rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.4vw, 1.35rem); }

p { margin: 0 0 1.2em; }

::selection { background: var(--sand); color: var(--white); }

/* --------------------------------------------------------------------------
   3. UTILIDADES DE LAYOUT
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 900px; }
.shell--wide   { max-width: 1680px; }

section { position: relative; }

.band       { padding-block: clamp(80px, 11vw, 170px); }
.band--tight{ padding-block: clamp(56px, 7vw, 100px); }
.band--ink  { background: var(--ink); color: var(--ivory); }
.band--white{ background: var(--white); }
.band--sand { background: var(--sand-50); }

.band--ink h1, .band--ink h2, .band--ink h3 { color: var(--white); }

/* Eyebrow — etiqueta versalita de lujo */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--center::after {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.lede {
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  color: var(--slate-500);
  max-width: 62ch;
  line-height: 1.85;
}
.band--ink .lede { color: rgba(255,255,255,.66); }

.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head--center { text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

.section-head--split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 90px);
  align-items: end;
}

.rule {
  height: 1px;
  background: var(--slate-200);
  border: 0;
  margin: 0;
}
.band--ink .rule { background: rgba(255,255,255,.14); }

/* --------------------------------------------------------------------------
   4. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 19px 42px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out);
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .55s var(--ease-out);
  z-index: -1;
}
.btn:hover::after { transform: scaleX(1); transform-origin: left center; }
.btn:hover { color: var(--white); border-color: var(--sand); }

.btn--ghost  { --btn-bg: transparent; --btn-fg: var(--ink);  --btn-bd: var(--ink); }
.btn--light  { --btn-bg: var(--white); --btn-fg: var(--ink);  --btn-bd: var(--white); }
.btn--outline{ --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.45); }
.btn--sand   { --btn-bg: var(--sand); --btn-fg: var(--white); --btn-bd: var(--sand); }
.btn--sand::after { background: var(--ink); }
.btn--block  { width: 100%; }

/* Enlace con subrayado animado */
.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  font-size: 11.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.link-line:hover::after { transform: scaleX(0); }
.link-line .arw { transition: transform .5s var(--ease-out); }
.link-line:hover .arw { transform: translateX(7px); }

/* --------------------------------------------------------------------------
   5. TOPBAR CON IMÁGENES (header superior)
   -------------------------------------------------------------------------- */
/* Contenedor fijo que agrupa topstrip + masthead */
.sitehead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  transition: transform .6s var(--ease-out);
}
.sitehead.is-hidden { transform: translateY(-100%); }

.topstrip {
  position: relative;
  background: var(--ink);
  color: rgba(255,255,255,.72);
  overflow: hidden;
  max-height: 46px;
  transition: max-height .55s var(--ease-out), opacity .4s var(--ease-soft);
}
/* Al hacer scroll, la barra superior se repliega y deja sólo el menú */
.sitehead.is-stuck .topstrip { max-height: 0; opacity: 0; }
.topstrip::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1510097467424-192d713fd8b2?auto=format&fit=crop&w=2000&q=60");
  background-size: cover;
  background-position: center 62%;
  opacity: .22;
  filter: saturate(.5);
}
.topstrip::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 8%, rgba(10,22,40,.62) 45%, var(--ink) 92%);
}
.topstrip__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 46px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.topstrip__list { display: flex; align-items: center; gap: 34px; }
.topstrip__list a,
.topstrip__list span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.topstrip__list a { transition: color .4s var(--ease-soft); }
.topstrip__list a:hover { color: var(--sand-light); }
.topstrip__list svg { width: 13px; height: 13px; opacity: .7; flex-shrink: 0; }

.topstrip__social { display: flex; align-items: center; gap: 18px; }
.topstrip__social a { opacity: .68; transition: opacity .4s, color .4s; }
.topstrip__social a:hover { opacity: 1; color: var(--sand-light); }
.topstrip__social svg { width: 15px; height: 15px; }

/* Mini-thumbnails de Quintana Roo en el strip */
.topstrip__thumbs { display: flex; gap: 6px; }
.topstrip__thumbs img {
  width: 34px; height: 26px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: .5;
  transition: opacity .45s var(--ease-soft), filter .45s var(--ease-soft), transform .45s var(--ease-out);
}
.topstrip__thumbs img:hover { opacity: 1; filter: none; transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   6. HEADER / NAV
   -------------------------------------------------------------------------- */
.masthead {
  position: relative;
  background: rgba(247,245,241,.9);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease-soft), border-color .5s;
}
.sitehead.is-stuck .masthead {
  border-bottom-color: var(--slate-200);
  background: rgba(247,245,241,.97);
}

/* Header transparente sobre hero oscuro */
.masthead--over {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--white);
}
.sitehead.is-stuck .masthead--over {
  background: rgba(10,22,40,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255,255,255,.1);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--header-h);
}

/* Logo tipográfico */
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 42px; height: 42px;
  flex-shrink: 0;
}
.brand__type { line-height: 1; }
/* El logo nunca debe empujar al menú fuera de pantalla, aunque el título
   del sitio sea largo (por ejemplo, si lleva keywords para SEO).
   De ahí el ancho máximo y el truncado con puntos suspensivos. */
.brand {
  flex-shrink: 0;
  max-width: min(400px, 42vw);
  overflow: hidden;
}
.brand__type { min-width: 0; overflow: hidden; }

.brand__name {
  display: block;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .3em;
  text-indent: .3em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nombres largos: se reduce el cuerpo antes que recurrir al truncado */
.brand--largo .brand__name { font-size: 19px; letter-spacing: .18em; text-indent: .18em; }
.brand--largo .brand__sub  { font-size: 7.5px; letter-spacing: .3em; text-indent: .3em; }

@media (max-width: 1240px) {
  .brand { max-width: min(280px, 38vw); }
  .brand__name { font-size: 20px; letter-spacing: .22em; text-indent: .22em; }
  .brand--largo .brand__name { font-size: 16px; letter-spacing: .14em; text-indent: .14em; }
}
@media (max-width: 1024px) {
  .brand { max-width: 60vw; }
}

/* Red de seguridad: la cabecera nunca desborda horizontalmente */
.masthead__inner { min-width: 0; }
.nav { min-width: 0; flex-shrink: 1; }
.sitehead, .masthead { max-width: 100vw; overflow-x: clip; }
.brand__sub {
  display: block;
  margin-top: 5px;
  font-size: 8.5px;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  opacity: .58;
}

/* Navegación principal */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 14px 17px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .4s var(--ease-soft);
}
.nav__link .chev {
  width: 8px; height: 8px;
  opacity: .55;
  transition: transform .4s var(--ease-out);
}
.nav__item:hover .chev { transform: rotate(180deg); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 17px; right: 17px; bottom: 8px;
  height: 1px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--sand); }

/* Mega-menú */
.mega {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, 12px);
  min-width: 640px;
  padding: 34px;
  background: var(--white);
  box-shadow: 0 40px 90px -30px rgba(10,22,40,.35);
  display: grid;
  grid-template-columns: 1fr 1fr 210px;
  gap: 34px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s var(--ease-soft), transform .55s var(--ease-out), visibility .45s;
  color: var(--ink);
}
.nav__item:hover .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.mega__title {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--sand);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--slate-200);
}
.mega__list li + li { margin-top: 3px; }
.mega__list a {
  display: block;
  padding: 8px 10px;
  margin-inline: -10px;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--slate-700);
  transition: background .35s, color .35s, padding-left .4s var(--ease-out);
}
.mega__list a:hover {
  background: var(--ivory);
  color: var(--ink);
  padding-left: 18px;
}
.mega__card { position: relative; overflow: hidden; }
.mega__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.mega__card:hover img { transform: scale(1.07); }
.mega__card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px 15px;
  background: linear-gradient(transparent, rgba(10,22,40,.88));
  color: var(--white);
  font-size: 10.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.masthead__actions { display: flex; align-items: center; gap: 14px; }
.masthead__actions .btn { padding: 15px 26px; font-size: 10.5px; }

.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
  opacity: .8;
  transition: opacity .35s;
}
.burger:hover { opacity: 1; }
.burger span {
  display: block;
  position: relative;
  width: 18px; height: 1px;
  background: currentColor;
  transition: background .3s;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1px;
  background: currentColor;
  transition: transform .45s var(--ease-out);
}
.burger span::before { top: -6px; }
.burger span::after  { top:  6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Panel móvil */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--ink);
  color: var(--ivory);
  padding: calc(var(--header-h) + 30px) var(--gutter) 40px;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .85s var(--ease-out);
}
.drawer.is-open { clip-path: inset(0 0 0 0); }
.drawer__list > li { border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer__list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
}
.drawer__sub { padding: 0 0 18px 4px; display: grid; gap: 4px; }
.drawer__sub a {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  letter-spacing: .06em;
  opacity: .62;
}
.drawer__sub a:hover { opacity: 1; color: var(--sand-light); }
.drawer__foot {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid;
  gap: 12px;
  font-size: 13px;
  opacity: .78;
}

/* --------------------------------------------------------------------------
   7. HERO PANORÁMICO 3D
   -------------------------------------------------------------------------- */
.hero3d {
  position: relative;
  height: 100svh;
  min-height: 640px;
  background: var(--ink);
  overflow: hidden;
  color: var(--white);
}

.hero3d__stage {
  position: absolute;
  inset: 0;
  perspective: 1500px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

.hero3d__slide {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  opacity: 0;
  visibility: hidden;
  transform: rotateY(9deg) translateZ(-320px);
  transition:
    opacity 1.25s var(--ease-soft),
    transform 1.5s var(--ease-out),
    visibility 1.25s;
  will-change: transform, opacity;
}
.hero3d__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: rotateY(0) translateZ(0);
  z-index: 2;
}
.hero3d__slide.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: rotateY(-9deg) translateZ(-320px);
  z-index: 1;
}

/* Capa panorámica: la imagen es más ancha que el viewport y desplaza con el mouse */
.hero3d__pano {
  position: absolute;
  top: -6%; left: -12%;
  width: 124%; height: 112%;
  transform-style: preserve-3d;
  transform:
    translateZ(-160px)
    scale(1.14)
    translate3d(calc(var(--mx, 0) * 34px), calc(var(--my, 0) * 20px), 0);
  transition: transform 1.4s var(--ease-out);
  will-change: transform;
}
.hero3d__pano img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero3d__slide.is-active .hero3d__pano img {
  animation: kenburns 11s var(--ease-soft) forwards;
}
@keyframes kenburns {
  from { transform: scale(1.16) translate3d(0, 0, 0); }
  to   { transform: scale(1.01) translate3d(0, -1.2%, 0); }
}

/* Capas de profundidad */
.hero3d__scrim {
  position: absolute;
  inset: 0;
  transform: translateZ(-60px) scale(1.06);
  background:
    linear-gradient(180deg, rgba(10,22,40,.72) 0%, rgba(10,22,40,.18) 34%, rgba(10,22,40,.55) 72%, rgba(10,22,40,.92) 100%),
    radial-gradient(70% 90% at 22% 55%, rgba(10,22,40,.6), transparent 68%);
}
.hero3d__grain {
  position: absolute;
  inset: 0;
  transform: translateZ(-20px) scale(1.03);
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Contenido flotante en primer plano */
.hero3d__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 46px + 40px);
  padding-bottom: clamp(90px, 12vh, 150px);
  transform: translateZ(70px)
             translate3d(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -10px), 0);
  transition: transform 1.2s var(--ease-out);
}

.hero3d__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--sand-light);
  margin-bottom: 26px;
}
.hero3d__eyebrow::before {
  content: "";
  width: 54px; height: 1px;
  background: currentColor;
}

.hero3d__title {
  font-size: clamp(2.7rem, 6.1vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  max-width: 17ch;
  margin: 0 0 24px;
  color: var(--white);
}
.hero3d__title em {
  font-style: italic;
  color: var(--sand-light);
}

.hero3d__sub {
  max-width: 52ch;
  font-size: clamp(.95rem, 1.15vw, 1.13rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,.76);
  margin-bottom: 40px;
}

.hero3d__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Máscara de revelado de líneas */
.reveal-mask { display: block; overflow: hidden; }
.reveal-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.15s var(--ease-out);
}
.is-active .reveal-mask > span,
.is-inview .reveal-mask > span { transform: translateY(0); }
.reveal-mask:nth-child(2) > span { transition-delay: .1s; }
.reveal-mask:nth-child(3) > span { transition-delay: .2s; }

.hero3d__slide .hero3d__eyebrow,
.hero3d__slide .hero3d__sub,
.hero3d__slide .hero3d__cta {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease-soft), transform 1.1s var(--ease-out);
}
.hero3d__slide.is-active .hero3d__eyebrow { opacity: 1; transform: none; transition-delay: .25s; }
.hero3d__slide.is-active .hero3d__sub     { opacity: 1; transform: none; transition-delay: .5s;  }
.hero3d__slide.is-active .hero3d__cta     { opacity: 1; transform: none; transition-delay: .65s; }

/* Controles del slider */
.hero3d__ui {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.hero3d__ui .shell {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 34px;
}
.hero3d__ui > * { pointer-events: auto; }

.hero3d__dots { display: flex; align-items: center; gap: 0; pointer-events: auto; }
.hero3d__dot {
  position: relative;
  width: 56px; height: 2px;
  padding: 16px 0;
  margin-right: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.hero3d__dot::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 1.5px;
  background: rgba(255,255,255,.28);
  transform: translateY(-50%);
}
.hero3d__dot::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 1.5px;
  background: var(--sand-light);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
}
.hero3d__dot.is-active::after {
  animation: dotfill var(--slide-dur, 7s) linear forwards;
}
@keyframes dotfill { to { transform: translateY(-50%) scaleX(1); } }

.hero3d__counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  color: rgba(255,255,255,.6);
  pointer-events: auto;
}
.hero3d__counter b {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  color: var(--white);
}

.hero3d__arrows { display: flex; gap: 10px; pointer-events: auto; }
.hero3d__arrow {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.24);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .45s var(--ease-soft), border-color .45s, transform .45s var(--ease-out);
}
.hero3d__arrow:hover {
  background: var(--sand);
  border-color: var(--sand);
  transform: translateY(-3px);
}
.hero3d__arrow svg { width: 17px; height: 17px; }

.hero3d__scroll {
  position: absolute;
  z-index: 5;
  right: var(--gutter);
  bottom: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 9.5px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  writing-mode: vertical-rl;
}
.hero3d__scroll::after {
  content: "";
  width: 1px; height: 66px;
  background: linear-gradient(rgba(255,255,255,.5), transparent);
  animation: scrollpulse 2.4s var(--ease-soft) infinite;
}
@keyframes scrollpulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --------------------------------------------------------------------------
   8. BUSCADOR FLOTANTE
   -------------------------------------------------------------------------- */
.searchbar {
  position: relative;
  z-index: 12;
  margin-top: -62px;
}
.searchbar__box {
  background: var(--white);
  box-shadow: 0 44px 90px -40px rgba(10,22,40,.42);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 1px;
  background-color: var(--slate-200);
}
.searchbar__field {
  position: relative;
  background: var(--white);
  padding: 20px 24px;
}
.searchbar__field label {
  display: block;
  font-size: 9.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 8px;
}
.searchbar__field select,
.searchbar__field input {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  padding: 0;
  appearance: none;
  cursor: pointer;
}
.searchbar__field select:focus,
.searchbar__field input:focus { outline: none; }
.searchbar__field::after {
  content: "";
  position: absolute;
  right: 24px; bottom: 26px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--slate-500);
  border-bottom: 1px solid var(--slate-500);
  transform: rotate(45deg);
  pointer-events: none;
}
.searchbar__field--text::after { display: none; }
.searchbar__submit {
  background: var(--ink);
  color: var(--white);
  border: 0;
  padding-inline: 44px;
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  transition: background .5s var(--ease-soft);
}
.searchbar__submit:hover { background: var(--sand); }

/* --------------------------------------------------------------------------
   9. BARRA DE MÉTRICAS
   -------------------------------------------------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--slate-200);
  border-block: 1px solid var(--slate-200);
}
.band--ink .metrics { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.12); }

.metric {
  background: var(--ivory);
  padding: clamp(34px, 4.4vw, 60px) clamp(20px, 2.6vw, 40px);
  text-align: center;
}
.band--ink .metric { background: var(--ink); }
.band--white .metrics .metric { background: var(--white); }

.metric__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 12px;
}
.band--ink .metric__num { color: var(--sand-light); }
.metric__label {
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--slate-500);
}
.band--ink .metric__label { color: rgba(255,255,255,.55); }

/* --------------------------------------------------------------------------
   10. TARJETAS DE PROPIEDAD (grid editorial)
   -------------------------------------------------------------------------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 46px) clamp(20px, 2.4vw, 34px);
}
.listing-grid--2 { grid-template-columns: repeat(2, 1fr); }

.listing { position: relative; }
.listing__media {
  position: relative;
  aspect-ratio: 4 / 3.1;
  overflow: hidden;
  background: var(--slate-100);
  margin-bottom: 22px;
}
.listing__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.4s var(--ease-out), filter 1s var(--ease-soft);
}
.listing:hover .listing__media img { transform: scale(1.07); }
.listing__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 55%, rgba(10,22,40,.5));
  opacity: 0;
  transition: opacity .7s var(--ease-soft);
}
.listing:hover .listing__media::after { opacity: 1; }

.listing__tag {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  padding: 8px 15px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 9.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.listing__tag--sand { background: var(--sand); color: var(--white); }
.listing__tag--ink  { background: var(--ink);  color: var(--white); }

.listing__view {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.86);
  z-index: 2;
  width: 108px; height: 108px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 9.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .55s var(--ease-soft), transform .7s var(--ease-out);
}
.listing:hover .listing__view { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.listing__loc {
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 10px;
}
.listing__title {
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
  margin-bottom: 12px;
  transition: color .4s var(--ease-soft);
}
.listing:hover .listing__title { color: var(--sand); }
.listing__price {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 16px;
}
.listing__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.listing__specs span { display: inline-flex; align-items: center; gap: 7px; }
.listing__specs svg { width: 14px; height: 14px; opacity: .55; }

/* Listado destacado horizontal */
.feature-listing {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.feature-listing--flip { grid-template-columns: .75fr 1.25fr; }
.feature-listing--flip .feature-listing__media { order: 2; }
.feature-listing__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.feature-listing__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   11. ZONAS / COMUNIDADES
   -------------------------------------------------------------------------- */
.zones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--slate-200);
}
.zone {
  position: relative;
  min-height: clamp(340px, 42vw, 560px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 34px 30px;
  color: var(--white);
  isolation: isolate;
}
.zone img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.02);
  transition: transform 1.6s var(--ease-out);
}
.zone::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,22,40,.12) 0%, rgba(10,22,40,.42) 45%, rgba(10,22,40,.9) 100%);
  transition: background .8s var(--ease-soft);
}
.zone:hover img { transform: scale(1.12); }
.zone:hover::after { background: linear-gradient(180deg, rgba(10,22,40,.3) 0%, rgba(30,90,168,.5) 50%, rgba(10,22,40,.94) 100%); }

.zone__body { position: relative; z-index: 1; }
.zone__count {
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--sand-light);
  margin-bottom: 12px;
}
.zone__name {
  font-size: clamp(1.5rem, 2.1vw, 2.2rem);
  color: var(--white);
  margin-bottom: 10px;
}
.zone__desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .8s var(--ease-out), opacity .6s var(--ease-soft), margin .8s var(--ease-out);
}
.zone:hover .zone__desc { max-height: 120px; opacity: 1; margin-top: 4px; }

/* --------------------------------------------------------------------------
   12. SERVICIOS (lista numerada editorial)
   -------------------------------------------------------------------------- */
.svc-list { border-top: 1px solid var(--slate-200); }
.band--ink .svc-list { border-color: rgba(255,255,255,.14); }

.svc {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr 1.15fr auto;
  gap: clamp(18px, 3vw, 54px);
  align-items: center;
  padding: clamp(26px, 3.2vw, 46px) 0;
  border-bottom: 1px solid var(--slate-200);
  overflow: hidden;
  transition: color .5s var(--ease-soft);
}
.band--ink .svc { border-color: rgba(255,255,255,.14); }
.svc::before {
  content: "";
  position: absolute;
  inset: 0 -24px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .6s var(--ease-out);
  z-index: -1;
}
.svc:hover::before { transform: scaleY(1); transform-origin: top; }
.svc:hover { color: var(--white); }
.svc:hover .svc__num,
.svc:hover .svc__desc { color: rgba(255,255,255,.6); }
.svc:hover .svc__name { color: var(--white); }
.svc:hover .svc__go { background: var(--sand); border-color: var(--sand); color: var(--white); }

.svc__num {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--sand);
  transition: color .5s;
}
.svc__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2.35rem);
  font-weight: 300;
  line-height: 1.12;
  margin: 0;
  transition: color .5s;
}
.svc__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate-500);
  margin: 0;
  transition: color .5s;
}
.svc__go {
  width: 54px; height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--slate-300);
  transition: background .5s, border-color .5s, color .5s, transform .5s var(--ease-out);
}
.svc:hover .svc__go { transform: rotate(-45deg); }
.svc__go svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   13. SPLIT EDITORIAL (imagen + texto)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 110px);
  align-items: center;
}
.split--flip .split__media { order: 2; }

.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.split__media img {
  width: 100%; height: 112%;
  object-fit: cover;
  will-change: transform;
}
.split__media--wide { aspect-ratio: 5 / 4; }

.split__badge {
  position: absolute;
  right: 0; bottom: 0;
  z-index: 2;
  padding: 30px 34px;
  background: var(--sand);
  color: var(--white);
  max-width: 230px;
}
.split__badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 6px;
}
.split__badge span {
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  opacity: .88;
}

.checklist { margin: 30px 0 40px; }
.checklist li {
  position: relative;
  padding: 13px 0 13px 36px;
  border-bottom: 1px solid var(--slate-200);
  font-size: 14.5px;
  color: var(--slate-700);
}
.band--ink .checklist li { border-color: rgba(255,255,255,.13); color: rgba(255,255,255,.72); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 21px;
  width: 15px; height: 8px;
  border-left: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   14. TESTIMONIOS
   -------------------------------------------------------------------------- */
.quotes { position: relative; }
.quote {
  display: none;
  text-align: center;
  max-width: 940px;
  margin-inline: auto;
}
.quote.is-active { display: block; animation: quotein .9s var(--ease-out); }
@keyframes quotein {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.36;
  margin-bottom: 34px;
}
.quote__who {
  font-size: 10.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--sand);
}
.quote__who span { display: block; margin-top: 8px; color: var(--slate-500); letter-spacing: .1em; }
.band--ink .quote__who span { color: rgba(255,255,255,.45); }

.quotes__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}
.quotes__nav button {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--slate-300);
  cursor: pointer;
  transition: background .45s, border-color .45s, color .45s;
}
.band--ink .quotes__nav button { border-color: rgba(255,255,255,.25); }
.quotes__nav button:hover { background: var(--sand); border-color: var(--sand); color: var(--white); }
.quotes__nav svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   15. MARQUEE / PRENSA
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding-block: 30px;
  border-block: 1px solid var(--slate-200);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 78px;
  width: max-content;
  animation: slide 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__item {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .1em;
  color: var(--slate-300);
  white-space: nowrap;
  transition: color .5s;
}
.marquee__item:hover { color: var(--sand); }

/* --------------------------------------------------------------------------
   16. BLOG
   -------------------------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3vw, 46px); }

.post__media {
  position: relative;
  aspect-ratio: 3 / 2.15;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--slate-100);
}
.post__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease-out);
}
.post:hover .post__media img { transform: scale(1.06); }
.post__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 14px;
}
.post__cat { color: var(--sand); }
.post__title {
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  line-height: 1.25;
  margin-bottom: 12px;
  transition: color .4s;
}
.post:hover .post__title { color: var(--sand); }
.post__excerpt { font-size: 14px; color: var(--slate-500); margin-bottom: 18px; }

/* Artículo */
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.article__body { max-width: 76ch; }
.article__body h2 { margin-top: 2em; }
.article__body h3 { margin-top: 1.6em; font-size: 1.35rem; }
.article__body p  { font-size: 1.02rem; line-height: 1.9; color: var(--slate-700); }
.article__body img { margin-block: 2.2em; }
.article__body blockquote {
  margin: 2.2em 0;
  padding: 4px 0 4px 34px;
  border-left: 2px solid var(--sand);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.article__lead {
  font-size: 1.2rem !important;
  line-height: 1.75 !important;
  color: var(--ink) !important;
}
.aside__card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 34px 30px;
}
.aside__card + .aside__card { margin-top: 20px; }

/* --------------------------------------------------------------------------
   17. FORMULARIOS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 9.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 10px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--slate-300);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .5s var(--ease-soft);
}
.band--ink .field input,
.band--ink .field select,
.band--ink .field textarea {
  border-bottom-color: rgba(255,255,255,.24);
  color: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--sand); }
.field input::placeholder,
.field textarea::placeholder { color: var(--slate-300); }
.band--ink .field input::placeholder,
.band--ink .field textarea::placeholder { color: rgba(255,255,255,.3); }
.field select option { color: var(--ink); }

.form__note { font-size: 11.5px; color: var(--slate-500); letter-spacing: .04em; }
.band--ink .form__note { color: rgba(255,255,255,.45); }

.form__msg {
  display: none;
  padding: 16px 20px;
  font-size: 13.5px;
  border-left: 2px solid;
}
.form__msg.is-ok  { display: block; background: rgba(46,125,80,.08); border-color: #2E7D50; color: #1E5A38; }
.form__msg.is-err { display: block; background: rgba(185,60,60,.08); border-color: #B93C3C; color: #8E2C2C; }
.band--ink .form__msg.is-ok  { background: rgba(120,220,160,.1); color: #A8E6C1; }
.band--ink .form__msg.is-err { background: rgba(255,120,120,.1); color: #FFB4B4; }

/* --------------------------------------------------------------------------
   18. PAGE HERO (páginas internas)
   -------------------------------------------------------------------------- */
.pagehero {
  position: relative;
  min-height: clamp(430px, 56vh, 620px);
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--header-h) + 46px + 56px) clamp(50px, 7vw, 88px);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.pagehero__bg {
  position: absolute;
  inset: -8% 0 0;
  z-index: -2;
  width: 100%; height: 116%;
  object-fit: cover;
  will-change: transform;
}
.pagehero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,22,40,.82) 0%, rgba(10,22,40,.42) 40%, rgba(10,22,40,.88) 100%);
}
.pagehero h1 { max-width: 18ch; margin-bottom: 20px; }
.pagehero .lede { color: rgba(255,255,255,.72); }

.crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 26px;
}
.crumbs a:hover { color: var(--sand-light); }
.crumbs .sep { opacity: .45; }

/* --------------------------------------------------------------------------
   19. CTA FINAL
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  text-align: center;
  padding-block: clamp(90px, 12vw, 180px);
}
.cta-band__bg {
  position: absolute;
  inset: -10% 0 0;
  z-index: -2;
  width: 100%; height: 120%;
  object-fit: cover;
  will-change: transform;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: rgba(10,22,40,.78);
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; color: var(--white); }
.cta-band .lede { color: rgba(255,255,255,.72); margin-inline: auto; margin-bottom: 40px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --------------------------------------------------------------------------
   20. FOOTER
   -------------------------------------------------------------------------- */
.foot {
  background: var(--ink);
  color: rgba(255,255,255,.62);
  padding-top: clamp(70px, 8vw, 120px);
  font-size: 13.5px;
}
.foot__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: clamp(32px, 4vw, 66px);
  padding-bottom: clamp(50px, 6vw, 84px);
}
.foot h4 {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 26px;
}
.foot__links li + li { margin-top: 12px; }
.foot__links a { transition: color .4s, padding-left .45s var(--ease-out); display: inline-block; }
.foot__links a:hover { color: var(--white); padding-left: 8px; }

.foot .brand { color: var(--white); margin-bottom: 24px; }
.foot__blurb { max-width: 38ch; line-height: 1.85; }

.foot__contact li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.foot__contact svg { width: 15px; height: 15px; color: var(--sand); flex-shrink: 0; margin-top: 4px; }
.foot__contact a:hover { color: var(--white); }

.foot__social { display: flex; gap: 10px; margin-top: 28px; }
.foot__social a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  transition: background .45s, border-color .45s, color .45s, transform .45s var(--ease-out);
}
.foot__social a:hover { background: var(--sand); border-color: var(--sand); color: var(--white); transform: translateY(-3px); }
.foot__social svg { width: 15px; height: 15px; }

.foot__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 28px;
  border-top: 1px solid rgba(255,255,255,.11);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.4);
}
.foot__bar a:hover { color: var(--white); }
.foot__legal { display: flex; gap: 26px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   21. WHATSAPP FLOTANTE
   -------------------------------------------------------------------------- */
.wa {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0;
  height: 58px;
  padding-right: 0;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 18px 40px -12px rgba(37,211,102,.55);
  overflow: hidden;
  transition: padding-right .6s var(--ease-out), box-shadow .5s;
}
.wa__icon { width: 58px; height: 58px; display: grid; place-items: center; flex-shrink: 0; }
.wa__icon svg { width: 28px; height: 28px; }
.wa__label {
  max-width: 0;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  overflow: hidden;
  transition: max-width .6s var(--ease-out);
}
.wa:hover { padding-right: 24px; box-shadow: 0 22px 50px -12px rgba(37,211,102,.7); }
.wa:hover .wa__label { max-width: 220px; }

/* --------------------------------------------------------------------------
   22. MOTION — revelados al hacer scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1s var(--ease-soft),
    transform 1.15s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 95ms);
}
[data-reveal].is-inview { opacity: 1; transform: none; }

[data-reveal="fade"]  { transform: none; }
[data-reveal="left"]  { transform: translateX(-42px); }
[data-reveal="right"] { transform: translateX(42px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal="clip"]  {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.35s var(--ease-out);
}
[data-reveal="clip"].is-inview { clip-path: inset(0 0 0 0); }

/* Contadores */
[data-count] { font-variant-numeric: tabular-nums; }

/* Cursor personalizado (solo puntero fino) */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  border: 1px solid var(--sand);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s, width .45s var(--ease-out), height .45s var(--ease-out),
              margin .45s var(--ease-out), background .45s;
  mix-blend-mode: difference;
}
.cursor.is-on { opacity: 1; }
.cursor.is-big {
  width: 76px; height: 76px;
  margin: -38px 0 0 -38px;
  background: rgba(185,154,99,.18);
}

/* --------------------------------------------------------------------------
   23. FILTROS DE PROPIEDADES
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 46px;
  margin-bottom: 46px;
  border-bottom: 1px solid var(--slate-200);
}
.filter {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--slate-300);
  font-size: 10.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  transition: background .45s var(--ease-soft), border-color .45s, color .45s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }

.listing.is-hidden { display: none; }

/* --------------------------------------------------------------------------
   24. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .listing-grid, .posts { grid-template-columns: repeat(2, 1fr); }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: 1fr; }
  .aside__card { position: static; }
  .searchbar__box { grid-template-columns: repeat(2, 1fr); }
  .searchbar__submit { grid-column: 1 / -1; padding-block: 20px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .nav, .masthead__actions .btn { display: none; }
  .burger { display: inline-flex; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .split, .feature-listing, .feature-listing--flip { grid-template-columns: 1fr; }
  .split--flip .split__media,
  .feature-listing--flip .feature-listing__media { order: 0; }
  .split__media { aspect-ratio: 4 / 3; }
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .svc { grid-template-columns: 54px 1fr auto; }
  .svc__desc { display: none; }
}

@media (max-width: 720px) {
  /* La barra superior deja sólo el teléfono para no desbordar */
  .topstrip__list > *:not(:first-child),
  .topstrip__thumbs { display: none; }
  .topstrip__inner { justify-content: space-between; gap: 12px; }
  .topstrip__social { gap: 14px; }

  .hero3d { height: auto; min-height: 100svh; }
  .hero3d__title { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .hero3d__scroll { display: none; }

  /* Deja espacio para la barra de controles, que va debajo del contenido */
  .hero3d__content { padding-bottom: 190px; }
  .hero3d__ui .shell {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 24px;
  }
  .hero3d__dots { order: 3; flex-basis: 100%; }
  .hero3d__dot { width: 38px; margin-right: 8px; }
  .hero3d__cta { width: 100%; flex-direction: column; }
  .hero3d__cta .btn { width: 100%; }

  .searchbar { margin-top: -30px; }
  .searchbar__box { grid-template-columns: 1fr; }

  .listing-grid, .listing-grid--2, .posts, .zones { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__bar { flex-direction: column; text-align: center; }

  .svc { grid-template-columns: 1fr auto; gap: 16px; }
  .svc__num { display: none; }

  .cursor { display: none; }
  .wa { right: 16px; bottom: 16px; }
  .zone { min-height: 300px; }
}

/* --------------------------------------------------------------------------
   25. ACCESIBILIDAD / PREFERENCIAS
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero3d__slide.is-active .hero3d__pano img { animation: none; }
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   26. INTEGRACIÓN CON WORDPRESS
   Estilos para el marcado que genera WordPress y que el diseño estático
   no contemplaba: paginación, bloques de Gutenberg, comentarios y alineados.
   ========================================================================== */

/* ----- Paginación de archivos ----- */
.wp-block-query-pagination,
.navigation.pagination {
  margin-top: clamp(50px, 6vw, 80px);
  padding-top: 40px;
  border-top: 1px solid var(--slate-200);
}
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding-inline: 14px;
  border: 1px solid var(--slate-300);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink);
  transition: background .4s var(--ease-soft), border-color .4s, color .4s;
}
.navigation.pagination .page-numbers:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.navigation.pagination .page-numbers.current {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--white);
}
.navigation.pagination .page-numbers.dots {
  border-color: transparent;
}

/* ----- Navegación entre entradas ----- */
.gavia-postnav a {
  display: block;
  max-width: 46ch;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink);
  transition: color .4s var(--ease-soft);
}
.gavia-postnav a:hover { color: var(--sand); }

/* ----- Paginación interna de una entrada ----- */
.page-links {
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.page-links a {
  display: inline-block;
  padding: 6px 12px;
  margin-left: 6px;
  border: 1px solid var(--slate-300);
  color: var(--ink);
}
.page-links a:hover { background: var(--ink); color: var(--white); }

/* ----- Bloques de Gutenberg ----- */
.article__body .wp-block-image { margin-block: 2.2em; }
.article__body .wp-block-image img { width: 100%; }
.article__body .wp-element-caption,
.article__body figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--slate-500);
  text-align: center;
}

.article__body .wp-block-quote {
  margin: 2.2em 0;
  padding: 4px 0 4px 34px;
  border-left: 2px solid var(--sand);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}
.article__body .wp-block-quote p { margin: 0; }
.article__body .wp-block-quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-style: normal;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--sand);
}

.article__body .wp-block-separator {
  max-width: 100%;
  margin-block: 2.6em;
  border: 0;
  border-top: 1px solid var(--slate-200);
}

.article__body .wp-block-table { margin-block: 2.2em; overflow-x: auto; }
.article__body .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.article__body .wp-block-table th,
.article__body .wp-block-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}
.article__body .wp-block-table th {
  width: 38%;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--slate-500);
}
.article__body .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: var(--ivory);
}

.article__body .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block: 2em;
}
.article__body .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  padding: 19px 42px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: background .5s var(--ease-soft), border-color .5s, color .5s;
}
.article__body .wp-block-button__link:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--white);
}
.article__body .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--ink);
}
.article__body .is-style-outline .wp-block-button__link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* Listas con clase checklist dentro del contenido */
.article__body .checklist { margin: 30px 0 40px; padding: 0; list-style: none; }
.article__body .checklist li {
  position: relative;
  padding: 13px 0 13px 36px;
  border-bottom: 1px solid var(--slate-200);
  font-size: 14.5px;
  color: var(--slate-700);
}
.article__body .checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 21px;
  width: 15px; height: 8px;
  border-left: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  transform: rotate(-45deg);
}
.article__body .related-links { list-style: none; padding: 0; }
.article__body .related-links li { padding: 10px 0; border-bottom: 1px solid var(--slate-200); }

/* Listas normales del contenido */
.article__body ul:not(.checklist):not(.related-links),
.article__body ol {
  padding-left: 1.3em;
  margin-block: 1.4em;
}
.article__body ul:not(.checklist):not(.related-links) { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li { margin-bottom: .6em; line-height: 1.8; color: var(--slate-700); }

/* Alineados */
.alignwide  { max-width: min(1200px, 100%); margin-inline: auto; }
.alignfull  { max-width: 100vw; margin-inline: calc(50% - 50vw); }
.alignleft  { float: left;  margin: .4em 2em 1.4em 0; max-width: 50%; }
.alignright { float: right; margin: .4em 0 1.4em 2em; max-width: 50%; }
.aligncenter{ margin-inline: auto; display: block; }

/* Título de widget en la barra lateral */
.aside__title {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 18px;
}
.aside__card ul { list-style: none; padding: 0; }
.aside__card a { color: var(--ink); }
.aside__card a:hover { color: var(--sand); }

/* Etiquetas de entrada */
.article__body .tag-cloud-link,
.article__body a[rel~="tag"] {
  display: inline-block;
  padding: 7px 15px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--slate-300);
  font-size: 11px !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-700);
  transition: background .4s, border-color .4s, color .4s;
}
.article__body a[rel~="tag"]:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--white);
}

/* Filtros del catálogo: selects nativos con el estilo del tema */
select.filter {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%236B7787' stroke-width='1.4'><path d='m2 4 4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px;
  padding-right: 38px;
  font-family: var(--font-sans);
  color: var(--ink);
}
a.filter { display: inline-flex; align-items: center; }

/* Barra de administración: compensa el desplazamiento del header fijo */
.admin-bar .sitehead { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .sitehead { top: 46px; }
}

/* Contenido incrustado (oEmbed) */
.wp-block-embed__wrapper { position: relative; }
.wp-block-embed iframe { max-width: 100%; }

/* Mensajes del formulario cuando llegan por redirección */
.form__msg:empty { display: none !important; }
