/* =============================================================
   HELIA SOLAR — hoja de estilo única
   Arquetipo: Editorial oscuro (paleta verde-azulada profunda)
   Secciones: 1 tokens · 2 base · 3 splash/nav · 4 botones · 5 hero
              6 secciones · 7 ventajas · 8 proceso · 9 calculadora
              10 testimonios · 11 faq · 12 contacto · 13 footer
              14 chat · 15 responsive · 16 movimiento reducido
   ============================================================= */

/* ---------- 1. TOKENS ---------- */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

:root {
  /* fondos: verde-azulado casi negro, nunca #000 */
  --bg:        #06120F;
  --bg-2:      #08191B;
  --bg-3:      #0C2422;   /* tarjeta */
  --bg-4:      #0F2E2B;   /* tarjeta elevada */
  --azul:      #072033;   /* azul profundo secundario */
  --azul-2:    #0B3350;

  /* texto: crema fría, nunca blanco puro */
  --ink:       #EAF4EE;
  --ink-2:     #C2D6CD;
  --ink-3:     #7E9A92;   /* metadatos */

  /* acentos */
  --accent:    #37C98B;   /* verde solar — acento principal */
  --accent-2:  #2AA9C4;   /* cian — acento secundario */
  --sol:       #E8B761;   /* ámbar puntual: cifras de energía */

  --line:      rgba(234, 244, 238, .12);
  --line-2:    rgba(234, 244, 238, .07);

  --ease-out:  cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.32, .72, .3, 1);

  --wrap:      1240px;
  --gutter:    clamp(1.1rem, 4vw, 3rem);
  --r-sm:      12px;
  --r:         18px;
  --r-lg:      26px;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ⚠️ Esta regla no es opcional. Una clase con `display` (como .chat o
   .menu-movil, que son flex y grid) GANA al `[hidden] { display: none }` que
   trae el navegador de fábrica, así que poner `elemento.hidden = true` desde
   el JS no apaga nada: el panel se queda encima de la página para siempre.
   Con el !important, ocultar por atributo vuelve a funcionar siempre. */
[hidden] { display: none !important; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #04120C; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }

.kicker {
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(55, 201, 139, .18);
  animation: pulso 2.6s ease-in-out infinite;
}
@keyframes pulso {
  0%, 100% { box-shadow: 0 0 0 4px rgba(55, 201, 139, .18); }
  50%      { box-shadow: 0 0 0 8px rgba(55, 201, 139, .05); }
}

.card {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}

.linkish {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  font-size: inherit;
}
.linkish:hover { color: var(--ink); }
.linkish-block { display: block; margin: .9rem auto 0; text-align: center; }

/* revelado en scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; }

/* barra de progreso */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200;
  background: rgba(234, 244, 238, .06); pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: 0 0; transform: scaleX(0);
  transition: transform .08s linear;
}

/* ---------- 3. SPLASH + NAV ---------- */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .9s var(--ease-out), clip-path 1.1s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards; /* red de seguridad si falla el JS */
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }

.splash-inner { display: grid; justify-items: center; gap: .9rem; }
.splash-mark { color: var(--accent); animation: giro 3.4s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
.splash-word {
  font-family: var(--f-mono);
  letter-spacing: .5em; font-size: .82rem; color: var(--ink-3); padding-left: .5em;
}
.splash-line {
  width: 120px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 200% 100%;
  animation: barrido 1.5s var(--ease-soft) infinite;
}
@keyframes barrido { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 150;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s;
}
.nav-inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 1.05rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav.is-scrolled {
  background: rgba(6, 18, 15, .82);
  box-shadow: 0 1px 0 var(--line-2), 0 18px 40px -30px rgba(0, 0, 0, .9);
}
@supports (backdrop-filter: blur(14px)) {
  .nav.is-scrolled { background: rgba(6, 18, 15, .62); backdrop-filter: blur(14px) saturate(150%); }
}
.nav.is-scrolled .nav-inner { padding-block: .75rem; }

.nav-brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.nav-mark { color: var(--accent); flex: none; }
.nav-name {
  font-family: var(--f-display); font-weight: 600; font-size: 1.22rem;
  letter-spacing: -.01em; line-height: 1;
}
.nav-name-2 { color: var(--ink-3); font-weight: 400; margin-left: .18em; }

.nav-links { display: flex; gap: 1.7rem; }
.nav-links a {
  position: relative; font-size: .93rem; color: var(--ink-2);
  transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav-burger { display: none; width: 42px; height: 42px; position: relative; }
.nav-burger span {
  position: absolute; left: 11px; width: 20px; height: 1.6px; background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .25s;
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 24px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu-movil {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(6, 18, 15, .97);
  display: grid; place-items: center;
}
.menu-movil nav { display: grid; gap: 1.4rem; text-align: center; }
.menu-movil a { font-family: var(--f-display); font-size: 1.7rem; }
.menu-movil .btn { font-family: var(--f-body); font-size: 1rem; margin-top: .6rem; }

/* ---------- 4. BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.5rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out),
              background-color .3s var(--ease-out), border-color .3s, color .3s, opacity .25s;
}
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1rem; font-size: .84rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(122deg, var(--accent), #29B9A2 60%, var(--accent-2));
  color: #032018; font-weight: 600;
  box-shadow: 0 10px 26px -12px rgba(55, 201, 139, .65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(55, 201, 139, .75); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .38; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.nav-cta { padding: .68rem 1.25rem; font-size: .9rem; }

/* estado de envío del formulario */
.btn-check { width: 0; opacity: 0; transition: width .3s, opacity .3s; }
.btn-check path { stroke-dasharray: 26; stroke-dashoffset: 26; }
.is-sent .btn-check { width: 20px; opacity: 1; }
.is-sent .btn-check path { animation: trazo .5s var(--ease-out) forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.is-sending { pointer-events: none; opacity: .75; }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: 8rem 0 5rem;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg picture { display: block; position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  filter: saturate(1.05) contrast(1.04);
  will-change: transform;
}
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,18,15,.86) 0%, rgba(6,18,15,.55) 34%, rgba(6,18,15,.82) 74%, var(--bg) 100%),
    linear-gradient(96deg, rgba(7,32,51,.72) 0%, rgba(6,18,15,.24) 58%);
}
.hero-mesh {
  position: absolute; inset: -12%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58% 48% at var(--mesh-x) var(--mesh-y), rgba(55,201,139,.34), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(42,169,196,.24), rgba(232,183,97,.09), rgba(55,201,139,.26), rgba(42,169,196,.24));
  filter: blur(86px) saturate(125%);
  opacity: .62; mix-blend-mode: screen;
  animation: meshShift 26s linear infinite;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 28%; --mesh-y: 38%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 72%; --mesh-y: 58%; }
  100% { --mesh-angle: 360deg; --mesh-x: 28%; --mesh-y: 38%; }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hero-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.6vw, 5.4rem);
  line-height: .99;
  letter-spacing: -.028em;
  text-wrap: balance;
  max-width: 17ch;
  margin: 1.15rem 0 0;
  text-shadow: 0 2px 30px rgba(3, 12, 9, .55);
}
.hero-title em {
  font-style: italic; font-weight: 600;
  background: linear-gradient(102deg, var(--accent) 8%, var(--accent-2) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  max-width: 54ch; margin-top: 1.5rem;
  color: var(--ink-2); font-size: clamp(1.02rem, .98rem + .35vw, 1.2rem);
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 5vw, 4.2rem);
  list-style: none; padding: 0;
  margin-top: 3.4rem; padding-top: 2rem;
  border-top: 1px solid var(--line-2);
}
.stat-num {
  display: flex; align-items: baseline; gap: .3rem;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1;
  color: var(--sol); letter-spacing: -.02em;
}
.stat-num i {
  font-family: var(--f-mono); font-style: normal;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.stat-label { display: block; margin-top: .5rem; font-size: .86rem; color: var(--ink-2); }
.hero-legal { margin-top: 1.3rem; font-size: .78rem; color: var(--ink-3); max-width: 60ch; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.9rem; translate: -50% 0;
  width: 26px; height: 42px; border: 1px solid var(--line);
  border-radius: 999px; display: grid; place-items: start center; padding-top: 8px;
}
.hero-scroll span {
  width: 3px; height: 7px; border-radius: 2px; background: var(--accent);
  animation: baja 1.9s var(--ease-soft) infinite;
}
@keyframes baja { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(13px); } }

/* ---------- 6. SECCIONES ---------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.section-halo {
  position: absolute; inset: -60% -10% -40% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 32% at 50% 50%, rgba(55, 201, 139, .16), transparent 72%);
  filter: blur(110px);
}
.section-head { max-width: 62ch; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.section-title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.95rem, 4.2vw, 3.35rem);
  line-height: 1.06; letter-spacing: -.025em;
  text-wrap: balance; margin: .9rem 0 0;
}
.section-title em {
  font-style: italic;
  background: linear-gradient(102deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-lead { margin-top: 1.15rem; color: var(--ink-2); font-weight: 300; max-width: 58ch; }

.demo-aviso {
  margin-top: 1.5rem; padding: .85rem 1.1rem;
  border: 1px dashed rgba(232, 183, 97, .42);
  border-radius: var(--r-sm);
  background: rgba(232, 183, 97, .07);
  color: var(--ink-2); font-size: .85rem; max-width: 62ch;
}
.demo-aviso strong { color: var(--sol); }
.demo-aviso-sm { margin-top: 1.2rem; font-size: .8rem; }

/* ---------- 7. TIRA DE CONFIANZA + VENTAJAS ---------- */
.trust { border-block: 1px solid var(--line-2); background: var(--bg-2); }
.trust-inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 2.1rem var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem;
}
.trust-item { display: grid; gap: .25rem; padding-left: 1rem; border-left: 2px solid var(--accent); }
.trust-item strong { font-size: .98rem; font-weight: 600; }
.trust-item span { font-size: .84rem; color: var(--ink-3); }

.ventajas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.6vw, 1.4rem);
}
.v-card { padding: clamp(1.6rem, 2.4vw, 2.1rem); position: relative; overflow: hidden; }
.v-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(38% 46% at var(--hx, 50%) var(--hy, 0%), rgba(55, 201, 139, .16), transparent 70%);
  opacity: 0; transition: opacity .45s var(--ease-out);
}
.v-card:hover::after { opacity: 1; }
.v-num {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .16em; color: var(--accent);
  display: block; margin-bottom: .9rem;
}
.v-card h3 {
  font-family: var(--f-display); font-weight: 600; font-size: 1.28rem;
  line-height: 1.2; letter-spacing: -.015em; margin-bottom: .6rem;
}
.v-card p { color: var(--ink-2); font-size: .95rem; font-weight: 300; }

.v-card-wide {
  grid-column: span 2;
  display: grid; grid-template-columns: 0.85fr 1fr; gap: 0; padding: 0; overflow: hidden;
}
.v-card-media { position: relative; min-height: 250px; }
.v-card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.08);
  transition: transform .8s var(--ease-out);
}
.v-card-wide:hover .v-card-media img { transform: scale(1.05); }
.v-card-body { padding: clamp(1.6rem, 2.4vw, 2.1rem); align-self: center; }

/* ---------- 8. PROCESO (pinneado horizontal) ---------- */
.proceso { overflow: hidden; }
.proceso-track-wrap { margin-top: 1rem; }
.proceso-track {
  display: flex; gap: 1.2rem;
  padding-inline: var(--gutter);
  will-change: transform;
}
.proceso.is-pinned .proceso-track-wrap { overflow: visible; }
.proceso:not(.is-pinned) .proceso-track-wrap {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.2rem;
}
.proceso:not(.is-pinned) .paso { scroll-snap-align: center; }
.proceso-track-wrap::-webkit-scrollbar { height: 4px; }
.proceso-track-wrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.paso {
  flex: 0 0 clamp(270px, 27vw, 355px);
  padding: clamp(1.6rem, 2.2vw, 2rem);
  display: flex; flex-direction: column; gap: .7rem;
  position: relative; overflow: hidden;
  min-height: 330px;
}
.paso-num {
  font-family: var(--f-display); font-style: italic; font-weight: 600;
  font-size: 2.7rem; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(55, 201, 139, .5);
}
.paso h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.18; letter-spacing: -.015em; }
.paso p { color: var(--ink-2); font-size: .93rem; font-weight: 300; }
.paso-tiempo {
  margin-top: auto; align-self: flex-start;
  /* en la tarjeta con foto, el margen automático lo aporta el texto */
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sol); border: 1px solid rgba(232, 183, 97, .3);
  padding: .3rem .7rem; border-radius: 999px;
}
/* La tarjeta con foto mide lo mismo que las demás y empieza igual: el número
   arriba del todo. La imagen va al pie, donde no descuadra la fila. */
.paso-img {
  margin: .2rem -1px -1px; height: 132px; overflow: hidden;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.paso-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.paso-media .paso-tiempo { margin-bottom: .2rem; }

/* ---------- 9. CALCULADORA ---------- */
.calc-shell { padding: clamp(1.4rem, 3vw, 2.6rem); }

.calc-steps {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  list-style: none; padding: 0 0 1.6rem; margin: 0 0 1.8rem;
  border-bottom: 1px solid var(--line-2);
}
.calc-steps li {
  display: flex; align-items: center; gap: .55rem;
  font-size: .87rem; color: var(--ink-3);
  transition: color .35s;
}
.calc-steps li span {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .76rem;
  transition: background-color .35s, border-color .35s, color .35s;
}
.calc-steps li.is-active { color: var(--ink); }
.calc-steps li.is-active span { background: var(--accent); border-color: var(--accent); color: #032018; }
.calc-steps li.is-done span { border-color: var(--accent); color: var(--accent); }

.calc-panel { display: none; }
.calc-panel.is-active { display: block; animation: entra .5s var(--ease-out); }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; }
.calc-grid-map { grid-template-columns: .9fr 1.1fr; }
.calc-h { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; line-height: 1.2; letter-spacing: -.02em; }
.calc-p { color: var(--ink-2); font-size: .93rem; font-weight: 300; margin-top: .55rem; }

.dropzone {
  margin-top: 1.4rem; padding: 2.1rem 1.2rem;
  border: 1.5px dashed var(--line); border-radius: var(--r);
  background: rgba(234, 244, 238, .02);
  display: grid; justify-items: center; gap: .45rem; text-align: center;
  cursor: pointer; color: var(--ink-3);
  transition: border-color .3s, background-color .3s, transform .3s var(--ease-out);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: rgba(55, 201, 139, .06); transform: translateY(-2px); }
.dropzone svg { color: var(--accent); }
.dropzone strong { color: var(--ink); font-weight: 500; font-size: .96rem; }
.dropzone span { font-size: .8rem; }
.dropzone.is-busy { pointer-events: none; opacity: .6; }

.calc-status { margin-top: .9rem; font-size: .87rem; min-height: 1.3em; }
/* El aviso de rangos del paso 1 no reserva espacio mientras está vacío. */
[data-aviso-paso1]:empty { display: none; }
.calc-status.ok { color: var(--accent); }
.calc-status.warn { color: var(--sol); }
.calc-status.load { color: var(--ink-2); }
.calc-status.load::after { content: ""; animation: puntos 1.4s steps(4) infinite; }
@keyframes puntos { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.calc-nota { margin-top: 1rem; font-size: .8rem; color: var(--ink-3); }

.campos { display: grid; gap: 1rem; }
.campo { display: grid; gap: .38rem; }
.campo > span { font-size: .82rem; color: var(--ink-2); font-weight: 500; }
.campo .opt { color: var(--ink-3); font-style: normal; font-weight: 400; }
.campo-input {
  display: flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgba(4, 14, 12, .5);
  padding: .1rem .9rem;
  transition: border-color .3s, box-shadow .3s;
}
.campo-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(55, 201, 139, .15); }
.campo-input input, .campo-input textarea {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  padding: .78rem 0; font-size: .97rem;
}
.campo-input textarea { padding-block: .8rem; resize: vertical; font-family: inherit; }
.campo-input input::placeholder, .campo-input textarea::placeholder { color: var(--ink-3); opacity: .7; }
.campo-input i {
  font-style: normal; font-family: var(--f-mono); font-size: .76rem;
  color: var(--ink-3); white-space: nowrap;
}
.campo-input.is-ia { border-color: rgba(55, 201, 139, .55); background: rgba(55, 201, 139, .06); }
.campo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.campos + .btn { margin-top: 1.5rem; }

.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .82rem; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: .25rem; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

.sugerencias {
  list-style: none; padding: .3rem; margin: .4rem 0 0;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-4); max-height: 220px; overflow-y: auto;
}
.sugerencias li { padding: .6rem .7rem; border-radius: 8px; font-size: .87rem; cursor: pointer; color: var(--ink-2); }
.sugerencias li:hover, .sugerencias li.is-sel { background: rgba(55, 201, 139, .12); color: var(--ink); }

.mapa-wrap { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
#mapa { height: clamp(300px, 46vh, 440px); background: var(--bg-4); }
.mapa-hint {
  position: absolute; inset: auto 0 0 0; z-index: 500;
  padding: .6rem .9rem; font-size: .8rem; text-align: center;
  background: rgba(6, 18, 15, .84); color: var(--ink-2);
}
.leaflet-container { background: var(--bg-4); font-family: var(--f-body); }
.leaflet-control-attribution { background: rgba(6,18,15,.72) !important; color: var(--ink-3) !important; font-size: .64rem !important; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.leaflet-bar a { background: var(--bg-3) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-bar a:hover { background: var(--bg-4) !important; }

.dibujo-info { margin-top: 1.4rem; }
.dibujo-acciones { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.area-box {
  margin-top: 1.1rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgba(4, 14, 12, .5);
  display: grid; gap: .2rem;
}
.area-label { font-size: .78rem; color: var(--ink-3); font-family: var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.area-val { font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; line-height: 1.1; color: var(--sol); }
.area-val i { font-family: var(--f-mono); font-style: normal; font-size: .8rem; color: var(--ink-3); }
.area-sub { font-size: .82rem; color: var(--ink-2); }
.dibujo-info + .btn { margin-top: 1.4rem; }

/* Gate + informe */
.gate-inner { max-width: 460px; margin-inline: auto; text-align: center; padding: clamp(.6rem, 2vw, 1.6rem) 0; }
.gate-form { display: grid; gap: 1rem; margin-top: 1.6rem; text-align: left; }
.gate-status { font-size: .85rem; min-height: 1.2em; }
.gate-status.warn { color: var(--sol); }
.gate-status.ok { color: var(--accent); }
/* Qué pasó con los datos de la puerta (lib/aviso-lead.js): vacío no ocupa lugar. */
.informe-aviso {
  max-width: 620px; margin: 0 auto 1.8rem; padding: .85rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: .9rem; text-align: center; color: var(--ink-2);
  overflow-wrap: anywhere;
}
/* Vacío no ocupa lugar, pero sigue en el árbol de accesibilidad: con
   display:none los lectores de pantalla no anuncian la región cuando se llena. */
.informe-aviso:empty { margin: 0; padding: 0; border: 0; }
.informe-aviso:focus { outline: none; }
.informe-demo { margin-inline: auto; }
.informe-ayuda { margin-top: .9rem; text-align: center; font-size: .8rem; color: var(--ink-3); }
.informe-aviso.ok { border-color: rgba(55, 201, 139, .4); color: var(--accent); }
.informe-aviso.warn { border-color: rgba(232, 183, 97, .4); color: var(--sol); }

.informe-head { text-align: center; margin-bottom: 2.2rem; }
.informe-title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.06; letter-spacing: -.025em;
  margin-top: .8rem; text-wrap: balance;
}
.informe-title em {
  font-style: italic;
  background: linear-gradient(102deg, var(--accent), var(--sol));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.informe-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding: 1.6rem 0; margin-bottom: 1.8rem;
  border-block: 1px solid var(--line-2);
}
.kpi { text-align: center; }
.kpi-num {
  display: block; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; color: var(--accent); letter-spacing: -.02em;
}
.kpi-label { display: block; margin-top: .45rem; font-size: .8rem; color: var(--ink-3); }

.informe-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.informe-bloque { padding: 1.3rem 1.4rem; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(4, 14, 12, .38); }
.informe-bloque h4 {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .9rem; font-weight: 500;
}
.informe-bloque dl { display: grid; gap: .6rem; margin: 0; }
.informe-bloque dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.informe-bloque dt { font-size: .88rem; color: var(--ink-2); font-weight: 300; }
.informe-bloque dd { margin: 0; font-family: var(--f-mono); font-size: .92rem; font-weight: 500; }
.informe-bloque dd.em { color: var(--sol); }

.barra-ahorro {
  position: relative; margin-top: 1.6rem; height: 42px;
  border-radius: 999px; overflow: hidden;
  background: rgba(234, 244, 238, .06); display: grid; place-items: center;
}
.barra-fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(55,201,139,.42), rgba(42,169,196,.42));
  transition: width 1.2s var(--ease-soft);
}
.barra-txt { position: relative; font-size: .84rem; color: var(--ink); }

.informe-legal {
  margin-top: 1.6rem; padding: 1rem 1.1rem;
  border: 1px dashed rgba(232, 183, 97, .38); border-radius: var(--r-sm);
  background: rgba(232, 183, 97, .06);
  font-size: .84rem; color: var(--ink-2);
}
.informe-legal strong { color: var(--sol); }
.informe-cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }

/* ---------- 10. TESTIMONIOS ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.6vw, 1.4rem); }
.t-card { padding: clamp(1.6rem, 2.4vw, 2.1rem); position: relative; display: flex; flex-direction: column; gap: 1.2rem; }
.t-badge {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sol); border: 1px solid rgba(232, 183, 97, .35);
  padding: .22rem .55rem; border-radius: 999px;
}
.t-card blockquote { margin: 0; padding-right: 3.5rem; }
.t-card blockquote p {
  font-family: var(--f-display); font-size: 1.06rem; line-height: 1.45; font-weight: 400;
  color: var(--ink); font-style: italic;
}
.t-card blockquote p::before { content: "“"; color: var(--accent); margin-right: .1em; }
.t-card blockquote p::after { content: "”"; color: var(--accent); }
.t-card figcaption { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-2); display: grid; gap: .15rem; }
.t-nombre { font-size: .92rem; font-weight: 500; }
.t-meta { font-family: var(--f-mono); font-size: .74rem; color: var(--ink-3); }

/* ---------- 11. FAQ ---------- */
.faq-list { display: grid; gap: .7rem; }
.faq-item {
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--bg-3); overflow: hidden;
  transition: border-color .3s;
}
.faq-item[open] { border-color: rgba(55, 201, 139, .32); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.15rem clamp(1.1rem, 2vw, 1.6rem);
  cursor: pointer; list-style: none;
  font-family: var(--f-display); font-size: 1.06rem; font-weight: 600; letter-spacing: -.012em;
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary i {
  position: relative; width: 16px; height: 16px; flex: none;
}
.faq-item summary i::before, .faq-item summary i::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.6px;
  background: var(--accent); transition: transform .35s var(--ease-out);
}
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0deg); }
.faq-body { padding: 0 clamp(1.1rem, 2vw, 1.6rem) 1.3rem; }
.faq-body p { color: var(--ink-2); font-weight: 300; font-size: .95rem; max-width: 68ch; }

/* ---------- 12. CONTACTO ---------- */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contacto-datos { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: .9rem; }
.contacto-datos li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding-bottom: .85rem; border-bottom: 1px solid var(--line-2);
}
.contacto-datos span {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.contacto-datos a, .contacto-datos strong { font-size: 1rem; font-weight: 500; }
.contacto-datos a { color: var(--accent); transition: opacity .3s; }
.contacto-datos a:hover { opacity: .75; }

.contacto-form { padding: clamp(1.5rem, 3vw, 2.4rem); display: grid; gap: 1.1rem; }
.form-status { font-size: .85rem; min-height: 1.2em; }
.form-status.ok { color: var(--accent); }
.form-status.warn { color: var(--sol); }

/* ---------- 13. FOOTER ---------- */
.footer { border-top: 1px solid var(--line-2); background: var(--bg-2); padding: clamp(3rem, 5vw, 4.5rem) 0 2rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: grid; gap: .55rem; max-width: 34ch; }
.footer-brand .nav-mark { color: var(--accent); }
.footer-brand p { font-size: .88rem; color: var(--ink-3); font-weight: 300; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a { font-size: .9rem; color: var(--ink-2); transition: color .3s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between;
  font-size: .78rem; color: var(--ink-3);
}
.footer-legal { max-width: 62ch; }

/* ---------- 14. CHAT ---------- */
.chat-fab {
  position: fixed; right: clamp(1rem, 3vw, 1.8rem); bottom: clamp(1rem, 3vw, 1.8rem); z-index: 300;
  display: flex; align-items: center; gap: .6rem;
  padding: .82rem 1.25rem; border-radius: 999px;
  background: linear-gradient(122deg, var(--accent), var(--accent-2));
  color: #032018; font-weight: 600; font-size: .9rem;
  box-shadow: 0 14px 34px -14px rgba(55, 201, 139, .8);
  transition: transform .3s var(--ease-out), box-shadow .3s, opacity .3s;
}
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -16px rgba(55, 201, 139, .9); }
.chat-fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px) scale(.96); }

.chat {
  position: fixed; right: clamp(1rem, 3vw, 1.8rem); bottom: clamp(1rem, 3vw, 1.8rem); z-index: 310;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(620px, calc(100vh - 2rem));
  display: flex; flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95);
  overflow: hidden;
  animation: entra .35s var(--ease-out);
}
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.chat-id { display: flex; align-items: center; gap: .7rem; }
.chat-avatar {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(122deg, var(--accent), var(--accent-2));
  color: #032018; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
}
.chat-id strong { display: block; font-size: .96rem; }
.chat-sub { font-size: .76rem; color: var(--ink-3); }
.chat-close { color: var(--ink-3); padding: .3rem; transition: color .3s; }
.chat-close:hover { color: var(--ink); }

.chat-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: grid; gap: .8rem; align-content: start; }
.msg { max-width: 86%; padding: .75rem .95rem; border-radius: 16px; font-size: .9rem; line-height: 1.55; }
.msg p + p { margin-top: .5rem; }
.msg-bot { background: var(--bg-4); border-bottom-left-radius: 5px; justify-self: start; color: var(--ink-2); }
.msg-user { background: linear-gradient(122deg, rgba(55,201,139,.9), rgba(42,169,196,.85)); color: #032018; border-bottom-right-radius: 5px; justify-self: end; font-weight: 500; }
.msg-load { display: flex; gap: .3rem; align-items: center; }
.msg-load span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: rebote 1.2s var(--ease-soft) infinite; }
.msg-load span:nth-child(2) { animation-delay: .15s; }
.msg-load span:nth-child(3) { animation-delay: .3s; }
@keyframes rebote { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.1rem .8rem; }
.chat-chips button {
  font-size: .78rem; padding: .4rem .75rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2);
  transition: border-color .3s, color .3s, background-color .3s;
}
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); background: rgba(55, 201, 139, .08); }
.chat-chips.is-hidden { display: none; }

.chat-form { display: flex; gap: .5rem; padding: .8rem 1.1rem; border-top: 1px solid var(--line-2); }
.chat-form input {
  flex: 1; min-width: 0; background: rgba(4, 14, 12, .55);
  border: 1px solid var(--line); border-radius: 999px; padding: .65rem 1rem; font-size: .9rem; outline: none;
  transition: border-color .3s;
}
.chat-form input:focus { border-color: var(--accent); }
.chat-form button {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(122deg, var(--accent), var(--accent-2)); color: #032018;
  transition: transform .3s var(--ease-out);
}
.chat-form button:hover { transform: scale(1.06); }
.chat-legal { padding: 0 1.1rem .9rem; font-size: .7rem; color: var(--ink-3); text-align: center; }

/* ---------- 15. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .ventajas-grid { grid-template-columns: repeat(2, 1fr); }
  .v-card-wide { grid-column: span 2; }
  .testi-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }
  .calc-grid, .calc-grid-map { grid-template-columns: 1fr; }
  .calc-grid-map .calc-col:last-child { order: -1; }
  .contacto-grid { grid-template-columns: 1fr; }
  .informe-cols { grid-template-columns: 1fr; }
  .informe-kpis { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
}

@media (max-width: 760px) {
  .hero-bg img { object-position: center 38%; }
}

@media (max-width: 620px) {
  .hero { padding-top: 6.5rem; }
  .hero-stats { gap: 1.4rem 2.2rem; margin-top: 2.6rem; }
  .ventajas-grid { grid-template-columns: 1fr; }
  .v-card-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .v-card-media { min-height: 200px; }
  .trust-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .campo-row { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .chat-fab-txt { display: none; }
  .chat-fab { padding: 1rem; }
  .t-card blockquote { padding-right: 0; }
  .t-badge { position: static; align-self: flex-start; }
  .informe-cta .btn { width: 100%; }
}

/* ---------- 16. MOVIMIENTO REDUCIDO ----------
   Solo se apaga lo intrusivo (bucles infinitos y parallax).
   Los micro-efectos (hover, fades, transiciones) se quedan:
   Windows trae esta preferencia activada de fábrica en muchos equipos
   y apagarlo todo dejaría la web muerta para esos visitantes. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .splash-mark, .splash-line { animation: none; }
  .kicker .dot { animation: none; }
  .hero-scroll span { animation: none; opacity: 1; }
  .msg-load span { animation: none; }
  .calc-status.load::after { animation: none; content: "…"; }
}

.no-rentable { max-width: 560px; margin-inline: auto; text-align: center; padding: clamp(.6rem, 2vw, 1.6rem) 0; }
.no-rentable .calc-p { margin-top: .9rem; }
.no-rentable .informe-cta { margin-top: 1.6rem; }

/* ---------- 17. IMPRESIÓN («Guardar en PDF») ----------
   Solo el estudio, en claro y sin fondos: el tema oscuro en papel sale
   ilegible. Todo depende de que el estudio esté a la vista (su paso activo y
   sin [hidden]): si no, Ctrl+P saca la página tal cual y no una hoja en blanco
   ni texto oscuro sobre tarjetas oscuras. La marca de demostración va dentro
   del estudio (regla 1). */
@page { margin: 14mm; }
@media print {
  :root:has(.calc-panel.is-active [data-informe]:not([hidden])) {
    --ink: #111; --ink-2: #333; --ink-3: #555;
    --accent: #0B6B45; --sol: #8A5A00;
    --line: #BBB; --line-2: #CCC;
    background: #fff !important;
  }
  :root:has(.calc-panel.is-active [data-informe]:not([hidden])) body { background: #fff !important; color: #111; }
  :root:has(.calc-panel.is-active [data-informe]:not([hidden])) body *:not(:has([data-informe])):not([data-informe]):not([data-informe] *) { display: none !important; }
  :root:has(.calc-panel.is-active [data-informe]:not([hidden])) body *:has([data-informe]) {
    background: none !important; border: 0 !important; box-shadow: none !important;
    padding: 0 !important; margin: 0 !important; max-width: none !important;
  }
  [data-informe], [data-informe] * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .informe-title em { background: none; -webkit-text-fill-color: currentColor; color: var(--accent); }
  .informe-bloque { background: none; break-inside: avoid; }
  .informe-legal, .informe-demo { background: none; }
  .informe-kpis, .informe-legal, .informe-demo { break-inside: avoid; }
  .informe-cta, .informe-ayuda, .barra-ahorro { display: none !important; }
}
