/* =========================================================
   Sansilvestre Group Inmobiliaria — Sistema de diseño v2
   ========================================================= */
:root {
  /* Marca */
  --brand: #ff5800;          /* naranja del logo: acentos, iconos, detalles */
  --brand-600: #c94400;      /* botones y enlaces (contraste AA con blanco 4.87:1) */
  --brand-700: #a53800;
  --brand-50: #fff3ec;
  --brand-100: #ffe2d1;
  --on-dark-brand: #ff7a33;

  /* Neutros cálidos */
  --ink: #17130f;
  --ink-2: #3a332c;
  --muted: #5f574e;
  --line: #e7e0d6;
  --line-2: #d8cfc2;
  --bg: #faf7f2;
  --surface: #ffffff;
  --sand: #f2ece3;
  --dark: #17130f;
  --dark-2: #231d18;
  --on-dark: #f5efe7;
  --on-dark-muted: #b8ada1;

  /* Estados */
  --olive: #3d5a36;
  --ok: #1f7a4d;
  --err: #b42318;
  --wa: #1fa855;
  --wa-dark: #178a45;

  /* Tipografía */
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Medidas */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --section: clamp(64px, 9vw, 120px);
  --header-h: 76px;

  /* Sombras */
  --sh-1: 0 1px 2px rgba(23, 19, 15, .06), 0 1px 1px rgba(23, 19, 15, .04);
  --sh-2: 0 6px 18px -6px rgba(23, 19, 15, .14), 0 2px 6px rgba(23, 19, 15, .05);
  --sh-3: 0 24px 48px -16px rgba(23, 19, 15, .22), 0 6px 14px rgba(23, 19, 15, .06);

  /* Capas */
  --z-header: 40;
  --z-drawer: 60;
  --z-float: 50;
  --z-modal: 80;
  --z-toast: 90;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-100); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }

.ic { width: 20px; height: 20px; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head__text { max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--brand); border-radius: 2px; }
.section--dark .eyebrow { color: var(--on-dark-brand); }
.h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(38px, 6.2vw, 76px); letter-spacing: -.02em; line-height: 1.02; font-variation-settings: 'opsz' 96; }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -.015em; line-height: 1.08; font-variation-settings: 'opsz' 72; }
.h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); line-height: 1.65; }
.section--dark .lead { color: var(--on-dark-muted); }
.text-brand { color: var(--brand-600); }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn { --bh: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--bh); padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: .01em; border: 1.5px solid transparent; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); white-space: nowrap; cursor: pointer; }
.btn .ic { width: 18px; height: 18px; }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(201, 68, 0, .55); }
.btn--primary:hover { background: var(--brand-700); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-50); }
.btn--outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--sm { --bh: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { --bh: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--brand-600); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.link .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link:hover .ic { transform: translateX(3px); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .2s, background-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(250, 247, 242, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(23, 19, 15, .25); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; display: none; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav a, .nav-dd > button { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav a:hover, .nav-dd > button:hover, .nav-dd.open > button { color: var(--ink); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--brand-600); }
.nav-dd { position: relative; }
.nav-dd > button .ic { width: 16px; height: 16px; transition: transform .2s; }
.nav-dd.open > button .ic { transform: rotate(180deg); }
.nav-dd__menu { position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav-dd.open .nav-dd__menu { opacity: 1; visibility: visible; transform: none; }
.nav-dd__menu a { display: flex; width: 100%; height: auto; padding: 10px 12px; border-radius: 10px; gap: 12px; align-items: flex-start; }
.nav-dd__menu a .ic { color: var(--brand-600); margin-top: 2px; }
.nav-dd__menu a small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 1200px) { .nav + .header__actions { margin-left: 12px; } }
.pse-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 14px; transition: border-color .2s; }
.pse-btn:hover { border-color: #0b3b8f; }
.pse-btn img { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }
.menu-btn { display: inline-grid; }
@media (min-width: 1200px) { .nav { display: block; } .menu-btn { display: none; } }
@media (max-width: 520px) { .pse-btn span { display: none; } .pse-btn { padding: 0 6px; } .brand img { height: 44px; } }

/* Drawer móvil */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); visibility: hidden; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(23, 19, 15, .5); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); background: var(--bg); padding: 16px 20px 28px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; gap: 12px; }
.drawer.open { visibility: visible; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer.open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.drawer__top img { height: 44px; width: auto; }
.drawer nav a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; min-height: 48px; font-weight: 600; border-radius: 10px; }
.drawer nav a:hover { background: var(--sand); }
.drawer nav a .ic { color: var(--brand-600); }
.drawer__group { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin: 14px 8px 2px; }
.drawer__cta { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background-image: radial-gradient(120% 80% at 80% 10%, #3a2a1c 0%, var(--dark) 60%); min-height: min(88vh, 820px); display: flex; align-items: flex-end; padding-block: clamp(120px, 16vh, 180px) clamp(40px, 6vw, 72px); overflow: hidden; background-color: var(--dark); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 12, 9, .55) 0%, rgba(15, 12, 9, .15) 35%, rgba(15, 12, 9, .55) 70%, rgba(15, 12, 9, .85) 100%); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.hero__eyebrow .ic { color: var(--on-dark-brand); width: 18px; height: 18px; }
.hero h1 { max-width: 14ch; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--on-dark-brand); font-weight: 500; }
.hero__sub { margin-top: 18px; font-size: clamp(17px, 1.7vw, 20px); color: rgba(255, 255, 255, .88); max-width: 46ch; }
.hero__grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }
@media (max-width: 767px) { .hero { min-height: 0; padding-block: 44px 36px; } .hero__eyebrow { font-size: 13px; } }

/* Buscador */
.search { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-3); }
.seg { display: inline-flex; padding: 4px; background: var(--sand); border-radius: 999px; gap: 2px; margin-bottom: 14px; }
.seg button { height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.search__fields { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.search__fields .field--full { grid-column: 1 / -1; }
.search .btn { grid-column: 1 / -1; }
.search__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-size: 13.5px; font-weight: 600; border: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.chip:hover { border-color: var(--line-2); background: var(--surface); }
.chip .ic { width: 16px; height: 16px; }
.chip--active { background: var(--ink); color: #fff; }
.chip--active:hover { background: var(--ink-2); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; }
.hero__stat { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .9); }
.hero__stat strong { font-family: var(--f-display); font-size: 28px; font-weight: 600; color: #fff; line-height: 1; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235f574e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.textarea { min-height: 120px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(255, 88, 0, .15); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err); }
.field__err { color: var(--err); font-size: 13px; font-weight: 600; }
.input-group { position: relative; }
.input-group > .ic { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.input-group > .input { padding-left: 44px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); font-weight: 700; }
.input-prefix .input { padding-left: 30px; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.form-note { font-size: 13px; color: var(--muted); }
.form-note a { color: var(--brand-600); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.form-status { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.form-status--ok { background: #e8f5ee; color: var(--ok); }
.form-status--err { background: #fdecea; color: var(--err); }
.form-status .ic { margin-top: 1px; }

.radio-seg { justify-self: start; display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.radio-seg label { position: relative; }
.radio-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-seg span { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: background-color .2s, color .2s; cursor: pointer; }
.radio-seg input:checked + span { background: var(--ink); color: #fff; }
.radio-seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; background: #fff; color: var(--ink); }
.badge--sale { background: var(--ink); color: #fff; }
.badge--rent { background: var(--olive); color: #fff; }
.badge--both { background: #fff; color: var(--ink); }
.badge--feat { background: var(--brand); color: var(--ink); }
.badge--soft { background: var(--sand); color: var(--ink-2); }

/* ---------- Tarjetas ---------- */
.grid-cards { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.card:hover { box-shadow: var(--sh-3); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__noimg { display: grid; place-items: center; height: 100%; color: var(--line-2); }
.card__noimg .ic { width: 48px; height: 48px; }
.card__tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.card__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(23, 19, 15, .7); color: #fff; font-size: 12.5px; font-weight: 700; }
.card__count .ic { width: 15px; height: 15px; }
.card__body { padding: 18px 20px 16px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card__price { font-family: var(--f-display); font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.card__per { font-family: var(--f-body); font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.card__price2 { font-size: 14px; font-weight: 700; color: var(--olive); margin-top: -4px; }
.card__price2 span { color: var(--muted); font-weight: 600; }
.card__title { font-family: var(--f-body); font-size: 17px; font-weight: 700; line-height: 1.35; }
.card__title a { transition: color .2s; }
.card:hover .card__title a { color: var(--brand-600); }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card__loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.card__loc .ic { width: 16px; height: 16px; color: var(--brand-600); }
.card__code { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.card__specs { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.card__specs li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.card__specs .ic { width: 18px; height: 18px; color: var(--muted); }
.card__foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px 18px; }
.card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.card__more .ic { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__more .ic { transform: translateX(3px); }
.card--skel { pointer-events: none; }
.skel { background: linear-gradient(90deg, var(--sand) 0%, #faf6f0 50%, var(--sand) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 8px; }
.skel--line { height: 14px; }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Nosotros ---------- */
.about { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1fr; } }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 5 / 4; object-fit: cover; object-position: center; background: var(--sand); }
.about__badge { position: absolute; left: clamp(-8px, -2vw, -24px); bottom: -24px; background: var(--ink); color: #fff; padding: 18px 22px; border-radius: var(--r); box-shadow: var(--sh-3); display: flex; align-items: center; gap: 14px; }
.about__badge strong { font-family: var(--f-display); font-size: 44px; line-height: 1; color: var(--on-dark-brand); font-weight: 600; }
.about__badge span { font-size: 14px; line-height: 1.35; max-width: 16ch; }
.about__list { display: grid; gap: 14px; margin-top: 28px; }
.about__list li { display: flex; gap: 14px; align-items: flex-start; }
.about__list .ic-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.about__list strong { display: block; font-size: 16px; }
.about__list p { color: var(--muted); font-size: 15px; }

.founder { margin-top: clamp(64px, 8vw, 110px); display: grid; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); }
@media (min-width: 860px) { .founder { grid-template-columns: 240px 1fr; gap: 48px; } }
.founder img { width: 100%; max-width: 240px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--sand); }
.founder blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; font-weight: 400; color: var(--ink); }
.founder blockquote::before { content: '“'; display: block; font-size: 72px; line-height: .6; color: var(--brand); margin-bottom: 8px; }
.founder figcaption { margin-top: 18px; display: flex; flex-direction: column; }
.founder figcaption strong { font-size: 16px; }
.founder figcaption span { font-size: 14px; color: var(--muted); }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 18px; }
@media (min-width: 860px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-lg); background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08); transition: border-color .25s, background-color .25s; }
.service:hover { border-color: rgba(255, 122, 51, .5); background: #2a231d; }
.service__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 88, 0, .14); color: var(--on-dark-brand); }
.service__icon .ic { width: 28px; height: 28px; }
.service h3 { font-family: var(--f-display); font-size: 26px; font-weight: 600; }
.service p { color: var(--on-dark-muted); font-size: 15.5px; flex: 1; }
.service .link { color: var(--on-dark-brand); }

.tools { display: grid; gap: 14px; margin-top: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.tool { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); min-height: 76px; transition: border-color .2s, background-color .2s; }
.tool:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .07); }
.tool .ic { width: 24px; height: 24px; color: var(--on-dark-brand); }
.tool strong { display: block; font-size: 15px; }
.tool small { color: var(--on-dark-muted); font-size: 13px; }
.tool .ic:last-child { margin-left: auto; width: 18px; height: 18px; color: var(--on-dark-muted); }

/* ---------- Aliados ---------- */
.allies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .allies { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .allies { grid-template-columns: repeat(6, 1fr); } }
.ally { display: grid; place-items: center; height: 96px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.ally img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.ally:hover img { filter: none; opacity: 1; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.contact__info { display: grid; gap: 20px; align-content: start; }
.contact__list { display: grid; gap: 4px; }
.contact__list > a, .contact__list > div { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: 12px; transition: background-color .2s; }
.contact__list > a:hover { background: var(--surface); }
.contact__list .ic { color: var(--brand-600); margin-top: 2px; }
.contact__list small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.contact__list span { font-weight: 600; }
.map-embed { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--sand); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-embed .btn { position: absolute; left: 12px; top: 12px; z-index: 2; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--sh-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding-top: clamp(56px, 7vw, 88px); }
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.footer__brand img { height: 64px; width: auto; }
.footer__brand p { margin-top: 16px; color: var(--on-dark-muted); max-width: 34ch; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); color: #fff; transition: background-color .2s, border-color .2s; }
.footer__social a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.site-footer h2 { font-family: var(--f-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 700; margin-bottom: 16px; }
.footer__links a { display: inline-flex; min-height: 36px; align-items: center; color: var(--on-dark); font-weight: 500; transition: color .2s; }
.footer__links a:hover { color: var(--on-dark-brand); }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; color: var(--on-dark); }
.footer__contact .ic { width: 18px; height: 18px; color: var(--on-dark-brand); margin-top: 3px; }
.footer__contact a:hover { color: var(--on-dark-brand); }
.footer__bottom { margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--on-dark-muted); }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: var(--z-float); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-float__btn { width: 60px; height: 60px; border-radius: 999px; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(31, 168, 85, .7); transition: background-color .2s; }
.wa-float__btn:hover { background: var(--wa-dark); }
.wa-float__btn .ic { width: 30px; height: 30px; }
.wa-float__label { position: absolute; right: 72px; bottom: 12px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; box-shadow: var(--sh-2); white-space: nowrap; pointer-events: none; }
.wa-float.open .wa-float__label { display: none; }
@media (max-width: 640px) { .wa-float__label { display: none; } }
.wa-float__panel { width: min(340px, calc(100vw - 36px)); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; border: 1px solid var(--line); }
.wa-float__head { background: var(--wa); color: #fff; padding: 18px 20px; position: relative; }
.wa-float__head strong { display: block; font-size: 17px; }
.wa-float__head p { font-size: 13.5px; opacity: .92; margin-top: 4px; }
.wa-float__close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: #fff; }
.wa-float__close:hover { background: rgba(255, 255, 255, .15); }
.wa-float__body { padding: 16px; }
.wa-float__body small { color: var(--muted); font-size: 13px; display: block; margin-bottom: 10px; }
.wa-float__chat { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--wa); transition: background-color .2s; }
.wa-float__chat:hover { background: var(--bg); }
.wa-float__avatar { width: 44px; height: 44px; border-radius: 999px; background: #e8f5ee; color: var(--wa-dark); display: grid; place-items: center; }
.wa-float__chat strong { display: block; font-size: 15px; }
.wa-float__chat small { margin: 0; }
.has-bottom-bar .wa-float { bottom: 88px; }
@media (min-width: 1024px) { .has-bottom-bar .wa-float { bottom: 18px; } }

/* ---------- Toast ---------- */
.toast-host { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: var(--z-toast); display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--sh-3); animation: toastIn .25s var(--ease); }
.toast .ic { color: #6ee7a8; width: 18px; height: 18px; }
.toast--err .ic { color: #ffb4a8; }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Page header (interiores) ---------- */
.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 36px); }
.page-head--band { background: var(--sand); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { font-weight: 600; color: var(--ink-2); }
.crumbs a:hover { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .ic { width: 14px; height: 14px; }

/* ---------- Listado ---------- */
.listing { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1100px) { .listing { grid-template-columns: 300px 1fr; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 16px; }
@media (min-width: 1100px) { .filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; } }
.filters__head { display: flex; align-items: center; justify-content: space-between; }
.filters__head h2 { font-family: var(--f-body); font-size: 17px; font-weight: 800; }
.filters .range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.counter-row { display: flex; gap: 4px; flex-wrap: wrap; }
.counter-row button { min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; background: var(--surface); transition: border-color .2s, background-color .2s, color .2s; }
.counter-row button:hover { border-color: var(--ink); }
.counter-row button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters__sheet-head, .filters__sheet-foot, .scrim { display: none; }
@media (max-width: 1099px) {
  .filters { position: fixed; inset: auto 0 0 0; z-index: var(--z-modal); border-radius: 22px 22px 0 0; max-height: 88vh; overflow-y: auto; transform: translateY(105%); transition: transform .3s var(--ease); padding-bottom: 0; box-shadow: var(--sh-3); }
  .filters.open { transform: none; }
  .filters__head { display: none; }
  .filters__sheet-head { display: flex; position: sticky; top: -20px; margin: -20px -20px 0; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; z-index: 2; }
  .filters__sheet-head h2 { font-size: 18px; font-family: var(--f-body); font-weight: 800; }
  .filters__sheet-foot { display: flex; gap: 10px; position: sticky; bottom: 0; margin: 0 -20px; padding: 14px 20px; background: var(--surface); border-top: 1px solid var(--line); }
  .filters__sheet-foot .btn { flex: 1; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(23, 19, 15, .5); z-index: calc(var(--z-modal) - 1); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .scrim.open { opacity: 1; visibility: visible; }
}
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar__count { font-weight: 700; margin-right: auto; }
.toolbar__count span { color: var(--muted); font-weight: 600; }
.toolbar .select { width: auto; min-height: 44px; padding-block: 8px; font-size: 14.5px; font-weight: 600; }
.view-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.view-toggle .ic { width: 18px; height: 18px; }
.filters-btn { display: inline-flex; }
@media (min-width: 1100px) { .filters-btn { display: none; } }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-chips:empty { display: none; }
.active-chips button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 13.5px; font-weight: 700; border: 1px solid var(--brand-100); }
.active-chips button:hover { border-color: var(--brand-600); }
.active-chips .ic { width: 16px; height: 16px; }
.results-map { height: min(72vh, 720px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pager button { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; }
.pager button:hover:not([disabled]) { border-color: var(--ink); }
.pager button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button[disabled] { opacity: .4; cursor: not-allowed; }
.empty { text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface); display: grid; justify-items: center; gap: 12px; }
.empty .ic { width: 44px; height: 44px; color: var(--brand-600); }
.empty h3 { font-family: var(--f-display); font-size: 24px; }
.empty p { color: var(--muted); max-width: 46ch; }
.empty__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* Marcadores del mapa */
.pin { background: var(--ink); color: #fff; font: 800 12.5px/1 var(--f-body); padding: 7px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); border: 2px solid #fff; transform: translate(-50%, -100%); position: absolute; left: 0; top: 0; transition: background-color .2s; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; translate: -50% 0; border: 5px solid transparent; border-top-color: #fff; border-bottom: 0; }
.pin--rent { background: var(--olive); }
.pin:hover, .pin.is-active { background: var(--brand-600); }
.leaflet-div-icon.pin-wrap { background: none; border: 0; }
.map-pop { width: 240px; font-family: var(--f-body); }
.map-pop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.map-pop strong { display: block; font-size: 17px; font-family: var(--f-display); }
.map-pop span { display: block; font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.map-pop a { color: var(--brand-600); font-weight: 800; font-size: 14px; }
.leaflet-popup-content-wrapper { border-radius: 14px !important; }
.leaflet-popup-content { margin: 12px !important; }
.leaflet-container { font-family: var(--f-body) !important; }

/* ---------- Detalle ---------- */
.detail-head { display: grid; gap: 16px; padding-block: 28px 20px; }
@media (min-width: 900px) { .detail-head { grid-template-columns: 1fr auto; align-items: end; } }
.detail-head h1 { font-family: var(--f-display); font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.detail-head__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 12px; color: var(--muted); font-weight: 600; font-size: 15px; }
.detail-head__meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-head__meta .ic { width: 18px; height: 18px; color: var(--brand-600); }
.detail-head__actions { display: flex; gap: 8px; }
.gallery { display: grid; gap: 8px; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.gallery > button { position: relative; overflow: hidden; background: var(--sand); display: block; width: 100%; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.gallery > button:hover img { transform: scale(1.03); filter: brightness(.92); }
.gallery__main { aspect-ratio: 4 / 3; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(380px, 46vw, 560px); }
  .gallery__main { grid-row: span 2; aspect-ratio: auto; }
  .gallery--3 { grid-template-columns: 2fr 1fr; }
  .gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
}
@media (max-width: 767px) { .gallery > button:not(.gallery__main) { display: none; } }
.gallery__actions { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 2; }
.gallery__actions .btn { background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: var(--sh-2); }
.gallery__actions .btn:hover { background: #fff; }
.detail-layout { display: grid; gap: 40px; padding-block: 36px 72px; }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: 1fr 380px; gap: 56px; align-items: start; } }
@media (max-width: 1023px) { .detail-layout > .aside { order: -1; display: grid; gap: 16px; } }
.detail-main > section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.detail-main h2 { font-family: var(--f-display); font-size: 26px; font-weight: 600; margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 4px; }
.fact .ic { color: var(--brand-600); width: 22px; height: 22px; margin-bottom: 6px; }
.fact strong { font-size: 18px; font-weight: 800; }
.fact span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; max-width: 70ch; white-space: pre-line; }
.prose.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.feat-groups { display: grid; gap: 24px; }
.feat-group h3 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.feat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; }
.feat-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.feat-list .ic { width: 18px; height: 18px; color: var(--ok); }
.feat-groups.is-collapsed .feat-list li:nth-child(n+7) { display: none; }
.detail-map { height: 380px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.route-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-2); display: grid; gap: 18px; }
@media (min-width: 1024px) { .aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; } }
.price-lines { display: grid; gap: 4px; }
.price-lines small { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.price-main { font-family: var(--f-display); font-size: 36px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
.price-sub { font-weight: 700; color: var(--ink-2); }
.price-sub span { color: var(--muted); font-weight: 600; }
.advisor { display: flex; gap: 14px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.advisor img, .advisor__ph { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; background: var(--sand); display: grid; place-items: center; color: var(--muted); flex: none; }
.advisor small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.advisor strong { font-size: 16px; line-height: 1.3; }
.aside-actions { display: grid; gap: 10px; }
.aside-actions__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share__label { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; width: 100%; }
.share a, .share button { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); transition: border-color .2s, color .2s; }
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.share .ic { width: 18px; height: 18px; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-float) - 1); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.bottom-bar .btn { padding: 0 16px; }
.bottom-bar .btn--ghost { width: 48px; padding: 0; }
.bottom-bar__price { display: flex; flex-direction: column; justify-content: center; margin-right: auto; }
.bottom-bar__price small { font-size: 12px; color: var(--muted); font-weight: 700; }
.bottom-bar__price { min-width: 0; }
.bottom-bar__price strong { font-family: var(--f-display); font-size: 19px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) { .bottom-bar { display: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(12, 10, 8, .96); display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.lightbox__top span { font-weight: 700; font-size: 14px; }
.lightbox__top .icon-btn, .lightbox__nav { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.lightbox__top .icon-btn:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox__stage img, .lightbox__stage iframe { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox__stage iframe { width: min(100%, 1100px); aspect-ratio: 16 / 9; height: auto; border: 0; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; }
.lightbox__nav--prev { left: 10px; } .lightbox__nav--next { right: 10px; }
@media (max-width: 640px) { .lightbox__stage { padding: 0 8px; } .lightbox__nav { top: auto; bottom: -64px; translate: none; } }
.lightbox__thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 16px; scrollbar-width: thin; }
.lightbox__thumbs button { flex: none; width: 76px; height: 56px; border-radius: 8px; overflow: hidden; opacity: .5; border: 2px solid transparent; transition: opacity .2s, border-color .2s; }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--brand); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Simuladores ---------- */
.sim-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-top: 20px; flex-wrap: wrap; }
.sim-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.sim-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.sim-tabs a:not([aria-current]):hover { color: var(--ink); background: var(--sand); }
.sim { display: grid; gap: 28px; align-items: start; padding-block: 36px var(--section); }
@media (min-width: 1024px) { .sim { grid-template-columns: 420px 1fr; gap: 40px; } .sim__form { position: sticky; top: calc(var(--header-h) + 20px); } }
.sim__form { display: grid; gap: 18px; }
.sim__q { display: grid; gap: 10px; }
.sim__q p { font-weight: 700; font-size: 15px; }
.sim__summary { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.kpi { border-radius: var(--r); padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.kpi small { display: block; font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { display: block; margin-top: 6px; font-family: var(--f-display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.kpi--hl { background: var(--ink); border-color: var(--ink); color: #fff; }
.kpi--hl small { color: var(--on-dark-muted); }
.kpi--hl strong { color: var(--on-dark-brand); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th, .table td { padding: 13px 16px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table th:first-child, .table td:first-child { text-align: left; }
.table thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; background: var(--bg); }
.table td small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.table tr.sub td { font-weight: 800; background: var(--brand-50); }
.table tr.total td { font-weight: 800; font-size: 16px; background: var(--ink); color: #fff; border-bottom: 0; }
.table tr.total td small { color: var(--on-dark-muted); }
.table .neg { color: var(--err); }
.sim__note { display: flex; gap: 12px; margin-top: 18px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.sim__note .ic { color: var(--brand-600); }

/* ---------- Consignar ---------- */
.consign { display: grid; gap: 32px; padding-block: 36px var(--section); align-items: start; }
@media (min-width: 1024px) { .consign { grid-template-columns: 360px 1fr; gap: 48px; } .consign__aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.steps { display: grid; gap: 18px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.steps li::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps strong { display: block; }
.steps p { color: var(--muted); font-size: 15px; }
.widget-host { min-height: 480px; }
.widget-host visualinmueble-consignacion { display: block; }

/* ---------- Prose (políticas) ---------- */
.legal { max-width: 820px; padding-block: 36px var(--section); }
.legal h2, .legal h3 { font-family: var(--f-display); margin: 1.6em 0 .6em; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.75; margin-bottom: 1em; }
.legal ul, .legal ol { padding-left: 1.4em; list-style: disc; }
.legal a { color: var(--brand-600); text-decoration: underline; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Impresión (simuladores) ---------- */
.print-only { display: none; }
@page { size: letter portrait; margin: 14mm 14mm 16mm; }
@media print {
  html, body { background: #fff !important; font-size: 11pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; text-shadow: none !important; }
  .site-header, .site-footer, .wa-float, .drawer, .skip-link, .toast-host, .bottom-bar, .no-print,
  .page-head, .sim__form, .sim-tabs { display: none !important; }
  main { padding: 0 !important; }
  .container { max-width: none; padding: 0; }
  .sim { display: block; padding: 0; }
  .print-only { display: block !important; }
  .print-head { display: flex !important; align-items: center; gap: 16px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--brand); }
  .print-head img { width: 110px; height: auto; }
  .print-head strong { display: block; font-family: var(--f-display); font-size: 20pt; line-height: 1.1; color: var(--ink); }
  .print-head span { font-size: 9.5pt; color: var(--muted); }
  .print-sub { font-family: var(--f-body); font-size: 9pt; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-600); margin: 14px 0 8px; }
  .print-inputs { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; border-top: 1px solid var(--line); }
  .print-inputs div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
  .print-inputs dt { color: var(--muted); font-size: 9.5pt; }
  .print-inputs dd { margin: 0; font-weight: 700; font-size: 10pt; text-align: right; }
  .sim__summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; break-inside: avoid; }
  .kpi { padding: 10px 12px; border: 1px solid var(--line-2); background: #fff; }
  .kpi small { font-size: 7.5pt; }
  .kpi strong { font-size: 15pt; }
  .kpi--hl { background: #fff; border: 2px solid var(--ink); color: var(--ink); }
  .kpi--hl small { color: var(--muted); }
  .kpi--hl strong { color: var(--brand-600); }
  .table-wrap { overflow: visible; border: 1px solid var(--line-2); border-radius: 8px; }
  .table { min-width: 0; font-size: 9.5pt; }
  .table th, .table td { padding: 6px 10px; }
  .table td small { font-size: 8pt; }
  .table tr { break-inside: avoid; }
  .table thead { display: table-header-group; }
  .table tr.sub td { background: #f6f1ea; }
  .table tr.total td { background: #fff; color: var(--ink); border-top: 2px solid var(--ink); font-size: 11pt; }
  .table tr.total td:last-child { color: var(--brand-600); }
  .table tr.total td small { color: var(--muted); }
  .sim__note { margin-top: 12px; padding: 10px 12px; font-size: 8.5pt; border: 1px solid var(--line); break-inside: avoid; }
  .print-foot { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 8.5pt; color: var(--muted); text-align: center; }
  a { text-decoration: none !important; color: inherit !important; }
}
.pin .ic { width: 16px; height: 16px; display: block; }
.sim > *, .listing > *, .detail-layout > *, .consign > *, .contact > *, .about > * { min-width: 0; }

.wa-float.is-compact .wa-float__label { opacity: 0; transform: translateX(8px); }
.wa-float__label { transition: opacity .25s, transform .25s; }
@media (max-width: 1023px) { .has-bottom-bar .wa-float { display: none; } }

/* =========================================================
   v2.1 — Correcciones visuales y capa de movimiento
   ========================================================= */

/* ---- Header: navegación visible desde 1080px (antes solo ≥1200px, en portátiles salía el menú hamburguesa) ---- */
@media (min-width: 1080px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .nav + .header__actions { margin-left: 12px; }
}
@media (min-width: 1080px) and (max-width: 1279px) {
  .nav a, .nav-dd > button { padding: 0 9px; font-size: 14px; }
  .pse-btn span { display: none; }
  .pse-btn { padding: 0 6px; }
}
.nav > ul > li > a, .nav-dd > button { position: relative; }
.nav > ul > li > a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-dd__menu a { transition: background-color .18s, transform .18s var(--ease); }
.nav-dd__menu a:hover { background: var(--brand-50); transform: translateX(2px); }

/* ---- Botones con respuesta real al cursor y al toque ---- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic:last-child:not(:first-child) { transform: translateX(3px); }
.btn--primary:hover { box-shadow: 0 14px 28px -10px rgba(201, 68, 0, .65); }
.btn--dark:hover { box-shadow: 0 14px 28px -12px rgba(23, 19, 15, .55); }
.btn--wa:hover { box-shadow: 0 14px 28px -12px rgba(31, 168, 85, .6); }
.btn--ghost:hover { box-shadow: var(--sh-2); }
/* Brillo que recorre los botones principales */
.btn--primary::after, .btn--dark::after, .btn--wa::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn--primary:hover::after, .btn--dark:hover::after, .btn--wa:hover::after { transform: translateX(120%); }
.icon-btn { transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease); }
.icon-btn:hover { transform: translateY(-1px); }
.chip { transition: border-color .2s, background-color .2s, transform .2s var(--ease), box-shadow .2s; }
.chip:hover { transform: translateY(-1px); box-shadow: var(--sh-1); }
.seg button { transition: background-color .2s, color .2s, box-shadow .2s; }
.seg button:not([aria-pressed="true"]):hover { color: var(--ink); }
.pse-btn { transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.pse-btn:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }

/* ---- Hero: entrada animada y etiqueta que no se deforma al partirse en 2 líneas ---- */
.hero__eyebrow { border-radius: 16px; line-height: 1.35; max-width: 100%; text-wrap: balance; }
.hero__grid > div > * { animation: heroIn .8s var(--ease) both; }
.hero__grid > div > :nth-child(2) { animation-delay: .08s; }
.hero__grid > div > :nth-child(3) { animation-delay: .16s; }
.hero__grid > div > :nth-child(4) { animation-delay: .24s; }
.hero .search { animation: heroIn .9s .2s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } }
.hero__stat { padding: 10px 14px 10px 0; }
.hero__stat + .hero__stat { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .22); }
.hero__stats { gap: 12px 0; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; z-index: -1; background: var(--bg); clip-path: ellipse(60% 100% at 50% 100%); }

/* ---- Secciones con profundidad (antes planas) ---- */
.section { position: relative; }
/* Curvas de nivel (guiño a lo rural) en las secciones arena */
.section--sand { background-color: var(--sand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560' fill='none' stroke='%23c94400' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M-20 120c80-40 160 40 240 0s160-60 240-10 120 50 120 50'/%3E%3Cpath d='M-20 170c90-40 170 40 250 0s150-60 230-10 120 50 120 50'/%3E%3Cpath d='M-20 220c90-30 170 50 250 10s150-50 230 0 120 40 120 40'/%3E%3Cpath d='M-20 380c70-50 150 20 230-10s170-40 250 10 120 30 120 30'/%3E%3Cpath d='M-20 430c80-50 160 20 240-10s160-40 240 10 120 30 120 30'/%3E%3Cpath d='M-20 480c80-40 160 30 240 0s160-40 240 10 120 30 120 30'/%3E%3C/svg%3E"); background-size: 560px 560px; }
/* Servicios: brillo cálido detrás de las tarjetas */
.section--dark { overflow: hidden; isolation: isolate; }
.section--dark::before { content: ''; position: absolute; z-index: -1; width: 720px; height: 720px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 88, 0, .22), transparent); pointer-events: none; }
.section--dark::after { content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; left: -200px; bottom: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 122, 51, .12), transparent); pointer-events: none; }
/* Encabezados: la línea del eyebrow crece al aparecer */
[data-reveal] .eyebrow::before, .section-head.is-in .eyebrow::before { transition: width .6s .2s var(--ease); }
.section-head[data-reveal]:not(.is-in) .eyebrow::before { width: 0; }

/* ---- Tarjetas de inmuebles ---- */
.card { transition: box-shadow .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15, 12, 9, .35)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover .card__media::after { opacity: 1; }
.card__loc span:first-of-type:empty { display: none; }
.card__loc:has(span:first-of-type:empty) .ic { display: none; }

/* "Ver detalle" era un texto sin enlace encima del enlace de la tarjeta: ahora es un enlace real,
   y el espacio vacío del pie deja pasar el clic a la tarjeta */
.card__foot { pointer-events: none; }
.card__foot > * { pointer-events: auto; }
.card__more:hover { color: var(--brand-600); }

/* ---- Nosotros ---- */
.about__media img { box-shadow: var(--sh-3); }
.about__media::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--brand); border-radius: var(--r-lg); opacity: .35; z-index: -1; }
.about__media { isolation: isolate; }
.about__list li { padding: 10px; margin: -10px; border-radius: 14px; transition: background-color .25s; }
.about__list li:hover { background: rgba(255, 255, 255, .6); }
.about__list .ic-wrap { transition: transform .3s var(--ease), background-color .3s; }
.about__list li:hover .ic-wrap { transform: rotate(-6deg) scale(1.06); background: var(--brand-100); }
/* Fundador: tarjeta oscura editorial (antes una tarjeta blanca plana) */
.founder { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, #1d1712 0%, #2b1f16 60%, #3a2413 100%); border: 0; color: var(--on-dark); box-shadow: 0 30px 60px -30px rgba(23, 19, 15, .55); padding: clamp(28px, 5vw, 64px); }
@media (min-width: 860px) { .founder { grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(40px, 5vw, 72px); } }
.founder::before { content: '\201C'; position: absolute; z-index: -1; left: auto; bottom: auto; width: auto; background: none; right: clamp(16px, 3vw, 44px); top: 0; font-family: var(--f-display); font-size: clamp(220px, 26vw, 380px); line-height: .9; color: var(--brand); opacity: .14; pointer-events: none; }
.founder::after { content: ''; position: absolute; z-index: -1; width: 560px; height: 560px; left: -180px; bottom: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 88, 0, .28), transparent); pointer-events: none; }
.founder__photo { position: relative; justify-self: center; width: 100%; max-width: 300px; }
.founder__photo::before { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--on-dark-brand); border-radius: var(--r-lg); opacity: .7; transition: transform .5s var(--ease); }
.founder img { position: relative; max-width: none; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--r-lg); background: #fff; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6); transition: transform .5s var(--ease); }
.founder:hover .founder__photo::before { transform: translate(6px, 6px); }
.founder:hover img { transform: translate(-4px, -4px); }
.founder__tag { position: absolute; left: 16px; bottom: -16px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--brand-600); color: #fff; font-weight: 800; font-size: 13.5px; letter-spacing: .02em; box-shadow: 0 10px 22px -8px rgba(201, 68, 0, .7); }
.founder__tag .ic { width: 16px; height: 16px; }
.founder .eyebrow { color: var(--on-dark-brand); }
.founder blockquote { color: var(--on-dark); font-size: clamp(21px, 2.3vw, 29px); line-height: 1.45; font-style: italic; font-weight: 400; }
.founder blockquote::before { content: none; }
.founder mark { background: linear-gradient(transparent 62%, rgba(255, 88, 0, .45) 62%, rgba(255, 88, 0, .45) 92%, transparent 92%); background-size: 0% 100%; background-repeat: no-repeat; color: #fff; font-style: normal; font-weight: 500; transition: background-size 1.1s .5s var(--ease); }
.founder.is-in mark { background-size: 100% 100%; }
.founder figcaption { margin-top: 26px; padding-left: 52px; position: relative; }
.founder figcaption::before { content: ''; position: absolute; left: 0; top: 11px; width: 38px; height: 2px; background: var(--brand); }
.founder figcaption strong { font-size: 17px; color: #fff; }
.founder figcaption span { color: var(--on-dark-muted); }
.founder[data-reveal] .founder__photo { opacity: 0; transform: translateX(-24px); transition: opacity .8s .15s var(--ease), transform .8s .15s var(--ease); }
.founder[data-reveal] .founder__body { opacity: 0; transform: translateX(24px); transition: opacity .8s .3s var(--ease), transform .8s .3s var(--ease); }
.founder.is-in .founder__photo, .founder.is-in .founder__body { opacity: 1; transform: none; }
@media (max-width: 859px) { .founder__photo { max-width: 240px; margin-bottom: 12px; } }
@media print { .founder[data-reveal] .founder__photo, .founder[data-reveal] .founder__body { opacity: 1; transform: none; } }

/* ---- Servicios ---- */
.service { position: relative; overflow: hidden; transition: border-color .3s, background-color .3s, transform .3s var(--ease), box-shadow .3s; }
.service::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 88, 0, .16), transparent 45%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.service:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .6); }
.service:hover::before { opacity: 1; }
.service__icon { transition: transform .35s var(--ease), background-color .35s, color .35s; }
.service:hover .service__icon { transform: translateY(-3px) rotate(-6deg); background: var(--brand); color: #fff; }
.service .link:hover { color: #fff; }
.tool { transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.tool:hover { transform: translateY(-3px); border-color: rgba(255, 122, 51, .6); background: rgba(255, 88, 0, .08); }
.tool .ic:last-child { transition: transform .25s var(--ease), color .25s; }
.tool:hover .ic:last-child { transform: translateX(4px); color: var(--on-dark-brand); }

/* ---- Aliados: logos legibles (los PNG son cuadrados 500×500 con mucho aire) ---- */
/* Todos los PNG son 500×500 con el logo centrado ocupando ~90 % del ancho: se escala el cuadro al
   ancho de la tarjeta y se centra, así cada logo queda al mismo ancho y centrado verticalmente. */
.ally { position: relative; height: 96px; padding: 0; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.ally img { position: absolute; left: 50%; top: 50%; width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: none; max-height: none; object-fit: contain; transform: translate(-50%, -50%); filter: none; opacity: 1; }
.ally:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }

/* ---- Contacto ---- */
.contact__list > a:hover .ic { transform: scale(1.1); }
.contact__list .ic { transition: transform .25s var(--ease); }

/* ---- Pie: el botón flotante de WhatsApp ya no tapa los enlaces legales ---- */
.footer__bottom { padding-right: 84px; }
@media (max-width: 640px) { .footer__bottom { padding-right: 0; padding-bottom: 88px; } }

/* ---- WhatsApp flotante: pulso sutil para llamar la atención (3 veces) ---- */
.wa-float__btn { position: relative; transition: background-color .2s, transform .2s var(--ease); }
.wa-float__btn:hover { transform: scale(1.06); }
.wa-float__btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: waPulse 2.4s 1.5s var(--ease) 3; opacity: 0; pointer-events: none; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---- Aparición escalonada ---- */
.services > [data-reveal]:nth-child(2), .grid-cards > .card:nth-child(3n+2) { transition-delay: .08s; }
.services > [data-reveal]:nth-child(3), .grid-cards > .card:nth-child(3n) { transition-delay: .16s; }
.grid-cards > .card { animation: cardIn .55s var(--ease) both; }
.grid-cards > .card:nth-child(3n+2) { animation-delay: .06s; }
.grid-cards > .card:nth-child(3n) { animation-delay: .12s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.grid-cards > .card--skel { animation: none; }

/* ---- Ficha: botones de compartir en una sola fila ---- */
.share { gap: 6px; }
.share a, .share button { width: 40px; height: 40px; transition: border-color .2s, color .2s, transform .2s var(--ease), background-color .2s; }
.share a:hover, .share button:hover { transform: translateY(-2px); background: var(--brand-50); }
.fact { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.fact:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }

/* ---- Listado: sin barra de desplazamiento horizontal en el panel de filtros ---- */
.filters { overflow-x: hidden; }
.filters .range > *, .filters .field { min-width: 0; }

/* ---- Simuladores ---- */
.kpi { transition: transform .25s var(--ease), box-shadow .25s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.kpi strong { transition: color .2s; }
.table tbody tr:not(.sub):not(.total) { transition: background-color .15s; }
.table tbody tr:not(.sub):not(.total):hover { background: var(--bg); }

@media print { [data-reveal] { opacity: 1 !important; transform: none !important; } .grid-cards > .card { animation: none; } }
