/* ============================================================
   SISTEMA DE DISEÑO — García Cárdenas · Martillero Público
   Direccion: arquitectonico sobrio. Azul marino y dorado tomados
   del logo vigente; fondo neutro claro; trazo fino; la fotografia
   es la protagonista. Un unico tema (claro), declarado a proposito.
   ============================================================ */
:root {
  color-scheme: light;
  --navy: #0a2550;
  --navy-deep: #06183a;
  --navy-70: #3d5073;
  --gold: #b8975a;
  --gold-deep: #8f7239;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --sunken: #eceef1;
  --line: #dde1e6;
  --line-strong: #c3c9d1;
  --text: #15233d;
  --muted: #566277;
  --faint: #8a94a5;
  --ok: #2f6b4f;
  /* marcas de los graficos: validadas (separacion para daltonismo, contraste >= 3:1 sobre blanco) */
  --c-lote: #1d4f9c;
  --c-casa: #b0801e;
  --verde-suave: #eef4ea;   /* fondo del predio en el plano */

  --f-display: "Jost", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --r: 3px;
  --hdr-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.005em; text-wrap: balance; color: var(--navy); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- tipografia de apoyo ---------- */
.eyebrow { font: 500 12px/1 var(--f-display); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h-xl { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 300; }
.h-lg { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 300; }
.h-md { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 400; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }

/* ---------- logotipo (wordmark parametrizado) ---------- */
.wm { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; color: var(--navy); line-height: 1; }
.wm__name { font: 600 19px/1 var(--f-display); letter-spacing: .14em; white-space: nowrap; }
.wm__role { display: flex; align-items: center; gap: 8px; font: 500 7.5px/1 var(--f-display); letter-spacing: .34em; }
.wm__role i { display: block; width: 20px; height: 1px; background: var(--gold); }
.wm--light { color: #fff; }
.wm--light .wm__name { font-size: 22px; }
.wm--light .wm__role { font-size: 8.5px; }

@media (max-width: 480px) { .wm__name { font-size: 16px; letter-spacing: .1em; } .wm__role { font-size: 7px; gap: 6px; } .wm__role i { width: 14px; } .hdr__in { gap: 12px; } }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: var(--r); border: 1px solid var(--navy);
  background: var(--navy); color: #fff; text-decoration: none;
  font: 500 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--navy-deep); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #c7a869; border-color: #c7a869; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--navy); padding-bottom: 6px; border-bottom: 1px solid var(--gold); }
.link-arrow:hover { color: var(--gold-deep); }
.ico { flex: none; }

/* ---------- cabecera ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(246, 247, 248, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.hdr.is-stuck { border-bottom-color: var(--line); background: rgba(255, 255, 255, .95); }
.hdr__in { height: var(--hdr-h); display: flex; align-items: center; gap: 28px; }
.hdr__brand { text-decoration: none; margin-right: auto; }
.hdr__nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.hdr__nav a { text-decoration: none; font: 500 12.5px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text); padding: 8px 0; border-bottom: 1px solid transparent; }
.hdr__nav a:hover, .hdr__nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.hdr__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent; position: relative; }
.hdr__burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--navy); transition: transform .25s var(--ease); }
.hdr__burger i:nth-child(1) { top: 17px; } .hdr__burger i:nth-child(2) { top: 25px; }
.hdr.is-open .hdr__burger i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.hdr.is-open .hdr__burger i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 900px) {
  .hdr__cta span { display: none; }
  .hdr__cta { padding: 0 14px; }
  .hdr__burger { display: block; }
  .hdr__nav { position: absolute; left: 0; right: 0; top: var(--hdr-h); flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; display: none; }
  .hdr.is-open .hdr__nav { display: flex; }
  .hdr__nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(480px, 72vh, 640px); display: flex; align-items: flex-end; }
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(6, 24, 58, .9) 0%, rgba(6, 24, 58, .62) 46%, rgba(6, 24, 58, .12) 100%); }
.hero__in { padding-block: clamp(72px, 10vw, 120px) clamp(64px, 8vw, 96px); }
.hero__txt { display: grid; gap: 22px; max-width: 900px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #d9bf8a; }
.hero .lead { color: rgba(255, 255, 255, .84); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* barra de busqueda rapida, montada sobre el borde inferior del hero */
.quick { position: relative; z-index: 5; margin-top: -64px; }
.quick__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px -22px rgba(6, 24, 58, .45); padding: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
@media (max-width: 820px) { .quick__box { grid-template-columns: 1fr 1fr; } .quick__box .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .quick__box { grid-template-columns: 1fr; } }

/* ---------- campos de formulario ---------- */
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field > .lbl { font: 500 11px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.input, .select {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: #fff; color: var(--text); font: 400 15px/1 var(--f-body); appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315233d' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:hover, .select:hover { border-color: var(--navy-70); }
.input:focus, .select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10, 37, 80, .12); }
.input-unit { position: relative; }
.input-unit .input { padding-right: 52px; }
.input-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 13px; pointer-events: none; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; background: #fff; min-height: 46px; }
.seg button { border: 0; background: transparent; padding: 0 18px; font: 500 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); transition: background .2s, color .2s; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--navy); color: #fff; }
.seg button:not([aria-pressed="true"]):not([aria-selected="true"]):hover { background: var(--sunken); }

/* ---------- listado de propiedades ---------- */
.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: end; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; }
@media (max-width: 1000px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .filters { grid-template-columns: 1fr 1fr; padding: 16px; } }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; min-height: 36px; }
.results-bar__count { font: 400 15px/1.2 var(--f-body); color: var(--muted); }
.results-bar__count b { font: 500 18px/1 var(--f-display); color: var(--navy); }
.reset { background: none; border: 0; padding: 4px 0; font: 500 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid var(--gold); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(6, 24, 58, .5); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sunken); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font: 500 10.5px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; padding: 7px 10px; border-radius: 2px; }
.tag--demo { left: auto; right: 12px; background: rgba(255, 255, 255, .94); color: var(--gold-deep); border: 1px solid var(--gold); }
.tag--count { top: auto; bottom: 12px; left: auto; right: 12px; background: rgba(6, 24, 58, .78); display: inline-flex; gap: 6px; align-items: center; }
.card__body { padding: 20px 22px 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card__loc { font: 500 11px/1.3 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.card__title { font: 400 1.22rem/1.2 var(--f-display); color: var(--navy); }
.card__price { font: 500 1.5rem/1.1 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; margin-top: 4px; }
.card__exp { font-size: 12.5px; color: var(--faint); margin-top: -4px; }
.specs { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.specs li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.specs .ico { color: var(--navy-70); }

.empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--surface); display: grid; gap: 14px; justify-items: center; }
.empty p { color: var(--muted); max-width: 46ch; }

/* ---------- servicios ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.trio > * { padding: 30px 28px 34px 0; border-right: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.trio > * + * { padding-left: 28px; }
.trio > *:last-child { border-right: 0; }
.trio h3 { font-size: 1.35rem; }
.trio .ico { color: var(--gold-deep); }
@media (max-width: 820px) { .trio { grid-template-columns: 1fr; } .trio > * { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0; } .trio > * + * { padding-left: 0; } }

/* ---------- banda de mercado (portada) ---------- */
.band { background: var(--navy); color: #fff; }
.band h2 { color: #fff; }
.band .lead { color: rgba(255, 255, 255, .75); }
.band .eyebrow { color: #d9bf8a; }
.band__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.bignums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .22); }
.bignums > div { padding: 22px 18px 4px 0; display: grid; gap: 8px; align-content: start; }
.bignums > div + div { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .16); }
.bignums b { font: 300 clamp(1.35rem, 2.4vw, 1.95rem)/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bignums small { color: rgba(255, 255, 255, .66); font-size: 12.5px; line-height: 1.35; }
@media (max-width: 900px) { .band__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .bignums { grid-template-columns: 1fr; } .bignums > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); } }

/* ---------- contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__list { display: grid; border-top: 1px solid var(--line-strong); }
.contact__list a { display: flex; align-items: center; gap: 16px; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s var(--ease), color .2s; }
.contact__list a:hover { padding-left: 14px; color: var(--gold-deep); }
.contact__list .ico { color: var(--gold-deep); }
.contact__list b { font: 500 1.05rem/1.2 var(--f-display); display: block; color: inherit; }
.contact__list small { color: var(--muted); font-size: 13.5px; }
.contact__list .go { margin-left: auto; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* ---------- pie ---------- */
.ftr { background: var(--navy-deep); color: rgba(255, 255, 255, .78); margin-top: 0; }
.ftr__in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-block: 56px 36px; }
.ftr__brand { display: grid; gap: 14px; justify-items: start; }
.ftr__brand .wm { align-items: flex-start; }
.ftr__mat { font: 500 11px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: #d9bf8a; }
.ftr__zone { font-size: 14px; }
.ftr__legal .ftr__martillero { color: rgba(255, 255, 255, .85); font-size: 13.5px; }
.ftr__nav, .ftr__contact { display: grid; gap: 12px; align-content: start; }
.ftr a { color: inherit; text-decoration: none; font-size: 14.5px; display: inline-flex; align-items: center; gap: 10px; }
.ftr a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.ftr__legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 22px 40px; display: grid; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .55); max-width: calc(var(--maxw) + 2 * var(--gutter)); }
@media (max-width: 760px) { .ftr__in { grid-template-columns: 1fr; gap: 28px; } }

.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #d9bf8a; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(6, 24, 58, .6); border: 1px solid rgba(217, 191, 138, .5); transition: transform .25s var(--ease), background .2s; }
.wa-float:hover { transform: translateY(-3px); background: var(--navy-deep); }

/* ---------- ficha de propiedad ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); padding-block: 22px 18px; }
.crumbs a { text-decoration: none; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.crumbs a:hover { color: var(--navy); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; aspect-ratio: 2.1 / 1; border-radius: var(--r); overflow: hidden; position: relative; }
.gallery button { border: 0; padding: 0; background: var(--sunken); overflow: hidden; position: relative; cursor: zoom-in; }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.035); }
.gallery button:nth-child(n+6) { display: none; }
.gallery .gallery__all { position: absolute; cursor: pointer; right: 14px; bottom: 14px; z-index: 2; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r); min-height: 40px; padding: 0 16px; display: inline-flex; gap: 9px; align-items: center; font: 500 12px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.gallery .gallery__all:hover { background: var(--navy); color: #fff; }
@media (max-width: 760px) {
  .gallery { display: flex; aspect-ratio: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery button, .gallery button:nth-child(n+6) { display: block; flex: 0 0 88%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
  .gallery button:first-child { grid-row: auto; }
  .gallery .gallery__all { display: none !important; }
}
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 72px); padding-block: 36px 24px; align-items: start; }
@media (max-width: 1000px) { .ficha { grid-template-columns: 1fr; } }
.ficha__head { display: grid; gap: 12px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.ficha__ref { font-size: 13px; color: var(--faint); letter-spacing: .04em; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border-bottom: 1px solid var(--line); }
.keyfacts > div { padding: 22px 16px 22px 0; display: grid; gap: 8px; }
.keyfacts > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.keyfacts b { font: 300 1.9rem/1 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.keyfacts span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.keyfacts .ico { color: var(--gold-deep); }
@media (max-width: 560px) { .keyfacts > div:nth-child(odd) { padding-left: 0; border-left: 0; } .keyfacts > div { border-bottom: 1px solid var(--line); } .keyfacts { grid-template-columns: 1fr 1fr; } }
.block { padding-block: 30px; border-bottom: 1px solid var(--line); display: grid; gap: 16px; }
.block h2 { font-size: 1.35rem; }
.prose { color: var(--text); max-width: 64ch; display: grid; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; background: #fff; color: var(--text); }
.chips-group { display: grid; gap: 10px; }
.chips-group h3 { font: 500 11px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } }
.side { position: sticky; top: calc(var(--hdr-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 18px; }
@media (max-width: 1000px) { .side { position: static; } }
.side__price { font: 400 2.2rem/1 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.side__sub { font-size: 14px; color: var(--muted); margin-top: -6px; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.side small { color: var(--faint); font-size: 12.5px; line-height: 1.45; }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .mini { grid-template-columns: 1fr; } }

/* barra de contacto fija en celular/tablet: el precio y el boton de WhatsApp siempre a mano */
.mbar { display: none; }
@media (max-width: 1000px) {
  .mbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line-strong); padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); }
  .mbar__price { font: 500 1.25rem/1.1 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; }
  .mbar__price small { display: block; font: 400 11px/1.2 var(--f-body); color: var(--faint); letter-spacing: .02em; }
  .mbar .btn { min-height: 44px; padding: 0 18px; }
  body.has-mbar { padding-bottom: 76px; }
  body.has-mbar .wa-float { display: none; }
}

dialog.lightbox { position: fixed; inset: 0; margin: 0; padding: 0; border: 0; background: #040e22; width: 100%; height: 100%; max-width: none; max-height: none; overflow: hidden; color: #fff; }
dialog.lightbox::backdrop { background: rgba(4, 14, 34, .97); }
.lb { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 14px 16px 12px; gap: 12px; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .8); }
.lb__stage { position: relative; min-height: 0; overflow: hidden; }
.lb__stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb__btn { z-index: 2; position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(6, 24, 58, .6); color: #fff; display: grid; place-items: center; }
.lb__btn:hover { background: #fff; color: var(--navy); }
.lb__prev { left: 6px; } .lb__next { right: 6px; }
.lb__x { position: static; transform: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; display: grid; place-items: center; }
.lb__thumbs { display: flex; gap: 6px; overflow-x: auto; justify-content: center; padding-bottom: 4px; }
.lb__thumbs button { flex: none; width: 64px; height: 48px; border: 2px solid transparent; padding: 0; background: none; opacity: .55; }
.lb__thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- mercado ---------- */
.page-hero { background: var(--navy); color: #fff; padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: #d9bf8a; }
.page-hero .lead { color: rgba(255, 255, 255, .78); margin-top: 18px; }
.page-hero__in { }
.page-hero__txt { display: grid; gap: 16px; max-width: 760px; }
.chart-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
/* ---------- estadisticas: tarjetas resumen ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 56px; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 6px; align-content: start; }
.tile__h { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tile__h b { color: var(--navy); font-weight: 600; }
.tile__h span:last-child { margin-left: auto; letter-spacing: .04em; text-transform: none; font: 400 13px/1 var(--f-body); color: var(--faint); }
.tile__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.tile__hero { font: 300 clamp(2.3rem, 4.6vw, 3.3rem)/1 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.tile__lbl { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.rug { position: relative; height: 46px; }
.rug::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-strong); }
.rug__band { position: absolute; top: 4px; height: 38px; background: var(--c); opacity: .11; border-radius: 2px; }
.rug__t { position: absolute; top: 11px; width: 1.5px; height: 24px; background: var(--c); opacity: .55; transform: translateX(-50%); }
.rug__med { position: absolute; top: 4px; width: 3px; height: 38px; background: var(--c); border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 0 2px var(--surface); }
.rug__ax { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; margin-top: 2px; }
.tile__dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.tile__dl dt { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.tile__dl dd { margin: 0; font: 500 15px/1.3 var(--f-body); color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .tile__dl { grid-template-columns: 1fr; } }

/* ---------- estadisticas: graficos ---------- */
.vz-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.vz { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
.vz--wide { grid-column: 1 / -1; }
@media (max-width: 960px) { .vz-grid { grid-template-columns: minmax(0, 1fr); } }
.vz figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 22px; }
.vz figcaption b { font: 500 17px/1.2 var(--f-display); color: var(--navy); }
.vz figcaption span { font-size: 13px; color: var(--muted); }
.vz-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.vz-key span { display: inline-block; margin: 0 7px 0 18px; flex: none; }
.vz-key span:first-child { margin-left: 0; }
.k-bar { width: 12px; height: 12px; background: var(--c-lote); border-radius: 2px 2px 0 0; } .k-band { width: 20px; height: 12px; background: var(--navy); opacity: .1; }
.k-ref { width: 2px; height: 14px; background: var(--navy); } .k-tick { width: 2px; height: 12px; background: var(--muted); opacity: .6; }
.k-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--navy); } .k-line { width: 22px; height: 2px; background: var(--muted); opacity: .6; }
.k-sw { width: 12px; height: 12px; border-radius: 2px; }
[data-t1] { outline-offset: -2px; }

.hist { position: relative; padding-left: 34px; }
.hist__plot { position: relative; height: 210px; margin-top: 18px; }
.hist__g { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.hist__g:first-child { border-top-color: var(--line-strong); }
.hist__g span { position: absolute; right: calc(100% + 8px); top: -8px; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.hist__band { position: absolute; top: 0; bottom: 0; background: var(--navy); opacity: .06; }
.hist__slot { position: absolute; top: 0; bottom: 0; }
.hist__slot:hover { background: rgba(10, 37, 80, .05); }
.hist__bar { position: absolute; bottom: 0; left: 50%; width: min(calc(100% - 4px), 28px); transform: translateX(-50%); background: var(--c); border-radius: 4px 4px 0 0; transition: filter .15s; }
.hist__slot:hover .hist__bar, .hist__slot:focus-visible .hist__bar { filter: brightness(1.18); }
.hist__ref { position: absolute; top: -4px; bottom: 0; width: 0; border-left: 1.5px solid var(--navy); pointer-events: none; }
.hist__ref em { position: absolute; top: -16px; left: 6px; font: 500 11.5px/1 var(--f-body); font-style: normal; color: var(--navy); white-space: nowrap; }
.hist__x { position: relative; height: 22px; margin-top: 8px; }
.hist__x span { position: absolute; transform: translateX(-50%); font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hist__x span:first-child { transform: none; } .hist__x span:last-child { transform: translateX(-100%); }
@media (max-width: 520px) { .hist { padding-left: 26px; } .hist__plot { height: 170px; } }

.rg { display: grid; }
.rg__row { display: grid; grid-template-columns: minmax(96px, 130px) minmax(0, 1fr) 96px; gap: 0 12px; align-items: center; padding: 7px 4px; border-top: 1px solid var(--line); border-radius: 2px; }
.rg__row--ax { border-top: 0; padding-top: 0; padding-bottom: 6px; }
.rg__row[data-t1]:hover { background: var(--bg); }
.rg__ticks { position: relative; height: 14px; }
.rg__ticks span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rg__ticks span:first-child { transform: none; } .rg__ticks span:last-child { transform: translateX(-100%); }
.rg__name { font: 500 14px/1.2 var(--f-display); color: var(--navy); }
.rg__name small { display: block; font: 400 11.5px/1.2 var(--f-body); color: var(--faint); margin-top: 2px; }
.rg__track { position: relative; height: 26px; }
.rg__track > i:not(.rg__t) { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.rg__line { position: absolute; top: 12px; height: 2px; background: var(--c); opacity: .4; }
.rg__t { position: absolute; top: 6px; width: 1.5px; height: 14px; background: var(--c); opacity: .5; transform: translateX(-50%); }
.rg__med { position: absolute; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface); transform: translateX(-50%); }
.rg__val { white-space: nowrap; text-align: right; font: 500 13.5px/1 var(--f-body); font-variant-numeric: tabular-nums; color: var(--text); }
.rg__row--few .rg__name, .rg__row--few .rg__val { color: var(--muted); }
@media (max-width: 560px) {
  .rg__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .rg__row--ax { display: none; }
  .rg__track { grid-column: 1 / -1; order: 3; }
}

.bars { position: relative; padding-top: 22px; display: grid; }
.bars__ref { position: absolute; top: 20px; bottom: 0; width: 0; border-left: 1px dashed var(--navy-70); pointer-events: none; z-index: 1; }
.bars__ref em { position: absolute; top: -18px; left: 6px; font: 500 11.5px/1 var(--f-body); font-style: normal; color: var(--navy); white-space: nowrap; }
.bars__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 78px; align-items: center; height: 30px; border-radius: 2px; }
.bars__row:hover { background: var(--bg); }
.bars__name { font: 500 13.5px/1.2 var(--f-display); color: var(--navy); padding-right: 12px; padding-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars__track { height: 10px; position: relative; }
.bars__bar { position: absolute; left: 0; top: 0; height: 10px; background: var(--c); border-radius: 0 4px 4px 0; }
.bars__val { text-align: right; font: 500 13px/1 var(--f-body); font-variant-numeric: tabular-nums; padding-right: 4px; }
.bars__row--few .bars__bar { opacity: .35; } .bars__row--few .bars__name, .bars__row--few .bars__val { color: var(--muted); }
@media (max-width: 560px) { .bars__row { grid-template-columns: 112px minmax(0, 1fr) 54px; } .bars__ref { left: 0 !important; display: none; } }

.stk { display: grid; gap: 6px; }
.stk__row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 36px; align-items: center; gap: 0 12px; }
.stk__name { font: 500 13.5px/1.2 var(--f-display); color: var(--navy); }
.stk__track { display: flex; gap: 2px; height: 22px; }
.stk__seg { height: 22px; border-radius: 2px; display: flex; align-items: center; justify-content: center; min-width: 4px; transition: filter .15s; }
.stk__seg:hover, .stk__seg:focus-visible { filter: brightness(1.15); }
.stk__seg i { font: 600 11.5px/1 var(--f-body); font-style: normal; color: #fff; font-variant-numeric: tabular-nums; }
.stk__tot { text-align: right; font: 500 13px/1 var(--f-body); font-variant-numeric: tabular-nums; color: var(--text); }
@media (max-width: 560px) { .stk__row { grid-template-columns: 1fr 30px; row-gap: 4px; } .stk__track { grid-column: 1 / -1; order: 3; } }

.vz-tip { position: fixed; z-index: 90; pointer-events: none; background: var(--navy-deep); color: #fff; padding: 10px 13px; border-radius: 3px; display: grid; gap: 3px; font-size: 13px; line-height: 1.35; max-width: 280px; box-shadow: 0 8px 24px rgba(6, 24, 58, .28); }
.vz-tip b { font: 500 13.5px/1.2 var(--f-display); letter-spacing: .01em; }
.vz-tip span { color: #fff; font-variant-numeric: tabular-nums; }
.vz-tip i { font-style: normal; color: rgba(255, 255, 255, .72); font-size: 12px; }
.tbl-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.tbl th { text-align: left; font: 500 11px/1.2 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line-strong); background: var(--bg); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-family: var(--f-display); font-weight: 500; color: var(--navy); }
.note { font-size: 13.5px; color: var(--muted); max-width: 78ch; margin-top: 16px; }

/* cotizador */
.cotiz { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .cotiz { grid-template-columns: 1fr; } }
.cotiz__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; }
.cotiz__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .cotiz__row { grid-template-columns: 1fr; } }
.cotiz__out { background: var(--navy); color: #fff; border-radius: var(--r); padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 22px; position: sticky; top: calc(var(--hdr-h) + 20px); }
@media (max-width: 960px) { .cotiz__out { position: static; } }
.cotiz__out .eyebrow { color: #d9bf8a; }
.cotiz__big { font: 300 clamp(2.4rem, 5vw, 3.6rem)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.cotiz__range { color: rgba(255, 255, 255, .78); font-size: 15px; font-variant-numeric: tabular-nums; }
.cotiz__empty { color: rgba(255, 255, 255, .72); display: grid; gap: 10px; }
.band-vis { position: relative; height: 54px; margin-top: 6px; }
.band-vis__track { position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: rgba(255, 255, 255, .3); }
.band-vis__range { position: absolute; top: 14px; height: 13px; background: rgba(217, 191, 138, .35); border: 1px solid #d9bf8a; border-radius: 2px; }
.band-vis__mid { position: absolute; top: 8px; width: 3px; height: 25px; background: #d9bf8a; transform: translateX(-50%); }
.band-vis__lbl { position: absolute; top: 36px; font-size: 11.5px; color: rgba(255, 255, 255, .7); transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.conf { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.conf i { width: 10px; height: 10px; border-radius: 50%; background: #d9bf8a; display: inline-block; }
.conf--media i { background: #e6c45a; } .conf--baja i { background: #e08b6b; }
.cotiz__facts { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px; }
.cotiz__facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .78); }
.cotiz__facts b { color: #fff; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.cotiz__legal { font-size: 12.5px; color: rgba(255, 255, 255, .62); line-height: 1.5; }
details.how { border-top: 1px solid var(--line-strong); }
details.how summary { cursor: pointer; padding: 20px 0; font: 500 1.05rem/1.2 var(--f-display); color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.how summary::-webkit-details-marker { display: none; }
details.how summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-deep); font-weight: 300; }
details.how[open] summary::after { content: "–"; }
details.how .prose { padding-bottom: 24px; }
details.how:last-of-type { border-bottom: 1px solid var(--line-strong); }

/* ---------- movimiento ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
/* si no hay JS, nada queda oculto */
.no-js [data-reveal] { opacity: 1; transform: none; }
@media print { .hdr, .wa-float, .filters, .quick { display: none; } }

/* ---------- cotizador: extras del resultado ---------- */
.hint { font-size: 12.5px; color: var(--faint); }
.band-vis__ask { position: absolute; top: 2px; width: 2px; height: 38px; background: #fff; transform: translateX(-50%); }
.band-vis__ask span { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .04em; color: #fff; white-space: nowrap; }
.verd { display: grid; gap: 4px; padding: 12px 14px; border-left: 3px solid #d9bf8a; background: rgba(255, 255, 255, .07); font-size: 13.5px; line-height: 1.45; }
.verd b { font-weight: 500; font-size: 14.5px; } .verd span { color: rgba(255, 255, 255, .78); }
.verd--alto { border-left-color: #e08b6b; } .verd--bajo { border-left-color: #9fc5e8; }
.cotiz__act { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lnk { background: none; border: 0; padding: 6px 0; color: rgba(255, 255, 255, .85); font: 500 13px/1 var(--f-body); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .35); }
.lnk:hover { color: #fff; text-decoration-color: #d9bf8a; }

/* ---------- cotizador: analisis ---------- */
.analisis { margin-top: 48px; }
.analisis__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 20px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.analisis__head p { font-size: 14px; color: var(--muted); }
.analisis__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 960px) { .analisis__grid { grid-template-columns: minmax(0, 1fr); } }
.an-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
.an-card--wide { grid-column: 1 / -1; }
.an-card header { margin-bottom: 18px; display: grid; gap: 4px; }
.an-card h4 { font: 500 17px/1.2 var(--f-display); color: var(--navy); }
.an-card header p { font-size: 13.5px; color: var(--muted); max-width: 70ch; }
.an-sub { margin: 28px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.tbl-wrap--flat { margin-top: 0; border: 0; }
.tbl--cmp { min-width: 640px; font-size: 14px; }
.tbl--cmp td { padding: 11px 12px; } .tbl--cmp th { padding: 10px 12px; }
.tbl--cmp th.af, .tbl--cmp td.af { width: 150px; }
.af { display: flex; align-items: center; gap: 10px; }
td.af { display: table-cell; } td.af .af__bar { display: inline-block; vertical-align: middle; margin-right: 10px; }
.af__bar { width: 70px; height: 6px; background: var(--sunken); border-radius: 3px; position: relative; overflow: hidden; }
.af__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy-70); border-radius: 3px; }
td.af b { font: 500 13px/1 var(--f-body); }
.chip-mini { display: inline-block; margin-left: 6px; padding: 2px 7px; font: 500 10.5px/1.4 var(--f-body); letter-spacing: .04em; background: rgba(184, 151, 90, .18); color: var(--gold-deep); border-radius: 2px; vertical-align: 2px; }
.bars--cmp { padding-top: 0; }
.bars--cmp .bars__row { grid-template-columns: 138px minmax(0, 1fr) 96px; }
.bars--cmp .bars__val small { margin-left: 6px; font-size: 11px; color: var(--faint); font-weight: 400; }
.an-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.bars__row.is-sel { background: rgba(184, 151, 90, .12); }
.bars__row.is-sel .bars__name { color: var(--gold-deep); font-weight: 600; }
.sens { display: grid; gap: 4px; }
.sens__row { display: grid; grid-template-columns: 138px minmax(0, 1fr) 118px; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sens__row:first-child { border-top: 0; }
.sens__bar { height: 8px; background: var(--sunken); border-radius: 4px; position: relative; overflow: hidden; }
.sens__bar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; }
.sens__bar.is-pos i { background: var(--ok); } .sens__bar.is-neg i { background: #a3563a; }
.sens__row b { text-align: right; font: 500 14px/1.2 var(--f-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sens__row b small { display: block; font: 400 11.5px/1.2 var(--f-body); color: var(--faint); }
@media (max-width: 520px) { .sens__row { grid-template-columns: 1fr 100px; } .sens__bar { grid-column: 1 / -1; order: 3; } }
.estr { display: grid; gap: 0; counter-reset: e; }
.estr li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.estr li:first-child { border-top: 0; }
.estr span { font: 500 14.5px/1.2 var(--f-display); color: var(--navy); }
.estr b { font: 400 18px/1.2 var(--f-display); font-variant-numeric: tabular-nums; color: var(--navy); text-align: right; }
.estr small { grid-column: 1 / -1; font-size: 13px; color: var(--muted); line-height: 1.45; }
.estr li.is-mid { background: rgba(184, 151, 90, .1); margin-inline: -10px; padding-inline: 10px; border-radius: 2px; }

/* ---------- impresion: informe del cotizador ---------- */
.print-head { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .hdr, .ftr, .wa-float, .mbar, .page-hero, #estadisticas, .how, .cotiz__act, .section__head .lead, #c-demo, .skip, .vz-tip { display: none !important; }
  .print-head { display: grid; gap: 2px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--navy); }
  .print-head b { font: 500 18px/1.2 var(--f-display); color: var(--navy); }
  .print-head span { font-size: 12px; color: var(--muted); }
  .section { padding-block: 0 !important; }
  .cotiz { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cotiz__out { position: static; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .band-vis__range, .conf i, .af__bar i, .sens__bar i, .bars__bar, .estr li.is-mid, .bars__row.is-sel, .verd { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .an-card, .cotiz__form, .cotiz__out { break-inside: avoid; }
  .analisis__grid { grid-template-columns: 1fr 1fr; }
  .tbl-wrap { overflow: visible; }
}
.tbl--cmp td:first-child { white-space: nowrap; }

/* ---------- plano de barrios (vista del listado) ---------- */
.results-bar { justify-content: flex-start; gap: 12px 24px; }
.results-bar .seg { min-height: 46px; box-shadow: 0 1px 0 rgba(15,31,61,.06); }
.results-bar .seg button { font-size: 13px; padding: 0 22px; }
.results-bar .reset { margin-left: auto; }
@media (max-width: 640px) { .results-bar .seg { width: 100%; } .results-bar .seg button { padding: 0 8px; } .results-bar .reset { margin-left: 0; } }
.plano { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .plano { grid-template-columns: minmax(0, 1fr); } }
.plano__col { position: sticky; top: calc(var(--hdr-h) + 16px); display: grid; gap: 10px; }
.plano__col .how--mini summary { padding: 12px 0; font-size: .95rem; }
.plano__col details.how { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .plano__col { position: static; } }
.plano__side { min-width: 0; display: grid; gap: 14px; align-content: start; }
.plano__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.plano__sub { font-size: 14px; color: var(--muted); }
.plano__nota { font-size: 12.5px; color: var(--faint); line-height: 1.5; margin-top: 4px; }
.plano__cards { display: grid; gap: 18px; }
.plano__vacio { display: grid; gap: 14px; justify-items: start; padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--r); font-size: 14.5px; color: var(--muted); }
.plano__idx { display: grid; }
.plano__idx button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; background: none; border: 0; border-bottom: 1px solid var(--line); font: 400 15px/1.2 var(--f-body); color: var(--muted); text-align: left; }
.plano__idx button:hover { background: var(--bg); color: var(--navy); }
.plano__idx button.has { color: var(--navy); font-weight: 500; }
.plano__idx b { font: 500 14px/1 var(--f-display); font-variant-numeric: tabular-nums; min-width: 22px; text-align: right; }
.plano__idx button:not(.has) b { color: var(--faint); font-weight: 400; }

.pl { width: 100%; height: auto; display: block; overflow: visible; }
.pl__limite { fill: var(--verde-suave); stroke: #c3d0bd; stroke-width: 1.5; stroke-linejoin: round; }
.pl__agua { fill: #e4ecf2; }
.pl__hito rect { fill: none; stroke: var(--faint); stroke-width: 1.3; }
.pl__hito text { font: 400 16px var(--f-body); fill: var(--faint); }
.pl__hito--entrada path { fill: none; stroke: var(--gold-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pl__hito--entrada text { fill: var(--gold-deep); letter-spacing: .12em; text-transform: uppercase; font-size: 14px; font-weight: 500; }
.pl__b { cursor: pointer; outline: none; }
.pl__hit { fill: transparent; }
.pl__ring { fill: none; stroke: var(--gold); stroke-width: 2.2; opacity: 0; transition: opacity .15s; }
.pl__b:hover .pl__ring, .pl__b:focus-visible .pl__ring { opacity: .55; } .pl__b.on .pl__ring { opacity: 1; }
.pl__dot { fill: var(--surface); stroke: var(--navy-70); stroke-width: 1.6; transition: fill .15s; }
.pl__b.has .pl__dot { fill: var(--navy); stroke: var(--navy); }
.pl__b:not(.has):hover .pl__dot { fill: var(--sunken); }
.pl__n { font: 500 19px var(--f-display); fill: #fff; pointer-events: none; }
.pl__lbl { font: 500 21px var(--f-display); fill: var(--navy); paint-order: stroke; stroke: var(--verde-suave); stroke-width: 6px; stroke-linejoin: round; cursor: pointer; }
.pl__b:not(.has) .pl__lbl { fill: var(--muted); font-weight: 400; }
.pl__b.on .pl__lbl { fill: var(--gold-deep); font-weight: 600; }
@media (max-width: 640px) { .pl__lbl { font-size: 27px; } .pl__hito text { font-size: 21px; } .pl__n { font-size: 24px; } .pl__hito--entrada text { font-size: 18px; } }

.btn .ico { display: inline-flex; }
.btn--ghost.btn--sm { gap: 10px; }

/* ---------- vivimos aca ---------- */
.vivimos { background: var(--surface); border-bottom: 1px solid var(--line); }
.vivimos__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .vivimos__grid { grid-template-columns: minmax(0, 1fr); } }
.vivimos__lead { display: grid; gap: 24px; align-content: start; }
.vivimos .h-xl { font-size: clamp(2rem, 4vw, 3.1rem); }
.viv-stats { display: flex; flex-wrap: wrap; gap: 20px 48px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.viv-stats > div { display: grid; gap: 6px; max-width: 190px; }
.viv-stats b { font: 300 clamp(2.2rem, 4vw, 3rem)/1 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.viv-stats small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.viv-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
@media (max-width: 560px) { .viv-items { grid-template-columns: minmax(0, 1fr); } }
.viv-items > div { padding: 24px 26px 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.viv-items > div:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line); padding-right: 0; }
@media (max-width: 560px) { .viv-items > div, .viv-items > div:nth-child(even) { padding: 20px 0; border-left: 0; } }
.viv-items h3 { font: 500 1.15rem/1.2 var(--f-display); color: var(--navy); }
.viv-items p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.side__vive { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.side__vive a { color: var(--navy); text-underline-offset: 3px; text-decoration-color: var(--gold); }

.pl__calle-borde { fill: none; stroke: #c3d0bd; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.pl__calle { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }

.pl__quintas { font: italic 400 17px var(--f-body); fill: var(--faint); letter-spacing: .02em; }
.pl__ruta-borde { fill: none; stroke: #aab2be; stroke-width: 24; stroke-linecap: butt; }
.pl__ruta { fill: none; stroke: #dde2e9; stroke-width: 20; stroke-linecap: butt; }
.pl__ruta-eje { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 14 12; stroke-linecap: butt; }
.pl__acceso { font: 500 19px var(--f-display); fill: var(--navy); paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
.pl__acceso--sub { font: 400 16px var(--f-body); fill: var(--muted); }
.pl__rutal { font: 500 15px var(--f-display); fill: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 640px) { .pl__quintas { font-size: 22px; } .pl__acceso { font-size: 25px; } .pl__acceso--sub { font-size: 21px; } .pl__rutal { font-size: 20px; } }
.pl__lugar { font: 500 18px var(--f-display); fill: var(--navy); letter-spacing: .02em; }
@media (max-width: 640px) { .pl__lugar { font-size: 23px; } }

/* el plano entra completo en pantalla (sin scrollear): la altura se limita al alto visible */
.plano__map .pl { max-height: max(440px, calc(100vh - var(--hdr-h) - 190px)); }
