/* =====================================================
   Alba Bienes Raíces — demo (estilo DESIGNBIENESRAICES.md: "maqueta arquitectónica bajo luz de sol")
   Pergamino cálido, tinta negra, un solo azul para las acciones y naranja solo en el hero oscuro.
   Títulos grandes y ligeros con tracking negativo; radios de 12px; sombras cortas y suaves.
   ===================================================== */
:root {
  --sky: #0096f7;
  --sky-hover: #0084da;
  --orange: #ff4000;
  --ink: #000000;
  --white: #ffffff;
  --parchment: #fdfdf7;
  --parchment-2: #f7f7f0;
  --sand: #f5f2de;
  --driftwood: #e7e3e1;
  --ash: #d3d3d3;
  --stone: #999999;
  --graphite: #666666;
  --evergreen: #375033;
  --line: rgba(0, 0, 0, .1);

  --font: "Plus Jakarta Sans", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-subtle: rgba(0, 0, 0, .12) 0 .5px 2px 0;
  --shadow-sm: rgba(0, 0, 0, .2) 0 2px 4px 0;
  --shadow-md: rgba(0, 0, 0, .08) 0 2px 10px 0;

  --r: 12px;
  --r-lg: 18px;
  --r-pill: 24px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 42px);
  --section: clamp(72px, 10vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--parchment); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.49; letter-spacing: -0.22px; font-weight: 400;
  font-feature-settings: "lnum", "tnum";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 300; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section) 0; }
.section:last-of-type { padding-bottom: var(--section); }

/* Tipografía */
.display { font-size: clamp(48px, 9vw, 96px); line-height: .9; letter-spacing: clamp(-4.51px, -0.047em, -2px); }
.h-lg { font-size: clamp(38px, 6vw, 60px); line-height: .96; letter-spacing: clamp(-2.46px, -0.041em, -1.2px); }
.h { font-size: clamp(32px, 4.6vw, 48px); line-height: 1; letter-spacing: -1.3px; }
.h-sm { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.5px; }
.sub { font-size: clamp(23px, 2.6vw, 30px); line-height: 1.14; letter-spacing: -0.9px; font-weight: 300; }
.lead { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.25; letter-spacing: -0.46px; color: var(--graphite); }
.body { font-size: 18px; line-height: 1.33; letter-spacing: -0.18px; }
.cap { font-size: 14px; line-height: 1.5; letter-spacing: -0.56px; }
.cap-sm { font-size: 12px; line-height: 1.5; letter-spacing: -0.48px; }
.muted { color: var(--graphite); }
.eyebrow { font-size: 14px; letter-spacing: -0.3px; color: var(--graphite); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 42px; }
.head p { max-width: 520px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 20px; border: 0; border-radius: var(--r);
  font-size: 15px; letter-spacing: -0.3px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, box-shadow .2s, transform .12s;
}
.btn:active { transform: scale(.98); }
.btn--sky { background: var(--sky); color: var(--white); box-shadow: var(--shadow-subtle); }
.btn--sky:hover { background: var(--sky-hover); box-shadow: var(--shadow-md); }
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { background: #e83a00; }
.btn--wood { background: var(--driftwood); color: var(--ink); }
.btn--wood:hover { background: #dcd7d4; }
.btn--ghost { background: rgba(0, 0, 0, .04); color: var(--ink); border-radius: var(--r-pill); min-height: 40px; padding: 8px 16px; }
.btn--ghost:hover { background: rgba(0, 0, 0, .08); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { color: var(--sky); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Campos */
.field { display: grid; gap: 6px; font-size: 14px; letter-spacing: -0.4px; color: var(--graphite); }
.input, .select {
  width: 100%; min-height: 50px; padding: 13px 15px;
  background: rgba(0, 0, 0, .03); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); font-size: 16px; outline: none; transition: border-color .2s, background-color .2s;
}
.input::placeholder { color: var(--stone); }
.input:focus, .select:focus { border-color: var(--sky); background: var(--white); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field--error .input { border-color: var(--orange); }
.field__error { color: var(--orange); font-size: 13px; }
input[type=range] { width: 100%; accent-color: var(--sky); }

/* Píldoras de filtro */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  min-height: 40px; padding: 8px 16px; border: 0; border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .04); color: var(--ink); font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.pill:hover { background: rgba(0, 0, 0, .08); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* ---------- Navegación ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 40; background: rgba(253, 253, 247, .86); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav-wrap.scrolled { border-bottom-color: var(--line); }
.nav { height: 72px; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 26px; font-weight: 300; letter-spacing: -1.2px; }
.logo svg { width: 30px; height: 30px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 12px; border-radius: var(--r-pill); text-decoration: none; font-size: 15px; letter-spacing: -0.3px; color: var(--graphite); transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.favbtn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .04); cursor: pointer; }
.favbtn:hover { background: rgba(0, 0, 0, .08); }
.favbtn svg { width: 20px; height: 20px; }
.favbtn b { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sky); color: var(--white); font-size: 11px; font-weight: 500; line-height: 18px; text-align: center; }
.favbtn b:empty { display: none; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 12px; }
.nav__toggle span { display: block; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .25s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Hero (banda negra) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--white); }
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .1) 100%); }
.hero__in { min-height: min(88vh, 820px); display: flex; flex-direction: column; justify-content: flex-end; gap: 36px; padding-block: 120px 54px; }
.hero h1 { max-width: 11ch; }
.hero__lead { max-width: 520px; color: rgba(255, 255, 255, .78); }

.search {
  display: grid; grid-template-columns: auto 1.2fr 1fr 1fr auto; align-items: end; gap: 12px;
  padding: 12px; border-radius: var(--r-lg);
  background: rgba(253, 253, 247, .96); color: var(--ink); box-shadow: var(--shadow-md);
  max-width: 1040px;
}
.search .field { color: var(--graphite); }
.search .input, .search .select { background: rgba(0, 0, 0, .03); min-height: 48px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r); background: rgba(0, 0, 0, .05); height: 48px; }
.seg button { padding: 0 16px; border: 0; border-radius: 9px; background: none; font-size: 15px; cursor: pointer; color: var(--graphite); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-subtle); }
.search .btn { min-height: 48px; }
.hero__stats { display: flex; gap: 42px; flex-wrap: wrap; color: rgba(255, 255, 255, .72); font-size: 14px; }
.hero__stats b { display: block; color: var(--white); font-size: 30px; font-weight: 300; letter-spacing: -0.9px; line-height: 1.14; }

/* ---------- Titular con miniaturas en línea ---------- */
.inline-head { max-width: 1120px; }
.inline-head .chip-img {
  display: inline-block; vertical-align: middle;
  width: 1.5em; height: .9em; margin: 0 .08em; border-radius: .16em; overflow: hidden;
  box-shadow: var(--shadow-sm); transform: translateY(-.06em);
}
.inline-head .chip-img img { width: 100%; height: 100%; object-fit: cover; }
.inline-head em { font-style: normal; color: var(--graphite); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 54px; }
.fact { padding: 30px; border-radius: var(--r-lg); background: var(--sand); box-shadow: var(--shadow-subtle); }
.fact b { display: block; font-size: 48px; font-weight: 300; line-height: 1; letter-spacing: -1.3px; margin-bottom: 12px; }
.fact span { color: var(--graphite); font-size: 15px; }

/* ---------- Propiedades ---------- */
.filters { display: grid; gap: 16px; margin-bottom: 30px; }
.filters__row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.filters__row .field { min-width: 170px; flex: 1 1 170px; }
.filters__row .field--precio { flex: 2 1 260px; }
.precio-out { display: flex; justify-content: space-between; color: var(--ink); font-size: 15px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; color: var(--graphite); font-size: 15px; }
.results-bar b { color: var(--ink); font-weight: 400; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.card { position: relative; display: grid; gap: 14px; cursor: pointer; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--driftwood); box-shadow: var(--shadow-subtle); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__media img { transform: scale(1.04); }
.card__tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.tag { padding: 4px 10px; border-radius: var(--r-pill); background: rgba(253, 253, 247, .94); font-size: 12px; letter-spacing: -0.3px; }
.tag--green { background: var(--evergreen); color: var(--white); }
.heart {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(253, 253, 247, .94); cursor: pointer; transition: transform .15s;
}
.heart:active { transform: scale(.9); }
.heart svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.heart[aria-pressed="true"] svg { fill: var(--orange); stroke: var(--orange); }
.card__body { display: grid; gap: 4px; }
.card__price { font-size: 23px; font-weight: 300; letter-spacing: -0.6px; }
.card__price small { font-size: 15px; color: var(--graphite); letter-spacing: -0.2px; }
.card__title { font-size: 16px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--graphite); font-size: 14px; letter-spacing: -0.4px; }
.empty { padding: 54px 24px; border-radius: var(--r-lg); background: var(--parchment-2); text-align: center; color: var(--graphite); }
.empty b { display: block; color: var(--ink); font-weight: 400; font-size: 23px; letter-spacing: -0.5px; margin-bottom: 6px; }

/* ---------- Calculadora ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.panel { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--sand); box-shadow: var(--shadow-subtle); }
.panel--plain { background: var(--parchment-2); box-shadow: var(--shadow-sm); border-radius: var(--r); }
.calc { display: grid; gap: 22px; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__row output { font-size: 18px; color: var(--ink); }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.result__big { font-size: clamp(48px, 7vw, 84px); font-weight: 300; line-height: .95; letter-spacing: -3px; }
.result__big small { font-size: 23px; letter-spacing: -0.5px; color: var(--graphite); }
.split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--driftwood); }
.split span:first-child { background: var(--ink); }
.split span:last-child { background: var(--sky); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--graphite); margin-top: 12px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--ink); }
.legend i.sky { background: var(--sky); }
.dl { display: grid; gap: 12px; margin: 0; }
.dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--graphite); }
.dl dd { margin: 0; }
.note { font-size: 13px; color: var(--stone); }

/* ---------- Vender ---------- */
.sell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.sell__photo { position: relative; min-height: 420px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-subtle); }
.sell__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sell__quote { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 18px; border-radius: var(--r); background: rgba(253, 253, 247, .94); font-size: 15px; }
.form { display: grid; gap: 14px; align-content: start; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.estimate { padding: 18px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-subtle); }
.estimate b { display: block; font-size: 30px; font-weight: 300; letter-spacing: -0.9px; }

/* ---------- Zonas ---------- */
.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.zone { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.zone__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow-subtle); background: var(--driftwood); }
.zone__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.zone:hover .zone__media img { transform: scale(1.04); }
.zone__body { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.zone__body h3 { font-size: 23px; letter-spacing: -0.5px; }
.zone__body span { color: var(--graphite); font-size: 14px; text-align: right; }

/* ---------- Opiniones ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 30px; border-radius: var(--r); background: var(--parchment-2); box-shadow: var(--shadow-sm); }
.quote p { font-size: 21px; line-height: 1.28; letter-spacing: -0.5px; font-weight: 300; }
.quote footer { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--graphite); }
.quote footer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.quote footer b { display: block; color: var(--ink); font-weight: 400; }

/* ---------- Agendar visita ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.slots { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.day {
  flex: none; width: 68px; padding: 10px 0; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white); text-align: center; cursor: pointer; font-size: 13px; color: var(--graphite);
}
.day b { display: block; font-size: 23px; font-weight: 300; color: var(--ink); letter-spacing: -0.5px; }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .7); }
.day[aria-pressed="true"] b { color: var(--white); }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time { min-height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); cursor: pointer; font-size: 15px; }
.time[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--white); }
.time:disabled { color: var(--ash); cursor: not-allowed; text-decoration: line-through; }
.myvisits { display: grid; gap: 10px; margin-top: 24px; }
.myvisit { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-subtle); }
.myvisit img { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.myvisit div { flex: 1; min-width: 0; font-size: 14px; color: var(--graphite); }
.myvisit div b { display: block; color: var(--ink); font-weight: 400; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Pie ---------- */
.foot { margin-top: var(--section); padding-block: 54px; border-top: 1px solid var(--line); }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; font-size: 14px; color: var(--graphite); }
.foot h3 { font-size: 14px; font-weight: 400; color: var(--ink); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot__legal { margin-top: 42px; font-size: 13px; color: var(--stone); }

/* ---------- Hoja de detalle / modal / favoritos ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .42); animation: fade .2s ease; }
.sheet__card {
  position: relative; width: min(1040px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
  border-radius: var(--r-lg); background: var(--parchment); box-shadow: var(--shadow-md); outline: none;
  animation: rise .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet__card--narrow { width: min(480px, 100%); padding: 36px; }
.close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(253, 253, 247, .94); box-shadow: var(--shadow-subtle); cursor: pointer; }
.close svg { width: 16px; height: 16px; }
.detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.gallery { padding: 12px; display: grid; gap: 8px; align-content: start; }
.gallery__main { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--driftwood); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: var(--driftwood); }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--sky); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail__info { padding: 36px 36px 30px 24px; display: grid; gap: 20px; align-content: start; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.spec { padding: 12px; border-radius: var(--r); background: var(--sand); }
.spec b { display: block; font-size: 23px; font-weight: 300; letter-spacing: -0.5px; }
.spec span { font-size: 13px; color: var(--graphite); }
.amen { display: flex; flex-wrap: wrap; gap: 6px; }
.amen span { padding: 6px 12px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .04); font-size: 13px; }
.mini-calc { padding: 16px; border-radius: var(--r); background: var(--parchment-2); box-shadow: var(--shadow-subtle); font-size: 14px; color: var(--graphite); }
.mini-calc b { color: var(--ink); font-weight: 400; font-size: 18px; }
.detail__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .42); animation: fade .2s ease; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--parchment); box-shadow: var(--shadow-md); outline: none; animation: slide .28s cubic-bezier(.2, .8, .2, 1); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 30px; letter-spacing: -0.9px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 24px 24px; display: grid; gap: 12px; align-content: start; }
.drawer .close { position: static; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: var(--white); font-size: 14px; box-shadow: var(--shadow-md); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes slide { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search .seg { grid-column: 1 / -1; justify-self: start; }
  .search .btn { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .grid, .zones, .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 39; flex-direction: column; gap: 0;
    padding: 12px var(--gutter) 24px; background: var(--parchment); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav__links.open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .2s; }
  .nav__links a { padding: 14px 0; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__toggle { display: block; }
  .nav__actions .btn--sky { display: none; }
  .nav__actions { margin-left: auto; }
  .two, .sell, .visit, .detail { grid-template-columns: minmax(0, 1fr); }
  .sell__photo { min-height: 280px; }
  .detail__info { padding: 12px 24px 30px; }
  .sheet { padding: 0; place-items: end center; }
  .sheet__card { max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .sheet__card--narrow { border-radius: 22px 22px 0 0; width: 100%; }
}
@media (max-width: 600px) {
  .hero__in { min-height: auto; padding-block: 72px 30px; }
  .search { grid-template-columns: 1fr; }
  .grid, .zones, .quotes { grid-template-columns: minmax(0, 1fr); }
  .facts { gap: 10px; }
  .fact { padding: 20px; }
  .fact b { font-size: 36px; }
  .times { grid-template-columns: repeat(3, 1fr); }
  .form__grid, .calc__grid { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .detail__actions { grid-template-columns: 1fr; }
}
