/* Distrito Countries · Home redesign (public home only).
   Loaded after styles.css and ONLY on index.html. Header, zones bar, module
   strip, bottom nav, assistant and auth are never targeted here. Motion uses
   transform/opacity only and honours prefers-reduced-motion.
   The body:not(.account-page) prefix is kept only where a styles.css rule must
   be overridden; new redesign classes are unprefixed. */

body:not(.account-page) { --hr-forest:#063047; --hr-green:#0B6B57; --hr-green-strong:#166534;
  --hr-marker:#2F6B57; --hr-commerce:#A76551; --hr-ink:#102A38; --hr-muted:#526A63;
  --hr-muted-soft:#5D6F68; --hr-line:#DDE8E2; --hr-line-soft:#E7EEE9; --hr-surface:#FFFFFF;
  --hr-surface-2:#FAFBF8; --hr-radius:12px; --hr-radius-sm:10px;
  --home-mobile-gutter:16px; --home-card-inset:16px; --home-card-radius:14px; }

/* ── Hero · two columns (overrides styles.css hero rules) ── */
body:not(.account-page) .home-hero-inner { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:clamp(24px,4vw,56px); align-items:center; max-width:1160px; }
body:not(.account-page) .home-hero-text { text-align:left; min-width:0; }
body:not(.account-page) .home-hero-copy { margin-left:0; margin-right:0; max-width:46ch; }
body:not(.account-page) .home-hero-note { margin-left:0; margin-right:0; }
body:not(.account-page) .home-hero-actions { display:flex; flex-wrap:nowrap; gap:12px; margin-top:22px; }
body:not(.account-page) .home-hero-actions .btn { margin-top:0; min-height:44px; padding-inline:22px; border-radius:999px; }
body:not(.account-page) .home-hero-cta-map { display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:1px solid rgba(11,107,87,.34); background:#FFFFFF; color:var(--hr-green); font-weight:800; }
body:not(.account-page) .home-hero-cta-map:hover { border-color:rgba(11,107,87,.58); background:#F3F9F5; color:var(--hr-forest); }
body:not(.account-page) .home-hero-cta-map svg { width:18px; height:18px; flex:none; fill:none; stroke:currentColor;
  stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
body:not(.account-page) .home-hero-cta-secondary { background:#EEF6EF; border:1px solid var(--hr-line); color:var(--hr-forest); }

/* ── Hero product demo (decorative mini-interface) ── */
.home-product-demo { --hpd-cycle:14s; position:relative; width:100%; height:clamp(320px,30vw,350px); min-height:320px; max-height:350px;
  padding:16px; border:1px solid var(--hr-line); border-radius:var(--hr-radius);
  background:linear-gradient(180deg,#FFFFFF 0%,#F6FAF7 100%); box-shadow:0 18px 44px rgba(17,42,56,.10); overflow:hidden; }
.home-product-demo .hpd-screen { position:absolute; inset:16px; display:flex; flex-direction:column; gap:7px; }
.home-product-demo .hpd-searchbar { display:flex; align-items:center; gap:8px; height:40px; padding:0 14px; flex:none;
  border:1px solid var(--hr-line); border-radius:999px; background:var(--hr-surface); color:var(--hr-muted); font-size:14px; font-weight:600; }
.home-product-demo .hpd-dot { width:14px; height:14px; border:2px solid #9FB7AE; border-radius:999px; flex:none; }
.home-product-demo .hpd-typed { position:relative; white-space:nowrap; overflow:hidden; color:var(--hr-forest); }
.home-product-demo .hpd-resultsnote { min-height:18px; margin:0 2px; color:var(--hr-muted); font-size:12px; line-height:18px;
  font-weight:750; opacity:0; transform:translateY(3px); will-change:transform,opacity; }
.home-product-demo .hpd-stage { position:relative; flex:1; min-height:0; }
.home-product-demo .hpd-bubbles { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; gap:10px; }
.home-product-demo .hpd-bubble { align-self:flex-start; display:flex; align-items:center; gap:8px; max-width:90%; padding:9px 12px;
  border-radius:14px 14px 14px 4px; background:#EEF4F1; color:var(--hr-ink); font-size:14px; font-weight:600;
  opacity:0; transform:translateY(8px); will-change:transform,opacity; }
.home-product-demo .hpd-bubble:nth-child(2) { align-self:flex-end; border-radius:14px 14px 4px 14px; }
.home-product-demo .hpd-chat-wa { display:flex; align-items:center; justify-content:center; width:20px; height:20px; flex:none;
  border-radius:999px; background:#25D366; color:#fff; }
.home-product-demo .hpd-chat-wa svg { width:15px; height:15px; display:block; overflow:visible; shape-rendering:geometricPrecision; }
.home-product-demo .hpd-chat-wa-bubble { fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.home-product-demo .hpd-chat-wa-phone { fill:currentColor; }
.home-product-demo .hpd-results { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; gap:8px; opacity:0; }
.home-product-demo .hpd-result { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:10px;
  min-width:0; padding:9px 10px; border:1px solid var(--hr-line); border-radius:var(--hr-radius-sm); background:var(--hr-surface);
  opacity:0; transform:translateY(10px); will-change:transform,opacity; }
.home-product-demo .hpd-avatar { width:40px; height:40px; border:1px solid transparent; border-radius:12px;
  display:grid; place-items:center; flex:none; font-family:inherit; font-size:13px; line-height:1; font-weight:850; letter-spacing:.055em;
  text-indent:.055em; box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 3px 8px rgba(17,42,56,.07); }
.home-product-demo .hpd-avatar--teal { border-color:#B8DCD3; background:linear-gradient(145deg,#DDF2ED 0%,#EDF8F5 100%); color:#0B6657; }
.home-product-demo .hpd-avatar--sage { border-color:#CADBD3; background:linear-gradient(145deg,#E5F0EA 0%,#F3F7F4 100%); color:#3F685C; }
.home-product-demo .hpd-result-info { min-width:0; }
.home-product-demo .hpd-result strong { display:block; overflow:hidden; color:var(--hr-ink); font-size:14px; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.home-product-demo .hpd-zone, .home-product-demo .hpd-rep { display:block; color:var(--hr-muted-soft); font-size:12px; line-height:1.3; }
.home-product-demo .hpd-rep { margin-top:2px; }
.home-product-demo .hpd-wa { appearance:none; width:42px; height:42px; padding:0; border:1px solid rgba(18,140,94,.32);
  border-radius:999px; background:#F8FDF9; display:flex; flex:none; align-items:center; justify-content:center; color:#128C5E;
  cursor:pointer; transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease; }
.home-product-demo .hpd-wa:hover { background:#EBF8F0; border-color:rgba(18,140,94,.5); }
.home-product-demo .hpd-wa:focus-visible { outline:3px solid rgba(18,140,94,.24); outline-offset:2px; box-shadow:0 0 0 1px #fff; }
.home-product-demo .hpd-wa svg { width:22px; height:22px; display:block; shape-rendering:geometricPrecision; }
.home-product-demo .hpd-wa-bubble { fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.home-product-demo .hpd-wa-phone { fill:currentColor; }

/* Third scene: a lightweight, entirely local map illustration. */
.home-product-demo .hpd-map { position:absolute; inset:0; z-index:3; display:flex; min-width:0; flex-direction:column; gap:7px;
  padding:1px; border-radius:10px; background:#F8FBF8; opacity:0; visibility:hidden; transform:translateY(7px); overflow:hidden; }
.home-product-demo .hpd-map-heading { display:flex; min-width:0; min-height:40px; align-items:center; gap:8px; padding:0 11px;
  border:1px solid var(--hr-line); border-radius:999px; background:#FFFFFF; color:var(--hr-forest); font-size:13px; font-weight:800; }
.home-product-demo .hpd-map-heading-icon { display:grid; width:23px; height:23px; flex:none; place-items:center; border-radius:999px;
  background:#E7F2EC; color:var(--hr-green); }
.home-product-demo .hpd-map-heading-icon svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.9;
  stroke-linecap:round; stroke-linejoin:round; }
.home-product-demo .hpd-map-canvas { position:relative; min-width:0; flex:1; border:1px solid #D9E6DF; border-radius:10px;
  background:#F5F8F4; overflow:hidden; isolation:isolate; }
.home-product-demo .hpd-map-drawing { position:absolute; inset:0; width:100%; height:100%; }
.home-product-demo .hpd-map-road { fill:none; stroke:#D4DFDA; stroke-width:8; stroke-linecap:round; }
.home-product-demo .hpd-map-road--wide { stroke:#C8D7D0; stroke-width:13; }
.home-product-demo .hpd-map-block { fill:#FFFFFF; stroke:#E0E9E4; stroke-width:2; }
.home-product-demo .hpd-map-green { fill:#DDEDE2; }
.home-product-demo .hpd-map-pin { position:absolute; z-index:2; display:flex; min-width:0; align-items:center; gap:5px;
  opacity:0; transform:translateY(6px) scale(.9); transform-origin:9px center; }
.home-product-demo .hpd-map-pin-dot { position:relative; width:18px; height:18px; flex:none; border:4px solid #FFFFFF; border-radius:999px;
  background:var(--hr-marker); box-shadow:0 3px 9px rgba(6,48,71,.25),0 0 0 1px rgba(6,48,71,.12); }
.home-product-demo .hpd-map-pin-dot::after { content:""; position:absolute; inset:3px; border-radius:999px; background:#FFFFFF; }
.home-product-demo .hpd-map-pin-caption { max-width:88px; padding:3px 6px; border:1px solid rgba(221,232,226,.9); border-radius:999px;
  background:rgba(255,255,255,.94); color:var(--hr-forest); font-size:9px; line-height:1.1; font-weight:800; white-space:nowrap;
  box-shadow:0 3px 8px rgba(17,42,56,.07); }
.home-product-demo .hpd-map-pin--sushi { top:25%; left:13%; }
.home-product-demo .hpd-map-pin--heladeria { top:18%; left:61%; }
.home-product-demo .hpd-map-pin--piletero { top:58%; left:58%; }
.home-product-demo .hpd-map-pin--veterinaria { top:65%; left:12%; }
.home-product-demo .hpd-map-pin--ingles { top:39%; left:40%; }
.home-product-demo .hpd-map-pin--peluqueria { top:76%; left:39%; }
.home-product-demo .hpd-map-pin--sushi .hpd-map-pin-dot { background:#C97255; }
.home-product-demo .hpd-map-pin--heladeria .hpd-map-pin-dot { background:#B8788E; }
.home-product-demo .hpd-map-pin--piletero .hpd-map-pin-dot { background:#0B6B57; }
.home-product-demo .hpd-map-pin--veterinaria .hpd-map-pin-dot { background:#397C87; }
.home-product-demo .hpd-map-pin--ingles .hpd-map-pin-dot { background:#6D7850; }
.home-product-demo .hpd-map-pin--peluqueria .hpd-map-pin-dot { background:#96695B; }
.home-product-demo .hpd-map-card { position:absolute; right:12px; bottom:12px; z-index:4; width:min(158px,calc(100% - 24px)); min-height:68px;
  border:1px solid #D5E2DB; border-radius:11px; background:#FFFFFF; box-shadow:0 10px 24px rgba(17,42,56,.16);
  opacity:0; transform:translateY(7px); overflow:hidden; }
.home-product-demo .hpd-map-card-copy { position:absolute; inset:0; display:flex; min-width:0; flex-direction:column; justify-content:center;
  padding:9px 11px; opacity:0; }
.home-product-demo .hpd-map-card-copy strong { color:var(--hr-forest); font-size:13px; line-height:1.15; }
.home-product-demo .hpd-map-card-copy span { margin-top:2px; color:#A04F36; font-size:12px; line-height:1.15; font-weight:850; }
.home-product-demo .hpd-map-card-copy small { margin-top:3px; color:var(--hr-muted); font-size:10px; line-height:1.15; font-weight:700; }

@media (prefers-reduced-motion: no-preference) {
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-bubble:nth-child(1) { animation:hpdBubbleOne var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-bubble:nth-child(2) { animation:hpdBubbleTwo var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-bubble:nth-child(3) { animation:hpdBubbleThree var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-typed { animation:hpdType var(--hpd-cycle) steps(21,end) infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-resultsnote { animation:hpdResultsNote var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-results { animation:hpdResultsLayer var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-result { animation:hpdResult var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-result:nth-child(2) { animation-name:hpdResultSecond; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-map { animation:hpdMapLayer var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-map-pin--sushi { animation:hpdMapPinSushi var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-map-pin--heladeria { animation:hpdMapPinTwo var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-map-pin--piletero { animation:hpdMapPinPiletero var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-map-pin--veterinaria { animation:hpdMapPinFour var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-map-pin--ingles { animation:hpdMapPinFive var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-map-pin--peluqueria { animation:hpdMapPinSix var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-map-card { animation:hpdMapCard var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-map-card-copy--sushi { animation:hpdMapCardSushi var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-animated:not(.is-mobile-sequence) .hpd-map-card-copy--piletero { animation:hpdMapCardPiletero var(--hpd-cycle) ease both infinite; }
  .home-product-demo.is-paused * { animation-play-state:paused !important; }
}
@keyframes hpdBubbleOne { 0%,35%,100%{opacity:1;transform:translateY(0)}
  38.6%,97%{opacity:0;transform:translateY(-4px)} }
@keyframes hpdBubbleTwo { 0%,4.6%{opacity:0;transform:translateY(6px)} 6.8%,35%{opacity:1;transform:translateY(0)}
  38.6%,100%{opacity:0;transform:translateY(-4px)} }
@keyframes hpdBubbleThree { 0%,9.3%{opacity:0;transform:translateY(6px)} 11.4%,35%{opacity:1;transform:translateY(0)}
  38.6%,100%{opacity:0;transform:translateY(-4px)} }
@keyframes hpdType { 0%,27.9%{clip-path:inset(0 100% 0 0)} 35.7%,100%{clip-path:inset(0 0 0 0)} }
@keyframes hpdResultsNote { 0%,35%{opacity:0;transform:translateY(3px)} 38.6%,64%{opacity:1;transform:translateY(0)}
  66%,100%{opacity:0;transform:translateY(-3px)} }
@keyframes hpdResultsLayer { 0%,35%{opacity:0} 38.6%,64%{opacity:1} 67%,100%{opacity:0} }
@keyframes hpdResult { 0%,35%{opacity:0;transform:translateY(10px)} 38.6%,64%{opacity:1;transform:translateY(0)}
  67%,100%{opacity:0;transform:translateY(-4px)} }
@keyframes hpdResultSecond { 0%,39.3%{opacity:0;transform:translateY(10px)} 45%,64%{opacity:1;transform:translateY(0)}
  66%,100%{opacity:0;transform:translateY(-4px)} }
@keyframes hpdMapLayer { 0%,64%{opacity:0;visibility:hidden;transform:translateY(7px)} 67%,97%{opacity:1;visibility:visible;transform:none}
  100%{opacity:0;visibility:hidden;transform:translateY(-5px)} }
@keyframes hpdMapPinSushi { 0%,67%{opacity:0;transform:translateY(6px) scale(.9)} 69%,78%{opacity:1;transform:none}
  80%{opacity:1;transform:scale(1.1)} 82%,97%{opacity:1;transform:none} 100%{opacity:0;transform:translateY(-3px)} }
@keyframes hpdMapPinTwo { 0%,69%{opacity:0;transform:translateY(6px) scale(.9)} 71%,97%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes hpdMapPinPiletero { 0%,71%{opacity:0;transform:translateY(6px) scale(.9)} 73%,86%{opacity:1;transform:none}
  88%{opacity:1;transform:scale(1.1)} 90%,97%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes hpdMapPinFour { 0%,73%{opacity:0;transform:translateY(6px) scale(.9)} 75%,97%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes hpdMapPinFive { 0%,75%{opacity:0;transform:translateY(6px) scale(.9)} 77%,97%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes hpdMapPinSix { 0%,77%{opacity:0;transform:translateY(6px) scale(.9)} 79%,97%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes hpdMapCard { 0%,77%{opacity:0;transform:translateY(7px)} 79%,84%{opacity:1;transform:none} 85%,86%{opacity:0;transform:translateY(4px)}
  88%,94%{opacity:1;transform:none} 96%,100%{opacity:0;transform:translateY(-3px)} }
@keyframes hpdMapCardSushi { 0%,77%{opacity:0} 79%,84%{opacity:1} 85%,100%{opacity:0} }
@keyframes hpdMapCardPiletero { 0%,86%{opacity:0} 88%,94%{opacity:1} 96%,100%{opacity:0} }

/* Mobile is driven by one JS timeline. Keep chat while waiting/typing;
   direct hand-offs crossfade into results/map without an empty scene. */
.home-product-demo.is-mobile-sequence .hpd-bubbles,
.home-product-demo.is-mobile-sequence .hpd-results,
.home-product-demo.is-mobile-sequence .hpd-resultsnote,
.home-product-demo.is-mobile-sequence .hpd-map { opacity:0; visibility:hidden; }
.home-product-demo.is-mobile-sequence .hpd-bubble,
.home-product-demo.is-mobile-sequence .hpd-result { opacity:1; transform:none; }
.home-product-demo.is-mobile-sequence .hpd-map-pin { opacity:0; transform:translateY(6px); }
.home-product-demo.is-mobile-sequence .hpd-typed { clip-path:inset(0 100% 0 0); }
.home-product-demo.is-mobile-sequence.is-waiting .hpd-results,
.home-product-demo.is-mobile-sequence.is-waiting .hpd-resultsnote,
.home-product-demo.is-mobile-sequence.is-waiting .hpd-map { opacity:0; visibility:hidden; }
.home-product-demo.is-mobile-sequence.is-waiting .hpd-bubbles,
.home-product-demo.is-searching .hpd-bubbles,
.home-product-demo.is-chat .hpd-bubbles { opacity:1; visibility:visible; }
.home-product-demo.is-mobile-sequence.is-waiting .hpd-bubble,
.home-product-demo.is-searching .hpd-bubble,
.home-product-demo.is-chat .hpd-bubble { opacity:1; transform:none; }
.home-product-demo.is-searching .hpd-typed,
.home-product-demo.is-results .hpd-typed { clip-path:none; }
.home-product-demo.is-results-count .hpd-resultsnote,
.home-product-demo.is-results .hpd-resultsnote { opacity:1; transform:none; visibility:visible; }
.home-product-demo.is-results .hpd-bubbles { opacity:0; visibility:hidden; }
.home-product-demo.is-results .hpd-results { opacity:1; visibility:visible; }
.home-product-demo.is-results .hpd-result { opacity:1; transform:none; }
.home-product-demo.is-map .hpd-bubbles,
.home-product-demo.is-map .hpd-results,
.home-product-demo.is-map .hpd-resultsnote { opacity:0; visibility:hidden; }
.home-product-demo.is-map .hpd-map { opacity:1; visibility:visible; transform:none; }
.home-product-demo.is-map .hpd-map-pin { opacity:1; transform:none; }
.home-product-demo.is-map .hpd-map-card,
.home-product-demo.is-map .hpd-map-card-copy--sushi { opacity:1; transform:none; }
.home-product-demo.is-map .hpd-map-card-copy--piletero { opacity:0; }

/* The outgoing content stays painted until the incoming scene is visible. */
@media (prefers-reduced-motion: no-preference) {
  .home-product-demo.is-mobile-sequence .hpd-bubbles,
  .home-product-demo.is-mobile-sequence .hpd-results,
  .home-product-demo.is-mobile-sequence .hpd-resultsnote,
  .home-product-demo.is-mobile-sequence .hpd-map { transition:opacity .28s ease, visibility 0s linear .28s; }
  .home-product-demo.is-mobile-sequence.is-waiting .hpd-bubbles,
  .home-product-demo.is-mobile-sequence.is-searching .hpd-bubbles,
  .home-product-demo.is-mobile-sequence.is-chat .hpd-bubbles,
  .home-product-demo.is-mobile-sequence.is-results .hpd-results,
  .home-product-demo.is-mobile-sequence.is-results-count .hpd-resultsnote,
  .home-product-demo.is-mobile-sequence.is-results .hpd-resultsnote,
  .home-product-demo.is-mobile-sequence.is-map .hpd-map { transition:opacity .28s ease, visibility 0s; }
}

/* ── Una cuenta · dos paneles ── */
.home-account-panels { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:16px;
  max-width:var(--home-content-max,920px); margin-inline:auto; align-items:start; }
.home-account-panel { min-width:0; display:flex; flex-direction:column; gap:9px; padding:20px;
  height:auto; border:1px solid #D2DFD8; border-radius:var(--hr-radius); background:linear-gradient(180deg,#FFFDF9 0%,#FBFCF9 100%);
  box-shadow:0 10px 24px rgba(17,42,56,.06), 0 1px 4px rgba(17,42,56,.025); }
.home-panel-neighbors { border-top:4px solid var(--hr-marker); background:linear-gradient(180deg,#FBFEFC 0%,#F9FCF9 100%); }
.home-panel-commerce { border-color:#E2D7D1; border-top:4px solid var(--hr-commerce); background:linear-gradient(180deg,#FFFBF8 0%,#FCFAF7 100%); }
.home-panel-eyebrow { margin:0; font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#075E4E; }
.home-panel-commerce .home-panel-eyebrow { color:var(--hr-commerce); }
.home-account-panel h3 { margin:0; font-size:20px; line-height:1.15; font-weight:880; color:var(--hr-ink); letter-spacing:-.01em; }
.home-caps { margin:0; padding:0; list-style:none; display:grid; }
.home-cap { display:grid; grid-template-columns:14px minmax(0,1fr); gap:10px; min-width:0; padding:7px 0;
  border-bottom:1px solid rgba(47,107,87,.10); }
.home-cap:last-child { border-bottom:0; }
.home-cap-ico { width:10px; height:10px; margin:5px 0 0 2px; border-radius:999px; background:rgba(47,107,87,.18);
  box-shadow:inset 0 0 0 3px #fff, 0 0 0 1px rgba(47,107,87,.42); }
.home-panel-commerce .home-cap-ico { background:rgba(196,134,114,.24); box-shadow:inset 0 0 0 3px #fff, 0 0 0 1px rgba(167,101,81,.48); }
.home-cap-text { min-width:0; }
.home-cap-title { display:block; color:var(--hr-ink); font-size:14px; line-height:1.32; font-weight:600; }
.home-cap-text p { margin:4px 0 0; color:var(--hr-muted-soft); font-size:12.5px; line-height:1.42; font-weight:500; }
.home-cap-budget { appearance:none; border:0; background:none; padding:0; font-family:inherit; text-align:left; cursor:pointer; }
.home-cap-budget:hover { color:var(--hr-green); }
.home-cap-budget:focus-visible { border-radius:4px; outline:3px solid rgba(11,107,87,.25); outline-offset:3px; }
.home-panel-cta { margin-top:4px; align-self:flex-start; min-height:42px; padding-inline:20px; border-radius:999px; }

/* ── Radar comercial ── */
.home-radar-section { display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:clamp(24px,4vw,42px);
  align-items:center; width:100%; max-width:var(--home-content-max,920px); margin-inline:auto; padding:clamp(24px,4vw,38px);
  border:1px solid rgba(47,107,87,.18); border-radius:16px; background:linear-gradient(135deg,#F4F9F6 0%,#FFFFFF 62%);
  box-shadow:0 14px 34px rgba(17,42,56,.07); overflow:hidden; }
.home-radar-copy { min-width:0; }
.home-radar-eyebrow { margin:0 0 8px; color:var(--hr-green); font-size:11px; line-height:1.2; font-weight:850;
  letter-spacing:.08em; text-transform:uppercase; }
.home-radar-copy h2 { margin:0; color:var(--hr-forest); font-size:clamp(25px,3vw,34px); line-height:1.08; font-weight:900; letter-spacing:-.025em; }
.home-radar-lead { margin:14px 0 0; color:var(--hr-ink); font-size:17px; line-height:1.35; font-weight:800; }
.home-radar-description { margin:10px 0 0; color:var(--hr-muted); font-size:14px; line-height:1.58; font-weight:540; }
.home-dashboard { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px 12px; margin:2px 0 0; padding:12px;
  min-width:0; border:1px solid var(--hr-line-soft); border-radius:12px; background:rgba(255,255,255,.92);
  box-shadow:0 10px 26px rgba(17,42,56,.08); }
.home-dashboard-label { align-self:center; color:var(--hr-forest); font-size:12px; line-height:1.2; font-weight:800; letter-spacing:.025em; }
.home-dashboard-range { align-self:center; margin:0; color:var(--hr-muted); font-size:11px; font-weight:700; white-space:nowrap; }
.home-dash-metrics, .home-dash-chart, .home-dash-zones { grid-column:1 / -1; }
.home-dash-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.home-dash-metric { padding:8px 9px; border-radius:8px; background:#fff; border:1px solid var(--hr-line); }
.home-dash-num { font-size:22px; font-weight:880; color:var(--hr-forest); line-height:1; letter-spacing:-.02em; }
.home-dash-zone-name { display:block; overflow:hidden; color:var(--hr-green); font-size:17px; line-height:1.1; font-weight:880; text-overflow:ellipsis; }
.home-dash-cap { display:block; margin-top:4px; font-size:11px; font-weight:700; color:var(--hr-muted); text-transform:uppercase; letter-spacing:.03em; }
.home-dash-chart { min-width:0; padding:9px 10px 7px; border:1px solid var(--hr-line-soft); border-radius:8px; background:#FBFDFC; }
.home-dash-section-title { margin:0 0 7px; color:var(--hr-muted); font-size:11px; line-height:1.2; font-weight:800; letter-spacing:.03em; text-transform:uppercase; }
.home-dash-curve { width:100%; height:76px; display:block; }
.home-dash-curve path.area { fill:url(#homeDashArea); }
.home-dash-curve path.line { fill:none; stroke:var(--hr-green); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:var(--dash-len,200); stroke-dashoffset:var(--dash-len,200); }
.home-dash-months { display:flex; justify-content:space-between; margin-top:2px; color:#789087; font-size:9px; font-weight:700; }
.home-dash-zones { display:grid; gap:7px; padding:9px 10px; border:1px solid var(--hr-line-soft); border-radius:8px; background:#FBFDFC; }
.home-dash-zone { display:grid; grid-template-columns:68px minmax(0,1fr) 30px; align-items:center; gap:8px; font-size:12px; font-weight:700; color:var(--hr-muted); }
.home-dash-zone strong { color:var(--hr-forest); font-size:10px; text-align:right; }
.home-dash-track { height:9px; border-radius:999px; background:#E7EEE9; overflow:hidden; }
.home-dash-bar { display:block; width:var(--interest-value,0%); height:100%; border-radius:999px; background:var(--hr-marker);
  transform:scaleX(0); transform-origin:left center; }
.home-dash-zone:first-of-type .home-dash-bar { background:var(--hr-green); }
.home-dash-zone:first-of-type > span:first-child { color:var(--hr-forest); font-weight:800; }
@media (prefers-reduced-motion: no-preference) {
  .home-dashboard.is-animated .home-dash-curve path.line { transition:stroke-dashoffset 1.1s ease-out; }
  .home-dashboard.is-animated .home-dash-bar { transition:transform .9s ease-out; }
  .home-dashboard.is-animated.is-shown .home-dash-curve path.line { stroke-dashoffset:0; }
}
.home-dashboard.is-shown .home-dash-curve path.line { stroke-dashoffset:0; }
.home-dashboard.is-shown .home-dash-bar { transform:scaleX(1); }

/* ── Sponsor · compact block (overrides styles.css margin) ── */
body:not(.account-page) .home-sponsor-section.sponsor-duo { margin:4px auto 6px; }

/* ── Responsive ── */
@media (max-width: 1023px) {
  body:not(.account-page) .home-hero-inner { grid-template-columns:minmax(0,1fr); gap:24px; max-width:620px; }
  body:not(.account-page) .home-hero-text { text-align:center; }
  body:not(.account-page) .home-hero-copy, body:not(.account-page) .home-hero-note { margin-inline:auto; }
  body:not(.account-page) .home-hero-actions { flex-wrap:wrap; justify-content:center; }
  .home-product-demo { max-width:460px; height:340px; margin-inline:auto; }
}
@media (max-width: 767px) {
  /* One shared outer contract for every primary home block. The gateway (and the
     hero row) own a single 16px gutter — beating mobile-app.css `.w{padding:14px
     !important}` with a more specific !important so --home-mobile-gutter is really
     honoured — and each block just fills it, with no per-block calc()/max-width
     caps that used to make sponsor, panels and radar diverge across 481–767px. */
  body:not(.account-page) .home-gateway,
  body:not(.account-page) .home-hero-inner { padding-inline:var(--home-mobile-gutter) !important; }
  body:not(.account-page) .home-sponsor-section.sponsor-duo,
  body:not(.account-page) .home-account-section,
  .home-radar-section { box-sizing:border-box; width:100%; max-width:none; margin-inline:0; }
  .home-account-panels { grid-template-columns:minmax(0, 1fr); width:100%; max-width:none; margin-inline:0; }
  .home-account-panel, .home-dashboard { box-sizing:border-box; width:100%; max-width:100%; }
  .home-radar-section { grid-template-columns:minmax(0,1fr); }
  .home-radar-copy { max-width:56ch; }
  /* Same outer radius on ad, panels and radar. The ad card needs !important to
     beat mobile-app.css `.sponsor-card{border-radius:13px!important}`. */
  body:not(.account-page) .home-sponsor-section .sponsor-card { border-radius:var(--home-card-radius) !important; }
  .home-account-panel, .home-radar-section { border-radius:var(--home-card-radius); }
}
@media (max-width: 480px) {
  body:not(.account-page) .home-hero-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; width:100%; }
  body:not(.account-page) .home-hero-actions .btn { box-sizing:border-box; width:100%; min-width:0; padding-inline:12px; justify-content:center; white-space:nowrap; }
  body:not(.account-page) .home-hero-cta-secondary { grid-column:1 / -1; }
  .home-product-demo { box-sizing:border-box; height:310px; min-height:300px; max-height:320px; padding:10px; }
  .home-product-demo .hpd-screen { inset:10px; gap:4px; }
  .home-product-demo .hpd-searchbar { height:38px; padding-inline:12px; font-size:13px; }
  .home-product-demo .hpd-resultsnote { min-height:15px; font-size:11px; line-height:15px; }
  .home-product-demo .hpd-results { gap:5px; }
  .home-product-demo .hpd-result { grid-template-columns:36px minmax(0,1fr) 42px; gap:8px; padding:7px 8px; }
  .home-product-demo .hpd-avatar { width:36px; height:36px; }
  .home-product-demo .hpd-result strong { font-size:13px; }
  .home-product-demo .hpd-zone, .home-product-demo .hpd-rep { font-size:11px; line-height:1.22; }
  .home-product-demo .hpd-map-heading { min-height:36px; padding-inline:9px; font-size:12px; }
  .home-product-demo .hpd-map-canvas { min-width:0; max-width:100%; overflow:hidden; }
  .home-product-demo .hpd-map-pin-caption { display:none; }
  .home-product-demo .hpd-map-pin--ingles,
  .home-product-demo .hpd-map-pin--peluqueria { display:none; }
  .home-product-demo .hpd-map-pin--sushi { top:24%; left:17%; }
  .home-product-demo .hpd-map-pin--heladeria { top:18%; left:72%; }
  .home-product-demo .hpd-map-pin--piletero { top:56%; left:70%; }
  .home-product-demo .hpd-map-pin--veterinaria { top:63%; left:20%; }
  .home-product-demo .hpd-map-card { right:auto; bottom:9px; left:9px; width:min(148px,calc(100% - 18px)); min-height:62px; }
  .home-product-demo .hpd-map-card-copy { padding:8px 10px; }
  .home-product-demo .hpd-map-road:nth-of-type(n+3) { display:none; }
  .home-account-panel { padding:18px; }
  /* Radar: symmetric --home-card-inset (no more 68px right-only assistant inset
     that shoved the dashboard left) plus a generous bottom reserve for the
     bottom-nav/assistant safe area. */
  .home-radar-section { gap:14px; padding:18px var(--home-card-inset);
    padding-bottom:calc(24px + var(--mobile-nav-height,72px) + env(safe-area-inset-bottom,0px)); }
  .home-radar-copy h2 { font-size:24px; line-height:1.1; }
  .home-radar-lead { margin-top:10px; font-size:16px; }
  .home-radar-description { margin-top:8px; font-size:13px; line-height:1.45; }
  .home-dashboard { grid-template-columns:minmax(0,1fr) auto; gap:7px 9px; padding:9px; }
  .home-dashboard-label, .home-dashboard-range { font-size:10px; }
  .home-dash-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .home-dash-metric-zone { grid-column:1 / -1; }
  .home-dash-metric { min-width:0; padding:7px; }
  .home-dash-num { font-size:20px; }
  .home-dash-cap { font-size:10px; }
  .home-dash-curve { height:50px; }
  .home-dash-chart { padding:7px 8px 6px; }
  .home-dash-zones { gap:5px; padding:7px 8px; }
  .home-dash-zone { grid-template-columns:64px minmax(0,1fr) 28px; gap:6px; font-size:11px; }
  .home-dash-zone:last-child { display:none; }
}

@media (max-width: 360px) {
  body:not(.account-page) .home-hero-actions { grid-template-columns:minmax(0,1fr); }
  body:not(.account-page) .home-hero-cta-secondary { grid-column:auto; }
  .home-dashboard { grid-template-columns:minmax(0,1fr); }
  .home-dashboard-range, .home-dash-metrics, .home-dash-chart, .home-dash-zones { grid-column:1; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 480px) {
  .home-product-demo.is-mobile-sequence .hpd-bubble,
  .home-product-demo.is-mobile-sequence .hpd-typed,
  .home-product-demo.is-mobile-sequence .hpd-resultsnote,
  .home-product-demo.is-mobile-sequence .hpd-results,
  .home-product-demo.is-mobile-sequence .hpd-result,
  .home-product-demo.is-mobile-sequence .hpd-map,
  .home-product-demo.is-mobile-sequence .hpd-map-pin,
  .home-product-demo.is-mobile-sequence .hpd-map-card,
  .home-product-demo.is-mobile-sequence .hpd-map-card-copy { animation:none; }
  .home-product-demo.is-mobile-sequence.is-chat .hpd-bubble:nth-child(1) { animation:none; }
  .home-product-demo.is-mobile-sequence.is-chat .hpd-bubble:nth-child(2) { animation:hpdMobileBubbleIn .34s ease .62s both; }
  .home-product-demo.is-mobile-sequence.is-chat .hpd-bubble:nth-child(3) { animation:hpdMobileBubbleIn .34s ease 1.12s both; }
  .home-product-demo.is-mobile-sequence.is-searching .hpd-typed { animation:hpdMobileType 1.1s steps(21,end) both; }
  .home-product-demo.is-mobile-sequence.is-map .hpd-map-pin { animation:hpdMobileMapPinIn .34s ease var(--hpd-pin-delay,0s) both; }
  .home-product-demo.is-mobile-sequence.is-map .hpd-map-pin--sushi { --hpd-pin-delay:.25s; }
  .home-product-demo.is-mobile-sequence.is-map .hpd-map-pin--heladeria { --hpd-pin-delay:.55s; }
  .home-product-demo.is-mobile-sequence.is-map .hpd-map-pin--piletero { --hpd-pin-delay:.85s; }
  .home-product-demo.is-mobile-sequence.is-map .hpd-map-pin--veterinaria { --hpd-pin-delay:1.15s; }
  .home-product-demo.is-mobile-sequence.is-map .hpd-map-pin--sushi .hpd-map-pin-dot { animation:hpdMobileSushiPulse 4.8s ease both; }
  .home-product-demo.is-mobile-sequence.is-map .hpd-map-pin--piletero .hpd-map-pin-dot { animation:hpdMobilePileteroPulse 4.8s ease both; }
  .home-product-demo.is-mobile-sequence.is-map .hpd-map-card { animation:hpdMobileMapCard 4.8s ease both; }
  .home-product-demo.is-mobile-sequence.is-map .hpd-map-card-copy--sushi { animation:hpdMobileMapCardSushi 4.8s ease both; }
  .home-product-demo.is-mobile-sequence.is-map .hpd-map-card-copy--piletero { animation:hpdMobileMapCardPiletero 4.8s ease both; }
}

@keyframes hpdMobileBubbleIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
@keyframes hpdMobileType { from{clip-path:inset(0 100% 0 0)} to{clip-path:inset(0 0 0 0)} }
@keyframes hpdMobileMapPinIn { from{opacity:0;transform:translateY(6px) scale(.9)} to{opacity:1;transform:none} }
@keyframes hpdMobileSushiPulse { 0%,31%,39%,100%{transform:scale(1)} 35%{transform:scale(1.12)} }
@keyframes hpdMobilePileteroPulse { 0%,60%,68%,100%{transform:scale(1)} 64%{transform:scale(1.12)} }
@keyframes hpdMobileMapCard { 0%,30%{opacity:0;transform:translateY(6px)} 34%,52%{opacity:1;transform:none}
  56%,60%{opacity:0;transform:translateY(4px)} 64%,86%{opacity:1;transform:none} 90%,100%{opacity:0;transform:translateY(-3px)} }
@keyframes hpdMobileMapCardSushi { 0%,30%{opacity:0} 34%,52%{opacity:1} 56%,100%{opacity:0} }
@keyframes hpdMobileMapCardPiletero { 0%,60%{opacity:0} 64%,86%{opacity:1} 90%,100%{opacity:0} }

/* Reduced motion: no loop or pulse; show the illustrated map as a stable scene. */
@media (prefers-reduced-motion: reduce) {
  .home-product-demo.is-map .hpd-map,
  .home-product-demo.is-map .hpd-map-pin,
  .home-product-demo.is-map .hpd-map-pin-dot,
  .home-product-demo.is-map .hpd-map-card,
  .home-product-demo.is-map .hpd-map-card-copy { animation:none; transition:none; }
}
.home-pets-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding: 15px 17px;
  border: 1px solid #d7e4e8;
  border-radius: 16px;
  background: #fff;
  color: #0b3043;
}

.home-pets-summary[data-state="active"] {
  border-color: #e7c3c3;
  background: #fff9f8;
}

.home-pets-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #eef5f3;
  font-size: 1.35rem;
}

.home-pets-summary[data-state="active"] .home-pets-icon {
  background: #ffeded;
}

.home-pets-copy {
  min-width: 0;
}

.home-pets-copy h2,
.home-pets-copy p {
  margin: 0;
}

.home-pets-copy h2 {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.25;
}

.home-pets-copy p {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #607782;
  font-size: .86rem;
}

.home-pets-action {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .home-pets-summary {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    padding: 14px;
  }

  .home-pets-action {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }
}
.home-savings-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  color: #0c6550;
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}

.home-savings-link:hover,
.home-savings-link:focus-visible {
  text-decoration: underline;
}
