/* contratistas-hispanos.html + gracias pages (campaign EEUU-HISPANOS, servicios del hogar).
   Same brand system as the site (tokens.css, main.css); practical register: larger type, high contrast for
   reading in the sun, big touch targets. Mobile first. Page-local tokens below; everything else is a token. */

.hogar {
  --c-chat-bg: #e9e4d8;        /* chat wallpaper: warm paper, darker than the page */
  --c-chat-in: #ffffff;        /* incoming bubble */
  --c-chat-out: #d4ecd9;       /* outgoing (assistant) bubble: soft green, generic, no brand */
  --c-ok: #1d7a43;             /* done / answered (5.3:1 on white) */
  --c-ok-soft: #dff1e5;
  --c-miss: #b3261e;           /* missed call red (6.2:1 on white) */
  --c-miss-soft: #fbe3e0;
  --c-go: #8a5a00;             /* in progress (5.6:1 on brass-soft) */
  --c-go-soft: #f8ecc9;
  --c-map: #dde3df;
  --c-map-road: #ffffff;
  --c-map-park: #c9dccb;
  --phone-w: min(100%, 360px);
  --tap: 52px;                 /* minimum touch target for form controls */
}

body.hogar main { display: block; }
.hogar .btn--big { padding: 1em 1.4em; font-size: var(--fs-1); line-height: 1.2; min-height: 56px; justify-content: center; text-align: center; text-wrap: balance; }
.hogar .btn--block { width: 100%; }

/* ---------- header: brand + language + one CTA, no menu ---------- */
.hbar {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-1) var(--gutter);
  transition: background-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.hbar.is-scrolled { background: var(--c-bg); box-shadow: 0 10px 24px -20px var(--c-shadow); }
.hbar__brand img { height: 38px; width: auto; }
.hbar__actions { display: flex; align-items: center; gap: var(--sp-1); }
.hbar .lang-switch button { min-width: 44px; min-height: 44px; }
.hbar__cta { min-height: 44px; }

/* ---------- hero ---------- */
.hhero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + var(--sp-3)) 0 0; }
.hhero__grid {
  --gy: 0px;
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background:
    linear-gradient(var(--c-line) 1px, transparent 1px) 0 var(--gy) / 100% 44px,
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px) 0 0 / 44px 100%;
  -webkit-mask: radial-gradient(ellipse at 25% 30%, #000 25%, transparent 75%);
          mask: radial-gradient(ellipse at 25% 30%, #000 25%, transparent 75%);
}
.hhero__inner { position: relative; display: grid; gap: var(--sp-4); align-items: center; padding-bottom: var(--sp-4); }
.hhero__copy { display: grid; gap: var(--sp-2); }
.hhero__title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(2.1rem, min(8.4vw, 7.4vh), 4.6rem); text-wrap: balance; color: var(--c-text);
}
.hhero__title em { font-style: italic; font-weight: 400; color: var(--c-thread); }
.hhero__lede { font-size: var(--fs-1); line-height: 1.45; max-width: 46ch; color: var(--c-text); }
.hhero__act { display: grid; gap: var(--sp-1); justify-items: start; margin-top: var(--sp-1); }
.hhero__fine { font-size: var(--fs-0); font-weight: 600; color: var(--c-text); text-wrap: balance; }
.hhero__fine--light { color: var(--c-on-dark-soft); }

/* signature stage: missed calls answered one by one */
.calls {
  display: grid; gap: var(--sp-2); padding: var(--sp-3); border-radius: 22px; width: min(100%, 460px); margin-inline: auto;
  background: var(--c-velvet); color: var(--c-on-dark); box-shadow: 0 30px 60px -36px var(--c-shadow);
}
.calls__clock { font-size: var(--fs--1); font-weight: 600; color: var(--c-on-dark-soft); letter-spacing: 0.04em; }
.calls__list { display: grid; gap: var(--sp-1); }
.call {
  position: relative; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.2rem 0.8rem; align-items: center;
  padding: 0.8rem 0.9rem; border-radius: 14px; background: var(--c-velvet-2);
}
.call__ic { grid-row: span 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--c-miss); transition: background-color var(--dur-base) var(--ease-out); }
.call__ic svg { width: 1.2rem; height: 1.2rem; fill: var(--c-white); }
.call__txt { font-size: var(--fs--1); line-height: 1.35; }
.call__txt b { display: block; font-size: var(--fs-0); }
.call__txt span { color: var(--c-on-dark-soft); }
.call__ok {
  grid-column: 2; font-size: var(--fs--1); font-weight: 600; line-height: 1.35; color: var(--c-velvet);
  background: var(--c-accent); border-radius: 8px; padding: 0.3rem 0.55rem; justify-self: start;
  opacity: 0; transform: translateY(6px); transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.call.is-ok .call__ic { background: var(--c-ok); }
.call.is-ok .call__ok { opacity: 1; transform: none; }
.calls__sum { display: flex; align-items: baseline; gap: 0.6rem; font-size: var(--fs--1); color: var(--c-on-dark-soft); border-top: 1px dashed var(--c-chalk); padding-top: var(--sp-2); }
.calls__n { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-3); line-height: 1; color: var(--c-accent); min-width: 1ch; }

/* dispatch board (split-flap) */
.board { --flap-top: #2b4148; --flap-bot: #22363c; --flap-ink: #fff6dc; background: var(--c-velvet-3); color: var(--c-on-dark); border-block: 3px solid var(--c-dominant); padding: var(--sp-3) 0; }
.board__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-2) var(--sp-3); }
.board__label { font-size: var(--fs--1); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent); }
.board__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem clamp(0.8rem, 2vw, 1.6rem); }
.board__f { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; font-size: clamp(0.95rem, 4.2vw, 1.2rem); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: 0.02em; --fh: 1.7em; }
.fl { position: relative; display: block; width: 0.78em; height: var(--fh); perspective: 420px; line-height: var(--fh); text-align: center; }
.fl__t, .fl__b, .fl__x { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: var(--flap-top); color: var(--flap-ink); }
.fl__t, .fl__x { top: 0; border-radius: 3px 3px 0 0; box-shadow: inset 0 -1px 0 #000; }
.fl__b { bottom: 0; border-radius: 0 0 3px 3px; background: var(--flap-bot); }
.fl__x { transform-origin: 50% 100%; backface-visibility: hidden; opacity: 0; z-index: 2; }
.fl--sp .fl__t, .fl--sp .fl__b { background: transparent; border: 0; box-shadow: none; }
.fl s { position: absolute; left: 0; right: 0; height: var(--fh); line-height: var(--fh); text-decoration: none; }
.fl__t s, .fl__x s { top: 0; }
.fl__b s { bottom: 0; }
.board__ok { font-size: var(--fs--1); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--c-ok); border-radius: 999px; padding: 0.25rem 0.8rem; }
.board__list { display: none; }
.board.is-static .board__row { display: none; }
.board.is-static .board__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; list-style: none; padding: 0; margin: 0; font-size: var(--fs--1); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.board.is-static .board__list span + span::before { content: " \00b7  "; color: var(--c-accent); }

/* ---------- sections ---------- */
.hsec { padding: var(--sp-5) 0; }
.hsec__h { font-size: clamp(2rem, 6.4vw, 3.8rem); max-width: 22ch; margin-bottom: var(--sp-4); }
.hsec--tint { background: var(--c-surface); }
.hsec--dark {
  color: var(--c-on-dark);
  background: radial-gradient(120% 80% at 10% 0%, var(--c-velvet-2) 0%, transparent 55%), var(--c-velvet);
}
.hsec--dark .label { margin-bottom: var(--sp-2); display: block; }
.hsec__cta { display: flex; justify-content: center; margin-top: var(--sp-5); }

/* problem cards */
.pains { display: grid; gap: var(--sp-2); }
.pain {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: var(--sp-2); align-items: start; padding: var(--sp-3);
  background: var(--c-white); border-radius: var(--radius-m); box-shadow: inset 0 0 0 var(--border) var(--c-line);
  font-size: var(--fs-1); line-height: 1.4;
}
.pain strong { color: var(--c-text); }
.pain__ic svg { width: 3.2rem; height: 3.2rem; fill: none; stroke: var(--c-thread); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pain__moon { fill: var(--c-accent); stroke: none; }

.stat {
  display: grid; gap: var(--sp-2); margin-top: var(--sp-4); padding: var(--sp-4) var(--sp-3); border-radius: var(--radius-m);
  background: var(--c-dominant); color: var(--c-on-dark);
}
.stat__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 18vw, 8rem); line-height: 0.9; color: var(--c-accent); }
.stat__p { font-size: var(--fs-1); line-height: 1.45; }
.stat__p strong { color: var(--c-accent); }
.stat__src { margin-top: var(--sp-1); font-size: var(--fs--1); color: var(--c-on-dark-soft); }

/* solution steps */
.step { display: grid; gap: var(--sp-4); align-items: center; padding-top: var(--sp-5); }
.step + .step { border-top: 1px dashed var(--c-chalk); margin-top: var(--sp-5); }
.step__copy { display: grid; gap: var(--sp-2); }
.step__n { font-size: var(--fs--1); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--c-accent); }
.step__h { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 5.6vw, 3rem); line-height: 1.02; }
.step__lede { font-size: var(--fs-1); color: var(--c-on-dark-soft); }
.checks { display: grid; gap: var(--sp-1); }
.checks li { position: relative; padding-left: 2rem; font-size: var(--fs-0); line-height: 1.5; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0.1em; display: grid; place-items: center; width: 1.4rem; height: 1.4rem;
  border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); font-size: 0.8rem; font-weight: 700;
}

/* phone mockups (generic: no real brands) */
.phone {
  width: var(--phone-w); margin-inline: auto; padding: 10px; border-radius: 38px; background: var(--c-velvet-3);
  box-shadow: 0 0 0 2px var(--c-velvet-2), 0 40px 70px -40px var(--c-velvet-3);
}
.phone__screen { position: relative; overflow: hidden; border-radius: 30px; background: var(--c-chat-bg); color: var(--c-text); min-height: 420px; display: flex; flex-direction: column; }
.chat__top { display: flex; align-items: center; gap: 0.7rem; padding: 1.4rem 1rem 0.8rem; background: var(--c-dominant); color: var(--c-on-dark); }
.chat__av { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); font-weight: 700; font-size: var(--fs--1); }
.chat__who { display: grid; line-height: 1.2; }
.chat__who small { color: var(--c-on-dark-soft); font-size: 0.78rem; }
.chat__body { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.9rem 0.8rem 1.2rem; flex: 1; }
.msg { max-width: 84%; padding: 0.5rem 0.7rem; border-radius: 12px; font-size: 0.92rem; line-height: 1.38; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); }
.msg--in { align-self: flex-start; background: var(--c-chat-in); border-top-left-radius: 3px; }
.msg--out { align-self: flex-end; background: var(--c-chat-out); border-top-right-radius: 3px; }
.msg--photo { padding: 0.3rem; width: 62%; }
.msg--photo svg { width: 100%; height: auto; border-radius: 9px; }
.ph__bg { fill: var(--c-surface); }
.ph__pipe { fill: none; stroke: var(--c-text-soft); stroke-width: 9; }
.ph__joint { fill: var(--c-muted); }
.ph__drop { fill: var(--c-cyan); }
.msg__typing { position: absolute; display: flex; gap: 4px; padding: 0.6rem 0.75rem; border-radius: 12px; background: var(--c-chat-out); right: 0.8rem; bottom: 0.8rem; }
.msg__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-text-soft); animation: hogar-dot 1s infinite ease-in-out; }
.msg__typing i:nth-child(2) { animation-delay: 0.15s; }
.msg__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hogar-dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }
.chat__body { position: relative; }
.notif {
  position: absolute; left: 0.6rem; right: 0.6rem; top: 0.6rem; display: flex; gap: 0.7rem; align-items: center;
  padding: 0.7rem 0.8rem; border-radius: 16px; background: var(--c-white); box-shadow: 0 14px 30px -14px var(--c-shadow);
  font-size: 0.85rem; line-height: 1.3;
}
.notif small { display: block; color: var(--c-text-soft); }
.notif__dot { flex: none; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 4px var(--c-ok-soft); }
/* one-tap approve on the owner's phone */
.notif__btn { flex: none; margin-left: auto; padding: 0.45rem 0.8rem; border-radius: 999px; background: var(--c-ok); color: var(--c-white); font-weight: 800; font-size: 0.8rem; }
.step__media { margin: 0; display: grid; gap: var(--sp-2); justify-items: center; }
.step__note { max-width: 36ch; font-size: var(--fs--1); line-height: 1.45; color: var(--c-on-dark-soft); text-align: center; }

.phone--jobs .phone__screen { background: var(--c-bg); }
.jobs__top { display: grid; padding: 1.4rem 1rem 0.8rem; background: var(--c-dominant); color: var(--c-on-dark); line-height: 1.25; }
.jobs__top b { font-size: var(--fs-1); }
.jobs__top small { color: var(--c-on-dark-soft); }
.map { width: 100%; height: auto; }
.map__bg { fill: var(--c-map); }
.map__blk { stroke: var(--c-map-road); stroke-width: 10; fill: none; }
.map__park { fill: var(--c-map-park); }
.map__route { fill: none; stroke: var(--c-dominant); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 0; }
.map__pin { fill: var(--c-white); stroke: var(--c-dominant); stroke-width: 3; }
.map__pin--done { fill: var(--c-ok); stroke: var(--c-white); }
.map__pin--go { fill: var(--c-accent); stroke: var(--c-white); }
.map__truck { fill: var(--c-thread); stroke: var(--c-white); stroke-width: 2; }
.jobs { display: grid; gap: 0.4rem; padding: 0.7rem; }
.job { display: grid; grid-template-columns: 2.8rem 1fr auto; gap: 0.6rem; align-items: center; padding: 0.6rem 0.7rem; border-radius: 12px; background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line); }
.job__t { font-weight: 700; font-size: 0.85rem; color: var(--c-dominant); }
.job__d { display: grid; line-height: 1.25; font-size: 0.9rem; }
.job__d small { color: var(--c-text-soft); font-size: 0.76rem; }
.job__s { font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 999px; background: var(--c-surface); color: var(--c-text-soft); }
.job__s--done { background: var(--c-ok-soft); color: var(--c-ok); }
.job__s--go { background: var(--c-go-soft); color: var(--c-go); }

/* real case */
.caso { display: grid; gap: var(--sp-4); }
.caso__copy { display: grid; gap: var(--sp-2); }
.caso__copy .hsec__h { margin-bottom: 0; }
.caso__p { font-size: var(--fs-1); line-height: 1.5; max-width: 50ch; }
.caso__media { display: grid; gap: var(--sp-2); }
/* Logix Móvil dispatch screen (illustrative app UI) */
.lgx { margin: 0; border-radius: 18px; overflow: hidden; background: var(--c-white); box-shadow: 0 0 0 1px var(--c-line), 0 30px 60px -36px var(--c-velvet-3); }
.lgx__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; background: var(--c-velvet); color: var(--c-on-dark); font-size: var(--fs--1); }
.lgx__logo { font-weight: 800; letter-spacing: 0.02em; }
.lgx__logo b { color: var(--c-accent); font-weight: 800; margin-left: 0.15em; }
.lgx__date { opacity: 0.85; }
.lgx__live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.lgx__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 4px var(--c-ok-soft); }
.lgx__body { display: grid; }
.lgx__map { display: block; width: 100%; height: auto; }
.lgx__land { fill: var(--c-map); }
.lgx__water { fill: var(--c-map-park); }
.lgx__streets path { fill: none; stroke: var(--c-map-road); stroke-width: 5; }
.lgx__route { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.lgx__route--a, .lgx__dot--a, .lgx__van--a { stroke: var(--c-dominant); fill: var(--c-dominant); }
.lgx__route--b, .lgx__dot--b, .lgx__van--b { stroke: var(--c-thread); fill: var(--c-thread); }
.lgx__route--c, .lgx__dot--c, .lgx__van--c { stroke: var(--c-go); fill: var(--c-go); }
.lgx__route { fill: none; }
.lgx__hub { fill: var(--c-velvet); stroke: var(--c-white); stroke-width: 3; }
.lgx__stops circle { fill: var(--c-white); stroke: var(--c-text); stroke-width: 2; }
.lgx__stops circle.is-done { fill: var(--c-ok); stroke: var(--c-white); }
.lgx__van { stroke: var(--c-white); stroke-width: 3; }
.lgx__list { list-style: none; margin: 0; padding: 0.5rem 0.75rem 0.75rem; display: grid; gap: 0.4rem; font-size: var(--fs--1); }
.lgx__list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: 10px; background: var(--c-bg); }
.lgx__dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.lgx__dot--a { background: var(--c-dominant); } .lgx__dot--b { background: var(--c-thread); } .lgx__dot--c { background: var(--c-go); }
.lgx__list em { font-style: normal; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; }
.lgx__ok { color: var(--c-ok); background: var(--c-ok-soft); }
.lgx__warn { color: var(--c-go); background: var(--c-go-soft); }
@media (min-width: 1024px) {
  .lgx__body { grid-template-columns: 1.5fr 1fr; align-items: center; }
  .lgx__list { padding: 0.75rem; }
}

/* testimonials */
.quotes { display: grid; gap: var(--sp-2); }
.quote { margin: 0; padding: var(--sp-3); border-radius: var(--radius-m); background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line); display: grid; gap: var(--sp-2); }
.quote p { margin: 0; font-size: var(--fs-1); line-height: 1.45; }
.quote__by { display: flex; align-items: center; gap: 0.7rem; font-size: var(--fs--1); color: var(--c-text-soft); }
.quote__by b { color: var(--c-text); }
.quote__av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-dominant); color: var(--c-white); font-weight: 800; flex: none; }
@media (min-width: 720px) { .quotes { grid-template-columns: 1fr 1fr; } }

/* comparison */
.comp { display: grid; gap: var(--sp-1); }
.comp__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1); }
.comp__row > span { padding: var(--sp-2); border-radius: var(--radius-m); font-size: var(--fs-0); line-height: 1.4; }
.comp__row--head > span { font-weight: 700; font-size: var(--fs--1); letter-spacing: 0.06em; text-transform: uppercase; padding-block: var(--sp-1); }
.comp__row--head > span:first-child { color: var(--c-text-soft); }
.comp__row--head > span:last-child { color: var(--c-dominant); }
/* "them" stays fully readable in the sun: a red ✕ marks it instead of a strike-through across the letters */
.comp__them { background: var(--c-bg); color: var(--c-text); font-size: var(--fs-0); }
.comp__them::before { content: "✕ "; color: var(--c-miss); font-weight: 800; }
.comp__us { background: var(--c-dominant); color: var(--c-on-dark); font-weight: 600; }
.comp__us strong { color: var(--c-accent); font-size: 1.15em; }

/* trust */
.trust { background: var(--c-go-soft); }
.trust__list { display: grid; gap: var(--sp-1); }
.trust__list li { display: flex; gap: var(--sp-2); align-items: center; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-m); background: var(--c-white); font-size: var(--fs-1); font-weight: 500; line-height: 1.35; }
.trust__ic { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--c-dominant); color: var(--c-accent); font-weight: 700; }
.trust__slots { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-3); }
.slot { padding: 0.6rem 1rem; border-radius: 999px; border: var(--stitch) dashed var(--c-muted); color: var(--c-text-soft); font-size: var(--fs--1); font-weight: 600; }

/* how it works */
.how { display: grid; gap: var(--sp-2); counter-reset: how; }
.how__step { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3); border-radius: var(--radius-m); background: var(--c-white); box-shadow: inset 0 0 0 var(--border) var(--c-line); }
.how__n { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--c-dominant); color: var(--c-accent); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2); }
.how__step p { font-size: var(--fs-1); font-weight: 600; line-height: 1.3; }

/* ---------- quote form ---------- */
.cotizar { scroll-margin-top: var(--nav-h); }
.cotizar__grid { display: grid; gap: var(--sp-4); }
.cotizar__copy .hsec__h { margin-bottom: var(--sp-2); }
.cotizar__p { font-size: var(--fs-1); color: var(--c-on-dark-soft); max-width: 40ch; }
.qform { display: grid; gap: var(--sp-2); padding: var(--sp-3); border-radius: 18px; background: var(--c-bg); color: var(--c-text); box-shadow: 0 30px 60px -40px var(--c-velvet-3); }
.qf { display: grid; gap: 0.35rem; }
.qf label { font-weight: 600; font-size: var(--fs-0); line-height: 1.3; }
.qf input:not([type="checkbox"]), .qf select, .qf textarea {
  width: 100%; min-height: var(--tap); padding: 0.75rem 0.9rem; border-radius: var(--radius-m);
  border: var(--border) solid var(--c-text-soft); background: var(--c-white); font-size: 1.0625rem; color: var(--c-text);
}
.qf textarea { min-height: 8rem; resize: vertical; line-height: 1.45; }
.qf input:focus-visible, .qf select:focus-visible, .qf textarea:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 1px; border-color: var(--c-dominant); }
.qf [aria-invalid="true"] { border-color: var(--c-miss); box-shadow: 0 0 0 1px var(--c-miss); }
.qf__phone { display: grid; grid-template-columns: 7.2rem 1fr; gap: 0.5rem; }
.qf__help { display: flex; justify-content: space-between; gap: var(--sp-1); font-size: var(--fs--1); color: var(--c-text-soft); }
.qf__count { font-variant-numeric: tabular-nums; font-weight: 600; }
.qf__count.is-ok { color: var(--c-ok); }
.qf__err { font-size: var(--fs--1); font-weight: 600; color: var(--c-miss); min-height: 0; }
.qf__err:empty { display: none; }
.qf--check { grid-template-columns: 1.6rem 1fr; align-items: start; column-gap: 0.7rem; }
.qf--check input { width: 1.6rem; height: 1.6rem; margin: 0.1rem 0 0; accent-color: var(--c-dominant); }
.qf--check label { font-weight: 400; font-size: var(--fs--1); line-height: 1.45; }
.qf--check .qf__err { grid-column: 2; }
.qform__foot { gap: var(--sp-1); margin-top: var(--sp-1); }
.qform__legal { font-size: var(--fs--1); color: var(--c-text-soft); text-align: center; }
.qform__status { text-align: center; }

/* ---------- quote form: 3 steps (qform.js). Without JS every step shows at once. ---------- */
.qform > * { min-width: 0; }
.qprog, .qstep { grid-column: 1 / -1; }
.qstep { display: grid; gap: var(--sp-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.qstep[hidden] { display: none; }
.qstep__h { font-family: var(--font-display); font-size: var(--fs-1); line-height: 1.2; }
.qstep__h:focus { outline: none; }
.qstep__grid { display: grid; gap: var(--sp-2); }
.qprog { display: grid; gap: 0.4rem; }
.qprog__dots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.qprog__dot { display: grid; gap: 0.25rem; justify-items: start; padding-top: 0.5rem; border-top: 4px solid var(--c-line); color: var(--c-text-soft); font-size: var(--fs--1); line-height: 1.2; }
.qprog__dot.is-on { border-top-color: var(--c-accent); color: var(--c-text); font-weight: 600; }
.qprog__dot.is-done { border-top-color: var(--c-dominant); color: var(--c-dominant); }
.qprog__n { display: none; }
.qprog__t { overflow-wrap: anywhere; }
.qprog__now { font-size: var(--fs--1); font-weight: 600; color: var(--c-text-soft); }
.qform:not(.is-js) .qprog, .qform:not(.is-js) .qnav { display: none; }
.qbase { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.9rem 1rem; border-radius: var(--radius-m); background: var(--c-dominant); color: var(--c-on-dark); }
.qbase p { font-size: var(--fs--1); color: var(--c-on-dark-soft); margin-top: 0.15rem; }
.qbase__ck { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); font-weight: 700; }
.qgroup { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 0.6rem; }
.qgroup legend { padding: 0; font-weight: 600; font-size: var(--fs-0); line-height: 1.3; margin-bottom: 0.4rem; }
.qgroup__hint { font-weight: 400; font-size: var(--fs--1); color: var(--c-text-soft); margin-left: 0.4rem; }
.qgroup[aria-invalid="true"] legend { color: var(--c-miss); }
.qmods { display: grid; gap: 0.6rem; }
.qmod, .qchip { position: relative; cursor: pointer; }
.qmod input, .qchip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.qmod__box { display: grid; gap: 0.2rem; min-height: var(--tap); padding: 0.75rem 0.9rem 0.75rem 2.6rem; border-radius: var(--radius-m); background: var(--c-white); border: var(--border) solid var(--c-line); position: relative; line-height: 1.3; }
.qmod__box::before { content: ""; position: absolute; left: 0.85rem; top: 0.85rem; width: 1.15rem; height: 1.15rem; border-radius: 4px; border: 2px solid var(--c-text-soft); background: var(--c-white); }
.qmod__box small { color: var(--c-text-soft); font-size: var(--fs--1); }
.qmod input:checked + .qmod__box { border-color: var(--c-dominant); box-shadow: 0 0 0 1px var(--c-dominant); }
.qmod input:checked + .qmod__box::before { background: var(--c-dominant); border-color: var(--c-dominant); }
.qmod input:checked + .qmod__box::after { content: ""; position: absolute; left: 1.2rem; top: 0.95rem; width: 0.35rem; height: 0.65rem; border: solid var(--c-white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.qchips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.qchip span { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0.5rem 1rem; border-radius: 999px; background: var(--c-white); border: var(--border) solid var(--c-text-soft); font-size: var(--fs-0); line-height: 1.2; }
.qchip input:checked + span { background: var(--c-dominant); border-color: var(--c-dominant); color: var(--c-on-dark); font-weight: 600; }
.qmod input:focus-visible + .qmod__box, .qchip input:focus-visible + span { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.qnav { display: flex; gap: var(--sp-1); justify-content: space-between; margin-top: var(--sp-1); }
.qnav .btn { flex: 1 1 0; }
.qnav--solo { justify-content: center; margin-top: 0; }
.qnav--solo .btn { flex: 0 0 auto; }
.qform .btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-text-soft); }
.qform .btn--ghost:hover { border-color: var(--c-dominant); color: var(--c-dominant); }
.qts { min-height: 0; }

/* ---------- FAQ + close + footer ---------- */
.hogar .dudas { padding: var(--sp-5) 0; }
.hogar .dudas summary { font-size: var(--fs-1); }
/* keep the floating WhatsApp button off the FAQ toggles and the comparison column on phones */
@media (max-width: 719px) {
  .hogar .dudas summary { padding-right: 3.6rem; }
  .comp { margin-right: 2.6rem; }
}
.hclose { background: var(--c-dominant); color: var(--c-on-dark); padding: var(--sp-5) 0; }
.hclose__inner { display: grid; gap: var(--sp-3); justify-items: start; }
.hclose .h2 { font-size: clamp(2.1rem, 6.6vw, 4.4rem); max-width: 18ch; }
.hfoot { background: var(--c-velvet); color: var(--c-on-dark-soft); padding: var(--sp-4) 0 calc(var(--sp-4) + 72px); }
.hfoot__inner { display: grid; gap: var(--sp-2); justify-items: start; font-size: var(--fs--1); }
.hfoot__logo { height: 36px; width: auto; filter: brightness(0) invert(0.93); }
.hfoot__links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hfoot a { color: var(--c-on-dark); text-underline-offset: 0.25em; }
.hfoot a:hover { color: var(--c-accent); }

/* floating WhatsApp: small and quiet (secondary contact) */
.hwa {
  position: fixed; right: max(var(--gutter), env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: calc(var(--z-nav) - 1);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-dominant); box-shadow: 0 0 0 2px var(--c-bg), 0 12px 24px -10px var(--c-shadow);
  transition: transform var(--dur-base) var(--ease-out);
}
.hwa svg { width: 28px; height: 28px; }
.hwa__bubble { fill: none; stroke: var(--c-white); stroke-width: 1.8; stroke-linejoin: round; }
.hwa__phone { fill: var(--c-white); }
.hwa:hover { transform: scale(1.06); }
.hwa:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 4px; }

/* ---------- thank-you pages ---------- */
.gpage { min-height: 100svh; display: flex; flex-direction: column; }
.gpage main { flex: 1; }
.ghero { padding: calc(var(--nav-h) + var(--sp-4)) 0 var(--sp-5); }
.ghero__inner { display: grid; gap: var(--sp-3); max-width: 720px; }
.ghero__ok { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--c-ok); color: var(--c-white); font-size: 2rem; font-weight: 700; }
.ghero__h { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.04; text-wrap: balance; }
.ghero__p { font-size: var(--fs-1); line-height: 1.45; color: var(--c-text-soft); }
.quiz { display: grid; gap: var(--sp-3); padding: var(--sp-3); border-radius: 18px; background: var(--c-velvet); color: var(--c-on-dark); }
.quiz__intro { font-size: var(--fs-1); font-weight: 600; line-height: 1.35; }
.quiz__bar { height: 6px; border-radius: 999px; background: var(--c-velvet-2); overflow: hidden; }
.quiz__fill { height: 100%; width: 0; background: var(--c-accent); transition: width var(--dur-base) var(--ease-out); }
.quiz__screen { display: grid; gap: var(--sp-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz__screen[hidden] { display: none; }
.quiz__step { display: block; margin-bottom: var(--sp-1); font-family: var(--font-body); font-size: var(--fs--1); color: var(--c-on-dark-soft); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.quiz__q { padding: 0; }
.quiz__q { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 5.4vw, 2.4rem); line-height: 1.1; }
.quiz__q:focus { outline: none; }
.quiz__opts { display: grid; gap: var(--sp-1); }
.quiz__opt {
  min-height: 64px; padding: 1rem 1.2rem; border-radius: 14px; border: var(--border) solid var(--c-on-dark-soft); cursor: pointer;
  background: transparent; color: var(--c-on-dark); font-size: var(--fs-1); font-weight: 600; text-align: left;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.quiz__opt:hover, .quiz__opt:focus-visible { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
.quiz__back { justify-self: start; background: none; border: 0; padding: 0.6rem 0; min-height: 44px; color: var(--c-on-dark-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; }
.result { display: grid; gap: var(--sp-2); }
.result__h { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.1; }
.result__p { font-size: var(--fs-1); line-height: 1.45; color: var(--c-on-dark-soft); }
.cal { width: 100%; min-height: 680px; border: 0; border-radius: 12px; background: var(--c-bg); }
.cal-fallback { display: grid; gap: var(--sp-2); justify-items: start; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .hsec { padding: var(--sp-6) 0; }
  .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pain { grid-template-columns: 1fr; }
  .stat { grid-template-columns: auto 1fr; align-items: center; gap: var(--sp-4); padding: var(--sp-4); }
  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how__step { flex-direction: column; align-items: flex-start; }
  .qform { padding: var(--sp-4); }
  .qstep__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-3); }
  .qf--wide { grid-column: 1 / -1; }
  .qmods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz__opts { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (min-width: 1024px) {
  .hhero__inner { grid-template-columns: 1.15fr 1fr; gap: var(--sp-5); min-height: calc(100svh - var(--nav-h) - 3.5rem); padding-bottom: var(--sp-5); }
  .step { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .step--flip .step__copy { order: 2; }
  .caso { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--sp-6); }
  .cotizar__grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; gap: var(--sp-6); }
  .cotizar__copy { position: sticky; top: calc(var(--nav-h) + var(--sp-3)); }
}
/* short laptop screens: hero must not overflow under the fixed bar */
@media (min-width: 1024px) and (max-height: 720px) {
  .hhero__inner { min-height: 0; }
  .calls { padding: var(--sp-2); }
}
@media (max-width: 420px) {
  .hbar__brand img { height: 30px; }
  .hbar__cta { padding-inline: 0.8em; }
  .comp__row > span { padding: var(--sp-1) 0.7rem; font-size: var(--fs--1); }
  .phone__screen { min-height: 0; }
}
@media (max-width: 359px) {
  .hbar__cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .msg__typing { display: none; }
  .call__ok, .hwa, .quiz__fill, .quiz__opt { transition: none; }
}

/* honeypot: off-screen for people, still filled by naive bots */
.qf__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Success state of the quote form: the quote and booking arrive by email. */
.qdone{text-align:center;padding:clamp(24px,5vw,48px) 16px}
.qdone .qbase__ck{display:inline-grid;margin-bottom:12px}
.qdone p{max-width:46ch;margin:8px auto 0}

.qform__after { font-size: var(--fs--1); color: var(--c-text-soft); text-align: center; margin: 0 0 12px; }
