/* ==========================================================================
   AMENDOLA & CARLI PROPIEDADES — Rediseño v2
   HTML + CSS + JS puro. Concepto: entrar a un edificio.
   ========================================================================== */

/* ---------- 1. Base y paleta ---------- */
:root {
  /* naranjas en varias fuerzas */
  --orange: #ef7d19;
  --orange-2: #ff9a2e;
  --orange-3: #ffb257;
  --amber: #ffd9a8;
  --burnt: #c2410c;
  --rust: #7c2d12;
  --peach: #ffe7d1;

  --ink: #14110f;
  --slate: #57514c;
  --muted: #8c8580;
  --paper: #ffffff;
  --cream: #fff8f0;
  --line: #efe7de;

  --navy: #0b1220;
  --navy-2: #101c33;

  --wrap: 1200px;
  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-sm: 0 2px 10px rgba(20, 17, 15, .06);
  --shadow-md: 0 18px 40px -18px rgba(20, 17, 15, .35);
  --shadow-lg: 0 34px 70px -30px rgba(20, 17, 15, .45);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

.sprite {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
}

/* ---------- 2. Iconos (mismo tamaño base: 1.15em) ---------- */
.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  transition: transform .45s var(--ease-spring), color .3s ease, opacity .3s ease;
  vertical-align: -.18em;
}

/* micro-movimientos de iconos */
.card-meta li:hover .icon,
.chip:hover .icon,
.f-contact a:hover .icon { animation: icon-pop .6s var(--ease-spring); }

@keyframes icon-pop {
  0%   { transform: scale(1) translateY(0); }
  35%  { transform: scale(.86) translateY(1px); }
  70%  { transform: scale(1.14) translateY(-2px); }
  100% { transform: scale(1) translateY(0); }
}
@keyframes pin-bounce {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-5px) scale(1.12); }
  60%  { transform: translateY(1px) scale(.98); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes cam-pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50%      { transform: scale(1.18); opacity: 1; }
}

/* ---------- 3. Logo ---------- */
.brand-mark {
  width: 176px;
  height: auto;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.nav .brand { padding-block: 6px; }
.nav .brand-mark { width: clamp(112px, 12vw, 152px); }

/* ---------- 4. Navegación ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 120;
  background:
    radial-gradient(120% 180% at 12% 0%, rgba(239, 125, 25, .16), transparent 45%),
    linear-gradient(100deg, #0b1220, #101c33 55%, #0b1220);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .8);
  transition: box-shadow .4s ease, background .4s ease;
}
.nav.is-scrolled {
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .85);
  backdrop-filter: blur(14px);
}
.progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--burnt), var(--orange), var(--orange-3));
  box-shadow: 0 0 12px rgba(239, 125, 25, .8);
  z-index: 3;
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  perspective: 900px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 16px 13px;
  color: #e9edf5;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .45s var(--ease-spring), color .3s ease;
}
.nav-link:hover {
  transform: translateY(-5px) scale(1.07) rotateX(8deg);
  color: var(--orange-3);
}
.nav-link.is-active { color: var(--orange-2); }

.chev { font-size: 12px; transition: transform .4s var(--ease-out); }
.has-drop { position: relative; }
.has-drop:hover > .nav-link .chev,
.has-drop.is-open > .nav-link .chev { transform: rotate(180deg); }

.drop {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  min-width: 208px;
  padding: 10px 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 26px 54px -20px rgba(0, 0, 0, .55);
  border: 1px solid rgba(0, 0, 0, .05);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px) rotateX(-8deg) scale(.96);
  transform-origin: top center;
  transition: opacity .3s ease, transform .45s var(--ease-out), visibility .35s;
  z-index: 130;
}
@media (min-width: 901px) {
  .has-drop:hover:not(.is-dismissed) > .drop,
  .has-drop:focus-within:not(.is-dismissed) > .drop,
  .has-drop.is-open > .drop {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) rotateX(0) scale(1);
  }
}
.drop::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  margin-left: -6px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 2px;
}
.drop a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13.5px;
  color: #2b2b2b;
  transition: color .25s, background .25s, padding-left .3s var(--ease-out), transform .3s var(--ease-out);
}
.drop a:hover {
  background: #fff4e9;
  color: var(--burnt);
  padding-left: 24px;
  transform: translateX(2px);
}
.drop a.is-current { color: var(--burnt); font-weight: 600; }
.drop a.is-current .icon { width: 13px; height: 13px; }
.lang .drop a .icon {
  width: 13px; height: 13px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s ease, transform .4s var(--ease-spring);
}
.lang .drop a.is-current .icon { opacity: 1; transform: scale(1); }

.nav-side { display: flex; align-items: center; gap: 10px; }
.nav-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #dfe5ef;
  font-size: 12.5px;
  font-weight: 500;
  transition: transform .4s var(--ease-spring), color .3s, background .3s;
}
.nav-mini:hover {
  color: var(--orange-3);
  background: rgba(239, 125, 25, .12);
  transform: translateY(-2px) scale(1.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 32px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .03em;
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease-spring), box-shadow .4s ease, background .3s, color .3s, border-color .3s;
}
.btn-solid {
  background: linear-gradient(120deg, var(--orange-2), var(--orange) 45%, var(--burnt));
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(239, 125, 25, .95);
}
.btn-solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translateX(-130%);
  transition: transform .9s ease;
}
.btn-solid:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 40px -16px rgba(239, 125, 25, 1);
}
.btn-solid:hover::before { transform: translateX(130%); }
.btn-solid:active { transform: translateY(0) scale(.99); }

.btn-ghost {
  height: 40px;
  padding: 0 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .5);
  transform: translateY(-2px);
}

.btn-pill {
  height: 42px;
  padding: 0 22px;
  border-radius: 30px;
  background: linear-gradient(120deg, var(--orange-2), var(--orange) 60%, var(--burnt));
  color: #1a0d02;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 10px 24px -14px rgba(239, 125, 25, .9);
  white-space: nowrap;
}
.btn-pill:hover {
  transform: translateY(-3px) scale(1.04);
  color: #120800;
  box-shadow: 0 18px 34px -14px rgba(239, 125, 25, 1);
}

.btn-outline {
  border: 1px solid #ddd3c9;
  background: #fff;
  color: #5a524c;
  min-width: 280px;
  height: 52px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12.5px;
  border-radius: 6px;
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--burnt);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -20px rgba(239, 125, 25, .8);
}

.burger { display: none; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #07131c;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: -14% -8%;
  z-index: 0;
  transform: translate3d(0, 0, 0) scale(1.03);
  will-change: transform;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 30s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.03);
}
@keyframes kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(0, -2%, 0); }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 14, 22, .72) 0%, rgba(6, 14, 22, .3) 40%, rgba(6, 14, 22, .82) 100%),
    linear-gradient(90deg, rgba(6, 14, 22, .7), transparent 55%);
}
.hero-glow {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-glow { display: none; }
.hero-glow.g1 {
  width: 60vw; height: 60vw;
  left: -18vw; bottom: -30vw;
  background: radial-gradient(closest-side, rgba(239, 125, 25, .45), transparent 70%);
  animation: glow-drift 14s ease-in-out infinite alternate;
}
.hero-glow.g2 {
  width: 40vw; height: 40vw;
  right: -10vw; top: -12vw;
  background: radial-gradient(closest-side, rgba(255, 178, 87, .35), transparent 70%);
  animation: glow-drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: .6; }
  to   { transform: translate3d(8%, -6%, 0) scale(1.15); opacity: 1; }
}

.hero-in {
  position: relative;
  z-index: 4;
  padding-top: 90px;
  padding-bottom: 150px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  color: var(--orange-3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease .35s, transform .8s var(--ease-out) .35s;
}
.hero.is-ready .eyebrow { opacity: 1; transform: none; }
.eyebrow .icon { font-size: 13px; }
.eyebrow.light { color: var(--orange-3); }

.hero-title {
  max-width: 940px;
  font-size: clamp(2.2rem, 5.7vw, 4.75rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.025em;
  margin-bottom: 36px;
  color: #F8F7F3;
}
.hero-title-line {
  display: block;
}
.hero-title-line-primary {
  font-family: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  white-space: nowrap;
}
.hero-title-line-secondary {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: inherit;
}
.hero-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.hero-title .w > span {
  display: inline-block;
  transform: translate3d(0, 118%, 0);
  transition: transform 1.1s var(--ease-out);
  will-change: transform;
}
.hero.is-ready .hero-title .w > span { transform: translate3d(0, 0, 0); }
.hero-title-line-primary .w:nth-child(1) > span { transition-delay: .12s; }
.hero-title-line-primary .w:nth-child(2) > span { transition-delay: .19s; }
.hero-title-line-primary .w:nth-child(3) > span { transition-delay: .26s; }
.hero-title-line-secondary .w:nth-child(1) > span { transition-delay: .33s; }
.hero-title-line-secondary .w:nth-child(2) > span { transition-delay: .40s; }
.hero-title-line-secondary .w:nth-child(3) > span { transition-delay: .47s; }

/* búsqueda */
.search {
  display: flex;
  gap: 12px;
  max-width: 800px;
  opacity: 0;
  transform: translateY(20px) scale(.99);
  transition: opacity .9s ease .6s, transform .9s var(--ease-out) .6s;
}
.hero.is-ready .search { opacity: 1; transform: none; }

.search-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 18px;
  color: #7a746f;
  font-size: 17px;
  transition: color .3s, transform .5s var(--ease-spring);
}
.search-field:focus-within .search-icon { color: var(--orange); transform: scale(1.15) rotate(-8deg); }
#q {
  width: 100%;
  height: 54px;
  padding: 0 20px 0 48px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  font-size: 14.5px;
  transition: box-shadow .35s ease, border-color .35s ease, background .35s, transform .4s var(--ease-out);
}
#q::placeholder { color: #8f8a85; }
#q:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(239, 125, 25, .22), 0 18px 34px -18px rgba(0, 0, 0, .8);
}

.search-alt {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13.5px;
  color: #d7dce4;
  opacity: 0;
  transition: opacity .9s ease .8s;
}
.hero.is-ready .search-alt { opacity: 1; }

/* datos de contacto reubicados */
.hero-contact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease .95s, transform .9s var(--ease-out) .95s;
}
.hero.is-ready .hero-contact { opacity: 1; transform: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 10px;
  border-radius: 40px;
  background: rgba(10, 18, 30, .55);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
  transition: transform .45s var(--ease-spring), background .35s, border-color .35s;
}
.chip:hover {
  transform: translateY(-4px);
  background: rgba(239, 125, 25, .18);
  border-color: rgba(239, 125, 25, .55);
}
.chip-ic {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--orange-2), var(--burnt));
  color: #fff;
  font-size: 13px;
}
.chip-tx { display: flex; flex-direction: column; line-height: 1.2; font-size: 12.5px; font-weight: 600; color: #fff; }
.chip-tx small { font-size: 9.5px; font-weight: 400; letter-spacing: .04em; color: #c8cdd6; text-transform: uppercase; }

.scroll-hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .8);
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  transition: color .3s;
}
.scroll-hint:hover { color: var(--orange-3); }
.scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: var(--orange-2);
  animation: hint 2s ease-in-out infinite;
}
@keyframes hint {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- 7. Hall / entrada (puertas que se abren) ---------- */
.lobby {
  position: relative;
  min-height: clamp(220px, 23vw, 350px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0a1018;
  color: #fff;
}
.lobby-bg {
  position: absolute;
  inset: -18% 0;
  z-index: 0;
  will-change: transform;
}
.lobby-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: kenburns 36s ease-in-out infinite alternate-reverse;
}
.lobby-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(239, 125, 25, .26), transparent 70%),
    linear-gradient(180deg, rgba(7, 12, 20, .78), rgba(7, 12, 20, .38) 45%, rgba(7, 12, 20, .84));
}
.door {
  position: absolute;
  top: 0; bottom: 0;
  width: 50.5%;
  z-index: 3;
  background:
    radial-gradient(90% 70% at 50% 100%, rgba(239, 125, 25, .22), transparent 60%),
    linear-gradient(150deg, #080d15, #131f33);
  transition: transform 1.5s var(--ease-out) .2s;
}
.door-l { left: 0; border-right: 2px solid rgba(239, 125, 25, .5); }
.door-r { right: 0; border-left: 2px solid rgba(239, 125, 25, .5); }
.lobby.is-open .door-l { transform: translateX(-102%); }
.lobby.is-open .door-r { transform: translateX(102%); }

.lobby .reveal { transition-delay: .5s; }
.lobby-in {
  position: relative;
  z-index: 4;
  text-align: center;
  padding-block: 30px;
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.section-title.light { color: #fff; }

.rule {
  display: none;
}
.rule.in-view { animation: rule-grow 1.1s var(--ease-out) .1s both; }
.rule.left { margin: 18px 0 0; transform-origin: left center; }
@keyframes rule-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.section-sub { color: var(--muted); font-size: 14.5px; }
.section-sub.light { color: #d8dde6; }

/* ---------- 8. Tarjetas ---------- */
.props {
  padding: 76px 0 52px;
  background: #f7f6f3;
  scroll-margin-top: 70px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.cards.is-collapsed .card.is-extra { display: none; }

.card {
  --card-surface: #fff;
  background: var(--card-surface);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 32px -26px rgba(35, 31, 26, .28);
  border: 1px solid rgba(38, 35, 31, .07);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, opacity .3s ease;
}
.card.is-dim { opacity: .25; filter: grayscale(.6); }
.card.is-hit { box-shadow: 0 0 0 2px var(--orange), var(--shadow-md); }

.card-media {
  position: relative;
  aspect-ratio: 1.36 / 1;
  overflow: hidden;
  background: #eee;
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 12, .38));
  opacity: .5;
  transition: opacity .32s ease;
  pointer-events: none;
}
.card-media::before {
  content: "";
  position: absolute;
  z-index: 4;
  width: 92px;
  height: 64px;
  right: -42px;
  bottom: -34px;
  border-radius: 50%;
  background: var(--card-surface);
  transform: rotate(-18deg);
  pointer-events: none;
}
.gallery { position: absolute; inset: 0; }
.gslide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .65s ease, transform .6s var(--ease-out);
  z-index: 1;
}
.gslide.is-active { opacity: 1; z-index: 2; }

@media (min-width: 761px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 19px 38px -27px rgba(35, 31, 26, .38);
  }
  .card.is-hit:hover { box-shadow: 0 0 0 2px var(--orange), var(--shadow-md); }
  .card:hover .gslide { transform: scale(1.05); }
}

.ribbon {
  position: absolute;
  z-index: 6;
  top: 14px;
  left: 14px;
  width: auto;
  padding: 6px 10px;
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
  color: #51473e;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  box-shadow: 0 3px 12px -9px rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
}
.tag-op {
  position: absolute;
  z-index: 6;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .72);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 4px 14px -10px rgba(0, 0, 0, .5);
  transition: background .25s ease;
}
.tag-op { background: rgba(35, 35, 35, .58); backdrop-filter: blur(10px); }
.tag-op.alq { background: rgba(35, 35, 35, .58); }

.media-foot {
  position: absolute;
  z-index: 5;
  left: 18px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  pointer-events: none;
}
.price {
  padding: 7px 12px;
  background: rgba(24, 25, 27, .58);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: 8px;
  box-shadow: none;
  transition: background .25s ease;
}
.card:hover .price { background: rgba(24, 25, 27, .72); }
.card-body .price {
  align-self: flex-start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--orange);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  box-shadow: none;
}
.card:hover .card-body .price { background: transparent; }
.area-chip {
  padding: 5px 10px;
  background: rgba(15, 15, 18, .6);
  color: #fff;
  font-size: 11.5px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.gallery-ctrl {
  position: absolute;
  z-index: 7;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 30px;
  background: rgba(10, 10, 12, .55);
  backdrop-filter: blur(10px);
  opacity: .6;
  transition: opacity .35s ease, background .35s ease, transform .35s var(--ease-out);
}
.card:hover .gallery-ctrl,
.gallery-ctrl:focus-within { opacity: 1; background: rgba(10, 10, 12, .85); transform: translateY(-2px); }

.gbtn {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  transition: background .3s, color .3s, transform .45s var(--ease-spring);
}
.gbtn:hover { background: var(--orange); color: #161616; transform: scale(1.14); }
.gbtn:active { transform: scale(.9); }
.gbtn.prev:hover { transform: translateX(-2px) scale(1.14); }
.gbtn.next:hover { transform: translateX(2px) scale(1.14); }
.gind {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}
.gind .icon { font-size: 14px; opacity: .85; }

.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
  color: #292825;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .3s ease;
}
.card:hover .card-title { color: #292825; }

.card-addr { display: flex; gap: 7px; font-size: 12.5px; color: #77736d; line-height: 1.5; }
.card-addr .icon-pin { color: var(--orange); margin-top: 2px; font-size: 14px; }

.card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(38, 35, 31, .09);
}
.card-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #6f6963;
  transition: color .3s, transform .35s var(--ease-out);
}
.card-meta li .icon { color: var(--orange); font-size: 15px; }
.card-meta li:hover { color: var(--ink); }

.props-more { display: flex; justify-content: center; margin: 46px 0 10px; }
.props-more.is-hidden { display: none; }

/* sacudida cuando la búsqueda no coincide */
.cards.is-shake { animation: shake .65s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(3px); }
}

/* ---------- 9. Servicios ---------- */
.services-ambient {
  padding-bottom: 16px;
  background:
    radial-gradient(50% 60% at 0% 100%, rgba(255, 217, 168, .35), transparent 70%),
    linear-gradient(180deg, #fff, #fffaf4);
}
.servicios {
  padding: 90px 0 100px;
  scroll-margin-top: 70px;
}
.serv-head { margin-bottom: 54px; }
.serv-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #2f2a26;
}
.serv-head .rule.left { margin-top: 14px; }

.serv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.serv {
  cursor: pointer;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px;
  background: transparent;
  transition: transform .6s var(--ease-spring);
}
.serv:hover { transform: translateY(-10px); }

.serv-circle {
  position: relative;
  width: 132px; height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff, #fff3e6 60%, #ffe3c4);
  box-shadow: 0 18px 36px -22px rgba(194, 65, 12, .55), inset 0 0 0 1px rgba(239, 125, 25, .12);
  color: var(--burnt);
  font-size: 46px;
  margin-bottom: 26px;
  transition: box-shadow .5s ease, background .5s ease;
}
.serv-circle .icon { width: 1em; height: 1em; stroke-width: 1.2; }
.serv:hover .serv-circle {
  background: radial-gradient(circle at 30% 25%, #fff, #ffe6c8 55%, #ffd0a0);
  box-shadow: 0 26px 50px -22px rgba(194, 65, 12, .7), 0 0 0 10px rgba(239, 125, 25, .07);
}
.serv-circle .icon { animation: serv-float 5s ease-in-out infinite; }
.serv:nth-child(2) .serv-circle .icon { animation-delay: -1.6s; }
.serv:nth-child(3) .serv-circle .icon { animation-delay: -3.2s; }
@keyframes serv-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-7px) rotate(-3deg); }
}
.serv-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(239, 125, 25, .35);
  opacity: 0;
  transform: scale(.85) rotate(0deg);
  transition: opacity .4s ease, transform .8s var(--ease-out);
}
.serv:hover .serv-ring { opacity: 1; transform: scale(1) rotate(25deg); }

.serv-label {
  display: inline-block;
  padding: 9px 22px;
  background: linear-gradient(120deg, var(--orange-2), var(--orange) 55%, var(--burnt));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 3px;
  box-shadow: 0 12px 24px -14px rgba(194, 65, 12, .8);
  margin-bottom: 16px;
  transition: transform .45s var(--ease-spring), box-shadow .4s;
}
.serv:hover .serv-label { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 32px -14px rgba(194, 65, 12, .95); }
.serv p { font-size: 13.5px; color: #6d6660; line-height: 1.7; max-width: 30ch; }

/* ---------- 10. Bienvenida (patio de pasto) ---------- */
.welcome {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background: #14210f;
  color: #fff;
}
.welcome-bg {
  position: absolute;
  inset: -16% 0;
  z-index: 0;
  will-change: transform;
}
.welcome-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 34s ease-in-out infinite alternate;
  filter: saturate(1.12) contrast(1.02);
}
.welcome-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9, 20, 8, .8), rgba(9, 20, 8, .42) 45%, rgba(9, 20, 8, .85)),
    radial-gradient(70% 60% at 50% 50%, rgba(239, 125, 25, .28), transparent 70%);
}
.welcome-light {
  position: absolute;
  z-index: 2;
  width: 70vw; height: 70vw;
  left: 50%; top: -40vw;
  margin-left: -35vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 213, 150, .35), transparent 70%);
  filter: blur(30px);
  mix-blend-mode: screen;
  animation: glow-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.welcome-in { position: relative; z-index: 3; }
.welcome-text {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 600;
  line-height: 1.9;
  color: #fff;
}
.welcome-text strong { color: var(--orange-3); font-weight: 800; }

/* ---------- 11. Footer ---------- */
.footer {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(239, 125, 25, .12), transparent 60%),
    var(--navy);
  color: #c9cdd6;
  padding-top: 64px;
  scroll-margin-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}
.f-brand p { margin-top: 18px; font-size: 13px; line-height: 1.75; color: #949aa6; max-width: 34ch; }

.f-contact h4,
.f-social h4 {
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.f-contact a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #b6bcc7;
  padding: 7px 0;
  transition: color .3s, transform .35s var(--ease-out);
}
.f-contact a:hover { color: var(--orange-3); transform: translateX(4px); }
.f-contact .icon { margin-top: 2px; font-size: 15px; color: var(--orange); }

.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  color: #e6e6e6;
  font-size: 18px;
  transition: background .35s, color .3s, transform .5s var(--ease-spring), border-color .3s;
}
.social a:hover {
  background: linear-gradient(140deg, var(--orange-2), var(--burnt));
  border-color: transparent;
  color: #161006;
  transform: translateY(-4px) rotate(-6deg);
}
.social > .pending {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  color: #cfd5dc;
  cursor: default;
}
.social > .pending .icon { width: 17px; height: 17px; }
.social > a img.icon { width: 20px; height: 20px; object-fit: contain; }
.social > a:focus-visible, .social > .pending:focus-visible {
  outline: 2px solid var(--orange-3);
  outline-offset: 3px;
}

.f-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 16px 0; }
.f-bottom-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: #8b91a0;
}

/* ---------- 12. Modal de tasación ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, .72);
  backdrop-filter: blur(10px);
  animation: fade-in .4s ease both;
}
.modal.is-closing .modal-backdrop { animation: fade-out .35s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }

.modal-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .7);
  animation: panel-in .7s var(--ease-spring) both;
}
.modal.is-closing .modal-panel { animation: panel-out .35s var(--ease-out) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(46px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes panel-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(24px) scale(.96); }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f6f1ea;
  color: #5a524c;
  transition: transform .45s var(--ease-spring), background .3s, color .3s;
}
.modal-close:hover { background: var(--orange); color: #fff; transform: rotate(90deg) scale(1.08); }

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 34px;
  padding: 46px 44px 40px;
}
.modal-intro h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #221c17;
}
.modal-intro .rule.left { margin: 16px 0 20px; }
.modal-intro p { font-size: 13.5px; color: #6d6660; line-height: 1.7; margin-bottom: 10px; }
.intro-contact { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.intro-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5a524c;
  transition: color .3s, transform .3s var(--ease-out);
}
.intro-contact a:hover { color: var(--burnt); transform: translateX(3px); }
.intro-contact .icon { color: var(--orange); }

.modal-form h3 {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8c8580;
  margin: 0 0 12px;
}
.modal-form h3 + .field-row { margin-bottom: 22px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  height: 46px;
  padding: 20px 14px 6px;
  border: 1px solid #e6ddd3;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color .3s, box-shadow .35s, background .3s, transform .35s var(--ease-out);
}
.field textarea { height: auto; min-height: 88px; resize: vertical; padding-top: 22px; }
.field label {
  position: absolute;
  left: 14px; top: 14px;
  font-size: 13px;
  color: #9b948e;
  pointer-events: none;
  transition: transform .3s var(--ease-out), font-size .3s, color .3s, top .3s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(239, 125, 25, .14);
  background: #fffdf9;
}
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
  top: 8px;
  font-size: 10.5px;
  color: var(--burnt);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.field.is-error input,
.field.is-error textarea { border-color: #d63b2f; box-shadow: 0 0 0 4px rgba(214, 59, 47, .12); }
.field.area { margin: 0 0 16px; }

.robot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e6ddd3;
  border-radius: 8px;
  background: #fdfbf8;
  font-size: 13px;
  color: #4a443f;
  cursor: pointer;
  user-select: none;
  margin-bottom: 18px;
  transition: border-color .3s, background .3s, transform .3s var(--ease-out);
}
.robot:hover { border-color: var(--orange-3); background: #fff7ee; transform: translateY(-1px); }
.robot input { position: absolute; opacity: 0; pointer-events: none; }
.robot-box {
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #d7cec3;
  border-radius: 4px;
  background: #fff;
  color: #fff;
  transition: background .25s, border-color .25s, transform .4s var(--ease-spring);
}
.robot-box .icon { width: 12px; height: 12px; stroke-width: 2.6; opacity: 0; transform: scale(.5); transition: opacity .25s, transform .35s var(--ease-spring); }
.robot input:checked + .robot-box { background: linear-gradient(140deg, var(--orange-2), var(--burnt)); border-color: transparent; transform: scale(1.06); }
.robot input:checked + .robot-box .icon { opacity: 1; transform: scale(1); }
.robot.is-error { border-color: #d63b2f; }

.modal-form .btn { width: 100%; height: 50px; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.form-ok {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eafaf0;
  color: #12734a;
  font-size: 13px;
  animation: ok-in .5s var(--ease-spring) both;
}
.form-ok .icon { color: #16a05f; }
@keyframes ok-in {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

body.modal-open { overflow: hidden; }

/* entrada escalonada de los campos */
.modal.is-open .modal-intro > * { animation: field-in .6s var(--ease-out) both; }
.modal.is-open .modal-intro > *:nth-child(2) { animation-delay: .06s; }
.modal.is-open .modal-intro > *:nth-child(3) { animation-delay: .12s; }
.modal.is-open .modal-intro > *:nth-child(4) { animation-delay: .18s; }
.modal.is-open .modal-intro > *:nth-child(5) { animation-delay: .24s; }

.modal.is-open .modal-form h3,
.modal.is-open .field,
.modal.is-open .robot,
.modal.is-open .modal-form .btn { animation: field-in .55s var(--ease-out) both; }
.modal.is-open .modal-form h3 { animation-delay: .10s; }
.modal.is-open .field-row:nth-of-type(1) .field:nth-child(1) { animation-delay: .14s; }
.modal.is-open .field-row:nth-of-type(1) .field:nth-child(2) { animation-delay: .20s; }
.modal.is-open .field-row:nth-of-type(1) .field:nth-child(3) { animation-delay: .26s; }
.modal.is-open .field-row:nth-of-type(1) .field:nth-child(4) { animation-delay: .32s; }
.modal.is-open .modal-form h3:nth-of-type(2) { animation-delay: .36s; }
.modal.is-open .field-row:nth-of-type(2) .field:nth-child(1) { animation-delay: .40s; }
.modal.is-open .field-row:nth-of-type(2) .field:nth-child(2) { animation-delay: .45s; }
.modal.is-open .field-row:nth-of-type(2) .field:nth-child(3) { animation-delay: .50s; }
.modal.is-open .field-row:nth-of-type(2) .field:nth-child(4) { animation-delay: .55s; }
.modal.is-open .field-row:nth-of-type(2) .field:nth-child(5) { animation-delay: .60s; }
.modal.is-open .field-row:nth-of-type(2) .field:nth-child(6) { animation-delay: .65s; }
.modal.is-open .field.area { animation-delay: .70s; }
.modal.is-open .robot { animation-delay: .76s; }
.modal.is-open .modal-form .btn { animation-delay: .82s; }

@keyframes field-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 13. Flotantes ---------- */
.wa-float {
  position: fixed;
  z-index: 200;
  left: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: none;
}
.wa-float .icon { width: 29px; height: 29px; filter: brightness(0) invert(1); }

.to-top {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: 18px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--orange-2), var(--burnt));
  color: #fff;
  border-radius: 8px;
  font-size: 18px;
  box-shadow: 0 14px 26px -14px rgba(239, 125, 25, .95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .4s, transform .5s var(--ease-spring), visibility .4s, box-shadow .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 20px 32px -14px rgba(239, 125, 25, 1); }
.to-top .icon { transition: transform .4s var(--ease-spring); }
.to-top:hover .icon { transform: translateY(-3px); }

/* ---------- 14. Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .95s ease, transform 1.05s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js .reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .card.in-view {
    animation: card-enter var(--entry-duration, 580ms) var(--ease-out) var(--entry-delay, 0ms) backwards;
  }
  .card.in-view:focus-within { opacity: 1 !important; translate: none !important; }
}
@keyframes card-enter {
  from { opacity: 0; translate: 0 var(--entry-distance, 18px); }
}
@media (max-width: 760px), (hover: none) {
  .card { --entry-duration: 420ms; --entry-distance: 10px; }
}

.js .serv { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .serv.in-view { opacity: 1; transform: none; }
.js .serv.in-view:hover { transform: translateY(-10px); transition: transform .6s var(--ease-spring); }

/* ---------- Paso 2. Hero editorial ---------- */
body { background: #f2f3f4; }
.hero {
  width: min(calc(100% - 48px), 1760px);
  height: clamp(720px, 55vw, 1000px);
  min-height: 0;
  margin: 24px auto 64px;
  border-radius: 28px;
  isolation: isolate;
  overflow: visible;
}
.hero-bg { inset: 0; overflow: hidden; border-radius: inherit; transform: none; will-change: auto; }
.hero-bg picture, .lobby-bg picture, .welcome-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img { animation: none; filter: none; object-position: center 46%; }
.lobby-bg, .welcome-bg { inset: -9px; will-change: auto; }
.lobby-bg img, .welcome-bg img { filter: blur(2.5px); transform: none; animation: none; }
.lobby-bg img { object-position: center 62%; }
.welcome-bg img { object-position: center 58%; }
.lobby-shade { background: linear-gradient(180deg, rgba(22,19,17,.28), rgba(22,19,17,.64) 48%, rgba(22,19,17,.31)); }
.welcome-shade { background: linear-gradient(180deg, rgba(14,25,19,.34), rgba(14,25,19,.73) 55%, rgba(14,25,19,.47)); }
.welcome-light { display: none; }

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: background-depth 30s ease-in-out infinite alternate; }
  .lobby-bg img { animation: background-depth 34s ease-in-out infinite alternate-reverse; }
  .welcome-bg img { animation: background-depth 38s ease-in-out infinite alternate; }
}
@keyframes background-depth {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.055) translate3d(0, -.45%, 0); }
}
.hero-vignette {
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(14,25,35,.60), rgba(14,25,35,.25) 58%, transparent),
    linear-gradient(180deg, rgba(14,25,35,.33), transparent 56%, rgba(14,25,35,.20));
}
.hero-glow { display: none; }
.nav {
  position: absolute;
  top: 38px;
  left: 50%;
  width: calc(100% - 160px);
  max-width: 1460px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 999px;
  background: rgba(235, 242, 247, .2);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.nav.is-scrolled { background: rgba(235, 242, 247, .25); box-shadow: none; }
.nav-in { min-height: 68px; padding: 0 14px; gap: 26px; }
.nav-list { gap: 6px; }
.nav-link, .nav-mini { color: #fff; }
.nav-link:hover, .nav-link.is-active, .nav-mini:hover { color: #fff; transform: none; background: transparent; }
.nav-side { margin-left: auto; }
.nav .brand-mark { width: 142px; }
.nav .btn-pill { height: 44px; padding: 0 24px; box-shadow: none; }
.hero-in {
  width: min(100%, 1760px);
  padding: 148px 7% 210px;
  margin: 0 auto;
}
.hero .eyebrow { color: #fff; background: rgba(235,242,247,.19); border-color: rgba(255,255,255,.24); }
.hero-title {
  max-width: 920px;
  margin: 0 0 20px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(3rem, 5vw, 5.25rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 600;
}
.hero-title-line-primary, .hero-title-line-secondary {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: inherit;
}
.hero-description {
  max-width: 590px;
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.65;
}
.hero-contact { display: none; }
.search-panel {
  position: absolute;
  z-index: 8;
  left: 6%;
  right: 11%;
  bottom: 56px;
  padding: 0 38px 24px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(22,35,45,.14);
}
.search-tabs { display: flex; align-items: end; gap: 0; height: 62px; margin: 0 -18px 22px; }
.search-tab {
  min-width: 144px;
  height: 54px;
  padding: 0 28px;
  color: #fff;
  background: rgba(62,81,98,.72);
  border-right: 1px solid rgba(255,255,255,.25);
  font-size: 15px;
  font-weight: 500;
  backdrop-filter: blur(12px);
}
.search-tab:first-child { border-radius: 10px 0 0 0; }
.search-tab:last-child { border-radius: 0 10px 0 0; border-right: 0; }
.search-tab.is-active { color: #263e4b; background: #fff; }
.search { max-width: none; align-items: end; gap: 22px; opacity: 1; transform: none; transition: none; }
.search-field, .search-select-wrap { flex: 1 1 0; min-width: 0; }
.search-select-wrap { display: grid; gap: 9px; color: #324a58; font-size: 14px; }
.search-select-wrap select, #q {
  height: 56px;
  border: 1px solid #e4e7e9;
  border-radius: 999px;
  background: #fff;
  color: #344a56;
  font-family: inherit;
  font-size: 14px;
}
#q { padding-left: 48px; }
.search-select-wrap select { width: 100%; padding: 0 20px; appearance: auto; }
.search-alt { margin: 12px 0 0; color: #71808a; font-size: 12px; opacity: 1; }
.search-alt .btn-ghost { color: #526976; height: auto; padding: 0; border: 0; background: transparent; backdrop-filter: none; font-size: 12px; text-decoration: none; }
.search .btn-solid { flex: 0 0 auto; min-width: 220px; border-radius: 999px; box-shadow: none; }
.search .btn-solid::before { display: none; }
.search .btn-solid:hover { transform: translateY(-1px); box-shadow: none; }
.progress { display: none; }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 16px 10px; font-size: 13px; }
  .nav-mini span { display: none; }
}

@media (max-width: 1024px) {
  .nav-in { gap: 10px; }
  .nav-list { gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-social { grid-column: 1 / -1; }
  .modal-grid { grid-template-columns: 1fr; gap: 24px; padding: 40px 30px 34px; }
}

@media (max-width: 900px) {
  .hero { width: 100%; height: auto; min-height: 100vh; margin: 0 0 48px; border-radius: 0; overflow: hidden; }
  .nav { position: relative; top: auto; left: auto; width: 100%; max-width: none; transform: none; border: 0; border-radius: 0; background: rgba(11,18,32,.94); backdrop-filter: none; }
  .nav.is-scrolled { background: rgba(11,18,32,.97); }
  .nav-in { min-height: 62px; padding: 10px 0 0; }
  .hero-in { padding: 60px 24px 120px; }
  .hero-title { font-size: clamp(1.35rem, 7.5vw, 3.5rem); }
  .hero-description { font-size: 15px; }
  .search-panel { position: relative; inset: auto; margin: -76px 16px 0; padding: 0 16px 18px; }
  .search { flex-direction: column; align-items: stretch; gap: 12px; }
  .search .btn { width: 100%; }
  .search-tabs { height: 54px; margin: 0 -8px 16px; }
  .search-tab { min-width: 0; flex: 1; height: 46px; padding: 0 12px; }
  .hero-contact { display: flex; }
  .nav .brand-mark { width: 52px; height: 52px; }
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
  }
  .burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform .4s var(--ease-out), opacity .3s;
  }
  .burger .sr-only { width: 1px; height: 1px; }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-in { flex-wrap: wrap; padding: 10px 0 0; }
  .nav-side { margin-left: auto; }
  .nav-list {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: none;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    gap: 0;
    transition: max-height .55s var(--ease-out);
    perspective: none;
  }
  .nav-list.is-open { max-height: 76vh; padding: 6px 0 14px; overflow-y: auto; }
  .nav-link { padding: 12px 14px; border-radius: 6px; }
  .nav-link:hover { transform: translateX(6px) scale(1.02); }
  .nav-link::after { display: none; }
  .has-drop { position: static; }
  .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 14px 6px;
    background: transparent;
    display: none;
  }
  .has-drop.is-open > .drop { display: block; animation: drop-in .4s var(--ease-out); }
  .drop::before { display: none; }
  .drop a { color: #e9edf5; padding: 7px 0 7px 12px; }
  .drop a:hover { background: transparent; color: var(--orange-3); padding-left: 18px; transform: none; }
  .drop a.is-current { color: var(--orange-3); }
  .lang .drop a { color: #e9edf5; }

  /* el selector de idioma sigue siendo flotante dentro de la barra */
  .nav-side .has-drop { position: relative; }
  .nav-side .drop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 150px;
    display: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .55);
    padding: 8px 0;
  }
  .nav-side .has-drop.is-open > .drop { display: block; animation: drop-in .35s var(--ease-out); }
  .nav-side .drop a { color: #2b2b2b; padding: 9px 16px; }
  .nav-side .drop a:hover { background: #fff4e9; color: var(--burnt); padding-left: 20px; }
  .nav-side .drop a.is-current { color: var(--burnt); }
}

@media (max-width: 560px) {
  .nav-in { gap: 8px; }
  .nav-side { gap: 4px; }
  .btn-pill { padding: 0 14px; }
}

@media (max-width: 760px) {
  .btn-pill { padding: 0 16px; height: 38px; font-size: 12px; }
  .nav-mini { padding: 8px; }
  .search { flex-direction: column; }
  .search .btn { width: 100%; }
  .hero-in { padding-top: 60px; padding-bottom: 120px; }
  .hero-title { font-size: clamp(1.35rem, 7.5vw, 3.5rem); }
  .scroll-hint { display: none; }
  .cards { grid-template-columns: 1fr; }
  .btn-outline { min-width: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .f-brand p { max-width: none; }
  .f-bottom-in { flex-direction: column; text-align: center; }
  .props { padding-top: 60px; }
  .serv-grid { grid-template-columns: 1fr; gap: 40px; }
  .field-row { grid-template-columns: 1fr; }
  .modal { padding: 12px; }
  .modal-grid { padding: 34px 20px 28px; }
  .welcome { padding: 80px 0; }
}

/* ---------- 16. Accesibilidad ---------- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .card, .js .serv { opacity: 1; transform: none; }
}

/* Paso 2: composición de portada inspirada en la referencia aprobada. */
@media (min-width: 901px) {
  .hero { display: block; width: min(calc(100% - 10vw), 1760px); height: clamp(760px, 58vw, 1000px); margin: 24px auto 64px; }
  .nav { z-index: 120; top: 30px; width: calc(100% - 144px); }
  .nav-in { min-height: 68px; padding: 0 18px; gap: 22px; }
  .nav .brand { display: flex; flex: 0 0 auto; align-items: center; }
  .nav .brand-mark { width: 96px; height: 52px; object-fit: contain; }
  .hero-in {
    position: relative; z-index: 4; box-sizing: border-box;
    width: 100%; max-width: none; height: 100%; margin: 0;
    padding: 164px 7% 310px;
  }
  .hero-title { margin: 0; color: #F8F7F3; font-family: "Plus Jakarta Sans", sans-serif; }
  .hero-title { font-size: clamp(3.3rem, 4vw, 5.25rem); }
  .hero-title-line-primary, .hero-title-line-secondary {
    font-family: "Plus Jakarta Sans", sans-serif; font-size: 1em; letter-spacing: inherit;
  }
  .hero-title-line-primary { font-weight: 600; }
  .hero-title-line-secondary { font-weight: 500; }
  .search-panel {
    position: absolute; z-index: 8; left: 6%; right: 11%; bottom: 54px;
    box-sizing: border-box; padding: 28px 38px 26px; box-shadow: 0 12px 32px rgba(22,35,45,.12);
  }
  .search-tabs { position: absolute; left: 0; bottom: 100%; width: max-content; height: 58px; margin: 0; align-items: stretch; }
  .search-tab { height: 52px; min-width: 144px; background: rgba(238,244,248,.22); border: 1px solid rgba(255,255,255,.32); backdrop-filter: blur(16px) saturate(125%); -webkit-backdrop-filter: blur(16px) saturate(125%); }
  .search-tab:first-child { border-radius: 10px 0 0 0; }
  .search-tab:last-child { border-radius: 0 10px 0 0; }
  .search-tab.is-active { color: #263e4b; background: #fff; border-color: #fff; }
  .search { max-width: none; align-items: end; gap: 22px; opacity: 1; transform: none; transition: none; }
  .search-field, .search-select-wrap { flex: 1 1 0; min-width: 0; }
  .search-select-wrap { display: grid; gap: 9px; color: #324a58; font-size: 14px; }
  .search-select-wrap select, #q { height: 56px; border: 1px solid #e4e7e9; border-radius: 999px; background: #fff; color: #344a56; font-family: inherit; font-size: 14px; }
  .search-select-wrap select { width: 100%; padding: 0 20px; }
  #q { padding-left: 48px; }
  .search-alt .btn-ghost { text-decoration: none; }
  .search .btn-solid { flex: 0 0 auto; min-width: 220px; border-radius: 999px; box-shadow: none; }
  .search .btn-solid::before { display: none; }
  .search .btn-solid:hover { transform: translateY(-1px); box-shadow: none; }
}

@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; }
  .nav { position: relative; top: auto; left: auto; width: 100%; max-width: none; transform: none; }
  .hero-in { box-sizing: border-box; width: 100%; max-width: none; height: auto; padding: 44px 24px 36px; }
  .hero-title { color: #F8F7F3; font-family: "Plus Jakarta Sans", sans-serif; }
  .hero-title-line-primary, .hero-title-line-secondary { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1em; letter-spacing: inherit; }
  .hero-title-line-primary { font-weight: 600; white-space: normal; }
  .hero-title-line-secondary { font-weight: 500; }
  .search-panel { position: relative; inset: auto; width: auto; margin: 22px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .search-tabs, .search-select-wrap { display: none; }
  .search { flex-direction: column; align-items: stretch; gap: 12px; }
  .search .btn-solid { width: 100%; min-width: 0; }
  .search-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: #fff; opacity: 1; }
  .search-alt .btn-ghost { color: #fff; padding: 7px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(12px); text-decoration: none; }
}

@media (max-width: 760px) {
  .hero-in { padding-top: 44px; padding-bottom: 36px; }
  .hero-title { font-size: clamp(1.35rem, 7.5vw, 3.5rem); }
}

/* Paso 3: buscador integrado y vías de contacto */
[hidden] { display: none !important; }
.search-panel { background: none; border: 0; padding: 0; box-shadow: none; }
.search-tabs { display: inline-flex; width: max-content; max-width: 100%; height: auto; margin: 0; border-radius: 15px 15px 0 0; overflow: hidden; background: rgba(20, 37, 46, .48); backdrop-filter: blur(16px) saturate(115%); }
.search-tab { height: 54px; min-width: 134px; border: 0; border-right: 1px solid rgba(255,255,255,.22); border-radius: 0; background: none; backdrop-filter: none; color: #fff; }
.search-tab:first-child, .search-tab:last-child { border-radius: 0; }
.search-tab:not(.is-active):hover { background: rgba(255,255,255,.13); }
.search-tab.is-active { background: #fff; color: #213b45; }
.search-tab:focus-visible { outline-offset: -4px; }
.search-content { background: #fff; border-radius: 0 16px 16px 16px; padding: 24px clamp(18px,3vw,38px) 22px; box-shadow: 0 14px 36px rgba(21,30,32,.14); }
.sell-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: #263e4b; }
.sell-panel .btn-solid, .search-content .btn-solid { min-height: 44px; border-radius: 999px; background: var(--orange); color: #25160f; box-shadow: none; }
.search-content .btn-solid::before, .sell-panel .btn-solid::before { display: none; }
.search-content .btn-solid:hover, .sell-panel .btn-solid:hover { background: var(--orange-2); box-shadow: none; }
.nav-contact { position: relative; }
.nav-contact summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; cursor: pointer; }
.nav-contact summary::-webkit-details-marker { display: none; }
.nav-contact[open] summary, .nav-contact summary:hover { background: rgba(255,255,255,.15); }
.nav-contact-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 2; background: #fff; color: #22343c; border-radius: 14px; padding: 6px 10px; font-size: 13px; box-shadow: var(--shadow-sm); }
.nav-contact-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; white-space: nowrap; }
.nav-contact-panel a:hover { color: var(--burnt); }
.nav-mobile-action { display: none; }

/* La foto sigue detrás de la curva derecha del panel de información. */
.card { position: relative; container-type: inline-size; border-radius: 28px; min-width: 0; }
.card-media { aspect-ratio: 1.12; overflow: visible; background: transparent; }
.card-media::before, .card-media::after { display: none; }
.card-media .gallery { clip-path: url(#cardPhotoCurve); }
.card-body { background: var(--card-surface); margin-top: -16.96cqw; border-radius: 0 22.5cqw 0 0; padding: 20px 22px 24px; flex: 1; }
.card-title { padding-right: 13cqw; display: block; overflow: visible; font-size: clamp(1rem, 4.65cqw, 1.3rem); }
.card-detail { padding: 0; text-align: left; line-height: inherit; font-weight: inherit; }
.card-detail::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card-detail:focus-visible::after { outline: 2px solid var(--burnt); outline-offset: -4px; border-radius: 28px; }
.card .gallery-ctrl { bottom: calc(16.96cqw + 10px); right: 12px; z-index: 3; opacity: 1; background: rgba(12,22,28,.74); gap: 0; padding: 0; }
.card .gallery-ctrl .gbtn { width: 44px; height: 44px; transform: none; }
.card .gind { padding: 0 4px; }
.card .gind .icon { display: none; }
.card-body .price { color: var(--burnt); font-size: 22px; margin-top: auto; }
.cards.is-filtered .card.is-extra:not([hidden]) { display: flex; }
.cards.is-filtered + .props-more { display: none; }
.catalog-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; }
.catalog-feedback button { min-height: 44px; padding: 0 14px; border: 1px solid #ded9d3; border-radius: 999px; }
.catalog-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 38px 0 10px; }
.catalog-pagination button { min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid #ded9d3; border-radius: 999px; background: #fff; color: var(--ink); }
.catalog-pagination button:hover:not(:disabled), .catalog-pagination button[aria-current="page"] { border-color: var(--burnt); color: var(--burnt); }
.catalog-pagination button:disabled { cursor: not-allowed; opacity: .45; }
.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.catalog-empty { margin: 28px 0; padding: 22px; border-radius: 18px; background: #fff; color: var(--slate); text-align: center; }
.detail-extra { display: grid; grid-template-columns: minmax(110px, .35fr) 1fr; gap: 8px 14px; padding-top: 12px; border-top: 1px solid #eee9e2; }
.detail-extra dt { color: var(--slate); }
.detail-extra dd { margin: 0; font-weight: 600; }
.detail-data-note { margin-top: 8px; color: var(--slate); font-size: 12.5px; }
.detail-share { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; margin: 10px 0; border: 1px solid #d7d1c9; border-radius: 999px; background: #fff; }
.demo-form-note, #propertyInquiryStatus { font-size: 13px; color: var(--slate); }
.property-inquiry { display: grid; gap: 12px; margin-top: 16px; }
.property-inquiry label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.property-inquiry input, .property-inquiry textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #ddd7cf; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.property-inquiry textarea { resize: vertical; }
.property-inquiry .btn { min-height: 44px; }

/* Ficha y galería */
body.detail-open { overflow: hidden; }
.property-detail, .photo-viewer { border: 0; }
.property-detail { width: min(calc(100% - 48px), 1190px); max-height: calc(100% - 48px); padding: clamp(18px, 3vw, 36px); border-radius: 28px; color: var(--ink); background: #f5f4f0; }
.property-detail::backdrop, .photo-viewer::backdrop { background: rgba(16,24,30,.76); }
.detail-close { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin-bottom: 16px; background: #fff; color: #26313a; border-radius: 999px; font-size: 14px; font-weight: 700; }
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(112px, 16vw, 218px); gap: 10px; }
.detail-gallery button { min-width: 0; padding: 0; overflow: hidden; border-radius: 19px; }
.detail-gallery button:first-child { grid-row: span 2; }
.detail-gallery button:only-child { grid-column: 1 / -1; }
.detail-gallery button:only-child img { object-position: center; }
.detail-gallery:has(button:nth-child(3):last-child) button:not(:first-child) { grid-column: span 2; }
.detail-gallery button:nth-child(4):last-child { grid-column: span 2; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 20px; }
.detail-info, .detail-contact { background: #fff; border-radius: 20px; padding: clamp(16px, 3vw, 28px); }
.detail-info { display: grid; gap: 8px; }
.detail-info h2 { font-size: clamp(1.15rem, 2.2vw, 1.85rem); line-height: 1.25; }
#detailStatus { color: var(--slate); font-size: 13px; }
.detail-price { color: var(--burnt); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.detail-contact p { margin: 8px 0 16px; color: var(--slate); }
.detail-whatsapp { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; background: #194d3a; color: #fff; border-radius: 999px; font-size: 13px; }
.photo-viewer { color: #fff; background: #111b22; border-radius: 18px; width: min(94vw, 1100px); padding: 16px; text-align: center; }
.photo-viewer figure { margin: 0; }
.photo-viewer img { width: 100%; max-height: 67vh; object-fit: contain; }
.viewer-controls button { width: 44px; height: 44px; border-radius: 50%; background: #34434d; margin: 6px; }

@media (min-width: 901px) {
  .search-tabs { bottom: calc(100% - 1px); }
  .nav-in .nav-side { gap: 4px; }
  .nav { width: calc(100% - clamp(48px, 10vw, 144px)); }
  .nav-in { max-width: none; gap: 12px; }
  .nav-list {
    gap: clamp(4px, .85vw, 14px);
    padding-inline-start: clamp(0px, calc((100vw - 1180px) * .55), 176px);
  }
  .nav-list .nav-link { padding-inline: clamp(6px, .75vw, 12px); }
  .nav .btn-pill { padding-inline: 16px; flex: none; white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .nav { width: calc(100% - 28px); }
  .nav-in { gap: 6px; padding-inline: 8px; }
  .nav .brand-mark { width: 72px; }
  .nav-list { gap: clamp(2px, calc((100vw - 900px) * .03), 8px); }
  .nav-list .nav-link { padding-inline: 5px; font-size: 12px; }
  .nav .btn-pill { padding-inline: 11px; font-size: 12px; }
}
@media (max-width: 900px) {
  .hero { width: calc(100% - 20px); margin: 10px auto 40px; min-height: 0; border-radius: 24px; }
  .nav, .nav.is-scrolled { width: calc(100% - 24px); margin: 12px auto 0; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(24,48,63,.54); backdrop-filter: blur(14px); }
  .nav-in { flex-wrap: nowrap; justify-content: space-between; gap: 3px; min-height: 58px; padding: 4px 7px; }
  .nav .brand-mark { width: 44px; height: 44px; }
  .nav-side { gap: 1px; margin: 0 0 0 auto; }
  .nav-side .nav-mini { display: inline-flex; justify-content: center; width: 44px; height: 44px; padding: 0; }
  .nav-side .lang .nav-mini span { display: inline; }
  .nav-side .lang .nav-mini .chev { display: none; }
  .nav-side > .btn-pill { display: none; }
  .nav-in .burger { order: 4; flex: 0 0 44px; border-radius: 50%; }
  .nav-list { position: absolute; inset: calc(100% + 8px) 0 auto; background: #203743; border-radius: 18px; visibility: hidden; }
  .nav-list.is-open { visibility: visible; max-height: min(52vh,420px); }
  .nav-list .nav-link, .nav-list .drop a { min-height: 44px; }
  .nav-list .nav-link:hover { transform: none; }
  .nav-mobile-action { display: list-item; }
  .nav-mobile-action .nav-appraisal {
    display: flex; justify-content: center; align-items: center;
    width: calc(100% - 24px); min-height: 44px; margin: 6px 12px;
    border-radius: 999px; background: var(--orange); color: #25160f; font-weight: 750;
  }
  .nav-mobile-action .nav-appraisal:hover { background: var(--orange-2); color: #25160f; }
  .nav-contact-panel { right: -86px; }
  .hero-in { padding: 40px 14px 28px; }
  .search-tabs { display: flex; width: 100%; margin: 0 0 -1px; }
  .search-tab { min-width: 0; flex: 1; height: 46px; padding: 0 5px; }
  .search-content { border-radius: 0 0 16px 16px; padding: 14px; }
  .search-select-wrap { display: grid; color: #263e4b; font-size: 13px; gap: 4px; }
  .search-select-wrap select, .search #q { min-height: 44px; border: 1px solid #ddd; border-radius: 14px; background: #fff; color: #263e4b; }
  .search-select-wrap select { width: 100%; padding: 0 12px; font: inherit; }
  .search-content .search-alt, .search-content .search-alt .btn-ghost { color: #475d66; }
  .search-content .search-alt .btn-ghost { min-height: 44px; padding: 0 6px; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .property-detail { width: calc(100% - 20px); max-height: calc(100% - 20px); padding: 12px; border-radius: 20px; }
  .detail-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .catalog-pagination { gap: 6px; }
  .catalog-pagination > button { padding: 0 11px; }
  .page-numbers { gap: 4px; }
  .page-number { min-width: 40px !important; padding: 0 10px !important; }
  .detail-extra { grid-template-columns: 1fr; gap: 3px; }
  .detail-gallery button { flex: 0 0 89%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .detail-gallery button:only-child { flex-basis: 100%; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-whatsapp { width: 100%; }
}

/* ---------- Paso 4: ambiente, profundidad y cierres visuales ---------- */
html { overflow-x: clip; }
.hero {
  background: transparent;
  overflow: visible;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -28px -36px;
  border-radius: 42px;
  background: url("../img/fondo-playa-1920.webp") center 46% / cover no-repeat;
  filter: blur(64px) saturate(.88);
  opacity: .42;
  transform: scale(1.015);
  pointer-events: none;
}
.hero-bg { z-index: 1; overflow: hidden; border-radius: inherit; }
.hero-vignette { z-index: 2; }
.hero-bg img { transform-origin: center; }

.lobby, .welcome { overflow: hidden; }
.lobby-bg, .welcome-bg {
  inset: -28px 0;
  overflow: hidden;
  border-radius: 30px;
  transform: translateZ(0);
  will-change: auto;
}
.lobby-bg img, .welcome-bg img {
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.08);
  transform-origin: center;
  animation: none !important;
  will-change: transform;
}
.lobby-shade, .welcome-shade { border-radius: 30px; }

/* Giro tipo moneda: solo el círculo rota; el texto queda quieto. */
.serv {
  transform: none;
  transition: opacity .9s ease, color .3s ease;
}
.serv:hover, .js .serv.in-view:hover { transform: none; }
.serv-circle {
  width: 132px;
  height: 132px;
  margin-bottom: 26px;
  overflow: visible;
  perspective: 900px;
  background: transparent;
  box-shadow: none;
  color: #252525;
}
.serv-coin {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.72,.25,1);
  will-change: transform;
}
.serv-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.serv-face-front {
  background: #fff;
  color: #252525;
  box-shadow: 0 4px 18px rgba(28, 33, 38, .06);
}
.serv-face-back {
  background: var(--orange);
  color: #1c1c1c;
  transform: rotateY(180deg);
}
.serv-face .icon { width: 62px; height: 62px; stroke-width: 1.2; animation: none !important; }
.serv:is(:hover, :focus-visible) .serv-coin,
.serv:active .serv-coin { transform: rotateY(180deg); }
.serv-label {
  padding: 9px 22px;
  background: var(--orange);
  border-radius: 999px;
  box-shadow: none;
  transition: background .25s ease;
}
.serv:hover .serv-label,
.serv:focus-visible .serv-label { transform: none; box-shadow: none; background: var(--burnt); }
.serv-ring { display: none; }

/* Footer compacto con contacto desplegable y objetivos táctiles amplios. */
.footer { padding-top: 26px; }
.footer-grid {
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 22px;
}
.footer .brand-mark { width: 116px; height: 72px; object-fit: contain; }
.f-brand p { display: none; }
.footer-about { margin-top: 2px; font-size: 12px; color: #b6bcc7; }
.footer-about summary { width: fit-content; cursor: pointer; color: #e6e6e6; }
.footer-about p { display: block; max-width: 44ch; margin: 8px 0 0; color: #949aa6; line-height: 1.55; }
.footer-about[open] p { display: block; }
.footer-contact-list { display: flex; align-items: center; gap: 9px; }
.footer-contact-item { position: relative; }
.footer-contact-item summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: var(--orange-3);
}
.footer-contact-item summary::-webkit-details-marker { display: none; }
.footer-contact-item summary .icon { width: 18px; height: 18px; }
.footer-contact-info {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 10;
  display: grid;
  gap: 7px;
  width: max-content;
  max-width: min(80vw, 310px);
  padding: 12px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: #142632;
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.footer-contact-info a { color: #e6e6e6; }
.footer-contact-info a:hover { color: var(--orange-3); }
.f-contact h4, .f-social h4 { margin-bottom: 10px; }
.f-social { justify-self: end; }
.social a { width: 44px; height: 44px; }
.footer .f-bottom { padding: 12px 0; }

@media (max-width: 900px) {
  .hero::before { inset: -14px -12px; border-radius: 30px; filter: blur(36px) saturate(.78); opacity: .36; }
  .lobby-bg, .welcome-bg { inset: -14px 0; border-radius: 24px; }
  .lobby-shade, .welcome-shade { border-radius: 24px; }
  .serv-circle { width: 116px; height: 116px; }
  .serv-face .icon { width: 56px; height: 56px; }
  .footer { padding-top: 20px; }
  .footer-grid { grid-template-columns: 1fr auto; gap: 14px 20px; padding-bottom: 16px; }
  .f-brand { grid-column: 1; }
  .f-contact { grid-column: 1 / -1; }
  .f-social { grid-column: 2; grid-row: 1; }
  .footer .brand-mark { width: 94px; height: 58px; }
  .footer-about p { max-width: 100%; }
  .footer-contact-info { left: 0; transform: none; }
  .footer-contact-item:last-child .footer-contact-info { left: auto; right: 0; }
}
@media (max-width: 560px) {
  .hero::before { inset: -9px -4px; filter: blur(28px) saturate(.74); opacity: .30; }
  .footer-grid { grid-template-columns: 1fr; gap: 12px; }
  .f-brand, .f-contact, .f-social { grid-column: 1; grid-row: auto; }
  .f-social { justify-self: start; }
  .f-social h4 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { transform: none; }
  .lobby-bg img, .welcome-bg img { transform: scale(1.04); will-change: auto; }
  .serv-coin { transition-duration: .01ms; will-change: auto; }
}

/* Refinamiento institucional: separadores editoriales */

.editorial-divider {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 166px;
  overflow: hidden;
  padding: 24px clamp(24px, 7vw, 120px);
  color: #25313a;
  background: linear-gradient(110deg, #f7f6f3 0%, #eeece8 54%, #f7f6f3 100%);
  border-block: 1px solid rgba(48, 58, 64, .08);
}
.editorial-divider::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14px 5%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0 16.66%, rgba(54,67,73,.08) 16.66% calc(16.66% + 1px), transparent calc(16.66% + 1px) 83.33%, rgba(54,67,73,.08) 83.33% calc(83.33% + 1px), transparent calc(83.33% + 1px));
}
.editorial-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 17px;
  width: 28px;
  height: 2px;
  transform: translateX(-50%);
  background: var(--orange-2, #e36e11);
}
.editorial-divider-inner { width: min(100%, 1320px); margin: 0 auto; }
.divider-lobby .editorial-divider-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  text-align: center;
}
.editorial-kicker {
  justify-self: start;
  color: #68737a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.editorial-title.section-title {
  margin: 0;
  color: #26343c;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.editorial-subtitle.section-sub {
  justify-self: end;
  margin: 0;
  color: #6f797f;
  font-size: 14px;
}
.divider-garden { min-height: 184px; padding-block: 30px; }
.divider-garden .editorial-divider-inner { max-width: 1060px; text-align: center; }
.editorial-welcome {
  max-width: 100%;
  margin: 0;
  color: #48545b;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.8;
  font-weight: 400;
  text-wrap: pretty;
}
.editorial-welcome strong { color: #26343c; font-weight: 700; }

@media (max-width: 900px) {
  .editorial-divider { min-height: 150px; padding: 26px 28px; }
  .divider-lobby .editorial-divider-inner { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .editorial-kicker, .editorial-subtitle.section-sub { justify-self: center; }
  .editorial-title.section-title { white-space: normal; font-size: clamp(23px, 5vw, 32px); }
  .editorial-subtitle.section-sub { font-size: 13px; }
  .divider-garden { min-height: 176px; padding-inline: 26px; }
  .editorial-welcome { font-size: 14px; line-height: 1.7; }
  .editorial-divider::before { inset-inline: 7%; background: linear-gradient(90deg, transparent 0 12%, rgba(54,67,73,.07) 12% calc(12% + 1px), transparent calc(12% + 1px) 88%, rgba(54,67,73,.07) 88% calc(88% + 1px), transparent calc(88% + 1px)); }
}
@media (max-width: 560px) {
  .editorial-divider { min-height: 142px; padding: 24px 22px; }
  .editorial-divider::before { inset-block: 11px; }
  .divider-garden { min-height: 0; padding-block: 34px; }
}
.photo-surround {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(16px, 2.5vw, 46px) max(5%, calc((100% - 1760px)/2));
  background: #eeece8;
}
.surround-lobby { --ambient-photo: url("../img/fondo-lobby-1280.webp"); }
.surround-jardin { --ambient-photo: url("../img/fondo-jardin-1280.webp"); }
.photo-surround::before {
  content: "";
  position: absolute;
  inset: -72px;
  z-index: -1;
  background: var(--ambient-photo) center / cover;
  filter: blur(66px) contrast(.72) saturate(.8) brightness(1.18);
  opacity: .76;
  pointer-events: none;
}
.photo-surround > section { border-radius: 28px; overflow: hidden; }
@media (max-width:900px) {
  .photo-surround { padding-inline:10px; }
  .photo-surround > section { border-radius:24px; }
}

/* Cierre del Paso 4 */
.photo-surround.surround-lobby {
  padding: clamp(10px, 1vw, 16px) 0;
}
.surround-lobby .lobby { min-height: clamp(120px, 10vw, 150px); }
.lobby .lobby-in { padding-block: 12px; }
.lobby .eyebrow { margin: 0 0 5px; padding: 2px 10px; font-size: 10px; }
.lobby .section-title { margin: 0; font-size: clamp(24px, 2.1vw, 34px); }
.lobby .rule { margin: 6px auto; }
.lobby .section-sub { margin: 0; font-size: 14px; }
.hero .nav { width: 100%; max-width: none; }
@media (min-width: 901px) {
  .hero .nav-in { justify-content: space-between; padding-inline: clamp(12px, 2vw, 36px); }
}

/* Ajustes finales Paso 5.2 */
.scroll-hint {
  left: auto;
  right: clamp(22px, 3.2vw, 48px);
  bottom: 28px;
  transform: none;
  z-index: 7;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.42);
}
.scroll-line { height: clamp(34px, 3.2vw, 42px); }
.scroll-line::after { box-shadow: 0 0 8px rgba(245,132,35,.65); }
.scroll-hint:focus-visible { outline: 0; color: #fff; }
.scroll-hint:focus-visible .scroll-txt { text-decoration: underline; text-underline-offset: 4px; }
.divider-architecture { display: none; }
#propiedades, .props { scroll-margin-top: 18px; }

@media (min-width: 901px) {
  .hero .nav { width: calc(100% - 16px); border-radius: 25px; }
  .divider-lobby .editorial-kicker { display: none; }
  .divider-lobby { min-height: 136px; padding-block: 22px; }
  .divider-lobby::before {
    inset: 50% 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(54,67,73,.12) 14%, rgba(54,67,73,.12) 86%, transparent);
    transform: translateY(-50%);
  }
  .divider-lobby::after { top: 24px; width: 24px; height: 2px; }
  .divider-lobby .editorial-divider-inner {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 3vw, 48px);
  }
  .divider-title-group { display: grid; gap: 4px; justify-items: center; }
  .divider-architecture {
    display: block;
    width: 36px;
    height: 28px;
    margin-bottom: 2px;
    fill: none;
    stroke: #68767c;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .divider-architecture-accent { stroke: var(--orange-2, #e36e11); stroke-width: 1.8; }
  .divider-rule {
    display: block;
    width: clamp(64px, 9vw, 150px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(54,67,73,.24));
  }
  .divider-rule:last-child { transform: scaleX(-1); }
  .editorial-title.section-title { font-size: clamp(25px, 2vw, 31px); }
  .editorial-subtitle.section-sub { font-size: 13px; }

  .divider-garden {
    width: min(calc(100% - 56px), 1200px);
    min-height: 0;
    margin-inline: auto;
    padding: 23px 62px;
    border: 0;
    border-radius: 18px;
    background: transparent;
  }
  .divider-garden::before {
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(rgba(247,246,243,.68),rgba(247,246,243,.68)), url("../img/fondo-jardin-1280.webp") center 48% / cover no-repeat;
    filter: blur(8px) saturate(.72) contrast(.96);
    opacity: .94;
  }
  .divider-garden::after {
    left: 50%; top: 16px; bottom: 16px;
    width: min(calc(100% - 72px), 1120px);
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(54,67,73,.2) 0 1px, transparent 1px calc(100% - 1px), rgba(54,67,73,.2) calc(100% - 1px));
  }
  .divider-garden .editorial-divider-inner { max-width: 1000px; }
  .editorial-welcome { font-size: 15px; line-height: 1.7; }
}

@media (max-width: 900px) {
  .hero .nav { border-radius: 20px; }
  .scroll-hint { bottom: 0; }
  .social > .pending { width: 44px; height: 44px; }
  .divider-lobby .editorial-divider-inner {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }
  .divider-lobby .editorial-kicker { display: block; justify-self: center; }
  .divider-rule { display: none; }
  .divider-title-group { display: grid; justify-items: center; gap: 6px; }
  .divider-garden {
    min-height: 176px;
    padding: 30px max(38px, 10vw);
    border: 0;
    background: transparent;
  }
  .divider-garden::before {
    inset: 0 18px;
    border-radius: 16px;
    background: linear-gradient(rgba(247,246,243,.76),rgba(247,246,243,.76)), url("../img/fondo-jardin-1280.webp") center / cover no-repeat;
    filter: blur(7px) saturate(.68);
    opacity: .94;
  }
  .divider-garden::after {
    top: 16px; bottom: 16px; left: 18px; right: 18px;
    width: auto; height: auto;
    transform: none;
    background: linear-gradient(90deg, rgba(54,67,73,.2) 0 1px, transparent 1px calc(100% - 1px), rgba(54,67,73,.2) calc(100% - 1px));
  }
  .editorial-welcome { font-size: 14px; line-height: 1.65; }
}

@media (max-width: 560px) {
  .scroll-hint { display: none; }
  .social > .pending { width: 42px; height: 42px; }
  .divider-lobby { min-height: 142px; }
  .divider-garden { min-height: 0; padding: 30px 42px; }
  .footer { padding-top: 18px; }
  .footer-grid {
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 10px 14px;
    padding-bottom: 12px;
  }
  .f-brand { grid-column: 1; grid-row: 1; }
  .f-contact { grid-column: 1; grid-row: 2; }
  .f-social { grid-column: 2; grid-row: 2; justify-self: end; }
  .f-brand, .f-contact, .f-social { min-width: 0; }
  .footer .brand-mark { width: 76px; height: 46px; }
  .footer-about { font-size: 11px; }
  .footer-about summary { padding: 8px 0; }
  .f-contact h4, .f-social h4 { margin-bottom: 6px; font-size: 10px; }
  .footer-contact-list, .social { gap: 6px; }
  .footer-contact-item summary, .social a { width: 42px; height: 42px; }
  .footer-contact-info {
    position: fixed;
    inset-inline: 12px;
    bottom: 72px;
    width: auto;
    max-width: none;
    transform: none;
  }
  .footer .f-bottom { grid-column: 1 / -1; }
  .f-bottom-in { padding-inline: 0; font-size: 10px; line-height: 1.45; text-align: center; }
}

/* El diálogo nativo conserva el panel blanco sin caja exterior del navegador. */
.modal:not([open]), .modal[hidden] { display: none; }
.modal {
  box-sizing: border-box;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0;
  border: 0;
  color: inherit;
  background: transparent;
}
.modal::backdrop { background: rgba(6,10,18,.72); backdrop-filter: blur(10px); animation: fade-in .4s ease both; }
.modal.is-closing::backdrop { animation: fade-out .35s ease both; }

@media (prefers-reduced-motion: reduce) {
  .scroll-line::after { animation: none; transform: none; }
}

/* Cierre de la portada y del bloque institucional */
.hero {
  width: calc(100% - 4px);
  height: auto;
  min-height: calc(100vh - 4px);
  min-height: calc(100svh - 4px);
  margin: 2px auto;
}
.hero::before {
  inset: -2px;
  border-radius: inherit;
  filter: blur(12px) saturate(.78);
  opacity: .24;
  transform: none;
}

@media (min-width: 901px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; }
  .hero-in {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: clamp(124px, 19svh, 196px) 0 0;
  }
  .hero-in > .eyebrow, .hero-in > .hero-title { margin-inline: 7%; }
  .hero-in > .hero-title { margin-bottom: 74px; }
  .hero-in > .search-panel {
    position: relative;
    inset: auto;
    width: 83%;
    margin: auto 11% 0 6%;
  }
  .hero > .scroll-hint {
    position: relative;
    inset: auto;
    align-self: center;
    margin: 16px 0 12px;
  }
}

.identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(135px, 21vw, 250px);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  width: calc(100% - 36px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(18px, 2.2vw, 30px) clamp(20px, 4vw, 52px);
  border-radius: 18px;
  background:
    radial-gradient(circle, rgba(224, 239, 234, .10) .65px, transparent .95px) 0 0 / 7px 7px,
    radial-gradient(ellipse at top left, #2b3c3e 0%, transparent 68%),
    radial-gradient(ellipse at top right, #293b3d 0%, transparent 68%),
    radial-gradient(ellipse at bottom right, #283a3b 0%, transparent 66%),
    #202c2e;
  color: #f8f5ef;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.identity-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 6px;
  color: #efb07b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.identity-label::before {
  content: "";
  width: 15px;
  height: 1px;
  background: var(--orange);
}
.identity h2 {
  margin: 0 0 8px;
  font-size: clamp(19px, 2.05vw, 29px);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.identity-text {
  margin: 0;
  color: #d0d9d8;
  font-size: 14px;
  line-height: 1.65;
}
.identity-text strong { color: #f8f5ef; }
.identity-architecture {
  display: block;
  width: 100%;
  max-height: 112px;
  padding-inline: 12px;
  border-inline: 1px solid #435354;
  stroke: #687c7c;
  stroke-width: 1;
}
.identity-accent { stroke: var(--orange); }

@media (max-width: 560px) {
  .identity {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: calc(100% - 20px);
  }
  .identity-architecture { justify-self: end; width: 110px; height: 42px; }
}

@media (max-width: 560px) and (max-height: 680px) {
  .hero-in { padding-block: 28px 16px; }
}

/* Paso 5.2.D — componentes demostrativos alineados con la identidad aprobada */
.advanced-dialog {
  width: min(940px, calc(100vw - 48px));
  max-width: none;
  max-height: min(820px, calc(100svh - 48px));
  margin: auto;
  padding: clamp(24px, 3vw, 36px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(43, 54, 59, .10);
  border-radius: 26px;
  background: #fbfaf8;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(15, 24, 29, .24);
  font-family: "Plus Jakarta Sans", sans-serif;
}
.advanced-dialog::backdrop { background: rgba(18, 29, 35, .48); backdrop-filter: blur(3px); }
.advanced-dialog h2 { margin: 0 52px 5px 0; color: #26343c; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.035em; }
.advanced-demo-note { margin: 0 48px 22px 0; color: #71787c; font-size: 12px; line-height: 1.5; }
.advanced-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(38, 52, 60, .10);
  border-radius: 50%;
  background: #fff;
  color: #44535a;
}
.advanced-close .icon { width: 17px; height: 17px; }
.advanced-close:hover { color: var(--burnt); border-color: rgba(195, 84, 18, .3); }
.advanced-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.advanced-grid > label { display: grid; align-content: start; gap: 7px; min-width: 0; color: #40515a; font-size: 12px; font-weight: 650; line-height: 1.35; }
.advanced-grid input,
.advanced-grid select,
.property-inquiry input,
.property-inquiry textarea,
#catalogSort {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dedbd5;
  border-radius: 13px;
  background-color: #fff;
  color: #2b3940;
  font: 500 13px/1.4 "Plus Jakarta Sans", sans-serif;
  box-shadow: inset 0 1px 2px rgba(39, 49, 55, .025);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.advanced-grid select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a777b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.advanced-grid input::placeholder,
.property-inquiry input::placeholder,
.property-inquiry textarea::placeholder { color: #92999b; opacity: 1; }
.advanced-grid input:focus,
.advanced-grid select:focus,
.property-inquiry input:focus,
.property-inquiry textarea:focus,
#catalogSort:focus {
  border-color: rgba(224, 111, 24, .72);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(224, 111, 24, .13);
}
.advanced-grid .advanced-keywords { grid-column: 1 / -1; }
.advanced-actions { position: sticky; bottom: calc(clamp(24px, 3vw, 36px) * -1); display: flex; justify-content: flex-end; gap: 10px; margin: 22px calc(clamp(24px, 3vw, 36px) * -1) 0; padding: 14px clamp(24px, 3vw, 36px) 0; border-top: 1px solid rgba(43, 54, 59, .07); background: #fbfaf8; }
.advanced-actions button { min-height: 46px; padding: 0 20px; border-radius: 999px; font: 700 13px "Plus Jakarta Sans", sans-serif; }
.advanced-actions .btn-solid { min-width: 188px; }
.advanced-reset {
  border: 1px solid #dedbd5;
  background: #fff;
  color: #4e5a60;
}
.advanced-reset:hover { border-color: #b9afa4; background: #f7f4f0; }
#advancedError, #tasErrors { margin: 12px 0 0; padding: 10px 13px; border: 1px solid rgba(190, 63, 47, .18); border-radius: 12px; background: #fff5f2; color: #9d382c; font-size: 13px; }

.footer-grid { grid-template-columns: minmax(190px, 1.15fr) minmax(180px, .85fr) auto minmax(230px, .9fr); align-items: center; gap: 22px; }
.newsletter-demo { min-width: 0; align-self: center; margin: 0; }
.newsletter-demo > label { display: block; margin-bottom: 8px; color: #f2f0eb; font-size: 12px; font-weight: 650; letter-spacing: .01em; }
.newsletter-control { display: flex; min-width: 0; height: 44px; padding: 3px; border: 1px solid rgba(238, 235, 228, .18); border-radius: 999px; background: rgba(255, 255, 255, .075); transition: border-color .2s ease, box-shadow .2s ease; }
.newsletter-control:focus-within { border-color: rgba(243, 142, 49, .75); box-shadow: 0 0 0 3px rgba(243, 142, 49, .12); }
.newsletter-control input { flex: 1 1 auto; width: 0; min-width: 0; padding: 0 11px; border: 0; outline: 0; background: transparent; color: #f5f4f1; font: 500 12px "Plus Jakarta Sans", sans-serif; }
.newsletter-control input::placeholder { color: #a9b0b2; opacity: 1; }
.newsletter-control button { flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--orange); color: #252b2d; }
.newsletter-control button:hover:not(:disabled) { background: var(--orange-3); }
.newsletter-control button:disabled { cursor: not-allowed; opacity: .5; }
.newsletter-control button .icon { width: 17px; height: 17px; }
#newsletterStatus { min-height: 16px; margin: 6px 4px 0; color: #aeb6b9; font-size: 10px; line-height: 1.45; }
#catalogSort { max-width: 260px; }
.catalog-feedback p { margin: 0; color: #647178; font-size: 13px; }
.catalog-feedback button,
.catalog-pagination button,
.detail-share,
.property-inquiry .btn { font-family: "Plus Jakarta Sans", sans-serif; transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.catalog-feedback button:hover,
.catalog-pagination button:hover:not(:disabled),
.detail-share:hover { border-color: rgba(207, 95, 20, .48); background: #fff8f1; color: #a74d13; }
.catalog-pagination button[aria-current="page"] { background: #fff5eb; font-weight: 750; }
.catalog-empty { border: 1px solid rgba(40, 54, 60, .08); background: #fbfaf8; box-shadow: 0 10px 26px rgba(31, 42, 48, .04); }
.property-inquiry input, .property-inquiry textarea { display: block; }
.property-inquiry .field-error input,
.property-inquiry input[aria-invalid="true"] { border-color: #c94f3d; background: #fff8f6; }
.property-inquiryStatus, #propertyInquiryStatus { min-height: 18px; color: #647178; }
.demo-form-note { padding: 9px 11px; border-left: 2px solid var(--orange); border-radius: 0 9px 9px 0; background: rgba(238, 231, 220, .38); }
.detail-extra { color: #34434a; }
.detail-data-note { padding: 10px 12px; border-radius: 11px; background: #f6f3ee; line-height: 1.5; }
.detail-share { color: #36454b; }

body:has(dialog[open]) .wa-float { visibility: hidden; opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 20px; }
  .f-brand { grid-column: 1; grid-row: 1; }
  .f-contact { grid-column: 1; grid-row: 2; }
  .f-social { grid-column: 2; grid-row: 1; }
  .newsletter-demo { grid-column: 2; grid-row: 2; width: min(100%, 280px); justify-self: end; }
  .footer .brand-mark { width: 94px; height: 58px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .f-brand, .f-contact, .f-social, .newsletter-demo { grid-column: 1; grid-row: auto; }
  .f-social { justify-self: start; }
  .newsletter-demo { width: 100%; max-width: 360px; justify-self: stretch; }
  .advanced-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 24px 18px 18px; border-radius: 21px; }
  .advanced-dialog h2 { margin-right: 42px; font-size: 21px; }
  .advanced-demo-note { margin: 0 34px 16px 0; font-size: 11px; }
  .advanced-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .advanced-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .advanced-grid .advanced-keywords { grid-column: 1; }
  .advanced-grid > label { font-size: 12px; }
  .advanced-actions { bottom: -19px; flex-direction: row; gap: 8px; margin: 16px -18px 0; padding: 12px 18px max(8px, env(safe-area-inset-bottom)); }
  .advanced-actions button { flex: 1 1 0; width: auto; padding-inline: 9px; font-size: 11.5px; white-space: nowrap; }
  .advanced-actions .btn-solid { min-width: 0; flex: 1.25 1 0; }
  .wa-float { left: auto; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 46px; height: 46px; }
  .wa-float .icon { width: 25px; height: 25px; }
  .catalog-feedback { gap: 8px 12px; }
  #catalogSort { max-width: 100%; }
}
@media (min-width: 480px) and (max-width: 760px) {
  .advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advanced-grid .advanced-keywords { grid-column: 1 / -1; }
}
@media (max-width: 380px) and (max-height: 680px) {
  .wa-float { right: 12px; bottom: 12px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .advanced-close, .advanced-grid input, .advanced-grid select, .property-inquiry input, .property-inquiry textarea, .newsletter-control { transition-duration: .01ms; }
}
