/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy:        #193a6f;
  --navy-dark:   #0f2548;
  --navy-mid:    #1e4080;
  --navy-light:  #2a5298;
  --orange:      #fd8916;
  --orange-dark: #e07514;
  --orange-glow: rgba(253, 137, 22, 0.25);
  --white:       #ffffff;
  --off-white:   #f4f7fd;
  --grey-light:  #eef2f9;
  --text:        #193a6f;
  --text-soft:   #4a6090;
  --text-mute:   #7a90b8;
  --line:        rgba(25, 58, 111, 0.12);
  --line-light:  rgba(255, 255, 255, 0.14);
  --shadow-sm:   0 2px 12px rgba(25, 58, 111, 0.10);
  --shadow-md:   0 8px 32px rgba(25, 58, 111, 0.18);
  --shadow-lg:   0 20px 60px rgba(25, 58, 111, 0.25);
  --shadow-orange: 0 8px 28px rgba(253, 137, 22, 0.22);
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sans:        'Inter', system-ui, sans-serif;
  --heading:     'Plus Jakarta Sans', system-ui, sans-serif;
  --gutter:      clamp(1.5rem, 5vw, 6rem);
  --container:   1280px;

  /* Mouse gradient position (updated by JS) */
  --mx: 70%;
  --my: 40%;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--heading);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
ul { list-style: none; }
::selection { background: var(--orange); color: var(--white); }
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.2rem; background: var(--navy); color: var(--white);
  z-index: 9999; border-radius: var(--radius-sm); font-weight: 600;
  transition: top .3s;
}
.skip-link:focus { top: 1rem; }

.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;
}

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

.section-kicker {
  font-family: var(--heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.section-kicker::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

/* =============================================================
   4. Typography
   ============================================================= */
.display-xl {
  font-family: var(--heading);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.display-lg {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.display-md {
  font-family: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.accent-orange { color: var(--orange); }
.accent-white  { color: var(--white); }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--heading);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s, color .2s;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-orange:hover {
  background: var(--orange-dark);
  box-shadow: 0 12px 32px rgba(253,137,22,.3);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-navy:hover {
  background: var(--navy-dark);
  box-shadow: 0 12px 40px rgba(25,58,111,.35);
}

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

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* =============================================================
   6. NAV
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: background .4s var(--ease-soft), backdrop-filter .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(15, 37, 72, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 8px 32px rgba(0,0,0,.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.nav-logo-sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-family: var(--heading);
  font-weight: 600;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  transition: color .2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 100%;
  height: 2px;
  background: var(--orange);
  transition: right .3s var(--ease-out);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { right: 0; }
.nav-link.is-active { color: var(--white); }
.nav-link.is-active::after { right: 0; }

.nav-cta {
  display: none;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s, width .3s;
}
.nav-hamburger span:nth-child(2) { width: 70%; }
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy-dark);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform .45s var(--ease-out);
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile-link {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--white);
  letter-spacing: -0.03em;
  transition: color .2s;
}
.nav-mobile-link:hover { color: var(--orange); }
.nav-mobile-cta { margin-top: 1rem; }

/* =============================================================
   7. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
  padding: 6rem var(--gutter) 4rem;
  isolation: isolate;
}

/* City skyline — grounds the hero as real estate, not an abstract SaaS gradient */
.hero-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background-image: url("assets/img/hero-city.jpg");
  background-size: cover;
  background-position: center bottom;
  filter: grayscale(1) contrast(1.05);
  opacity: .4;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(to top, black 0%, black 30%, transparent 100%);
  mask-image: linear-gradient(to top, black 0%, black 30%, transparent 100%);
  pointer-events: none;
}

/* Mouse-reactive gradient */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 700px at var(--mx, 70%) var(--my, 35%),
      rgba(253,137,22, 0.16) 0%, transparent 55%),
    radial-gradient(circle 900px at calc(var(--mx, 30%) - 20%) calc(var(--my, 65%) + 15%),
      rgba(42, 82, 152, 0.34) 0%, transparent 55%),
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(15, 37, 72, 0.9) 0%, transparent 70%),
    var(--navy-dark);
  filter: blur(0px);
  pointer-events: none;
  transition: background 0.15s ease;
}

/* Grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 30%, rgba(10,22,50,.25) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero-kicker {
  font-family: var(--heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.6); opacity: .5; }
}

.hero-title {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  line-height: .98;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: normal;
  color: var(--orange);
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

/* Hero search box */
.hero-search {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 8px 48px rgba(0,0,0,.3);
}

/* Solid fallback */
.hero-search-fallback {
  background: rgba(15, 37, 72, 0.85);
}
@supports (backdrop-filter: blur(20px)) {
  .hero-search { background: rgba(255,255,255,.08); }
}

.search-tabs {
  display: flex;
  gap: .25rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  padding: .2rem;
}
.search-tab {
  flex: 1;
  padding: .55rem 1rem;
  border-radius: 6px;
  font-family: var(--heading);
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  transition: background .25s, color .25s;
  border: none;
  background: transparent;
  text-align: center;
}
.search-tab.is-active {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(253,137,22,.4);
}

.search-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
.search-field {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  transition: border-color .2s, background .2s;
}
.search-field:focus-within {
  border-color: rgba(253,137,22,.6);
  background: rgba(255,255,255,.12);
}
.search-field i {
  color: var(--orange);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.search-field select,
.search-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--white);
  cursor: pointer;
}
.search-field select option { background: var(--navy-dark); color: var(--white); }
.search-field select::placeholder,
.search-field input::placeholder { color: rgba(255,255,255,.4); }

.search-btn {
  width: 100%;
  margin-top: .5rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.35);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--heading);
  font-weight: 600;
}
.hero-scroll-arrow {
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceY 2s ease-in-out infinite;
}
@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* =============================================================
   8. STATS
   ============================================================= */
.stats {
  background: var(--navy);
  padding: 4rem var(--gutter);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-left: 1px solid var(--line-light);
}
.stat-item:first-child { border-left: none; }
.stat-num {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .1em;
}
.stat-num .suffix { font-size: .65em; }
.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-top: .5rem;
  font-weight: 500;
  letter-spacing: .02em;
}

/* =============================================================
   9. SECTION HEADERS
   ============================================================= */
.section-header {
  margin-bottom: 3rem;
}
.section-header.centered { text-align: center; }
.section-title {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: .75rem;
}
.section-title em { font-style: normal; color: var(--orange); }
.section-title-white { color: var(--white); }
.section-subtitle {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.65;
}
.section-subtitle.centered { margin-inline: auto; }

/* =============================================================
   10. PROPERTY CARDS
   ============================================================= */
.properties {
  padding: 5rem var(--gutter);
  background: var(--off-white);
}
.properties-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.prop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.prop-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  cursor: pointer;
}
.prop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(25,58,111,.22);
}

.prop-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.prop-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-soft);
}
.prop-card:hover .prop-card-img img { transform: scale(1.07); }

.prop-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .35rem .8rem;
  border-radius: 100px;
  font-family: var(--heading);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.prop-badge-venta { background: var(--orange); color: var(--white); }
.prop-badge-alquiler { background: var(--navy); color: var(--white); }

.prop-card-body {
  padding: 1.5rem;
}
.prop-tipo {
  font-family: var(--heading);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: .3rem;
}
.prop-precio {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: .25rem;
}
.prop-dir {
  font-size: .875rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1rem;
}

.prop-attrs {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.prop-attr {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--text-soft);
  font-weight: 500;
}
.prop-attr i { color: var(--orange); font-size: .95rem; }

/* =============================================================
   11. HOW WE WORK (PASOS)
   ============================================================= */
.process {
  padding: 5rem var(--gutter);
  background: var(--white);
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.process-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  background: var(--white);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
  position: relative;
  overflow: hidden;
  border-left: 4px solid transparent;
}
.process-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .35s var(--ease-out);
}
.process-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(253,137,22,.25);
}
.process-card:hover::before { transform: scaleY(1); }

.process-num {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(25,58,111,.08);
  margin-bottom: .75rem;
  transition: color .3s;
}
.process-card:hover .process-num { color: rgba(253,137,22,.18); }

.process-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: .75rem;
}
.process-text {
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* =============================================================
   12. TASACIÓN FORM
   ============================================================= */
.tasacion {
  padding: 5rem var(--gutter);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.tasacion::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(253,137,22,.12) 0%, transparent 70%);
  pointer-events: none;
}
.tasacion-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.tasacion-form {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-top: 2.5rem;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-label {
  font-family: var(--heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.form-input,
.form-select {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--white);
  width: 100%;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(253,137,22,.6);
  background: rgba(255,255,255,.12);
}
.form-input::placeholder { color: rgba(255,255,255,.3); }
.form-select option { background: var(--navy-dark); color: var(--white); }
.form-submit {
  width: 100%;
  margin-top: 1.25rem;
  padding: 1.1rem;
  font-size: 1.05rem;
}
.form-msg {
  display: none;
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-family: var(--heading);
  font-weight: 600;
}
.form-msg.is-success {
  display: block;
  background: rgba(253,137,22,.15);
  border: 1px solid rgba(253,137,22,.35);
  color: var(--orange);
}
.form-msg.is-error {
  display: block;
  background: rgba(220,53,69,.12);
  border: 1px solid rgba(220,53,69,.3);
  color: #ff6b7a;
}

/* =============================================================
   13. DIFERENCIAL
   ============================================================= */
.diferencial {
  padding: 5rem var(--gutter);
  background: var(--off-white);
}
.diferencial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.diferencial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.diferencial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.diferencial-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(253,137,22,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.diferencial-icon i {
  font-size: 1.5rem;
  color: var(--orange);
}
.diferencial-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: .6rem;
}
.diferencial-text {
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* =============================================================
   14. FOOTER
   ============================================================= */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.6);
  padding: 4rem var(--gutter) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
  max-width: var(--container);
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.footer-logo-text {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.footer-desc {
  font-size: .875rem;
  line-height: 1.65;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: .75rem;
}
.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: 1rem;
  transition: background .2s, color .2s, border-color .2s;
}
.footer-social-link:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.footer-col-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 1rem;
}
.footer-nav-link {
  display: block;
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  margin-bottom: .6rem;
  transition: color .2s;
}
.footer-nav-link:hover { color: var(--orange); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  margin-bottom: .7rem;
}
.footer-contact-item i {
  color: var(--orange);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  font-size: .8rem;
}
.footer-legal { color: rgba(255,255,255,.3); }

/* =============================================================
   15. PAGE HERO (inner pages)
   ============================================================= */
.page-hero {
  padding: 9rem var(--gutter) 4rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(253,137,22,.11) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-title {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--white);
  letter-spacing: -0.04em;
  margin-bottom: .75rem;
  position: relative;
}
.page-hero-title em { font-style: normal; color: var(--orange); }
.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.62);
  max-width: 540px;
  margin: 0 auto;
}

/* =============================================================
   16. PROPIEDADES page
   ============================================================= */
.propiedades-section {
  padding: 4rem var(--gutter);
  background: var(--off-white);
}
.filters-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.filter-label {
  font-family: var(--heading);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.filter-select {
  background: var(--off-white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--navy);
  cursor: pointer;
  transition: border-color .2s;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23193a6f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.5rem;
}
.filter-select:focus { outline: none; border-color: var(--orange); }
.filter-btn { align-self: flex-end; }

.prop-grid-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-mute);
}
.no-results i { font-size: 3rem; margin-bottom: 1rem; color: var(--line); }
.no-results p { font-size: 1rem; }

/* =============================================================
   17. EMPRESA page
   ============================================================= */
.empresa-story {
  padding: 5rem var(--gutter);
  background: var(--white);
}
.empresa-story-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.empresa-story-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.empresa-story-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.empresa-juan {
  padding: 5rem var(--gutter);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.empresa-juan-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.empresa-juan-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-width: 340px;
  margin: 0 auto;
}
.empresa-juan-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.empresa-juan-text { color: rgba(255,255,255,.8); }
.empresa-juan-name {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  letter-spacing: -0.035em;
  margin-bottom: .3rem;
}
.empresa-juan-role {
  font-size: .875rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.empresa-valores {
  padding: 5rem var(--gutter);
  background: var(--off-white);
}

/* =============================================================
   18. CONTACTO page
   ============================================================= */
.contacto-section {
  padding: 5rem var(--gutter);
  background: var(--white);
}
.contacto-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contacto-info { display: flex; flex-direction: column; gap: 2rem; }
.contacto-info-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contacto-info-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(253,137,22,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contacto-info-icon i { font-size: 1.3rem; color: var(--orange); }
.contacto-info-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: .25rem;
}
.contacto-info-val {
  font-size: .9rem;
  color: var(--text-soft);
}
.contacto-info-val a:hover { color: var(--orange); }

.contacto-wa {
  padding: 3rem var(--gutter);
  background: var(--navy);
  text-align: center;
}
.contacto-wa-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 2.5rem;
  background: #25D366;
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform .25s var(--ease-out), box-shadow .25s;
  box-shadow: 0 8px 32px rgba(37,211,102,.35);
}
.wa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(37,211,102,.45);
}

/* =============================================================
   19. REVEALS / SCROLL ANIMATIONS
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-split] { opacity: 1; transform: none; }

/* Stagger delays */
.stagger-1 { transition-delay: .05s; }
.stagger-2 { transition-delay: .12s; }
.stagger-3 { transition-delay: .20s; }
.stagger-4 { transition-delay: .28s; }
.stagger-5 { transition-delay: .36s; }
.stagger-6 { transition-delay: .44s; }

/* View transitions */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .5s;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation-name: fadeOutUp; }
::view-transition-new(root) { animation-name: fadeInUp; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   20. RESPONSIVE — tablet 720+
   ============================================================= */
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-hamburger { display: none; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-item { border-left: 1px solid var(--line-light); }
  .stat-item:first-child { border-left: none; }

  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .prop-grid-full { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .diferencial-grid { grid-template-columns: repeat(2, 1fr); }

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

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

  .footer-top { grid-template-columns: 2fr 1fr 1fr; }

  .empresa-story-inner { grid-template-columns: 1fr 1fr; }
  .empresa-juan-inner { grid-template-columns: 1fr 1fr; }
  .empresa-juan-img { max-width: 100%; }

  .contacto-inner { grid-template-columns: 1fr 1fr; }

  .filters-bar { grid-template-columns: repeat(3, 1fr) auto; align-items: end; }
}

/* =============================================================
   21. RESPONSIVE — desktop 1024+
   ============================================================= */
@media (min-width: 1024px) {
  .prop-grid { grid-template-columns: repeat(3, 1fr); }
  .prop-grid-full { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .diferencial-grid { grid-template-columns: repeat(3, 1fr); }

  .search-fields { grid-template-columns: repeat(3, 1fr); }
  .hero-search { padding: 1.5rem 2rem; }

  .footer-top { grid-template-columns: 2.5fr 1fr 1fr 1.5fr; }
}

/* =============================================================
   22. Reduced-motion (intrusive only)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-kicker-dot { animation: none; }
  .hero-scroll-arrow { animation: none; }
}

/* =============================================================
   23. Floating WhatsApp button
   ============================================================= */
.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
@media (max-width: 640px) {
  .wa-float {
    right: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
}
