/* Terralis — portada (hero) de terralis.agency · WEB 0.64.2 (10 nov 2026)
   Capa a pantalla completa sobre el mapa: logo, H1 rotativo (3 mensajes), H3 y buscador.
   Usa solo tokens del sistema de diseño v1 (claro y oscuro). Al buscar, se retira y queda el mapa. */
.hero{position:fixed;inset:0;z-index:600;display:flex;flex-direction:column;background:var(--color-bg-app);color:var(--color-text-primary);font-family:Onest,system-ui,sans-serif;overflow-y:auto;-webkit-overflow-scrolling:touch;transition:opacity .45s ease,visibility .45s}
.hero.out{opacity:0;visibility:hidden;pointer-events:none}
.hero[hidden]{display:none}
/* Barra del espectro: siempre animada, ida y vuelta (regla del 2 nov 2026) */
.hero-bar{flex:0 0 4px;background:var(--gradient-spectrum);background-size:300% 100%;animation:heroBar 6s ease-in-out infinite alternate}
@keyframes heroBar{from{background-position:0 0}to{background-position:100% 0}}
.hero-top{flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;padding:20px 24px}
.hero-brand{margin:0 0 28px}
.hero-logo{display:block;width:300px;max-width:78vw;height:auto}
.hero-logo.l{display:none}
:root[data-theme=light] .hero-logo.d{display:none}
:root[data-theme=light] .hero-logo.l{display:block}
.hero-skip{font:500 14px/1 Onest,system-ui,sans-serif;color:var(--color-text-secondary);background:none;border:0;padding:14px 12px;min-height:44px;margin-top:4px;cursor:pointer;border-radius:8px;text-decoration:underline;text-underline-offset:4px}
/* Interruptores rápidos: tema claro/oscuro e idioma ES/EN */
.hero-tools{display:flex;align-items:center;gap:12px}
.hero-sw{display:grid;place-items:center;min-width:64px;min-height:44px;padding:0;background:none;border:0;border-radius:999px;cursor:pointer;color:var(--color-text-secondary)}
.hero-sw-t{position:relative;display:flex;align-items:center;justify-content:space-between;width:60px;height:32px;padding:0 8px;border-radius:999px;background:var(--color-bg-sunken);border:1px solid var(--color-border-default);transition:background .25s ease}
.hero-sw-t svg{position:relative;z-index:1;transition:color .25s ease}
.hero-sw-t i{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:var(--color-bg-surface);border:1px solid var(--color-border-control);box-shadow:var(--shadow-sm);transition:transform .25s ease}
.hero-sw[aria-checked=true] .hero-sw-t i{transform:translateX(28px)}
.hero-sw[aria-checked=false] svg:first-child,.hero-sw[aria-checked=true] svg:nth-child(2){color:var(--color-text-primary)}
.hero-lang{display:flex;padding:3px;gap:2px;border-radius:999px;background:var(--color-bg-sunken);border:1px solid var(--color-border-default)}
.hero-lang button{min-width:40px;min-height:36px;padding:0 10px;font:600 14px/1 Onest,system-ui,sans-serif;color:var(--color-text-secondary);background:none;border:0;border-radius:999px;cursor:pointer}
.hero-lang button[aria-pressed=true]{background:var(--color-action-primary);color:var(--color-text-on-action,#fff);font-weight:700}
.hero-skip:hover{color:var(--color-text-primary)}
.hero-main{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:16px 24px 40px;gap:0}
.hero-copy{max-width:880px;min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;transition:opacity .35s ease,transform .35s ease}
.hero-copy.sw{opacity:0;transform:translateY(8px)}
.hero h1{margin:0;color:#041436;font-weight:700;font-size:48px;line-height:1.08;letter-spacing:-.02em;text-wrap:balance}
[data-theme=dark] .hero h1{color:var(--color-text-primary)}
/* Palabra clave del H1: degradado del espectro animado (ida y vuelta). En claro, tonos más profundos para que se lea. */
.hero-k{background:linear-gradient(110deg,#8E3FB8 0%,#0E9FB5 22%,#2E9A45 44%,#D99A00 62%,#E8641B 80%,#C12F19 100%);background-size:300% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:heroBar 3.2s ease-in-out infinite alternate;padding-bottom:.08em}
[data-theme=dark] .hero-k{background-image:var(--gradient-spectrum)}
.hero h3{margin:16px 0 0;font-weight:400;font-size:18px;line-height:1.5;color:var(--color-text-secondary);max-width:640px;text-wrap:balance}
/* Selector de mensaje: a quién le habla el titular */
.hero-who{display:flex;gap:4px;margin:8px 0 32px;flex-wrap:wrap;justify-content:center}
.hero-who button{position:relative;font:500 14px/1 Onest,system-ui,sans-serif;color:var(--color-text-tertiary);background:none;border:0;padding:14px 14px;min-height:44px;cursor:pointer;border-radius:8px}
.hero-who button::after{content:"";position:absolute;left:14px;right:14px;bottom:6px;height:2px;border-radius:2px;background:var(--gradient-spectrum);background-size:300% 100%;animation:heroBar 2.4s ease-in-out infinite alternate;opacity:.35}
.hero-who button[aria-selected=true]{color:var(--color-text-primary);font-weight:600}
.hero-who button[aria-selected=true]::after{height:3px;bottom:5px;opacity:1}
/* Buscador */
.hero-find{width:100%;max-width:880px;background:var(--color-bg-surface);border:1px solid var(--color-border-subtle);border-radius:16px;box-shadow:var(--shadow-md);padding:12px;display:grid;grid-template-columns:auto 1fr 1fr auto;gap:8px;align-items:center}
.hero-op{display:flex;background:var(--color-bg-sunken);border-radius:8px;padding:4px;gap:2px}
.hero-op button{font:500 14px/1 Onest,system-ui,sans-serif;letter-spacing:.02em;color:var(--color-text-secondary);background:none;border:1px solid transparent;border-radius:6px;padding:0 14px;min-height:44px;cursor:pointer;white-space:nowrap}
.hero-op button[aria-pressed=true]{background:var(--color-action-subtle);border-color:var(--color-action-primary);color:var(--color-action-subtle-text,var(--color-action-primary));font-weight:700}
.hero-f{position:relative;display:block;text-align:left}
.hero-f span{position:absolute;left:14px;top:8px;font:500 12px/1 Onest,system-ui,sans-serif;color:var(--color-text-tertiary);pointer-events:none}
.hero-f select{width:100%;min-height:52px;padding:22px 36px 6px 14px;font:500 16px/1.2 Onest,system-ui,sans-serif;color:var(--color-text-primary);background:var(--color-bg-app) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23898F9C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center/20px;border:1px solid var(--color-border-default);border-radius:8px;appearance:none;-webkit-appearance:none;cursor:pointer;text-overflow:ellipsis}
.hero-f select:disabled{opacity:.7;cursor:default}
.hero-go{position:relative;min-height:52px;padding:0 28px;font:700 16px/1 Onest,system-ui,sans-serif;letter-spacing:.04em;color:var(--color-text-on-action,#fff);background:var(--color-action-primary);border:0;border-radius:8px;cursor:pointer;white-space:nowrap}
/* Over con degradado (regla del 1 nov 2026): relleno de espectro sin el tramo rojo y texto tinta */
.hero-go:hover,.hero-go:focus-visible{color:#041436;background:linear-gradient(110deg,#C083DA,#30C7D9,#4AB259,#FAE029,#EE7431,#FAE029,#4AB259,#30C7D9,#C083DA);background-size:300% 100%;animation:heroBar 2.4s ease-in-out infinite alternate}
.hero :is(button,select):focus-visible{outline:3px solid var(--color-border-focus,var(--color-action-primary));outline-offset:2px}
.hero-note{margin:12px 0 0;font:400 14px/1.4 Onest,system-ui,sans-serif;color:var(--color-text-tertiary);min-height:20px}
@media (max-width:900px){
  .hero h1{font-size:36px}
  .hero-find{grid-template-columns:1fr 1fr}
  .hero-op{grid-column:1/-1}
  .hero-op button{flex:1}
  .hero-go{grid-column:1/-1}
}
@media (max-width:560px){
  .hero-top{padding:16px}
  .hero-brand{margin:0 0 16px}
  .hero-logo{width:220px}
  .hero-tools{gap:6px}
  .hero-sw{min-width:60px}
  .hero-main{padding:8px 16px 32px;justify-content:flex-start}
  .hero-copy{min-height:168px;margin-top:4vh}
  .hero h1{font-size:30px;line-height:1.12}
  .hero h3{font-size:16px;margin-top:12px}
  .hero-who{margin:4px 0 20px;flex-wrap:nowrap;gap:0}
  .hero-who button{padding:14px 8px;white-space:nowrap}
  .hero-who button::after{left:8px;right:8px}
  .hero-find{grid-template-columns:1fr}
  .hero-op button{padding:0 6px}
}
@media (max-height:620px) and (min-width:561px){.hero-copy{min-height:140px}.hero h1{font-size:36px}.hero-who{margin:16px 0 20px}}
@media (prefers-reduced-motion:reduce){.hero,.hero-copy{transition:none}.hero-bar,.hero-k,.hero-who button::after,.hero-sw-t i,.hero-go:hover,.hero-go:focus-visible{animation:none}}

.hero-cta{display:block;margin:20px auto 0;min-height:44px;font:600 15px/1 Onest,system-ui,sans-serif;color:var(--color-action-primary,#2563EB);background:none;border:0;padding:14px 12px;cursor:pointer;border-radius:8px;text-decoration:underline;text-underline-offset:4px}
.hero-cta[hidden]{display:block;visibility:hidden}
.hero-ask{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(4,20,54,.55)}
.hero-ask[hidden]{display:none}
.hero-ask-b{width:100%;max-width:440px;max-height:calc(100dvh - 32px);overflow:auto;background:#fff;color:#041436;border-radius:16px;padding:24px 20px;text-align:left}
html[data-theme=dark] .hero-ask-b{background:#0B1F4A;color:#F5F5F5}
.hero-ask-b h2{font:600 20px/1.25 Onest,system-ui,sans-serif;margin:0 0 6px}
.hero-ask-b p{font:400 14px/1.4 Onest,system-ui,sans-serif;margin:0 0 16px;opacity:.75}
#hero-ask-o{display:flex;flex-direction:column;gap:8px}
#hero-ask-o button{min-height:48px;text-align:left;font:500 15px/1.3 Onest,system-ui,sans-serif;color:inherit;background:transparent;border:1px solid rgba(127,127,127,.35);border-radius:12px;padding:10px 14px;cursor:pointer}
#hero-ask-o button:hover,#hero-ask-o button:focus-visible{border-color:#2563EB;outline:0}
.hero-ask-x{display:block;margin:12px auto 0;min-height:44px;font:500 14px/1 Onest,system-ui,sans-serif;color:inherit;opacity:.7;background:none;border:0;cursor:pointer;text-decoration:underline}

.hero-fly{position:fixed;z-index:60;margin:0;pointer-events:none;transition:left .6s cubic-bezier(.4,0,.2,1),top .6s cubic-bezier(.4,0,.2,1),width .6s cubic-bezier(.4,0,.2,1),height .6s cubic-bezier(.4,0,.2,1)}
@media (prefers-reduced-motion:reduce){.hero-fly{transition:none}}
