/* Portada v2 "Territorio vivo" y documento de privacidad. */
:root { --hl-dock: 0px; }
@media (max-width: 899.98px) { :root { --hl-dock: var(--dock-h, 84px); } }
@font-face { font-family: 'Unbounded Fallback'; src: local('Arial'); size-adjust: 118%; ascent-override: 84%; descent-override: 21%; line-gap-override: 0%; }

.hl {
  --anil: #1B1F6B; --anil-deep: #0F1147; --niebla: #EEF0FB; --mango: #FFC531;
  --guacamaya: #E5213F; --selva: #06866A; --cielo: #3D8BFF; --tinta: #14163F;
  --gutter: clamp(16px, 4.5vw, 72px);
  --display: 'Unbounded', 'Unbounded Fallback', Arial, sans-serif;
  color: var(--tinta);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: clip;
}
.hl h1, .hl h2, .hl h3 { color: inherit; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.hl h3 { font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.hl p { margin: 0; }
.hl ul { margin: 0; padding: 0; list-style: none; }
.hl a:focus-visible, .hl button:focus-visible, .hl summary:focus-visible { outline: 3px solid var(--cielo); outline-offset: 3px; }
.hl-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* El aviso de confirmación flota: el ancla #sumarse lo dejaría fuera de vista. */
.main:has(.hl) > .alert {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--hl-dock) + 16px); z-index: 40; margin: 0;
  max-width: 560px; display: flex; gap: 16px; align-items: center; justify-content: space-between;
  box-shadow: 0 10px 30px rgba(15, 17, 71, .3);
}
.hl-flash-close { flex: none; min-height: 44px; padding: 0 14px; font: inherit; font-weight: 600; background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 8px; cursor: pointer; }

.hb {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  font-family: inherit; font-size: 1.0625rem; font-weight: 700; text-decoration: none; border-radius: 14px;
  border: 2px solid transparent; cursor: pointer; transition: background-color .16s ease, color .16s ease, transform .12s ease;
}
.hb:active { transform: scale(.97); }
.hb--mango { background: var(--mango); color: var(--tinta); }
.hb--line { background: rgba(15, 17, 71, .55); color: #fff; border-color: rgba(255, 255, 255, .75); }
.hb--anil { background: var(--anil); color: #fff; }
@media (hover: hover) {
  .hb--mango:hover { background: #ffd65f; }
  .hb--line:hover { background: #fff; color: var(--anil-deep); }
  .hb--anil:hover { background: var(--anil-deep); }
}

/* Hero: el territorio a pantalla completa */
.hh {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-height: 100svh; background: var(--anil-deep); color: #fff; overflow: hidden;
}
.hh__curvas, .hs__curvas {
  position: absolute; inset: 0; z-index: -2;
  -webkit-mask: url('landing/curvas.svg') center / cover no-repeat;
  mask: url('landing/curvas.svg') center / cover no-repeat;
}
.hh__curvas { background: #7f88e8; opacity: .62; }
/* El mapa ocupa la zona libre: arriba en móvil, a la derecha en escritorio; nunca bajo el titular. */
.hh { --hh-map: clamp(280px, 44svh, 400px); }
.hh__map { position: absolute; top: 72px; left: 0; right: 0; height: var(--hh-map); z-index: -1; }
.hh__map > [data-map3d] { width: 100%; height: 100%; }
/* Versión plana (sin WebGL o con movimiento reducido): mismo alto que la 3D. */
.hh .hm3d.hm3d--flat { display: block; height: 100%; padding: 0; }
.hh .hm3d--flat .hm3d-stage { height: calc(100% - 52px); }
.hh .hm3d--flat .hm3d-head { display: none; }
.hh .hm3d--flat .hm3d-foot { position: absolute; left: 16px; right: 16px; bottom: 6px; }
.hh .hm3d { min-height: 0; background: transparent; }
@media (max-width: 959.98px) { .hh .hm3d-head { display: none; } .hh .hm3d--compact .hm3d-svg { inset: 8px 8px 56px; width: calc(100% - 16px); height: calc(100% - 64px); } }
.hh::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(15, 17, 71, .94) 0%, rgba(15, 17, 71, .78) 38%, rgba(15, 17, 71, 0) 72%);
}
.is-public .hh { margin-top: -68px; }
.hh__copy { width: 100%; padding: calc(72px + var(--hh-map) + 20px) var(--gutter) calc(var(--hl-dock) + clamp(20px, 4vh, 48px)); pointer-events: none; }
.hh__copy a { pointer-events: auto; }
.hh h1 { font-size: clamp(2.05rem, 6.5vw, 5.75rem); line-height: 1.04; max-width: 15ch; }
.hh p { margin-top: 18px; max-width: 40ch; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.45; color: #e4e6fa; }
.hh__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hh__acts .hb { flex: 1 1 100%; }
@media (min-width: 520px) { .hh__acts .hb { flex: 0 0 auto; } }
@media (min-width: 960px) {
  .hh__map { left: 46%; bottom: 0; height: auto; -webkit-mask-image: linear-gradient(to right, transparent, #000 56px); mask-image: linear-gradient(to right, transparent, #000 56px); }
  .hh .hm3d--compact .hm3d-head, .hh .hm3d--compact .hm3d-foot { left: 68px; }
  .hh h1 { font-size: clamp(2.4rem, 3.9vw, 4.75rem); max-width: 40vw; }
  .hh p { max-width: 36vw; }
  .hh::after { background: linear-gradient(to right, rgba(15, 17, 71, .92) 0%, rgba(15, 17, 71, .72) 34%, rgba(15, 17, 71, 0) 50%); }
  .hh { align-items: center; }
  .hh__copy { padding-block: 64px; }
}

/* Historia: huellas sobre curvas de nivel */
.hs { position: relative; isolation: isolate; background: var(--niebla); overflow: hidden; }
.hs__curvas { background: var(--anil); opacity: .13; }
.hs__stage { padding: clamp(56px, 9vw, 96px) var(--gutter); }
.hs h2 { font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.1; color: var(--anil); }
.hs__note { margin-top: 10px; color: #3f4470; }
.hs__steps { list-style: none; margin: 32px 0 0; padding: 0; }
.hs-step { position: relative; padding: 0 0 44px 60px; }
.hs-step:not(:last-child)::before {
  content: ''; position: absolute; left: 8px; top: 52px; bottom: 4px; width: 28px;
  background: url('landing/paso.svg') center top / 28px 64px repeat-y;
}
.hs-step:last-child { padding-bottom: 0; }
.hs-step__ico { position: absolute; left: 0; top: 0; box-sizing: content-box; padding: 8px; border-radius: 50%; background: #fff; border: 2px solid currentColor; }
.hs-step--1 .hs-step__ico { color: var(--guacamaya); }
.hs-step--2 .hs-step__ico { color: #1f62cc; }
.hs-step--3 .hs-step__ico { color: var(--anil); }
.hs-step--4 .hs-step__ico { color: var(--selva); }
.hs-step h3 { font-size: clamp(1.125rem, 1.8vw, 1.5rem); color: var(--anil-deep); }
.hs-step p { margin-top: 8px; max-width: 46ch; font-size: 1.0625rem; line-height: 1.5; }
.hs__art { display: none; }
.hs__map { display: block; width: 100%; height: 100%; }
.hs-paw--1 { fill: var(--guacamaya); }
.hs-paw--2 { fill: var(--cielo); }
.hs-paw--3 { fill: var(--anil); }
.hs-st circle { fill: #fff; stroke-width: 4; }
.hs-st text { font: 600 21px 'Onest', system-ui, sans-serif; fill: var(--anil-deep); }
.hs-st--1 { color: var(--guacamaya); } .hs-st--1 circle { stroke: var(--guacamaya); }
.hs-st--2 { color: #1f62cc; } .hs-st--2 circle { stroke: #1f62cc; }
.hs-st--3 { color: var(--anil); } .hs-st--3 circle { stroke: var(--anil); }
.hs-st--4 { color: var(--selva); } .hs-st--4 circle { stroke: var(--selva); }

@media (min-width: 960px) {
  .hs__stage { display: grid; grid-template-columns: minmax(340px, 5fr) 7fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
  .hs__art { display: block; position: sticky; top: 84px; aspect-ratio: 1000 / 760; }
  /* Con la secuencia activa, los pasos ocupan la misma celda y se relevan. */
  .hs.is-pinned { height: 100vh; }
  .hs.is-pinned .hs__stage { height: 100%; box-sizing: border-box; padding-top: 88px; padding-bottom: 32px; align-items: center; }
  .hs.is-pinned .hs__steps { display: grid; margin-top: 36px; }
  .hs.is-pinned .hs-step { grid-area: 1 / 1; padding-bottom: 0; will-change: opacity, transform; }
  .hs.is-pinned .hs-step::before { display: none; }
  .hs.is-pinned .hs__art { position: relative; top: 0; height: 100%; max-height: calc(100vh - 130px); aspect-ratio: auto; }
}

/* Cada quien: composición asimétrica */
.hr { padding: clamp(64px, 10vw, 128px) var(--gutter); background: #fff; }
.hr > h2 { font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.1; color: var(--anil); max-width: 16ch; }
.hr__grid { display: grid; gap: 16px; margin-top: 36px; }
.hr-a, .hr-b, .hr-c { padding: clamp(24px, 3vw, 44px); }
.hr h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.hr p { margin-top: 12px; font-size: 1.0625rem; line-height: 1.5; max-width: 48ch; }
.hr ul { margin-top: 18px; }
.hr li { padding: 9px 0; font-size: 1.0625rem; line-height: 1.4; border-top: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 24%, transparent); }
.hr .hb { margin-top: 26px; }
.hr__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font-weight: 700; color: inherit; text-underline-offset: 4px; }
.hr-a { background: var(--anil); color: #fff; border-radius: 28px 28px 6px 28px; }
.hr-a p { color: #e4e6fa; }
.hr-b { background: var(--mango); color: var(--tinta); border-radius: 6px 40px 6px 6px; }
.hr-c { background: var(--niebla); color: var(--tinta); border-radius: 6px 6px 40px 6px; }
@media (min-width: 768px) {
  .hr__grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; }
  .hr-a { grid-column: 1 / 8; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; }
  .hr-a h3 { font-size: clamp(1.75rem, 3.2vw, 2.875rem); line-height: 1.1; max-width: 12ch; }
  .hr-a .hb { align-self: flex-start; }
  .hr-b { grid-column: 8 / 13; margin-top: -56px; }
  .hr-c { grid-column: 8 / 13; }
}
@media (min-width: 1100px) { .hr-c { margin-left: -72px; position: relative; } }

/* Cifras reales */
.hn { padding: clamp(56px, 8vw, 96px) var(--gutter); background: var(--niebla); }
.hn h2 { font-size: 1.25rem; font-weight: 500; color: var(--anil); }
.hn dl { display: flex; flex-wrap: wrap; gap: 28px clamp(36px, 6vw, 96px); margin: 22px 0 0; }
.hn dl > div { display: flex; flex-direction: column; }
.hn dd { order: -1; margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; color: var(--anil); font-variant-numeric: tabular-nums; }
.hn dt { margin-top: 8px; font-size: 1.0625rem; color: var(--tinta); }

/* Privacidad */
.hp { padding: clamp(64px, 10vw, 128px) var(--gutter); background: var(--anil-deep); color: #fff; }
.hp__in { max-width: 1040px; }
.hp h2 { font-size: clamp(1.7rem, 3.8vw, 3.25rem); line-height: 1.1; max-width: 20ch; }
.hp__cols { display: grid; gap: 32px; margin: 36px 0; }
.hp h3 { font-size: 1.125rem; color: var(--mango); }
.hp li { padding: 10px 0; font-size: 1.0625rem; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.hp ul { margin-top: 10px; }
.hp__in > p { max-width: 62ch; font-size: 1.0625rem; line-height: 1.55; color: #e4e6fa; }
.hp a { color: var(--mango); font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 768px) { .hp__cols { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Gratis */
.hg { padding: clamp(64px, 10vw, 120px) var(--gutter); background: var(--mango); color: var(--tinta); }
.hg h2 { font-size: clamp(2.1rem, 7.4vw, 6.5rem); line-height: 1.02; max-width: 13ch; }
.hg__txt { display: grid; gap: 16px; margin-top: 28px; max-width: 980px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; }
.hg__ad { margin-top: 36px; max-width: 100%; overflow: hidden; }
.hg__ad img { max-width: 100%; height: auto; }
@media (min-width: 768px) { .hg__txt { grid-template-columns: 1fr 1fr; gap: 40px; margin-left: auto; } }

/* Sumarse */
.hj { display: grid; gap: 32px; padding: clamp(64px, 9vw, 112px) var(--gutter); background: #fff; scroll-margin-top: 64px; }
.hj:focus { outline: none; }
.hj h2 { font-size: clamp(1.7rem, 3.3vw, 2.75rem); line-height: 1.12; color: var(--anil); }
.hj__copy > p { margin-top: 14px; max-width: 42ch; font-size: 1.0625rem; line-height: 1.5; }
.hj__copy > p.small { font-size: .9375rem; color: #3f4470; }
.hj__copy a { color: var(--anil); }
.hj__form { display: grid; gap: 16px; min-width: 0; padding: clamp(20px, 3vw, 36px); background: var(--niebla); border-radius: 24px 6px 24px 24px; }
.hj__form .field { min-width: 0; }
.hj__form input:not([type=checkbox]), .hj__form textarea { width: 100%; box-sizing: border-box; font-size: 1rem; }
.hj__form .alert { margin: 0; }
.hj__form .hb { width: 100%; }
@media (min-width: 640px) { .hj__form { grid-template-columns: 1fr 1fr; } .hj__full { grid-column: 1 / -1; } .hj__form .hb { width: auto; } }
@media (min-width: 1040px) { .hj { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; } .hj__copy { position: sticky; top: 92px; } }

/* Preguntas */
.hf { display: grid; gap: 24px; padding: clamp(56px, 8vw, 104px) var(--gutter); background: var(--niebla); }
.hf h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.15; color: var(--anil); }
.hf details { border-bottom: 1.5px solid rgba(27, 31, 107, .25); }
.hf summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; font-size: 1.0625rem; font-weight: 600; cursor: pointer; list-style: none; }
.hf summary::-webkit-details-marker { display: none; }
.hf summary::after { content: '+'; flex: none; font-family: var(--display); font-size: 1.25rem; color: var(--anil); transition: transform .18s ease-out; }
.hf details[open] summary::after { transform: rotate(45deg); }
.hf details p { padding: 0 0 18px; max-width: 64ch; line-height: 1.55; }
.hf details a { color: var(--anil); font-weight: 600; }
@media (min-width: 1040px) { .hf { grid-template-columns: 4fr 7fr; gap: 64px; } .hf h2 { position: sticky; top: 92px; align-self: start; } }

@media (prefers-reduced-motion: reduce) {
  .hb, .hf summary::after { transition: none; }
  .hb:active { transform: none; }
}

/* Documento de privacidad */
.lp-doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 72px; }
.lp-doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.5rem); letter-spacing: -.025em; }
.lp-doc h2 { margin-top: 2em; }
.lp-doc li { margin-bottom: .4em; }
.lp-doc table { margin: 8px 0 16px; }
.lp-doc .dl { margin-bottom: 16px; }
