/* Brayla Properties: page CSS on top of the tasteskill kit.
   La letra del sitio está en assets/brayla/tipografia.css;
   azul marino #0E2039, degradado #2E4F7C a #1E3A61, coral #E15A3D (botón accesible #C8452A con texto blanco),
   crema #FDFBF6, pie #0A1729. Estilo: oscuro y premium. */

:root {
  --p-bg: #fdfbf6; --p-surface: #f3ede2; --p-ink: #0e2039; --p-muted: #4a5568;
  --p-accent: #c8452a; --p-accent-ink: #ffffff; --p-action: #c8452a; --p-action-ink: #ffffff;
  --p-inv-bg: #0e2039; --p-inv-surface: #17304f; --p-inv-ink: #ffffff; --p-inv-muted: #c9d4e3;
  --p-inv-accent: #f4957c; --p-inv-accent-ink: #0e2039; --p-inv-action: #c8452a; --p-inv-action-ink: #ffffff;
  --display-weight: 800;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.035em;
  --display-stretch: 100%;
  --ly-scale: 0.9;
  --b-navy: #0e2039;
  --b-coral: #e15a3d;
  --b-coral-text: #b83a20;
  --b-coral-on-navy: #f4957c;
  --b-grad: linear-gradient(160deg, #2e4f7c 0%, #1e3a61 100%);
  --b-foot: #0a1729;
  --b-shadow: 0 24px 60px -24px rgba(10, 23, 41, .45);
}

/* ---------------------------------------------------------------- the wordmark */
.wordmark { font-family: "Archivo", system-ui, sans-serif; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); }
.wordmark b { font-weight: 800; }
.wordmark span { font-weight: 400; }

/* ---------------------------------------------------------------- nav: one solid navy bar */
header.nav.b-nav { background: var(--b-navy); border-bottom-color: rgba(255,255,255,.08); }
header.nav.b-nav .nav__logo, header.nav.b-nav .nav__link { color: #fff; }
header.nav.b-nav .nav__link[aria-current="page"]::after { background: var(--b-coral-on-navy); }
header.nav.b-nav .nav__toggle { color: #fff; border-color: rgba(255,255,255,.35); }
@media (max-width: 1023px) {
  header.nav.b-nav.is-open .nav__links, header.nav.b-nav.is-open .nav__actions { background: var(--b-navy); }
}

/* the ES / EN selector */
.lang { position: relative; display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 2px; gap: 2px; }
.lang a, .lang button {
  min-width: 44px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; border: 0;
  font: 500 14px/1 var(--font-text); color: #fff; background: none; text-decoration: none; cursor: pointer;
}
.lang [aria-current="true"] { background: #fff; color: var(--b-navy); }
.lang__note { position: absolute; top: calc(100% + 10px); right: 0; white-space: nowrap; font-size: 13px; color: #c9d4e3; }
.lang__note:empty { display: none; }

/* ---------------------------------------------------------------- photographs */
.b-photo { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #1e3a61; margin: 0; }
.b-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--m-media) var(--m-entra); }
a:hover .b-photo > img, .b-photo:hover > img { transform: scale(1.03); }

/* visible placeholders for what Bryan still has to send */
.ph {
  display: grid; place-items: center; text-align: center; padding: var(--s-5);
  background: var(--b-grad); color: #c9d4e3; border-radius: var(--r-lg);
  font: 500 14px/1.4 var(--font-text); min-height: 160px; width: 100%; max-width: 100%;
}
.ph svg { width: 32px; height: 32px; margin: 0 auto var(--s-3); stroke: #c9d4e3; fill: none; stroke-width: 1.5; }
.pending { font-size: 13px; color: var(--muted); }
.ground-inverse .pending, .b-hero .pending { color: #c9d4e3; }

/* own line icons */
.ico { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* coral word in a headline */
.hl { color: var(--b-coral-text); }
.ground-inverse .hl, .b-hero .hl { color: var(--b-coral-on-navy); }

/* ---------------------------------------------------------------- the hero: dark, a photograph behind */
.hero.b-hero { position: relative; isolation: isolate; background: var(--b-navy); overflow: hidden; }
.b-hero__bg { position: absolute; inset: 0; z-index: -1; margin: 0; }
.b-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 60%); display: block; }
.b-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,32,57,.94) 0%, rgba(14,32,57,.82) 38%, rgba(14,32,57,.35) 70%, rgba(14,32,57,.2) 100%),
    linear-gradient(0deg, rgba(10,23,41,.75) 0%, rgba(10,23,41,0) 45%);
}
.b-hero h1 { color: #fff; font-size: clamp(40px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
.b-hero .hero__lead { color: #e4ebf4; max-width: 44ch; }
.b-hero .hero__kicker { color: #c9d4e3; }
.hero__kicker .dot { background: var(--b-coral); }
.b-hero .btn--secondary { color: #fff; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); padding: var(--s-5) 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); max-width: 560px; }
.perks li { display: flex; align-items: center; gap: var(--s-3); font-size: 16px; line-height: 1.35; color: #fff; }
.perks .ico { color: var(--b-coral-on-navy); width: 26px; height: 26px; }

/* ---------------------------------------------------------------- the estimator card */
.est {
  background: #ffffff; color: var(--p-ink); border-radius: 20px; box-shadow: var(--b-shadow);
  padding: var(--s-6); display: grid; gap: var(--s-4); align-content: start; align-self: start;
  --ink: var(--p-ink); --muted: var(--p-muted); --bg: #ffffff;
  --line: rgba(14,32,57,.12); --line-strong: rgba(14,32,57,.22); --action: var(--p-action); --action-ink: #fff;
}
.est__eyebrow { display: flex; align-items: center; gap: var(--s-2); font: 500 13px/1 var(--font-text); color: var(--b-coral-text); margin: 0; }
.est__title { font: 800 26px/1.15 var(--font-display); letter-spacing: -0.02em; margin: 0; }
.est__fields { display: grid; gap: var(--s-4); }
.est__fields[hidden] { display: none; }
.est__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.est .field { margin: 0; }
.est .field label { font-size: 14px; color: var(--p-ink); }
.est__toggles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.toggle {
  display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: 0 var(--s-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; font-size: 16px; color: var(--p-ink);
}
.toggle:has(input:checked) { border-color: var(--p-action); background: #fdf1ed; }
.toggle input { width: 20px; height: 20px; accent-color: var(--p-action); margin: 0; }
.est .btn { width: 100%; justify-content: center; }
.est__result { display: grid; gap: var(--s-3); }
.est__result[hidden] { display: none; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; justify-self: start;
  background: #fbe7e1; color: #8a2a15; font: 500 13px/1 var(--font-text); white-space: nowrap;
}
.est__range { font: 800 clamp(30px, 2.8vw, 40px)/1.05 var(--font-display); letter-spacing: -0.025em; margin: 0; }
.est__meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: 0; }
.est__meta div { border-top: 1px solid var(--line); padding-top: var(--s-2); }
.est__meta dt { font-size: 13px; color: var(--p-muted); }
.est__meta dd { margin: 0; font: 500 17px/1.3 var(--font-text); }
.est__legal { font-size: 13px; line-height: 1.5; color: var(--p-muted); margin: 0; }
.est__again { justify-self: start; font-size: 14px; background: none; border: 0; padding: 0; color: var(--b-coral-text); text-decoration: underline; cursor: pointer; min-height: 44px; }
.est__lead { display: grid; gap: var(--s-3); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.est__lead .est__row { grid-template-columns: 1fr 1fr; }

/* ---------------------------------------------------------------- dark bands */
.ground-inverse { background: var(--b-navy); }
.ground-inverse.b-grad { background: var(--b-grad); }
.ground-inverse .wordmark { color: #fff; }

/* trust strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin: 0; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-2); border-top: 1px solid var(--line-strong); padding-top: var(--s-4); }
.stats dt { font-size: 15px; color: var(--muted); }
.stats dd { margin: 0; font: 800 var(--t-h2)/1.05 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }

/* ---------------------------------------------------------------- service cards with a photograph */
.svc-card { display: grid; gap: var(--s-3); align-content: start; }
.svc-card .b-photo { aspect-ratio: 4 / 5; }
.svc-card h3 { display: flex; align-items: center; gap: var(--s-3); font: 500 var(--t-card)/1.3 var(--font-text); margin: var(--s-2) 0 0; }
.svc-card h3 .ico { color: var(--b-coral-text); }
.svc-card p { margin: 0; color: var(--ink); }

/* the mini report inside the fourth service card */
.mini-report { aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: var(--b-grad); padding: var(--s-5); display: grid; align-content: center; }
.mini-report .report { padding: var(--s-5); gap: var(--s-4); }
.mini-report .report__grid dd { font-size: 20px; }

/* sample report card */
.report { background: #ffffff; border-radius: 16px; padding: var(--s-6); display: grid; gap: var(--s-5); color: var(--p-ink); box-shadow: var(--b-shadow); }
.report__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.report__title { font: 800 18px/1.2 var(--font-display); margin: 0; }
.report__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin: 0; }
.report__grid div { border-top: 1px solid rgba(14,32,57,.12); padding-top: var(--s-3); }
.report__grid dt { font-size: 13px; color: var(--p-muted); }
.report__grid dd { margin: 4px 0 0; font: 800 26px/1.15 var(--font-display); letter-spacing: -0.01em; }
.report__todo { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.report__todo li { display: flex; gap: var(--s-3); align-items: center; font-size: 15px; }
.report__todo .ico { color: var(--b-coral-text); }
.report .t-label { color: var(--p-muted); margin-bottom: var(--s-2); }

/* ---------------------------------------------------------------- fee */
.fee { display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; margin: 0; }
.fee b { font: 800 calc(var(--t-h2) * 0.95)/1 var(--font-display); letter-spacing: -0.03em; color: var(--b-coral-text); }
.ground-inverse .fee b, .b-hero .fee b { color: var(--b-coral-on-navy); }
.fee span { font: 500 18px/1.4 var(--font-text); color: var(--muted); max-width: 26ch; }
.checks li { font-size: 16px; }

/* compare table */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 500 14px/1.3 var(--font-text); color: var(--muted); }
.compare tbody th { font-weight: 500; }
.compare td:last-child { font-weight: 500; }

/* ---------------------------------------------------------------- property cards */
.prop { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); align-content: start; text-decoration: none; color: inherit; min-width: 0; }
.prop .ph { aspect-ratio: 4 / 5; }
.prop__name { font: 500 18px/1.3 var(--font-text); margin: 0; }
.prop__meta { font-size: 14px; color: var(--muted); margin: 0; }
.prop-card { gap: var(--s-3); }
.prop-card .ph { aspect-ratio: 16 / 9; }
.prop-card h3 { margin-top: var(--s-2); }
.prop__meta svg { vertical-align: -2px; }

/* reviews */
.review { display: grid; gap: var(--s-4); align-content: start; }
.review .stars { display: flex; gap: 2px; color: var(--b-coral-text); }
.review .stars svg { width: 18px; height: 18px; fill: currentColor; }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
#resenas .grid { align-items: start; }

/* ---------------------------------------------------------------- the close: a photograph behind */
.footer.closing.footer--dark { background: var(--b-foot); position: relative; isolation: isolate; }
.footer.closing .wordmark { color: #fff; }
.close-bg { position: absolute; inset: 0 0 auto 0; height: 62%; z-index: -1; margin: 0; overflow: hidden; }
.close-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; display: block; }
.close-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--b-foot) 0%, rgba(10,23,41,.72) 45%, rgba(10,23,41,.55) 100%); }

/* ---------------------------------------------------------------- /vende */
.steps3 { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); padding: 0; margin: 0; list-style: none; }
.steps3 li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: var(--s-4); display: grid; gap: var(--s-2); }
.steps3 li::before { content: counter(s); font: 800 40px/1 var(--font-display); color: var(--b-coral-text); }
.steps3 h3 { font: 500 20px/1.3 var(--font-text); margin: 0; }
.steps3 p { margin: 0; color: var(--ink); }
.consent { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 15px; line-height: 1.5; min-height: 44px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--p-action); flex: none; }
.wa-note { font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- /links: a bio page */
.bio { min-height: 100svh; height: auto; display: grid; place-items: start center; padding: 64px 24px; position: relative; isolation: isolate; background: var(--b-navy); color: #fff; }
.bio .b-hero__bg { position: fixed; }
.bio__inner { width: min(100%, 520px); display: grid; gap: var(--s-4); }
.bio__head { display: grid; justify-items: center; gap: var(--s-3); text-align: center; margin-bottom: var(--s-4); }
.bio__head .wordmark { color: #fff; }
.bio__head p { color: #c9d4e3; }
.bio__logo { width: 88px; height: 88px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--b-navy); font: 800 40px/1 "Archivo", sans-serif; }
.bio__links { display: grid; gap: var(--s-3); padding: 0; margin: 0; list-style: none; }
.bio__links a, .bio__row {
  display: flex; align-items: center; gap: var(--s-4); min-height: 64px; padding: var(--s-3) var(--s-5);
  border-radius: 14px; background: #fff; color: var(--b-navy); text-decoration: none; font: 500 16px/1.3 var(--font-text);
  transition: transform var(--m-rapida) var(--m-entra);
}
.bio__links a:hover { transform: translateY(-2px); }
/* 2026-11-29 (auditoría móvil H03): a 320-374 px menos margen y relleno, para que la descripción de cada enlace no quede
   en una columna de 184 px */
@media (max-width: 374px) { .bio { padding-inline: 16px; } .bio__links a, .bio__row { padding-inline: 16px; gap: 10px; } }
.bio__row { background: rgba(255,255,255,.1); color: #fff; border: 1px dashed rgba(255,255,255,.35); }
.bio__links .ico { color: var(--b-coral-text); }
.bio__row .ico { color: var(--b-coral-on-navy); }
.bio__links a.is-main { background: var(--p-action); color: #fff; }
.bio__links a.is-main .ico { color: #fff; }
.bio__links small { display: block; font-size: 13px; color: var(--p-muted); font-weight: 400; }
.bio__row small { color: #c9d4e3; }
.bio__links a.is-main small { color: #fde3dc; }
.bio__thumb { width: 48px; height: 48px; border-radius: var(--r-field, 14px); background: var(--b-grad); flex: none; display: grid; place-items: center; color: #c9d4e3; font-size: 11px; }
.bio .link { color: #fff; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps3 { grid-template-columns: 1fr; }
  .b-hero__bg::after { background: linear-gradient(0deg, rgba(14,32,57,.95) 0%, rgba(14,32,57,.85) 55%, rgba(14,32,57,.55) 100%); }
  .svc-card .b-photo, .mini-report { aspect-ratio: 16 / 9; }
}
@media (max-width: 639px) {
  .nav.b-nav:not(.is-open) .nav__actions { display: none; }
  .nav.b-nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; }
  .nav.is-open .nav__actions .lang { justify-self: center; }
  .perks { grid-template-columns: 1fr; gap: var(--s-2); margin-top: var(--s-5); }
  .est { padding: var(--s-5); }
  .est__lead .est__row { grid-template-columns: 1fr; }
  .stats dd { font-size: 28px; }
  .report__grid dd { font-size: 22px; }
  .compare { font-size: 15px; }
  .compare th, .compare td { padding: 12px 8px; }
  .mini-report { display: none; }
  .svc-card .b-photo { aspect-ratio: 21 / 9; }
  #comparacion .b-photo { display: none; }
  #propiedades .group:first-child .grid { grid-template-columns: 1fr 1fr; }
  #propiedades .prop { grid-column: auto; }
  #propiedades .prop .ph { aspect-ratio: 4 / 3; min-height: 0; padding: var(--s-3); }
  #propiedades .prop__name { font-size: 15px; }
  #resenas .review:nth-child(3) { display: none; }
}
.nav__logo.wordmark { gap: 0; }
#creditos ul { display: grid; gap: var(--s-2); padding-left: 1.2em; }
#creditos a { text-decoration: underline; }
.est .fee b { color: var(--b-coral-text); }
.est .fee span { color: var(--p-muted); }
.est .checks li { color: var(--p-ink); }
.est .pending { color: var(--p-muted); }
.bio .b-hero__bg::after { background: rgba(14, 32, 57, .86); }
.svc-card .b-photo, .mini-report { aspect-ratio: 1 / 1; }
#resenas h3 { font: 500 var(--t-card)/1.3 var(--font-text); }
.nos-photo { height: 100%; min-height: 520px; }
.close-bg { inset: 0; height: auto; }
.close-bg::after { background: linear-gradient(0deg, var(--b-foot) 0%, var(--b-foot) 42%, rgba(10,23,41,.78) 70%, rgba(10,23,41,.6) 100%); }
@media (max-width: 1023px) { .svc-card .b-photo, .mini-report { aspect-ratio: 16 / 9; } .nos-photo { min-height: 0; height: auto; aspect-ratio: 4 / 3; } }
@media (max-width: 639px) {
  #servicios { --hm: 2; }
  .svc-card .b-photo { aspect-ratio: 21 / 9; }
  .b-hero h1 { font-size: 34px; }
}
.svc-card { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.mini-report { width: 100%; min-width: 0; overflow: hidden; }
.mini-report .report { min-width: 0; }
.mini-report .report__grid { gap: var(--s-3); }
.mini-report .report__grid dd { font-size: 18px; }

/* property cards from data/propiedades.json */
.prop .prop__photo { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
.prop__rating { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 500; }
.star { width: 14px; height: 14px; fill: var(--b-coral-text); }
.prop__name { font: 500 18px/1.3 var(--font-text); }
.prop .prop__meta:first-of-type { margin-top: var(--s-1); }
main > section.props-head { height: auto; padding-bottom: var(--s-9); }
main > section.props-list { height: auto; padding-top: var(--s-8); }
.props-list .grid { row-gap: var(--s-8); }
.props-head .hero__kicker { color: #c9d4e3; }
img.bio__thumb { object-fit: cover; padding: 0; }
.bio__links a > .ico:last-child { margin-left: auto; color: var(--p-muted); }
#propiedades .prop .prop__photo { aspect-ratio: 4 / 3; }
@media (max-width: 639px) {
  #propiedades .group:first-child .grid { grid-template-columns: 1fr 1fr; }
  .props-list .grid { grid-template-columns: 1fr; }
  .props-list .prop { grid-column: auto; }
}
h1, h2 { hyphens: manual; }
main > section.section.props-head, main > section.section.props-list { height: auto !important; min-height: 0 !important; }
@media (max-width: 639px) { main > section.section.props-head { padding-bottom: var(--s-7); } }

/* ---------------------------------------------------------------- background layers (kit structure: img.layer as a direct child) */
.hero.b-hero > img.layer { z-index: 0; }
.hero.b-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,32,57,.94) 0%, rgba(14,32,57,.82) 38%, rgba(14,32,57,.35) 70%, rgba(14,32,57,.2) 100%),
    linear-gradient(0deg, rgba(10,23,41,.75) 0%, rgba(10,23,41,0) 45%);
}
.hero.b-hero > .wrap { position: relative; z-index: 1; }
footer.closing.footer--dark::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--b-foot) 0%, var(--b-foot) 44%, rgba(10,23,41,.8) 70%, rgba(10,23,41,.62) 100%);
}
footer.closing.footer--dark > .wrap { position: relative; z-index: 1; }
footer.closing > img.close-layer { object-position: 50% 70%; }

.resenas__title { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); }
.report__grid--one { grid-template-columns: 1fr; }

@media (max-width: 1023px) {
  .hero.b-hero::after { background: linear-gradient(0deg, rgba(14,32,57,.96) 0%, rgba(14,32,57,.9) 50%, rgba(14,32,57,.8) 100%); }
  .perks { max-width: none; }
}
@media (max-width: 639px) {
  .section-head--split { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------- tablet (640-1023): two-up rows, so each section stays one or two screens */
@media (min-width: 640px) and (max-width: 1023px) {
  .b-hero .perks { display: none; }
  #servicios .grid > .svc-card { grid-column: span 6; }
  #servicios .svc-card .b-photo, #servicios .mini-report { aspect-ratio: 16 / 9; }
  #propiedades .group:first-child .grid > .prop { grid-column: span 6; }
  #propiedades .prop .prop__photo { aspect-ratio: 16 / 10; }
  #resenas .grid > .review { grid-column: span 6; }
  #resenas .review:nth-child(3) { display: none; }
  .nos-photo { aspect-ratio: 21 / 9; }
  #servicios, #tarifa, #nosotros { --h: 2; }
  main > section#como-funciona { height: calc(2 * 100svh); }
}
@media (max-width: 639px) {
  #servicios, #tarifa, #nosotros { --hm: 2; }
  main > section#como-funciona { height: calc(2 * 100lvh); }
  .nos-photo { aspect-ratio: 16 / 9; }
}
@media (min-width: 800px) and (max-width: 1023px) { #servicios, #tarifa, #nosotros { --h: 1; } }
@media (min-width: 640px) and (max-width: 799px) { #nosotros { --h: 1; } }
/* short laptop screens (1024x768 and the like) */
@media (min-width: 1024px) and (max-height: 820px) {
  .b-hero .perks { display: none; }
  .est { padding: var(--s-5); gap: var(--s-3); }
  .est__fields { gap: var(--s-3); }
  .svc-card .b-photo, .mini-report { aspect-ratio: 4 / 3; }
  #nosotros { --h: 2; }
  .nos-photo { min-height: 0; height: auto; aspect-ratio: 4 / 5; }
  #contacto .closing__cta .section-head p { display: none; }
}
@media (min-width: 1280px) and (max-height: 820px) { #nosotros { --h: 1; } }
/* round 2 fixes */
.mini-report { overflow: visible; }
.svc-card.card--open { gap: var(--s-3); }
@media (max-width: 639px) {
  .section-head--split { display: grid; justify-items: start; }
  /* the hero on a phone (2026-11-23): the words, then the estimator phone right under the buttons, so its top and its
     question show on the first screen. Until now the words took a whole screen (100lvh, taller than the visible screen
     on an iPhone) and the hero two, which left a blank stretch of photo between the buttons and the phone. */
  main > section.hero.b-hero { height: auto; }
  .b-hero .hero__grid { display: flex; flex-direction: column; }
  .b-hero .hero__text { min-height: 0; }
  .b-hero .est { margin-top: 0; }
}
@media (min-width: 640px) and (max-width: 799px) {
  #servicios { --h: 1; }
  #servicios .svc-card .b-photo, #servicios .mini-report { aspect-ratio: 21 / 9; }
  #tarifa { --h: 1; }
  #tarifa .stack-6 { gap: var(--s-5); }
  #tarifa .report { padding: var(--s-5); gap: var(--s-4); }
}
@media (min-width: 1024px) and (max-height: 820px) { .svc-card .b-photo, .mini-report { aspect-ratio: 16 / 10; } }
.hero.b-hero > picture.layer, footer.closing > picture.layer { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero.b-hero > picture.layer > img, footer.closing > picture.layer > img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 60%); display: block; }
footer.closing > picture.close-layer > img { object-position: 50% 70%; }
.stats dd { font-size: var(--t-stat); }
@media (max-width: 639px) {
  #nosotros .nos-photo { display: block; aspect-ratio: 4 / 5; }
}
@media (max-width: 639px) {
  .section-head--split > .link { width: 100%; }
  #propiedades .group:first-child .prop .prop__meta:last-child { display: none; }
  #propiedades .group:first-child .prop .prop__photo { aspect-ratio: 16 / 10; }
}

/* /administracion */
.cot-photo { aspect-ratio: 4 / 3; margin-top: var(--s-4); }
@media (min-width: 640px) and (max-width: 1023px) { #comparacion { --h: 2; } .cot-photo { display: none; } }
@media (max-width: 639px) {
  #comparacion { --hm: 2; }
  #comparacion .b-photo { display: block; aspect-ratio: 4 / 3; }
  #cotizacion { --hm: 2; }
  .cot-photo { aspect-ratio: 16 / 10; }
}
@media (min-width: 1024px) { .faq.faq--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } .faq.faq--2 > .faq__item:nth-child(2) { padding-top: 0; } }
@media (min-width: 1024px) and (max-height: 820px) { .cot-photo { display: none; } }
.cot-photo { aspect-ratio: 16 / 10; }
@media (min-width: 1024px) and (max-width: 1279px) { #comparacion { --h: 2; } }
@media (max-width: 639px) {
  .faq > .faq__item { padding: var(--s-4) 0; }
  #oferta { --hm: 2; }
}
.pasos-photo { aspect-ratio: 21 / 8; margin-top: var(--s-7); }
@media (max-width: 1023px) { .pasos-photo { aspect-ratio: 16 / 9; } }
.pasos-photo, .pasos-photo { aspect-ratio: auto; height: clamp(120px, 20vh, 240px); }
@media (max-width: 1023px) { .pasos-photo { aspect-ratio: auto; height: clamp(120px, 18vh, 200px); } }
@media (max-width: 639px) { .pasos-photo { display: none; } #pasos { --hm: 1; } #preguntas.faq-admin { --hm: 2; } }
@media (max-width: 639px) { .nos-photo { aspect-ratio: 4 / 3 !important; } }
@media (min-width: 1024px) and (max-height: 820px) { .faq > .faq__item { padding: var(--s-4) 0; } }
@media (max-width: 639px) {
  #preguntas.faq-admin { --hm: 1; }
  .faq > .faq__item { padding: 12px 0; }
  .faq .faq__item > h3 { font-size: 17px; }
}
.comp-photo { height: 100%; min-height: 480px; }
@media (max-width: 1023px) { .comp-photo { min-height: 0; height: auto; aspect-ratio: 16 / 9; } }
@media (max-width: 639px) { #comparacion .comp-photo { display: block; aspect-ratio: 4 / 3; } }
.compare th, .compare td { padding: 11px 12px; }
@media (min-width: 1024px) and (max-height: 820px) { .faq > .faq__item { padding: 12px 0; } .faq .faq__item > h3 { font-size: 18px; } }

/* /administracion: Cómo lo hacemos */
.como-list { list-style: none; counter-reset: c; margin: 0; padding: 0; display: grid; gap: 0; }
.como-list li { counter-increment: c; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.como-list li::before { content: counter(c, decimal-leading-zero); grid-row: span 2; font: 800 18px/1.4 var(--font-display); color: var(--b-coral-text); }
.como-list h3 { font: 500 var(--t-card)/1.3 var(--font-text); margin: 0; }
.como-list p { margin: 4px 0 0; color: var(--ink); }
.como-ph { aspect-ratio: 4 / 5; height: auto; min-height: 0; }
.est .est__submit { background: var(--b-navy); color: #fff; border-color: var(--b-navy); }
@media (max-width: 1023px) { .como-ph { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) and (max-height: 820px) { .como-list li { padding: var(--s-3) 0; } .como-ph { aspect-ratio: 1 / 1; } }
@media (min-width: 640px) and (max-width: 799px) { .como-ph { aspect-ratio: 21 / 9; } }
/* /administracion round 1 */
.b-hero h1 { font-size: clamp(38px, 3.5vw, 52px); }
.cot-photo2 { aspect-ratio: 16 / 10; margin-top: var(--s-5); }
#tarifa .report { padding: var(--s-7); gap: var(--s-6); }
#tarifa .report__grid dd { font-size: 30px; }
#tarifa .checks li { font-size: 18px; }
#tarifa .checks { gap: var(--s-4); }
@media (min-width: 640px) and (max-width: 1023px) { .cot-photo2 { aspect-ratio: 21 / 9; } }
@media (min-width: 1024px) and (max-height: 820px) { .cot-photo2 { aspect-ratio: 21 / 9; } #tarifa .report { padding: var(--s-6); } }
@media (max-width: 639px) { #tarifa .report { padding: var(--s-5); } #tarifa .report__grid dd { font-size: 22px; } }
@media (min-width: 640px) and (max-width: 799px) {
  .cot-photo2 { display: none; }
  #tarifa .checks li { font-size: 16px; } #tarifa .checks { gap: var(--s-2); }
  #tarifa .report { padding: var(--s-5); gap: var(--s-4); } #tarifa .report__grid dd { font-size: 24px; }
}
.cot-photo2 { aspect-ratio: auto; height: 100%; min-height: 0; margin-top: 0; }
#cotizacion .form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); }
#cotizacion .form > .field:nth-of-type(n+6), #cotizacion .form > .btn-row, #cotizacion .form > .form__status { grid-column: 1 / -1; }
/* 2026-11-30 (W2): two fields side by side with error lines of different length keep label and box at the top */
#cotizacion .form > .field { align-content: start; }
#cotizacion .form textarea { min-height: 88px; }
@media (max-width: 1023px) { .cot-photo2 { height: auto; aspect-ratio: 16 / 9; } }
@media (max-width: 639px) { #cotizacion .form { grid-template-columns: 1fr; } .b-hero h1 { font-size: 28px; } }
.cot-photo2 { height: auto; aspect-ratio: 4 / 3; }
@media (min-width: 640px) and (max-width: 1023px) { .cot-photo2 { aspect-ratio: 21 / 9; } }
@media (min-width: 1024px) and (max-height: 820px) { .como-ph { aspect-ratio: 4 / 3; } }
@media (max-width: 639px) { .como-ph { aspect-ratio: 21 / 9; } .como-list li { padding: var(--s-3) 0; } .cot-photo2 { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) and (max-height: 820px) { #cotizacion { --h: 2; } .como-list li { padding: var(--s-2) 0; } #como .stack-6 { gap: var(--s-5); } }
@media (max-width: 639px) { main h2, footer.closing h2 { font-size: 26px; } }
html[data-buttons] .est .btn.btn--secondary { background: var(--b-navy); color: #fff; border: 1px solid var(--b-navy); height: 48px; padding: 0 var(--s-6); border-radius: var(--r-btn); text-decoration: none; justify-content: center; }
html[data-buttons] .est .btn.btn--secondary::after, html[data-buttons] .est .btn.btn--secondary::before { display: none; }

/* 2026-11-23, Taste pass: on a touch screen every stand-alone text link (class "link") is a 44 px target, also on
   pages without suave.css such as /links */
@media (pointer: coarse) { a.link { display: inline-flex; align-items: center; min-height: 44px; } }
