/* =========================================================
   Ruddy Ramírez, Promotor Inmobiliario — hoja de estilos
   Idea de diseño: verde profundo de jardín tropical, paredes blancas
   de cal y acentos en dorado.
   ========================================================= */
:root {
  --selva: #0c2420;          /* verde profundo, fondo oscuro principal */
  --selva-2: #12332d;
  --selva-3: #1c4a41;
  --cal: #f3f5f1;            /* blanco de cal, fondo claro */
  --blanco: #ffffff;
  --tinta: #142320;          /* texto principal */
  --gris: #56665f;           /* texto secundario */
  --linea: #dde4df;
  --oro-claro: #ecd08a;
  --oro: #d1a24a;
  --bronce: #a8792a;
  --wa: #25d366;

  --dorado: linear-gradient(115deg, #ecd08a 0%, #d1a24a 45%, #a8792a 100%);
  --dorado-suave: linear-gradient(110deg, #f0d89a 0%, #dcb563 60%, #c99a45 100%);
  --texto-boton: #2a1d06;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --sombra: 0 24px 60px -24px rgba(12, 36, 32, .35);
  --ease: cubic-bezier(.77, 0, .18, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--cal);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--bronce); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--blanco); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-sub { color: var(--gris); margin-top: 12px; max-width: 58ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; text-decoration: none;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { font-size: 1.15em; }
.btn:active { transform: translateY(1px); }
.btn-gradient { background: var(--dorado-suave); color: var(--texto-boton); box-shadow: 0 10px 30px -12px rgba(232, 114, 122, .8); }
.btn-gradient:hover { box-shadow: 0 14px 36px -10px rgba(232, 114, 122, .95); }
.btn-glass { background: rgba(255, 255, 255, .12); color: var(--blanco); border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-dark { background: var(--selva); color: var(--blanco); }
.btn-dark:hover { background: var(--selva-3); }
.btn-light { background: var(--blanco); color: var(--selva); }
.btn-outline { background: transparent; color: var(--tinta); border-color: var(--linea); }
.btn-outline:hover { border-color: var(--tinta); }
.btn-ghost { background: transparent; color: var(--gris); }
.btn-ghost:hover { color: var(--tinta); }
.btn-wa { background: var(--wa); color: #06341a; }
.btn-wa:hover { background: #1fc05b; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: var(--blanco); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 1.2rem; transition: background .2s;
}
.round-btn:hover { background: rgba(255, 255, 255, .24); }

/* ---------- Encabezado ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--blanco); transition: background .35s ease, box-shadow .35s ease, padding .35s ease; padding: 18px 0; }
.site-header.is-solid { background: rgba(10, 30, 27, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); padding: 10px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; letter-spacing: .01em; }
.brand-text small { font-size: .72rem; letter-spacing: .14em; opacity: .75; margin-top: 4px; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .86; position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--dorado); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover, .main-nav a.is-current { opacity: 1; }
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; font-size: 1.6rem; padding: 6px; }

/* ---------- Portada (carrusel) ---------- */
.hero { position: relative; height: clamp(600px, 92vh, 940px); background: var(--selva); color: var(--blanco); overflow: hidden; isolation: isolate; }
.hero-slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; z-index: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; }
.slide.is-active { opacity: 1; z-index: 2; }
.slide.is-prev { opacity: 1; z-index: 1; }
.slide.is-active img { animation: kenburns 11s linear both; }
.slide.is-entering { animation: reveal 1.25s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
@keyframes reveal { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes revealL { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.slide.is-prev img { animation: kenburns 11s linear both; }
.slide.is-entering.from-left { animation-name: revealL; }

.hero-wipe { position: absolute; top: 0; bottom: 0; left: 100%; width: 22vw; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(168, 121, 42, 0) 0%, rgba(168, 121, 42, .55) 35%, rgba(209, 162, 74, .75) 60%, rgba(236, 208, 138, 0) 100%);
  mix-blend-mode: screen; transform: translateX(-50%); }
.hero-wipe.is-running { animation: wipe 1.25s var(--ease) both; }
@keyframes wipe { 0% { left: 100%; opacity: 1; } 85% { opacity: 1; } 100% { left: 0%; opacity: 0; } }
@keyframes wipeL { 0% { left: 0%; opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.hero-wipe.is-running.from-left { animation-name: wipeL; }

.hero-veil { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 20, 18, .6) 0%, rgba(6, 20, 18, 0) 24%),
    linear-gradient(18deg, rgba(6, 20, 18, .9) 6%, rgba(6, 20, 18, .45) 42%, rgba(6, 20, 18, 0) 68%); }

.hero-content { position: absolute; left: 0; right: 0; bottom: clamp(150px, 20vh, 210px); z-index: 5; }
.hero-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.9rem, 7vw, 6rem); line-height: 1; letter-spacing: -.015em; max-width: 11ch; }
.hero-lead { margin-top: 20px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 44ch; color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* Secuencia de entrada (única animación de carga) */
.hero-title, .hero-lead, .hero-actions { animation: rise 1s var(--ease) both; }
.hero-lead { animation-delay: .15s; }
.hero-actions { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.hero-controls { position: absolute; left: 0; right: 0; bottom: 92px; z-index: 6; display: flex; align-items: center; gap: 28px; }
.hero-caption { display: flex; align-items: baseline; gap: 16px; min-width: 0; flex: 1 1 auto; }
.hero-count { font-variant-numeric: tabular-nums; font-size: .9rem; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.hero-count b { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; color: var(--blanco); }
.hero-cap-text { font-size: .92rem; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-progress { display: flex; gap: 8px; }
.hero-progress button { width: 54px; height: 22px; padding: 0; border: 0; background: none; position: relative; }
.hero-progress button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: rgba(255, 255, 255, .28); }
.hero-progress button span { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; width: 0; background: var(--dorado); }
.hero-progress button.is-done span { width: 100%; }
.hero-progress button.is-active span { animation: fill var(--slide-ms, 6500ms) linear both; }
.hero.is-paused .hero-progress button.is-active span { animation-play-state: paused; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.hero-arrows { display: flex; gap: 10px; }

/* ---------- Buscador ---------- */
.search-wrap { position: relative; z-index: 10; margin-top: -58px; }
.search-panel {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: stretch;
  background: var(--blanco); border-radius: var(--r-lg); box-shadow: var(--sombra); padding: 10px;
}
.search-field { display: flex; flex-direction: column; justify-content: center; padding: 10px 20px; border-right: 1px solid var(--linea); min-width: 0; }
.search-field:nth-child(4) { border-right: 0; }
.search-field label { font-size: .78rem; color: var(--gris); font-weight: 600; }
.search-field select { border: 0; background: transparent; font-weight: 600; font-size: 1rem; padding: 4px 0; width: 100%; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2356665f' stroke-width='2' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 16px; padding-right: 22px; }
.search-field select:focus-visible { outline-offset: 6px; }
.search-btn { border-radius: 16px; padding: 0 30px; }

/* ---------- Destacada ---------- */
.featured { padding-top: clamp(80px, 9vw, 120px); background: var(--cal); }
.featured-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.fg-main { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--selva-2); }
.fg-main button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.fg-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.fg-main:hover img { transform: scale(1.03); }
.fg-all { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(12, 36, 32, .7); color: var(--blanco); font-weight: 600; font-size: .88rem; border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fg-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.fg-thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; background: var(--selva-2); transition: border-color .2s; }
.fg-thumbs button.is-on { border-color: var(--oro); }
.fg-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.featured-info { padding-top: 6px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--blanco); border: 1px solid var(--linea); }
.tag-grad { background: var(--dorado-suave); color: var(--texto-boton); border-color: transparent; }
.featured-info h2 { margin-top: 18px; }
.loc { display: flex; align-items: center; gap: 6px; color: var(--gris); margin-top: 12px; font-weight: 500; }
.loc-map { margin-left: 6px; color: inherit; font-size: .9em; text-decoration: underline; text-underline-offset: 3px; }
.loc-map:hover { color: var(--selva); }
.price { font-family: var(--f-display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 500; margin-top: 18px; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--f-body); font-size: .9rem; color: var(--gris); font-weight: 500; }
.specs { list-style: none; padding: 18px 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 14px 28px; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.specs li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--gris); }
.specs li svg { font-size: 1.35rem; color: var(--tinta); }
.specs li b { color: var(--tinta); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.desc p + p { margin-top: 12px; }
.desc p { color: #33433e; max-width: 62ch; }
.amenities { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.amenities li { display: flex; align-items: flex-start; gap: 8px; font-size: .92rem; }
.amenities svg { color: var(--bronce); font-size: 1.1rem; margin-top: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Catálogo ---------- */
.catalog { background: var(--blanco); }
.result-count { color: var(--gris); font-weight: 600; font-variant-numeric: tabular-nums; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.chips, .filter-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--linea); background: var(--blanco); font-weight: 600; font-size: .9rem; color: var(--gris); display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.chip:hover { color: var(--tinta); border-color: #b9c6bf; }
.chip.is-on { background: var(--selva); border-color: var(--selva); color: var(--blanco); }
.chip-fav svg { fill: none; }
.chip-fav[aria-pressed="true"] { background: var(--bronce); border-color: var(--bronce); color: var(--blanco); }
.chip-fav[aria-pressed="true"] svg { fill: currentColor; }
.chip-fav span { font-variant-numeric: tabular-nums; }
.select-sm { border: 1px solid var(--linea); border-radius: 999px; padding: 9px 36px 9px 16px; font-weight: 600; font-size: .9rem; background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2356665f' stroke-width='2' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; appearance: none; -webkit-appearance: none; color: var(--tinta); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--linea); border-radius: 18px; overflow: hidden; transition: box-shadow .3s ease, border-color .3s ease; }
.card:hover { box-shadow: var(--sombra); border-color: transparent; }
.card-media { all: unset; cursor: pointer; display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--selva-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media:focus-visible { outline: 3px solid var(--oro); outline-offset: -3px; }
.badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: rgba(255, 255, 255, .92); color: var(--tinta); }
.badge-op { background: var(--dorado-suave); color: var(--texto-boton); }
.fav { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--tinta); font-size: 1.15rem; transition: transform .2s; }
.fav svg { fill: none; }
.fav[aria-pressed="true"] { color: var(--bronce); }
.fav[aria-pressed="true"] svg { fill: currentColor; animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.3); } }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-loc { display: flex; align-items: center; gap: 6px; color: var(--gris); font-size: .86rem; font-weight: 500; }
.card-title { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.card-title button { all: unset; cursor: pointer; }
.card-title button:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card-price { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; margin-top: auto; padding-top: 6px; }
.card-price small { font-weight: 500; color: var(--gris); font-size: .85rem; }
.card-specs { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--linea); display: flex; gap: 18px; flex-wrap: wrap; font-size: .86rem; color: var(--gris); }
.card-specs li { display: flex; align-items: center; gap: 6px; }
.card-specs svg { font-size: 1.15rem; color: var(--tinta); }
.card-specs b { color: var(--tinta); font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--linea); border-radius: var(--r-lg); display: grid; justify-items: center; gap: 16px; color: var(--gris); }

/* ---------- Servicios ---------- */
.services { color: var(--blanco); position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(209, 162, 74, .22), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(168, 121, 42, .18), transparent 70%),
    var(--selva); }
.services-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.services-intro p { color: rgba(255, 255, 255, .78); margin: 20px 0 32px; max-width: 46ch; }
.services-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.services-list li { display: flex; gap: 18px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.services-list svg { font-size: 2.1rem; color: var(--oro-claro); margin-top: 2px; }
.services-list p { color: rgba(255, 255, 255, .7); font-size: .94rem; margin-top: 6px; }

/* ---------- Proceso ---------- */
.process { background: var(--cal); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: 12%; height: 2px; background: var(--dorado); opacity: .7; }
.steps li { position: relative; }
.step-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; background: var(--cal); position: relative; margin-bottom: 20px; }
.step-n::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 2px; background: var(--dorado); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.steps p { color: var(--gris); margin-top: 8px; font-size: .95rem; max-width: 30ch; }

/* ---------- Calculadora ---------- */
.calc { background: var(--blanco); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.calc-row { margin-top: 28px; }
.calc-label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.calc-label-row label { font-weight: 600; }
.calc-label-row output { font-weight: 700; font-variant-numeric: tabular-nums; }
.input-big { width: 100%; border: 1px solid var(--linea); border-radius: 14px; padding: 14px 18px; font-family: var(--f-display); font-size: 1.7rem; font-weight: 500; font-variant-numeric: tabular-nums; background: var(--cal); }
.input-big:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 4px rgba(209, 162, 74, .18); }
.seg { display: inline-flex; background: var(--cal); border: 1px solid var(--linea); border-radius: 999px; padding: 3px; }
.seg-btn { border: 0; background: none; padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--gris); }
.seg-btn.is-on { background: var(--selva); color: var(--blanco); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #ecd08a, #d1a24a 50%, #a8792a) 0 0 / var(--p, 50%) 100% no-repeat, var(--linea); outline-offset: 8px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blanco); border: 2px solid var(--selva); box-shadow: 0 4px 12px rgba(12, 36, 32, .25); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--blanco); border: 2px solid var(--selva); cursor: grab; }

.calc-result { border-radius: 26px; padding: clamp(28px, 4vw, 44px); color: var(--blanco); box-shadow: var(--sombra);
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(209, 162, 74, .6), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(168, 121, 42, .5), transparent 60%),
    radial-gradient(50% 40% at 30% 10%, rgba(236, 208, 138, .25), transparent 70%),
    var(--selva); }
.calc-result-label { color: rgba(255, 255, 255, .78); font-weight: 600; }
.calc-cuota { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 500; line-height: 1.05; margin-top: 8px; font-variant-numeric: tabular-nums; word-break: break-word; }
.calc-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; margin: 26px 0 22px; background: rgba(255, 255, 255, .15); }
#r-bar-cap { background: var(--blanco); transition: width .4s var(--ease); }
#r-bar-int { background: var(--oro-claro); transition: width .4s var(--ease); }
.calc-dl { margin: 0 0 28px; display: grid; gap: 12px; }
.calc-dl div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.calc-dl dt { color: rgba(255, 255, 255, .78); display: flex; align-items: center; gap: 8px; }
.calc-dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-cap { background: var(--blanco); }
.dot-int { background: var(--oro-claro); }

/* ---------- Galería ---------- */
.gallery { background: var(--cal); }
.masonry { columns: 3 280px; column-gap: 16px; }
.m-item { all: unset; cursor: zoom-in; display: block; position: relative; margin-bottom: 16px; border-radius: 14px; overflow: hidden; break-inside: avoid; background: var(--selva-2); width: 100%; }
.m-item img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.m-item:hover img { transform: scale(1.04); }
.m-item:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.m-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: var(--blanco); font-size: .88rem; font-weight: 600; background: linear-gradient(0deg, rgba(6, 20, 18, .75), transparent); display: flex; justify-content: space-between; align-items: center; gap: 10px; opacity: 0; transition: opacity .3s; }
.m-item:hover .m-cap, .m-item:focus-visible .m-cap { opacity: 1; }

/* ---------- Contacto ---------- */
.contact { color: var(--blanco); background: linear-gradient(160deg, var(--selva) 0%, var(--selva-2) 55%, #1a3a33 100%); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 620px; height: 620px; right: -220px; bottom: -260px; border-radius: 50%; background: var(--dorado); filter: blur(120px); opacity: .32; pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-info > p { color: rgba(255, 255, 255, .78); margin-top: 18px; max-width: 44ch; }
.contact-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list a { display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 12px; margin: 0 -12px; border-radius: 14px; transition: background .2s; }
.contact-list a:hover { background: rgba(255, 255, 255, .07); }
.contact-list small { display: block; color: rgba(255, 255, 255, .6); font-size: .8rem; font-weight: 600; }
.contact-list b { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ci { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 1.25rem; flex-shrink: 0; }
.ci-wa { background: var(--wa); color: #06341a; }
.hours { margin-top: 30px; padding: 22px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.hours h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 12px; }
.hours dl { margin: 0; display: grid; gap: 6px; }
.hours dl div { display: flex; justify-content: space-between; gap: 16px; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); font-size: 1.2rem; transition: background .2s, border-color .2s; }
.socials a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }

.form-card { background: var(--blanco); color: var(--tinta); border-radius: 26px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.form-card > h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.7rem; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.span-2 { grid-column: span 2; }
.field label, .field legend { font-size: .85rem; font-weight: 600; color: #33433e; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--linea); border-radius: 12px; padding: 12px 14px; background: var(--cal); transition: border-color .2s, box-shadow .2s, background .2s; }
.field select { appearance: none; -webkit-appearance: none; background: var(--cal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2356665f' stroke-width='2' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; padding-right: 34px; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--oro); background: var(--blanco); box-shadow: 0 0 0 4px rgba(209, 162, 74, .18); }
.field [aria-invalid="true"] { border-color: #c2334f; background: #fff6f7; }
.field-error { color: #b32745; font-size: .8rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.radio-row { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
.radio-row legend { width: 100%; margin-bottom: 6px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--tinta); font-size: .95rem; }
.radio-row input { accent-color: var(--bronce); width: 18px; height: 18px; }
.form-note { color: var(--gris); font-size: .82rem; margin-top: 12px; text-align: center; }
.form-done { text-align: center; padding: 30px 10px; display: grid; justify-items: center; gap: 12px; }
.form-done .ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--dorado-suave); color: var(--texto-boton); font-size: 1.8rem; }

/* ---------- Pie ---------- */
.site-footer { background: #071815; color: rgba(255, 255, 255, .72); padding: 72px 0 28px; font-size: .94rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr .7fr .9fr 1.3fr; gap: 40px; }
.footer-brand .brand { color: var(--blanco); }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h3, .footer-alerts h3 { color: var(--blanco); font-size: .95rem; margin-bottom: 6px; }
.footer-links a { text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--blanco); }
.footer-alerts p { margin: 6px 0 14px; }
.alerts-row { display: flex; gap: 8px; }
.alerts-row input { flex: 1; min-width: 0; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); padding: 10px 16px; color: var(--blanco); }
.alerts-row input::placeholder { color: rgba(255, 255, 255, .45); }
.alerts-row input:focus { outline: none; border-color: var(--oro); }
.footer-alerts .field-error { color: #ff9fb3; margin-top: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; color: rgba(255, 255, 255, .5); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-btn { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: var(--blanco); font-size: 1.9rem; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.wa-btn:hover { transform: scale(1.06); }
.wa-bubble { position: relative; max-width: 250px; background: var(--blanco); color: var(--tinta); border-radius: 18px 18px 4px 18px; padding: 14px 34px 14px 16px; box-shadow: var(--sombra); font-size: .88rem; animation: rise .5s var(--ease) both; }
.wa-bubble b { display: block; margin-bottom: 2px; }
.wa-bubble-close { position: absolute; right: 8px; top: 8px; border: 0; background: none; color: var(--gris); padding: 4px; font-size: .9rem; }
.wa-bubble[hidden] { display: none; }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 16, 14, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s ease both; }
.modal-panel { position: relative; width: min(1120px, 100%); max-height: calc(100% - 20px); overflow: auto; overscroll-behavior: contain; background: var(--blanco); border-radius: var(--r-lg); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); animation: modalIn .45s var(--ease) both; }
.modal-sm { width: min(560px, 100%); padding: clamp(24px, 4vw, 36px); }
.modal-sm h2 { font-size: 1.9rem; padding-right: 40px; }
.modal-sub { color: var(--gris); margin: 8px 0 22px; }
.modal-close { position: absolute; right: 16px; top: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--cal); font-size: 1.2rem; }
.modal-close:hover { background: var(--linea); }
@keyframes fade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
body.no-scroll { overflow: hidden; }

.msg-preview { white-space: pre-wrap; font-family: var(--f-body); font-size: .88rem; background: var(--cal); border: 1px solid var(--linea); border-radius: 12px; padding: 14px 16px; max-height: 220px; overflow: auto; margin: 0 0 18px; color: #33433e; }
.send-options { display: grid; gap: 10px; }

/* Detalle de propiedad */
.modal-property .modal-panel { overflow: hidden; display: flex; flex-direction: column; }
.mp-scroll { overflow: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.modal-property .modal-close { background: rgba(12, 36, 32, .62); color: var(--blanco); border: 1px solid rgba(255, 255, 255, .25); }
.modal-property .modal-close:hover { background: rgba(12, 36, 32, .85); }
.mp-gallery { position: relative; aspect-ratio: 16 / 9; max-height: 62vh; width: 100%; background: var(--selva); overflow: hidden; }
.mp-gallery > img { width: 100%; height: 100%; object-fit: cover; animation: fade .4s ease both; }
.mp-gallery .round-btn { position: absolute; top: 50%; transform: translateY(-50%); }
.mp-prev { left: 16px; }
.mp-next { right: 16px; }
.mp-top { position: absolute; left: 16px; right: 70px; top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.mp-top > * { pointer-events: auto; }
.mp-count { background: rgba(12, 36, 32, .7); color: var(--blanco); padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.mp-top-actions { display: flex; gap: 8px; }
.mp-top-actions .round-btn { width: 42px; height: 42px; font-size: 1.05rem; position: static; transform: none; background: rgba(12, 36, 32, .55); }
.mp-thumbs { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; background: var(--selva); scrollbar-width: thin; }
.mp-thumbs button { flex: 0 0 92px; height: 64px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: opacity .2s, border-color .2s; background: var(--selva-2); }
.mp-thumbs button.is-on { opacity: 1; border-color: var(--oro); }
.mp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.mp-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding: clamp(22px, 4vw, 40px); }
.mp-body h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-top: 14px; }
.mp-body h3 { margin: 30px 0 8px; }
.mp-aside { align-self: start; position: sticky; top: 20px; border: 1px solid var(--linea); border-radius: 18px; padding: 22px; background: var(--cal); }
.mp-aside .price { margin-top: 0; }
.mp-aside .specs { margin: 16px 0; padding: 14px 0; }
.mp-aside .btn { width: 100%; }
.mp-aside .btn + .btn { margin-top: 10px; }
.mp-aside form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--linea); }
.mp-aside form h3 { margin: 0 0 12px; }
.mp-aside .form-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.mp-aside .field input, .mp-aside .field textarea { background: var(--blanco); }

/* Visor */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(4, 12, 10, .96); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 24px; animation: fade .25s ease both; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 10px; object-fit: contain; animation: fade .35s ease both; }
.lb-figure figcaption { color: rgba(255, 255, 255, .8); display: flex; gap: 16px; font-size: .92rem; }
.lb-count { color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.lb-close { position: absolute; top: 18px; right: 18px; }

/* Avisos */
.toast-zone { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 150; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--selva); color: var(--blanco); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--sombra); display: flex; align-items: center; gap: 10px; animation: rise .35s var(--ease) both; }
.toast svg { color: var(--oro-claro); }

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 1080px) {
  .main-nav { gap: 22px; }
  .header-phone span { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .services-list { grid-template-columns: 1fr; }
}
@media (max-width: 940px) {
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .main-nav { position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; gap: 0; background: rgba(10, 30, 27, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 18px; padding: 10px 20px 18px; box-shadow: var(--sombra); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s ease; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; }
  .main-nav a::after { display: none; }
  .nav-cta-mobile { display: block; border-bottom: 0 !important; margin-top: 10px; text-align: center; background: var(--dorado-suave); color: var(--texto-boton); border-radius: 999px; font-weight: 700; opacity: 1 !important; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-field { border-right: 0; border-bottom: 1px solid var(--linea); }
  .search-btn { grid-column: span 2; padding: 16px; margin-top: 8px; }
  .featured-grid, .services-grid, .calc-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .mp-body { grid-template-columns: 1fr; }
  .mp-aside { position: static; }
  .hero-progress { display: none; }
}
@media (max-width: 600px) {
  .hero { height: clamp(620px, 100svh, 820px); }
  .hero-content { bottom: 150px; }
  .hero-controls { bottom: 84px; gap: 14px; }
  .hero-cap-text { display: none; }
  .round-btn { width: 42px; height: 42px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .search-panel { grid-template-columns: 1fr; }
  .search-btn { grid-column: auto; }
  .fg-thumbs { gap: 8px; }
  .amenities { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .filters { align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .modal { padding: 0; }
  .modal-panel { max-height: 100%; height: 100%; border-radius: 0; }
  .modal-sm { height: auto; max-height: 100%; border-radius: 22px 22px 0 0; align-self: end; }
  .mp-gallery { aspect-ratio: 4 / 3; }
  .lightbox { grid-template-columns: 1fr; padding: 70px 12px 24px; }
  .lb-prev, .lb-next { position: absolute; bottom: 24px; }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
  .wa-bubble { max-width: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .slide.is-active img { animation: none; }
  .hero-wipe { display: none; }
}
