/* =============================================================
   ANTSER — Inmobiliaria · styles.css
   Archetype: Glassmorphism Modern (adaptado) — carbón cálido + bronce,
   sin azul corporativo. Tarjetas de vidrio flotantes como firma visual.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

:root {
  /* Warm stone (light sections) */
  --bg:        #f6f3ec;
  --bg-2:      #efe9dd;
  --paper:     #ffffff;

  /* Warm charcoal (dark sections) */
  --dark:      #15130f;
  --dark-2:    #1c1913;
  --dark-3:    #262119;

  /* Ink on light */
  --ink:       #1a1712;
  --ink-soft:  #38332b;
  --ink-mute:  #635c50; /* contrast-checked ≥ 5.9:1 on --bg */

  /* Cream on dark */
  --cream:     #f3ecdd;
  --cream-mute: rgba(243,236,221,0.7);
  --cream-dim:  rgba(243,236,221,0.62); /* contrast-checked for small labels over glass-dark */

  /* Accent: bronce / oro cálido — NO azul corporativo */
  --accent:      #b3803c;
  --accent-2:    #8f6329;
  --accent-soft: rgba(179,128,60,0.16);
  --accent-glow: rgba(179,128,60,0.38);

  /* Secondary: verde bosque profundo (tags de arriendo) */
  --forest:      #3c5c46;
  --forest-soft: rgba(60,92,70,0.14);

  --line:       rgba(26,23,18,0.12);
  --line-soft:  rgba(26,23,18,0.07);
  --line-dark:  rgba(243,236,221,0.14);

  --glass:      rgba(255,255,255,0.58);
  --glass-2:    rgba(255,255,255,0.30);
  --glass-dark:      rgba(38,33,25,0.55);
  --glass-dark-2:    rgba(38,33,25,0.32);

  --shadow-soft: 0 30px 70px -30px rgba(21,19,15,0.35);
  --shadow-lift: 0 22px 50px rgba(0,0,0,0.18), 0 10px 22px rgba(179,128,60,0.16);

  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Manrope", var(--sans);
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 78px;
  --radius: 20px;
  --radius-sm: 12px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
[id] { scroll-margin-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.02em; font-family: var(--display); font-weight: 700; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--dark); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; background: var(--ink); color: var(--cream);
  border-radius: 8px; font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

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

.section { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-dark { background: var(--dark); color: var(--cream); }
.section-alt  { background: var(--bg-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600; margin-bottom: 1rem;
}
.section-dark .eyebrow { color: var(--accent); }
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.section-head {
  max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section-title em {
  font-style: normal; color: var(--accent);
}
.section-sub { margin-top: .9rem; font-size: 1.05rem; color: var(--ink-mute); max-width: 52ch; }
.section-dark .section-sub { color: var(--cream-mute); }
.section-head.is-center .section-sub { margin-inline: auto; }

/* =============================================================
   4. Buttons & links
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: -0.01em;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), background-color .3s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), #6f4c1f);
  color: #fffaf0;
  box-shadow: 0 4px 18px rgba(143,99,41,.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-ghost {
  background: transparent; color: inherit;
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.section-dark .btn-ghost { border-color: var(--line-dark); }
.section-dark .btn-ghost:hover { background: rgba(179,128,60,.18); border-color: var(--accent); }

.btn-sm { padding: .7rem 1.2rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* Magnetic wrapper */
.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

.text-link {
  position: relative; padding-bottom: .2rem; font-weight: 600;
}
.text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.text-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* =============================================================
   5. Glass component
   ============================================================= */
.glass {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
@supports (backdrop-filter: blur(20px)) {
  .glass {
    background: var(--glass-2);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
  }
}
.glass-dark {
  background: var(--glass-dark);
  border: 1px solid rgba(243,236,221,0.12);
  border-radius: var(--radius);
}
@supports (backdrop-filter: blur(20px)) {
  .glass-dark {
    background: var(--glass-dark-2);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
  }
}

/* Tilt (used on property + differentiator cards) */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .15s; box-shadow: var(--shadow-lift); }

/* Cursor-follow halo (used on differentiator + rental cards) */
.has-halo { position: relative; isolation: isolate; }
.has-halo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
                              var(--accent-glow), transparent 62%);
  opacity: 0; transition: opacity .4s;
}
.has-halo:hover::before { opacity: 1; }

/* =============================================================
   6. Navigation
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  height: var(--nav-h);
  color: var(--cream);
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s, color .4s;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav.is-scrolled {
  background: rgba(246,243,236,0.86);
  border-bottom-color: var(--line);
  color: var(--ink);
}
@supports (backdrop-filter: blur(16px)) {
  .nav.is-scrolled { backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
}
.nav-logo-mark { flex: none; }
.nav-logo-word {
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em;
}
.nav-logo-word .dot { color: var(--accent); }
.nav-links {
  display: none; align-items: center; gap: 2rem;
  font-size: .93rem; font-weight: 600;
}
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; padding-block: .3rem; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-soft);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

.nav-burger {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(243,236,221,.35);
  transition: border-color .4s;
}
.nav.is-scrolled .nav-burger { border-color: var(--line); }
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger-lines { position: relative; width: 18px; height: 12px; }
.nav-burger-lines span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease-soft), opacity .3s;
}
.nav-burger-lines span:nth-child(1) { top: 0; }
.nav-burger-lines span:nth-child(2) { top: 5px; }
.nav-burger-lines span:nth-child(3) { top: 10px; }
.nav-burger[aria-expanded="true"] .nav-burger-lines span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .nav-burger-lines span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .nav-burger-lines span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 190;
  background: var(--dark); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--display); font-size: 1.7rem; font-weight: 700; }
.nav-mobile .btn-primary { margin-top: 1rem; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 3rem;
  background: var(--dark);
  color: var(--cream);
  overflow: clip;
  isolation: isolate;
}
.hero-bg-photo {
  position: absolute; inset: 0; z-index: -3;
  overflow: hidden;
}
.hero-bg-photo img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .32; filter: saturate(1.05) contrast(1.05);
  animation: ambientZoom 34s ease-in-out infinite;
}
.hero-bg-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,19,15,.55) 0%, var(--dark) 92%);
}
.hero-mesh {
  position: absolute; inset: -12%; z-index: -2;
  background:
    radial-gradient(45% 40% at var(--mesh-x) var(--mesh-y), rgba(179,128,60,.42), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(179,128,60,.16), rgba(60,92,70,.10), rgba(179,128,60,.20), rgba(179,128,60,.16));
  filter: blur(90px) saturate(130%);
  opacity: .85;
  animation: meshShift 26s linear infinite;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 20%; --mesh-y: 30%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 75%; --mesh-y: 55%; }
  100% { --mesh-angle: 360deg; --mesh-x: 20%; --mesh-y: 30%; }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.hero-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.75fr; gap: 2.5rem; }
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-mute); margin-bottom: 1.4rem;
  padding: .5rem .9rem; border: 1px solid var(--line-dark); border-radius: 999px;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  max-width: 15ch;
}
.hero-title em { font-style: normal; color: var(--accent); }

.hero-sub {
  margin-top: 1.4rem; font-size: 1.12rem; color: var(--cream-mute); max-width: 46ch;
}

.hero-search {
  margin-top: 2.2rem;
  padding: 1.1rem;
  display: grid; gap: .7rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .hero-search { grid-template-columns: repeat(2, 1fr) auto; align-items: end; }
}
@media (min-width: 1024px) {
  .hero-search { grid-template-columns: repeat(4, 1fr) auto; }
}
.hero-search .field-mini { display: flex; flex-direction: column; gap: .35rem; }
.hero-search label {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-dim);
}
.hero-search select {
  appearance: none;
  background: rgba(243,236,221,0.06);
  border: 1px solid var(--line-dark);
  color: var(--cream);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  font-size: .92rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%23f3ecdd' d='M5 8l5 5 5-5z'/></svg>");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 14px;
}
.hero-search select:focus { border-color: var(--accent); outline: none; }
.hero-search .btn { height: 48px; }

.hero-stats {
  margin-top: 2.4rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem;
}
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat-value {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--cream);
}
.hero-stat-value .suffix { color: var(--accent); }
.hero-stat-label { font-size: .8rem; color: var(--cream-dim); margin-top: .25rem; }

.hero-visual { position: relative; }
.hero-visual-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
}
.hero-visual-frame img {
  width: 100%; height: 100%; object-fit: cover;
  animation: ambientZoom 30s ease-in-out infinite;
}
@keyframes ambientZoom {
  0%, 100% { transform: scale(1.04); }
  50% { transform: scale(1.11); }
}
.hero-visual-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,19,15,0) 40%, rgba(21,19,15,.75) 100%);
}
.hero-visual-badge {
  position: absolute; left: 1.1rem; bottom: 1.1rem; right: 1.1rem;
  padding: 1rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.hero-visual-badge-title { font-weight: 700; font-size: .95rem; }
.hero-visual-badge-meta { font-family: var(--mono); font-size: .74rem; color: var(--cream-dim); margin-top: .2rem; }
.hero-visual-price { font-family: var(--display); font-weight: 800; color: var(--accent); font-size: 1.05rem; }
.hero-visual-float {
  position: absolute; top: -1.2rem; right: -1rem;
  padding: .7rem .9rem;
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700;
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-visual-float .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #6fae7f;
  box-shadow: 0 0 0 0 rgba(111,174,127,.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(111,174,127,.55); }
  70% { box-shadow: 0 0 0 9px rgba(111,174,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,174,127,0); }
}

/* =============================================================
   8. Marquee ticker
   ============================================================= */
.ticker {
  position: relative; z-index: 5;
  background: var(--ink); color: var(--cream);
  border-top: 1px solid rgba(243,236,221,.08);
  overflow: hidden;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--ink), transparent); }
.ticker::after  { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.ticker-track {
  display: inline-flex; gap: 3rem; white-space: nowrap; will-change: transform;
  padding-block: .85rem;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .01em;
}
.ticker-track span.sep { color: var(--accent); }

/* =============================================================
   9. Listings (property cards)
   ============================================================= */
.listings-empty {
  padding: 1.4rem 1.6rem; margin-bottom: 1.5rem;
  border-radius: var(--radius-sm); border: 1px dashed var(--line);
  color: var(--ink-mute); font-size: .95rem;
}
.listings-empty[hidden] { display: none; }

.property-card[hidden] { display: none; }

.listings-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .listings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .listings-grid { grid-template-columns: repeat(3, 1fr); } }

.property-card {
  overflow: hidden;
  display: flex; flex-direction: column;
}
.property-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.property-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-soft), filter .55s;
}
.property-card:hover .property-media img { transform: scale(1.1); filter: saturate(1.12) brightness(1.03); }
.property-badges {
  position: absolute; top: .9rem; left: .9rem; right: .9rem;
  display: flex; justify-content: space-between; gap: .5rem;
}
.badge {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .65rem; border-radius: 999px; font-weight: 600;
}
.badge-venta { background: rgba(143,99,41,.94); color: #fffaf0; }
.badge-arriendo { background: rgba(60,92,70,.92); color: #eef4ee; }
.badge-tag { background: rgba(21,19,15,.6); color: var(--cream); backdrop-filter: blur(6px); }

.property-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.property-comuna { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.property-name { font-size: 1.2rem; }
.property-address { font-size: .86rem; color: var(--ink-mute); }
.property-specs {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .78rem; color: var(--ink-soft);
  padding-top: .5rem; margin-top: .2rem; border-top: 1px solid var(--line-soft);
}
.property-footer {
  margin-top: .3rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.property-price { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.property-price .cur { font-family: var(--mono); font-weight: 500; font-size: .72rem; color: var(--ink-mute); display: block; }

/* =============================================================
   10. Rental section
   ============================================================= */
.rental-grid {
  display: grid; gap: 1.75rem; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .rental-grid { grid-template-columns: 1fr 1fr; } }

.rental-card { overflow: hidden; display: flex; flex-direction: column; }
.rental-media { aspect-ratio: 16/9; overflow: hidden; }
.rental-media img { width: 100%; height: 100%; object-fit: cover; }
.rental-body { padding: 1.7rem 1.8rem 1.9rem; display: flex; flex-direction: column; gap: 1.1rem; }
.rental-title { font-size: 1.4rem; }
.rental-text { color: var(--cream-mute); font-size: .96rem; }
.rental-features { display: flex; flex-direction: column; gap: .65rem; }
.rental-features li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .88rem; color: var(--cream-mute);
}
.rental-features li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: .5rem; border-radius: 50%; background: var(--accent);
}
.rental-actions { margin-top: .4rem; }

/* =============================================================
   11. Why ANTSER (differentiators)
   ============================================================= */
.why-grid {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-card {
  padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.why-index {
  font-family: var(--mono); font-size: .78rem; color: var(--accent); font-weight: 700;
}
.why-title { font-size: 1.1rem; }
.why-text { font-size: .92rem; color: var(--ink-mute); }

/* =============================================================
   12. Process (tabs + timeline)
   ============================================================= */
.process-tabs {
  display: inline-flex; padding: .3rem; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 2.5rem;
}
.process-tab {
  padding: .65rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .88rem;
  color: var(--ink-mute); transition: background .35s, color .35s;
}
.process-tab[aria-selected="true"] { background: var(--ink); color: var(--cream); }

.process-panel { display: none; }
.process-panel.is-active { display: block; }

.process-steps {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .process-steps { grid-template-columns: repeat(5, 1fr); } }
.process-panel[data-count="4"] .process-steps { grid-template-columns: 1fr; }
@media (min-width: 720px) { .process-panel[data-count="4"] .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .process-panel[data-count="4"] .process-steps { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line-soft);
  position: relative;
}
.process-step-num {
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--accent-soft);
  -webkit-text-stroke: 1.5px var(--accent);
  color: transparent;
  margin-bottom: .7rem; display: block;
}
.process-step-title { font-size: 1rem; margin-bottom: .4rem; }
.process-step-text { font-size: .87rem; color: var(--ink-mute); }

/* =============================================================
   13. Comunas (horizontal scroll)
   ============================================================= */
.comunas-scroll {
  display: flex; gap: 1.25rem; overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x proximity;
  padding-block: .5rem 2rem; margin-inline: -1.25rem; padding-inline: 1.25rem;
  scrollbar-width: thin;
}
@media (min-width: 720px) { .comunas-scroll { margin-inline: -2rem; padding-inline: 2rem; } }
.comunas-scroll::-webkit-scrollbar { height: 6px; }
.comunas-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.comuna-card {
  position: relative; flex: 0 0 auto; width: min(320px, 78vw); aspect-ratio: 3/4;
  border-radius: var(--radius); overflow: hidden; scroll-snap-align: start;
  isolation: isolate;
}
.comuna-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .8s var(--ease-soft); }
.comuna-card:hover img { transform: scale(1.08); }
.comuna-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(21,19,15,.05) 30%, rgba(21,19,15,.92) 100%);
}
.comuna-body { position: absolute; inset: auto 0 0 0; padding: 1.4rem; color: var(--cream); }
.comuna-count {
  display: inline-block; margin-bottom: .6rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; background: rgba(143,99,41,.94); color: #fffaf0;
}
.comuna-name { font-size: 1.35rem; margin-bottom: .4rem; }
.comuna-text { font-size: .85rem; color: var(--cream-mute); }

/* =============================================================
   14. Testimonials
   ============================================================= */
.testimonials-grid {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  padding: 1.6rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.testimonial-quote { font-size: .96rem; color: var(--ink-soft); }
.testimonial-quote::before { content: "\201C"; color: var(--accent); font-family: var(--display); }
.testimonial-quote::after { content: "\201D"; color: var(--accent); font-family: var(--display); }
.testimonial-person { display: flex; align-items: center; gap: .8rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: .82rem; color: #fffaf0;
  background: linear-gradient(135deg, var(--accent), var(--forest));
}
.testimonial-name { font-size: .92rem; font-weight: 700; }
.testimonial-role { font-size: .78rem; color: var(--ink-mute); }

/* =============================================================
   15. Contact
   ============================================================= */
.contact-grid {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
  position: relative; z-index: 2;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.contact-info-list { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.8rem; }
.contact-info-item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-info-icon {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: rgba(179,128,60,.16); color: var(--accent);
  font-family: var(--mono); font-size: .8rem;
}
.contact-info-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cream-dim); font-family: var(--mono); }
.contact-info-value { font-size: 1rem; font-weight: 600; margin-top: .15rem; }

.contact-form { padding: 1.8rem; position: relative; overflow: hidden; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.field { position: relative; margin-bottom: 1.1rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.35rem 1rem .55rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark); background: rgba(243,236,221,0.06); color: var(--cream);
}
.field textarea { min-height: 108px; resize: vertical; }
.field label {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; transition: all .25s var(--ease-out);
  color: var(--cream-dim); font-size: .95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field.has-value label {
  top: .68rem; transform: none; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.field select { color-scheme: dark; }

.cta-submit { position: relative; }
.cta-form-label, .cta-form-spinner, .cta-form-check { display: inline-flex; align-items: center; gap: .5rem; }
.cta-form-spinner, .cta-form-check { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form { transition: opacity .5s var(--ease-out), transform .5s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-10px); pointer-events: none; position: absolute; }

.cta-success {
  padding: 2.4rem 1.8rem; text-align: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .7s var(--ease-out) .1s, transform .7s var(--ease-soft) .1s;
}
.cta-success.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.cta-success h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.cta-success p { color: var(--cream-mute); }
.cta-success.is-error { border-color: rgba(200,120,90,.4); }
.cta-success.is-error h3::before { content: "⚠ "; }

/* =============================================================
   16. Footer
   ============================================================= */
.footer {
  background: var(--dark-2); color: var(--cream);
  padding-block: 3.5rem 2rem;
}
.footer-top {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.footer-brand-name {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  display: flex; align-items: center; gap: .7rem;
}
.footer-brand-name .dot { color: var(--accent); }
.footer-brand-text { margin-top: .9rem; color: var(--cream-mute); font-size: .9rem; max-width: 34ch; }
.footer-social { display: flex; gap: .8rem; margin-top: 1.3rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: grid; place-items: center; font-family: var(--mono); font-size: .7rem;
  transition: border-color .3s, background .3s;
}
.footer-social a:hover { border-color: var(--accent); background: rgba(179,128,60,.14); }

.footer-col-title { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .75rem; font-size: .9rem; }
.footer-col a { color: var(--cream-mute); transition: color .25s; }
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: .78rem; color: var(--cream-dim);
}
.footer-bottom a { color: var(--cream-dim); }
.footer-bottom a:hover { color: var(--cream); }

/* =============================================================
   17. WhatsApp float button
   ============================================================= */
.float-whatsapp {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--forest); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
  transition: transform .4s var(--ease-soft);
}
.float-whatsapp:hover { transform: translateY(-4px) scale(1.05); }

/* =============================================================
   18. Reveal on scroll (universal)
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal][data-reveal-delay="5"] { transition-delay: .4s; }

/* Defensive: reveal + split combos never stay invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 210;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--forest));
  transform-origin: 0 0; transform: scaleX(0); transition: transform .08s linear;
}

/* =============================================================
   19. Responsive tune-ups
   ============================================================= */
@media (max-width: 539px) {
  .hero-title { max-width: none; }
  .comunas-scroll { gap: 1rem; }
}

/* =============================================================
   20. Reduced motion — only INTRUSIVE effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation-duration: 60s; }
  .hero-visual-frame img { animation: none; }
  .hero-visual-float { animation: none; }
  .hero-visual-float .pulse { animation: none; }
  /* Do NOT disable: tilt, hover, fade reveals, ticker, count-up, magnetic */
}
