/* =============================================================
   Alvarado Solutions · Energía solar — styles.css
   1 Tokens · 2 Reset · 3 Utilities · 4 Type · 5 Components
   6 Sections · 7 Calculator · 8 Chat · 9 Effects · 10 Responsive
   ============================================================= */

/* 1. Tokens */
:root {
  --ink: #0A1524;
  --navy: #0E1D30;
  --navy-2: #142A45;
  --petrol: #1A3354;
  --deep-green: #1B2236;
  --green: #FF914B;
  --green-2: #F07A2E;
  --cyan: #FFB37E;
  --sun: #ffd166;
  --text: #F4F1EA;
  --muted: rgba(244,241,234, .7);
  --dim: rgba(244,241,234, .45);
  --line: rgba(244,241,234, .12);
  --line-2: rgba(244,241,234, .22);
  --glass: rgba(20,42,69, .55);
  --grad: linear-gradient(115deg, #FFB37E 0%, #FF914B 40%, #FFB37E 100%);
  --grad-sun: linear-gradient(115deg, #ffe08a, #ffb347);

  --display: "Fraunces", Georgia, serif;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --radius: 22px;
  --radius-sm: 14px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h: 72px;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text);
  background: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* 3. Utilities */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--text); color: var(--ink); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}

/* 4. Type */
.kicker {
  display: inline-flex; align-items: center; gap: .6em; font-family: var(--mono); font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 1.1rem;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(255,145,75,.6); animation: pulse 2.2s infinite; display: inline-block; flex: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.section-title { font-size: clamp(2.1rem, 5.2vw, 4.1rem); max-width: 18ch; }
.section-sub { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 56ch; margin-top: 1.2rem; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head.center .section-title { margin-inline: auto; }

/* 5. Components */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; height: var(--bh);
  padding: 0 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem; white-space: nowrap;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .3s, border-color .3s, opacity .3s;
  position: relative; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-sm { --bh: 40px; padding: 0 1.05rem; font-size: .9rem; }
.btn-lg { --bh: 56px; padding: 0 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { color: #0A1524; background: var(--grad); box-shadow: 0 10px 30px -10px rgba(255,145,75,.55), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); background-size: 250% 100%; background-position: 120% 0; z-index: -1; transition: background-position 1s var(--ease-out); mix-blend-mode: soft-light; }
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(255,145,75,.75), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover::after { background-position: -20% 0; }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255,145,75,.55); background: rgba(255,145,75,.08); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.link-btn { color: var(--green); text-decoration: underline; text-underline-offset: 4px; font-size: .92rem; margin-top: .6rem; }

.card {
  position: relative; border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 2rem);
  background: linear-gradient(180deg, rgba(15, 52, 72, .55), rgba(14,29,48, .7));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,145,75,.16), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(94,240,168,.6), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s; }
.card:hover::after { opacity: 1; }
.card h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin: 1.1rem 0 .6rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,145,75,.1); border: 1px solid rgba(255,145,75,.25); }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; min-width: 0; }
.field label, .field > span { font-size: .84rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea, .input-unit {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(10,21,36, .6); transition: border-color .25s, box-shadow .25s; outline: none;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ee08f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.4rem; }
.field select option { background: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus, .input-unit:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(255,145,75,.15); }
.field textarea { resize: vertical; min-height: 110px; }
.input-unit { display: flex; align-items: center; gap: .4rem; padding: 0 .9rem; }
.input-unit input { border: 0; background: none; padding: 0; min-height: 46px; box-shadow: none !important; flex: 1; min-width: 0; }
.input-unit span { color: var(--dim); font-size: .9rem; font-family: var(--mono); }
.input-unit.is-filled { border-color: rgba(255,145,75,.6); background: rgba(255,145,75,.06); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: .4rem 0 1.1rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.form-msg { font-size: .9rem; margin-top: .8rem; min-height: 1.2em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #ffb4a2; }

/* 6. Sections ------------------------------------------------ */

/* Splash */
.splash { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; place-items: center; align-content: center; gap: 22px; animation: splashOut .6s var(--ease-out) 2.6s forwards; }
html.is-ready .splash { opacity: 0; visibility: hidden; transition: opacity .7s var(--ease-out), visibility 0s .7s; }
.splash-sun { fill: var(--sun); transform-origin: 32px 32px; animation: sunPop 1s var(--ease-out) both; }
.splash-rays path { stroke: var(--green); stroke-width: 3; stroke-linecap: round; fill: none; stroke-dasharray: 10; stroke-dashoffset: 10; animation: draw .8s var(--ease-out) .3s forwards; }
.splash-mark svg { animation: spin 6s linear infinite; }
.splash-bar { width: 120px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; animation: bar 1.1s var(--ease-out) both; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .4s, border-color .4s, transform .5s var(--ease-out); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(10,21,36, .78); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 1.5rem; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; }
.brand-mark svg { width: 36px; height: 36px; }
.brand-logo { height: 40px; width: auto; }
.nav-links { display: none; gap: .3rem; margin-left: auto; }
.nav-links a { padding: .5rem .8rem; border-radius: 999px; font-size: .92rem; color: var(--muted); transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { display: none; }
.nav-burger { margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border-radius: 12px; border: 1px solid var(--line-2); }
.nav-burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease-out); }
.nav.is-open .nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-mobile { display: flex; flex-direction: column; gap: .2rem; padding: 0 var(--gutter); max-height: 0; overflow: hidden; background: rgba(10,21,36,.96); backdrop-filter: blur(18px); transition: max-height .6s var(--ease-out), padding .6s var(--ease-out); }
.nav.is-open .nav-mobile { max-height: 560px; padding: .5rem var(--gutter) 1.4rem; border-bottom: 1px solid var(--line); }
.nav-mobile a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-weight: 500; }
.nav-mobile .btn { margin-top: 1rem; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 90px; overflow: clip; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 60% at 78% 18%, rgba(255,179,126,.22), transparent 60%),
  radial-gradient(60% 50% at 10% 85%, rgba(255,145,75,.16), transparent 60%),
  linear-gradient(180deg, #051522 0%, #0A1524 100%); }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s; }
.hero-photo.has-img { opacity: .55; }
.hero-photo.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,21,36,.95) 0%, rgba(10,21,36,.6) 45%, rgba(10,21,36,.25) 100%), linear-gradient(0deg, var(--ink), transparent 40%); }
.hero-sun { position: absolute; top: 2%; right: 2%; width: clamp(160px, 22vw, 320px); aspect-ratio: 1; }
.sun-core { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff8d6, #ffd166 45%, #ff9f43 100%); box-shadow: 0 0 80px 20px rgba(255, 196, 90, .45), 0 0 200px 80px rgba(255, 170, 60, .18); animation: sunBreath 6s ease-in-out infinite; }
.sun-halo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 120, .28), transparent 65%); }
.sun-rays { position: absolute; inset: -40%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 220, 140, .09) 0 4deg, transparent 4deg 14deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 62%); mask: radial-gradient(circle, #000 20%, transparent 62%); animation: spin 90s linear infinite; }
.hero-field { position: absolute; left: -10%; right: -10%; bottom: -8%; height: 62%; perspective: 900px; perspective-origin: 60% 0%; overflow: hidden; -webkit-mask: linear-gradient(180deg, transparent 0%, #000 35%); mask: linear-gradient(180deg, transparent 0%, #000 35%); }
.field-plane {
  position: absolute; inset: -40% -20% -20%; transform: rotateX(62deg); transform-origin: 50% 0;
  background:
    linear-gradient(90deg, rgba(10,21,36,.95) 0 3px, transparent 3px) 0 0 / 120px 100%,
    linear-gradient(0deg, rgba(10,21,36,.95) 0 6px, transparent 6px) 0 0 / 100% 70px,
    linear-gradient(90deg, rgba(126, 211, 255, .14) 1px, transparent 1px) 0 0 / 30px 100%,
    linear-gradient(0deg, rgba(126, 211, 255, .14) 1px, transparent 1px) 0 0 / 100% 17.5px,
    linear-gradient(180deg, #0e3a5c, #0a2a44 60%, #081f33);
  animation: fieldMove 30s linear infinite;
}
.field-sheen { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 222, 150, .32) 48%, rgba(94, 240, 168, .14) 52%, transparent 62%); background-size: 260% 100%; animation: sheen 7s var(--ease-soft) infinite; mix-blend-mode: screen; }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,21,36,.92) 0%, rgba(10,21,36,.55) 42%, rgba(10,21,36,0) 72%), linear-gradient(0deg, var(--ink) 0%, transparent 22%); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-title { font-size: clamp(2.7rem, 8.4vw, 6.4rem); line-height: .98; letter-spacing: -0.045em; font-weight: 800; max-width: 12ch; }
.hero-title em { font-size: 1.08em; }
.hero-sub { margin-top: 1.6rem; color: var(--muted); font-size: clamp(1.02rem, 1.35vw, 1.2rem); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2rem; }
.hero-trust li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.hero-trust svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-card {
  position: relative; width: 100%; max-width: 420px; justify-self: center; border-radius: 26px; padding: 1.3rem;
  background: linear-gradient(160deg, rgba(14, 50, 72, .78), rgba(5, 22, 36, .86)); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset;
  transform-style: preserve-3d;
}
.hero-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(94,240,168,.9) 80%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rotateBorder 6s linear infinite; pointer-events: none; }
.hc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.hc-badge { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); padding: .35rem .7rem; border-radius: 999px; background: rgba(255,145,75,.1); border: 1px solid rgba(255,145,75,.3); }
.hc-demo { font-size: .72rem; color: var(--dim); }
.hc-bill { display: grid; grid-template-columns: 86px 1fr; gap: 1rem; padding: 1rem; border-radius: 18px; background: rgba(10,21,36,.6); border: 1px solid var(--line); }
.hc-bill-doc { position: relative; aspect-ratio: 3/4; border-radius: 8px; background: #e9f1ee; padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.hc-bill-doc span { height: 5px; border-radius: 3px; background: #b6c6c1; width: 100%; }
.hc-bill-doc span.w60 { width: 60%; background: #F07A2E; }
.hc-bill-doc span.w40 { width: 40%; }
.hc-scan { position: absolute; left: 0; right: 0; height: 26px; top: -26px; background: linear-gradient(180deg, transparent, rgba(255,145,75,.55), transparent); animation: scan 2.6s var(--ease-soft) infinite; }
.hc-step { font-family: var(--mono); font-size: .7rem; color: var(--dim); letter-spacing: .06em; margin-bottom: .5rem; }
.hc-bill-data dl { display: grid; gap: .45rem; }
.hc-bill-data dl div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; border-bottom: 1px dashed var(--line); padding-bottom: .35rem; }
.hc-bill-data dt { font-size: .82rem; color: var(--muted); }
.hc-bill-data dd { font-size: .9rem; }
.hc-bill-data b { font-size: 1.05rem; }
.hc-result { margin-top: 1rem; padding: 1rem; border-radius: 18px; background: rgba(255,145,75,.06); border: 1px solid rgba(255,145,75,.2); }
.hc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.hc-num { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.hc-lbl { font-size: .72rem; color: var(--muted); }
.hc-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); margin: .9rem 0 .5rem; overflow: hidden; }
.hc-bar span { display: block; height: 100%; width: var(--w); background: var(--grad); border-radius: inherit; transform-origin: left; animation: barGrow 2.4s var(--ease-out) 1.4s both; }
.hc-note { font-size: .72rem; color: var(--dim); }
.hc-cta { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; transition: background .3s, border-color .3s; }
.hc-cta:hover { background: rgba(255,145,75,.1); border-color: rgba(255,145,75,.4); }
.hc-cta span { transition: transform .4s var(--ease-out); }
.hc-cta:hover span { transform: translateX(4px); }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line-2); display: none; justify-content: center; padding-top: 8px; }
.hero-scroll span { width: 3px; height: 8px; border-radius: 2px; background: var(--green); animation: scrollDot 2s var(--ease-out) infinite; }

/* Marquee */
.marquee { border-block: 1px solid var(--line); background: rgba(14,29,48,.6); overflow: hidden; padding: 1.05rem 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 38s linear infinite; font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; color: var(--muted); }
.marquee-track i { color: var(--green); font-style: normal; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Stats */
.stats { padding: clamp(3rem, 7vw, 5rem) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.stat { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.stat-num { display: block; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(180deg, #fff, rgba(244,241,234,.55)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-lbl { display: block; color: var(--muted); font-size: .92rem; margin-top: .6rem; max-width: 22ch; }

/* Generic section */
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }

/* Bento */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.bento-chart { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 8px; height: 140px; margin-top: 1.8rem; position: relative; padding-bottom: 22px; }
.bento-chart span { height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, rgba(255,180,90,.75), rgba(255,140,70,.25)); transform-origin: bottom; transform: scaleY(.1); transition: transform 1.2s var(--ease-out); }
.bento-chart span.on { background: linear-gradient(180deg, #FFB37E, rgba(255,179,126,.35)); }
.is-in .bento-chart span, .bento-chart.is-in span { transform: scaleY(1); }
.bento-chart span:nth-child(2) { transition-delay: .08s } .bento-chart span:nth-child(3) { transition-delay: .16s } .bento-chart span:nth-child(4) { transition-delay: .3s } .bento-chart span:nth-child(5) { transition-delay: .38s } .bento-chart span:nth-child(6) { transition-delay: .46s }
.bento-chart small { position: absolute; bottom: 0; font-family: var(--mono); font-size: .7rem; color: var(--dim); }
.bc-l { left: 0 } .bc-r { left: 50% }
.bento-a { background: linear-gradient(160deg, rgba(14, 70, 60, .6), rgba(14,29,48, .8)); }
.bento-b { background: linear-gradient(160deg, rgba(60, 50, 20, .45), rgba(14,29,48, .85)); }
.bento-b .card-icon { background: rgba(255,209,102,.1); border-color: rgba(255,209,102,.3); }
.bento-b .card-icon svg { stroke: var(--sun); }

/* Sectors (expanding panels) */
.panels { display: flex; flex-direction: column; gap: .8rem; }
.panel { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 120px; border: 1px solid var(--line); cursor: pointer; isolation: isolate; transition: flex .8s var(--ease-out), min-height .8s var(--ease-out), border-color .4s; outline-offset: 4px; }
.panel.is-active { min-height: 380px; border-color: rgba(255,145,75,.35); }
.panel-media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; background-color: var(--tint);
  background-image: radial-gradient(120% 80% at 80% 0%, rgba(255,209,102,.25), transparent 50%), linear-gradient(160deg, var(--tint), #0A1524 85%); transition: transform 1.4s var(--ease-out); }
.panel-media::before { content: ""; position: absolute; inset: 0; opacity: .35; background:
  linear-gradient(90deg, rgba(10,21,36,.9) 0 2px, transparent 2px) 0 0 / 46px 100%,
  linear-gradient(0deg, rgba(10,21,36,.9) 0 2px, transparent 2px) 0 0 / 100% 28px,
  linear-gradient(180deg, rgba(40,110,160,.6), rgba(10,40,70,.8));
  transform: perspective(600px) rotateX(55deg) translateY(30%) scale(1.6); transform-origin: bottom; -webkit-mask: linear-gradient(0deg, #000 30%, transparent 85%); mask: linear-gradient(0deg, #000 30%, transparent 85%); }
.panel-media.has-img::before { display: none; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,21,36,.96) 0%, rgba(10,21,36,.55) 50%, rgba(10,21,36,.15) 100%); }
.panel:hover .panel-media, .panel.is-active .panel-media { transform: scale(1.05); }
.panel-body { position: absolute; inset: auto 0 0 0; padding: 1.4rem; }
.panel-num { font-family: var(--mono); font-size: .78rem; color: var(--green); }
.panel h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-top: .3rem; }
.panel-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .8s var(--ease-out), opacity .6s, margin .8s var(--ease-out); }
.panel-more > * { overflow: hidden; }
.panel.is-active .panel-more { grid-template-rows: 1fr; opacity: 1; margin-top: .8rem; }
.panel-more { display: grid; }
.panel-more p { color: var(--muted); max-width: 44ch; grid-row: 1; }
.panel-more ul { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; grid-row: 1; }
.panel-more > div { overflow: hidden; }
.panel-more ul li { font-size: .8rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10,21,36,.5); backdrop-filter: blur(6px); }

/* How it works */
.how { background: linear-gradient(180deg, transparent, rgba(14,29,48,.7) 20%, rgba(14,29,48,.7) 80%, transparent); }
.how-grid { display: grid; gap: 3rem; }
.flow { margin-top: 2rem; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(80% 80% at 20% 10%, rgba(255,209,102,.08), transparent 60%), rgba(10,21,36,.5); padding: 1rem; }
.flow-svg text { fill: var(--muted); font-family: var(--mono); font-size: 13px; }
.f-line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 6 8; stroke-linecap: round; animation: dash 1.2s linear infinite; opacity: .85; }
.f-line--grid { stroke: var(--cyan); animation-direction: reverse; }
.f-node { transition: opacity .5s, filter .5s; opacity: .55; }
.f-node.is-on { opacity: 1; filter: drop-shadow(0 0 14px rgba(255,145,75,.55)); }
.f-sun { animation: sunBreath 5s ease-in-out infinite; transform-origin: 70px 70px; }
.steps { display: grid; gap: 1rem; counter-reset: s; }
.step { position: relative; padding: 1.6rem 1.6rem 1.6rem 4.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(10,21,36,.4); transition: border-color .5s, background .5s, transform .6s var(--ease-out); }
.step.is-current { border-color: rgba(255,145,75,.45); background: linear-gradient(120deg, rgba(255,145,75,.08), rgba(10,21,36,.5)); }
.step-n { position: absolute; left: 1.4rem; top: 1.55rem; font-family: var(--mono); font-size: .85rem; color: var(--green); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,145,75,.35); background: rgba(255,145,75,.06); }
.step h3 { font-size: 1.3rem; margin-bottom: .45rem; }
.step p { color: var(--muted); font-size: .97rem; }

/* Coverage */
.cov-grid { display: grid; gap: 3rem; align-items: center; }
.regions { display: grid; gap: .8rem; margin-top: 2rem; }
.regions li { display: grid; gap: .2rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(14,29,48,.5); }
.regions b { font-size: 1.05rem; }
.regions span { color: var(--muted); font-size: .92rem; }
.ec-map { position: relative; max-width: 560px; justify-self: center; width: 100%; }
.ec-map::before { content: ""; position: absolute; inset: 10% 5%; background: radial-gradient(circle, rgba(255,145,75,.18), transparent 65%); filter: blur(30px); z-index: -1; }
.ec-svg { width: 100%; height: auto; overflow: visible; }
.ec-land { fill: url(#ecg); stroke: rgba(94,240,168,.55); stroke-width: 1.2; }
.ec-dots { fill: url(#ecgrid); }
.ec-inset { fill: rgba(10,21,36,.55); stroke: var(--line-2); stroke-dasharray: 4 4; }
.ec-inset-t, .ec-eq-t { fill: var(--dim); font-family: var(--mono); font-size: 12px; }
.ec-equator { stroke: rgba(255,209,102,.4); stroke-dasharray: 3 6; }
.ec-city text { fill: var(--text); font-size: 13px; font-weight: 600; paint-order: stroke; stroke: rgba(10,21,36,.9); stroke-width: 4px; }
.ec-dot { fill: var(--green); }
.ec-city.is-big .ec-dot { fill: var(--sun); }
.ec-ring { fill: none; stroke: var(--green); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 3.2s var(--ease-out) var(--d) infinite; }

/* Testimonials */
.demo-note { display: inline-block; margin-top: 1rem; font-size: .85rem; color: var(--sun); padding: .4rem .8rem; border-radius: 999px; border: 1px dashed rgba(255,209,102,.4); }
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 420px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.t-track::-webkit-scrollbar { display: none; }
.t-card { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(170deg, rgba(14,50,72,.55), rgba(10,21,36,.9)); min-height: 300px; }
.t-badge { position: absolute; top: 1rem; right: 1rem; font-size: .68rem; font-family: var(--mono); color: var(--sun); border: 1px dashed rgba(255,209,102,.45); padding: .2rem .55rem; border-radius: 999px; }
.t-card blockquote { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.35; margin-top: 1.4rem; }
.t-card figcaption { display: flex; align-items: center; gap: .8rem; }
.t-card figcaption b { display: block; }
.t-card figcaption small { color: var(--muted); }
.t-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--grad); color: #0A1524; flex: none; }
.t-ctrl { display: flex; gap: .6rem; margin-top: 1.2rem; }
.t-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 1.1rem; transition: background .3s, border-color .3s; }
.t-btn:hover { background: rgba(255,145,75,.1); border-color: var(--green); }

/* FAQ */
.faq-grid { display: grid; gap: 3rem; }
.faq-grid > div:first-child .btn { margin-top: 2rem; }
.faq-list { display: grid; gap: .7rem; }
.faq-item { border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(14,29,48,.5); transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: rgba(255,145,75,.35); background: rgba(7,35,45,.7); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.2rem 3.4rem 1.2rem 1.3rem; font-weight: 600; font-size: 1.04rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 1.2rem; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; border: 1px solid var(--line-2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ee08f' stroke-width='2'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .5s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item p { padding: 0 1.3rem 1.3rem; color: var(--muted); }

/* Contact */
.contact { background: radial-gradient(60% 60% at 80% 50%, rgba(255,179,126,.12), transparent 60%); }
.contact-grid { display: grid; gap: 3rem; }
.contact-list { display: grid; gap: .8rem; margin-top: 2rem; }
.contact-list li > a, .contact-list li > span:only-child, .contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list b { display: block; }
.contact-list small { color: var(--muted); font-size: .9rem; }
.ci { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(14,29,48,.6); flex: none; }
.ci svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ci-wa { background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.4); }
.contact-form { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(170deg, rgba(14,50,72,.6), rgba(10,21,36,.9)); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .9rem; transition: all .3s; }
.chips input:checked + span { background: rgba(255,145,75,.14); border-color: var(--green); color: var(--text); }
.chips input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 6rem; background: #030d15; }
.footer-grid { display: grid; gap: 2rem; }
.footer-tag { color: var(--muted); margin-top: .8rem; max-width: 36ch; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--text); }
.footer-legal { color: var(--dim); font-size: .8rem; max-width: 70ch; }

/* 7. Calculator ------------------------------------------------ */
.calc { background: radial-gradient(50% 40% at 50% 0%, rgba(255,145,75,.12), transparent 70%); }
.ai-spark { color: var(--sun); }
.calc-app { border-radius: 30px; border: 1px solid var(--line-2); background: linear-gradient(170deg, rgba(12,44,64,.75), rgba(10,21,36,.95)); box-shadow: 0 60px 120px -60px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04); padding: clamp(1rem, 3vw, 2.4rem); position: relative; }
.calc-progress { display: flex; gap: .5rem; margin-bottom: 1.6rem; }
.calc-progress li { flex: 1; display: flex; align-items: center; gap: .6rem; font-size: .84rem; color: var(--dim); padding-bottom: .8rem; border-bottom: 2px solid var(--line); transition: color .4s, border-color .4s; }
.calc-progress li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: .75rem; border: 1px solid var(--line-2); flex: none; }
.calc-progress li.is-on { color: var(--text); border-color: var(--green); }
.calc-progress li.is-on span { background: var(--green); color: #0A1524; border-color: var(--green); }
.calc-progress li.is-done span { background: rgba(255,145,75,.2); color: var(--green); border-color: var(--green); }
.calc-step { display: none; }
.calc-step.is-on { display: block; animation: stepIn .7s var(--ease-out); }
.calc-cols { display: grid; gap: 1.6rem; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .4rem; min-height: 280px; padding: 2rem 1.2rem; border-radius: 22px; border: 1.5px dashed rgba(255,145,75,.4); background: radial-gradient(circle at 50% 30%, rgba(255,145,75,.08), transparent 70%), rgba(10,21,36,.5); cursor: pointer; transition: border-color .3s, background .3s, transform .5s var(--ease-out); position: relative; overflow: hidden; }
.drop:hover, .drop.is-over { border-color: var(--green); background-color: rgba(255,145,75,.06); transform: translateY(-2px); }
.drop strong { font-size: 1.15rem; }
.drop > span:not(.drop-icon):not(.drop-status) { color: var(--muted); font-size: .9rem; }
.drop-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,145,75,.12); margin-bottom: .6rem; }
.drop-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-status { font-size: .9rem; margin-top: .6rem; min-height: 1.3em; color: var(--green); font-weight: 500; }
.drop-status.err { color: #ffb4a2; }
.drop.is-busy::after { content: ""; position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, rgba(255,145,75,.25), transparent); animation: scanBig 1.6s var(--ease-soft) infinite; }
.drop.is-busy .drop-icon { animation: pulseIcon 1.2s ease-in-out infinite; }
.calc-fine { font-size: .8rem; color: var(--dim); margin-top: .8rem; }
.calc-form { padding: 1.4rem; border-radius: 22px; border: 1px solid var(--line); background: rgba(10,21,36,.45); }
.calc-form h4 { font-size: 1.1rem; margin-bottom: .3rem; }
.calc-hint { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.calc-hint.ok { color: var(--green); }

.map-wrap { display: grid; gap: .9rem; }
.map-search { position: relative; z-index: 500; }
.map-input { display: flex; align-items: center; gap: .6rem; padding: 0 .5rem 0 1rem; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(10,21,36,.7); min-height: 54px; }
.map-input:focus-within { border-color: var(--green); }
.map-input > svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.map-input input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: .8rem 0; }
.map-gps { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.map-gps:hover { background: rgba(255,145,75,.1); }
.map-gps svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2; }
.map-sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); border-radius: 14px; background: #08202f; border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 20px 40px -10px rgba(0,0,0,.7); }
.map-sug:empty { display: none; }
.map-sug li { padding: .8rem 1rem; cursor: pointer; font-size: .9rem; border-bottom: 1px solid var(--line); }
.map-sug li:last-child { border-bottom: 0; }
.map-sug li:hover, .map-sug li.is-hl { background: rgba(255,145,75,.1); }
.map { height: clamp(320px, 55vh, 520px); border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: #0a2236; position: relative; z-index: 1; }
.map-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: .9rem; }
.map.is-drawing { cursor: crosshair; }
.map .leaflet-container { background: #0a2236; font-family: var(--sans); }
.roof-vertex { width: 14px !important; height: 14px !important; margin: -7px 0 0 -7px !important; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 0 0 4px rgba(255,145,75,.3); }
.roof-vertex.first { background: var(--green); animation: pulse 1.6s infinite; }
.map-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; align-items: center; }
.map-help { font-size: .88rem; color: var(--muted); max-width: 60ch; }
.map-btns { display: flex; gap: .5rem; }
.roof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.roof-stats > div { padding: 1rem 1.2rem; border-radius: 16px; border: 1px solid var(--line); background: rgba(10,21,36,.5); }
.rs-num { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.rs-lbl { font-size: .82rem; color: var(--muted); }
.rs-alt { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.rs-alt input { width: 110px; min-height: 40px; margin-right: .5rem; padding: .4rem .7rem; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(10,21,36,.6); outline: none; }
.rs-alt input:focus { border-color: var(--green); }
.calc-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.4rem; flex-wrap: wrap; }

.gate { position: relative; min-height: 520px; display: grid; place-items: center; }
.gate-blur { position: absolute; inset: 0; filter: blur(14px); opacity: .5; padding: 2rem; display: grid; gap: 1.2rem; align-content: start; pointer-events: none; }
.gb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gb-row span { height: 110px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,145,75,.4), rgba(255,179,126,.2)); }
.gb-chart { height: 220px; border-radius: 18px; background: linear-gradient(0deg, rgba(255,145,75,.35), transparent); clip-path: polygon(0 100%, 0 80%, 20% 70%, 40% 55%, 60% 40%, 80% 25%, 100% 5%, 100% 100%); }
.gate-form { position: relative; width: 100%; max-width: 440px; padding: 1.8rem; border-radius: 24px; background: rgba(10,21,36,.88); border: 1px solid var(--line-2); backdrop-filter: blur(10px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.gate-form h4 { font-size: 1.4rem; margin-bottom: .4rem; }
.gate-form > p { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }

.report { animation: stepIn .8s var(--ease-out); }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.report-head h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); max-width: 22ch; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.report-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.kpi { padding: 1.1rem 1.2rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(10,21,36,.5); }
.kpi-lbl { display: block; font-size: .8rem; color: var(--muted); }
.kpi-num { display: block; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.03em; margin-top: .3rem; }
.kpi-hl { border-color: rgba(255,145,75,.45); background: linear-gradient(140deg, rgba(255,145,75,.14), rgba(10,21,36,.5)); }
.report-chart { margin-top: 1.2rem; padding: 1.2rem; border-radius: 20px; border: 1px solid var(--line); background: rgba(10,21,36,.5); }
.rc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .8rem; }
.rc-head h4 { font-size: 1rem; }
.rc-head span { font-weight: 800; color: var(--green); }
.report-chart svg { width: 100%; height: 200px; }
.rc-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: var(--dim); margin-top: .4rem; }
.report-note { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
.disclaimer { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 14px; border: 1px dashed rgba(255,209,102,.4); background: rgba(255,209,102,.05); font-size: .84rem; color: var(--muted); }
.disclaimer strong { color: var(--sun); }
.report-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* 8. Chat ------------------------------------------------------ */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 150; }
.chat-fab { position: relative; width: 62px; height: 62px; border-radius: 50%; background: var(--grad); color: #0A1524; display: grid; place-items: center; box-shadow: 0 20px 40px -10px rgba(255,145,75,.6); transition: transform .5s var(--ease-out); }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; position: absolute; transition: opacity .3s, transform .5s var(--ease-out); }
.chat-fab .i-close { opacity: 0; transform: rotate(-90deg); }
.chat.is-open .chat-fab .i-open { opacity: 0; transform: rotate(90deg); }
.chat.is-open .chat-fab .i-close { opacity: 1; transform: none; }
.chat-fab-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: ring 2.6s var(--ease-out) infinite; }
.chat.is-open .chat-fab-ring { display: none; }
.chat-tip { position: absolute; right: 74px; bottom: 12px; white-space: nowrap; padding: .6rem .9rem; border-radius: 14px; background: #0b2a3e; border: 1px solid var(--line-2); font-size: .85rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); opacity: 0; transform: translateX(10px); transition: opacity .5s, transform .5s var(--ease-out); pointer-events: none; }
.chat-tip.is-on { opacity: 1; transform: none; }
.chat.is-open .chat-tip { display: none; }
.chat-panel { position: fixed; right: 12px; left: 12px; bottom: 90px; max-height: min(640px, calc(100svh - 110px)); display: flex; flex-direction: column; border-radius: 24px; background: rgba(6, 24, 38, .97); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -20px rgba(0,0,0,.9); backdrop-filter: blur(20px); overflow: hidden; animation: chatIn .5s var(--ease-out); }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, rgba(255,145,75,.1), transparent); }
.chat-head b { display: block; }
.chat-head small { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .76rem; }
.chat-head .dot-live { width: 6px; height: 6px; }
.chat-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-sun); flex: none; }
.chat-av svg { width: 22px; height: 22px; fill: none; stroke: #5a3a00; stroke-width: 2; stroke-linecap: round; }
.chat-x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.chat-x:hover { background: rgba(255,255,255,.06); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; overscroll-behavior: contain; min-height: 200px; }
.msg { max-width: 86%; padding: .75rem .95rem; border-radius: 18px; font-size: .93rem; line-height: 1.5; white-space: pre-line; animation: msgIn .4s var(--ease-out); }
.msg-bot { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--grad); color: #0A1524; border-bottom-right-radius: 6px; font-weight: 500; }
.msg-typing { display: flex; gap: 4px; padding: 1rem; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: typing 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s } .msg-typing i:nth-child(3) { animation-delay: .3s }
.msg a { color: var(--green); text-decoration: underline; }
.chat-sugs { display: flex; gap: .4rem; padding: 0 1rem .8rem; overflow-x: auto; scrollbar-width: none; }
.chat-sugs button { flex: none; font-size: .8rem; padding: .5rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,145,75,.05); transition: background .3s, border-color .3s; }
.chat-sugs button:hover { background: rgba(255,145,75,.14); border-color: var(--green); }
.chat-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; min-height: 46px; padding: 0 1rem; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(10,21,36,.7); outline: none; }
.chat-form input:focus { border-color: var(--green); }
.chat-form button { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; flex: none; }
.chat-form button svg { width: 20px; height: 20px; fill: #0A1524; }
.chat-foot { font-size: .7rem; color: var(--dim); text-align: center; padding: 0 1rem .8rem; }
.chat-foot a { color: var(--green); }

/* 9. Effects --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
html.no-js .reveal, html.no-io .reveal { opacity: 1; transform: none; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
[data-split].is-in .w > span { transform: none; }

@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rotateBorder { to { --ang: 360deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,145,75,.55); } 70% { box-shadow: 0 0 0 10px rgba(255,145,75,0); } 100% { box-shadow: 0 0 0 0 rgba(255,145,75,0); } }
@keyframes grain { 0%,100% { transform: translate(0,0) } 20% { transform: translate(-5%,3%) } 40% { transform: translate(3%,-6%) } 60% { transform: translate(-6%,-2%) } 80% { transform: translate(4%,5%) } }
@keyframes sunBreath { 0%,100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.04); filter: brightness(1.08); } }
@keyframes fieldMove { from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: 0 700px, 0 700px, 0 700px, 0 700px, 0 0; } }
@keyframes sheen { 0% { background-position: 130% 0; } 60%,100% { background-position: -30% 0; } }
@keyframes scan { 0% { top: -26px; } 100% { top: 100%; } }
@keyframes scanBig { 0% { top: -60px; } 100% { top: 100%; } }
@keyframes barGrow { from { transform: scaleX(0); } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes dash { to { stroke-dashoffset: -28; } }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes chatIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
@keyframes pulseIcon { 50% { transform: scale(1.08); } }
@keyframes sunPop { from { transform: scale(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bar { from { transform: scaleX(0); } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* 10. Responsive ----------------------------------------------- */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .roof-stats { grid-template-columns: 1fr 1fr 1.6fr; }
  .rs-alt { grid-column: auto; display: flex; align-items: center; }
  .report-kpis { grid-template-columns: repeat(3, 1fr); }
  .chat-panel { left: auto; right: 16px; width: 390px; }
}
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-a { grid-column: span 2; }
  .calc-cols { grid-template-columns: 1fr 1fr; }
  .regions { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-legal { grid-column: 1 / -1; }
  .hero-scroll { display: flex; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; margin-left: .6rem; }
  .nav-burger, .nav-mobile { display: none; }
  .hero-grid { grid-template-columns: 1.25fr .9fr; gap: 4rem; }
  .hero-card { justify-self: end; }
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(250px, auto); }
  .bento-a { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
  .bento-a .bento-chart { margin-top: auto; height: 200px; }

  .panels { flex-direction: row; height: 560px; }
  .panel { flex: 1; min-height: 0 !important; }
  .panel.is-active { flex: 3.2; }
  .panel:not(.is-active) .panel-body h3 { font-size: 1.4rem; }
  .panel-body { padding: 2rem; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  .how-sticky { position: sticky; top: calc(var(--nav-h) + 30px); }
  .steps { gap: 1.2rem; padding-top: 8rem; padding-bottom: 8rem; }
  .cov-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; }
  .faq-grid > div:first-child { position: sticky; top: calc(var(--nav-h) + 30px); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: center; }
  .calc-cols { grid-template-columns: 1.05fr 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1.2fr 2fr; }
  .footer-links { justify-content: flex-end; }
}
@media (min-width: 1280px) {
  .hero-title { font-size: 6.6rem; }
}
@media (max-width: 539px) {
  .hero { padding-bottom: 60px; }
  .hero-sun { top: 6%; right: -12%; opacity: .75; }
  .hero-ctas .btn { width: 100%; }
  .hc-kpis .hc-num { font-size: 1.2rem; }
  .chat-tip { display: none; }
  .gate { min-height: 600px; }
}

/* Reduced motion: only intrusive loops */
@media (prefers-reduced-motion: reduce) {
  .grain, .field-plane, .sun-rays, .marquee-track { animation: none; }
  .field-sheen { animation-duration: 14s; }
}

/* ===== Marca + proyectos reales ===== */
:root { --sun: #f9b233; --orange: #f39a1f; }
.brand-logo { height: 42px; width: auto; }
.brand-logo--lg { height: 64px; }
@media (max-width: 539px) { .brand-logo { height: 34px; } }
.hero-photo.has-img { opacity: .62; background-position: center 40%; transform: scale(1.06); animation: heroZoom 24s ease-out forwards; }
.hero-photo.has-img ~ .hero-field { display: none; }
.hero-photo.has-img ~ .hero-sun { opacity: .7; mix-blend-mode: screen; }
@keyframes heroZoom { to { transform: scale(1); } }
.panel-media.has-img { background-size: cover; background-position: center; }

.proj-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.proj { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 260px; background: var(--navy); isolation: isolate; }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); z-index: -2; }
.proj::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,21,36,.92) 0%, rgba(10,21,36,.25) 55%, transparent 100%); }
.proj:hover img { transform: scale(1.06); }
.proj figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.3rem 1.4rem; display: grid; gap: .1rem; }
.proj figcaption b { font-size: 1.2rem; letter-spacing: -.02em; }
.proj figcaption small { color: var(--muted); }
.proj-kwp { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(115deg, #ffd27a, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .3rem; }
.homes { margin-top: 1rem; overflow: hidden; border-radius: var(--radius); -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.homes-track { display: flex; gap: .8rem; width: max-content; animation: marquee 60s linear infinite; }
.homes:hover .homes-track { animation-play-state: paused; }
.homes img { height: 170px; width: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
@media (min-width: 720px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-xl { grid-column: span 2; min-height: 380px; }
}
@media (min-width: 960px) {
  .proj-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
  .proj-xl { grid-column: span 2; grid-row: span 2; min-height: 0; }
  .proj-tall { grid-row: span 2; }
  .proj-wide { grid-column: span 2; }
  .homes img { height: 210px; }
}
@media (prefers-reduced-motion: reduce) { .homes-track { animation: none; } .hero-photo.has-img { animation: none; } }
/* overflow fixes */
html { overflow-x: clip; }
.chips label { position: relative; }
.grain { inset: 0; animation: none; background-size: 160px; }
.chat-fab-ring { animation-name: ringSm; }
@keyframes ringSm { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.panel-more { display: block !important; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .8s var(--ease-out), opacity .6s, margin .8s var(--ease-out); }
.panel.is-active .panel-more { max-height: 340px; opacity: 1; margin-top: .8rem; }
.panel-more p, .panel-more ul { grid-row: auto; }
.hero-sun { top: 3%; right: 3%; }
@media (min-width: 960px) { .hero-sun { right: 24%; top: 4%; width: 200px; } }

.msg-typing { flex-wrap: wrap; align-items: center; }
.msg-slow { flex-basis: 100%; font-size: .78rem; color: var(--muted); margin-top: .4rem; }

/* ===== Servicios eléctricos (secundario) ===== */
.elec { background: linear-gradient(180deg, transparent, rgba(20,42,69,.55) 25%, rgba(20,42,69,.55) 75%, transparent); }
.elec-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.elec-head .section-sub { margin-top: 0; }
.elec-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.elec-card { border-color: rgba(249,178,51,.16); }
.elec-card .card-icon { background: rgba(249,178,51,.1); border-color: rgba(249,178,51,.32); }
.elec-card .card-icon svg { stroke: var(--sun); }
.elec-card h3 { font-size: 1.2rem; }
.elec-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px dashed rgba(249,178,51,.3); background: rgba(10,21,36,.4); }
.elec-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.elec-tags li { font-size: .82rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
@media (min-width: 720px) { .elec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .elec-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 4rem; }
  .elec-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-links a { padding: .5rem .6rem; font-size: .86rem; }
}
.nav-links a { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1439px) { .nav-links a[href="#preguntas"], .nav-links a[href="#como-funciona"] { display: none; } }
@media (min-width: 960px) and (max-width: 1099px) { .nav-links a[href="#ventajas"] { display: none; } }

/* =============================================================
   Multipágina: menú desplegable, páginas internas, WhatsApp
   ============================================================= */
.nav-links { align-items: center; }
.dd { position: relative; }
.dd > summary { list-style: none; cursor: pointer; padding: .5rem .7rem; border-radius: 999px; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; white-space: nowrap; transition: color .25s, background .25s; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease-out); }
.dd[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.dd > summary:hover, .dd[open] > summary, .dd.is-cur > summary { color: var(--text); background: rgba(255,255,255,.05); }
.dd-menu { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 290px; padding: .5rem; border-radius: 18px; background: rgba(6,24,38,.98); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); backdrop-filter: blur(18px); display: grid; gap: .15rem; animation: ddIn .35s var(--ease-out); z-index: 120; }
.dd-menu.dd-2 { grid-template-columns: 1fr 1fr; min-width: 400px; }
.dd-menu a { display: grid; gap: .1rem; padding: .7rem .85rem; border-radius: 12px; transition: background .2s; }
.dd-menu a:hover, .dd-menu a[aria-current] { background: rgba(255,145,75,.1); }
.dd-menu b { font-size: .92rem; font-weight: 600; }
.dd-menu small { font-size: .76rem; color: var(--muted); }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } }
.nav-links > a { white-space: nowrap; }
.nav.is-open .nav-mobile { max-height: 82svh; overflow-y: auto; }
.nm-t { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 1.1rem 0 .1rem; }
.nm-zonas { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.nav-mobile a:not(.btn) { padding: .7rem 0; font-size: 1rem; }
@media (min-width: 960px) and (max-width: 1439px) { .nav-links > a[href$="#proyectos"] { display: none; } }
@media (min-width: 960px) and (max-width: 1099px) { .nav-links > a[href$="#contacto"] { display: none; } }

/* Hero zonas (portada) */
.hero-zonas { font-size: .82rem; color: var(--muted); margin-bottom: .8rem; display: flex; flex-wrap: wrap; gap: .25rem .4rem; }
.hero-zonas a { color: var(--text); border-bottom: 1px dashed rgba(255,145,75,.45); }
.hero-zonas a:hover { color: var(--green); }
.panel-link { display: inline-block; margin-top: .9rem; font-weight: 600; color: var(--green); font-size: .9rem; }
.elec-btns { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Tipos de sistema (portada) */
.types-grid { display: grid; gap: 1rem; }
.type-card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(170deg, rgba(14,50,72,.6), rgba(10,21,36,.9)); transition: transform .6s var(--ease-out), border-color .4s; }
.type-card:hover { transform: translateY(-4px); border-color: rgba(255,145,75,.45); }
.type-card.is-hl { border-color: rgba(249,178,51,.45); background: linear-gradient(170deg, rgba(60,50,20,.45), rgba(10,21,36,.92)); }
.type-badge { position: absolute; top: 1rem; right: 1rem; font-size: .7rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; background: var(--grad-sun); color: #3a2500; }
.type-dia { border-radius: 16px; background: rgba(10,21,36,.55); border: 1px solid var(--line); padding: .4rem; margin-bottom: .6rem; }
.type-card h3 { font-size: 1.45rem; }
.type-card .kicker { margin: 0; }
.type-card p { color: var(--muted); font-size: .95rem; }
.type-card ul { display: grid; gap: .25rem; margin: .4rem 0 .6rem; font-size: .9rem; }
.choose-go { margin-top: auto; font-weight: 600; color: var(--green); }
.dia-mini text { font-size: 15px; }

/* Páginas internas: hero */
.inner { padding-top: var(--nav-h); }
.ph { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); overflow: clip; isolation: isolate; }
.ph-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 20%, rgba(255,179,126,.2), transparent 60%), radial-gradient(50% 60% at 5% 90%, rgba(255,145,75,.14), transparent 60%); }
.ph-grid { display: grid; gap: 2.5rem; align-items: center; }
.ph-title { font-size: clamp(2.3rem, 6.2vw, 4.6rem); line-height: 1; letter-spacing: -.04em; font-weight: 800; max-width: 15ch; }
.ph-sub { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 56ch; margin-top: 1.3rem; }
.ph-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.6rem; }
.ph-chips li { font-size: .8rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(14,29,48,.6); color: var(--muted); }
.ph-visual { position: relative; }
.ph-photo { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); aspect-ratio: 4/3; }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-photo figcaption { position: absolute; left: .8rem; bottom: .8rem; padding: .45rem .8rem; border-radius: 999px; font-size: .78rem; background: rgba(10,21,36,.85); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: var(--dim); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--green); }
.ph-iconwall { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.iw { padding: 1.4rem; border-radius: 20px; border: 1px solid rgba(249,178,51,.25); background: linear-gradient(160deg, rgba(60,50,20,.35), rgba(10,21,36,.85)); display: grid; gap: .8rem; }
.iw .card-icon { background: rgba(249,178,51,.1); border-color: rgba(249,178,51,.35); } .iw .card-icon svg { stroke: var(--sun); }
.iw b { font-size: 1.05rem; }

/* Diagramas */
.dia { border-radius: 26px; border: 1px solid var(--line-2); background: radial-gradient(80% 80% at 15% 10%, rgba(255,209,102,.1), transparent 60%), rgba(10,21,36,.6); padding: 1rem 1rem .6rem; }
.dia-svg text { fill: var(--muted); font-family: var(--mono); font-size: 13px; }
.dia-cap { text-align: center; font-size: .82rem; color: var(--muted); padding: .4rem 0 .2rem; }
.f-line--batt { stroke: var(--sun); }
.f-line--gen { stroke: #9fb8b2; stroke-dasharray: 3 7; }
.d-charge { transform-box: fill-box; transform-origin: left; animation: charge 3.2s var(--ease-soft) infinite; }
@keyframes charge { 0% { transform: scaleX(.15); } 70%,100% { transform: scaleX(1); } }

/* Secciones internas */
.sp { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sp.alt { background: linear-gradient(180deg, transparent, rgba(20,42,69,.5) 20%, rgba(20,42,69,.5) 80%, transparent); }
.sp-stats { padding: 1rem 0 2rem; }
.sp-stats .stat-num { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.prose-grid { display: grid; gap: 2.5rem; align-items: start; }
.prose p { color: var(--muted); font-size: 1.04rem; margin-bottom: 1.1rem; max-width: 64ch; }
.prose b, .prose a { color: var(--text); }
.prose a, .fit a, .mini a { border-bottom: 1px solid rgba(255,145,75,.5); }
.prose-aside { padding: 1.5rem; border-radius: var(--radius); border: 1px solid rgba(255,145,75,.25); background: linear-gradient(160deg, rgba(14,70,60,.35), rgba(10,21,36,.8)); }
.prose-aside h3 { font-size: 1.1rem; margin-bottom: .7rem; }
.prose-aside p { color: var(--muted); font-size: .95rem; }
.mini { display: grid; gap: .55rem; }
.mini li { position: relative; padding-left: 1.2rem; color: var(--muted); font-size: .93rem; }
.mini li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.mini b { color: var(--text); }
.cgrid { display: grid; gap: 1rem; }
.psteps { display: grid; gap: 1rem; }
.pstep { position: relative; padding: 1.5rem 1.5rem 1.5rem 4.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(10,21,36,.45); }
.pstep .step-n { left: 1.3rem; top: 1.45rem; }
.pstep h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.pstep p { color: var(--muted); font-size: .95rem; }
.fit-grid { display: grid; gap: 1rem; }
.fit { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(10,21,36,.5); }
.fit h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.fit ul { display: grid; gap: .7rem; }
.fit li { position: relative; padding-left: 1.8rem; color: var(--muted); }
.fit-yes { border-color: rgba(255,145,75,.35); }
.fit-yes li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.fit-no li::before { content: "→"; position: absolute; left: 0; color: var(--sun); font-weight: 700; }
.pgal { display: grid; gap: 1rem; }
.pgal .proj { min-height: 280px; }
.choose { display: grid; gap: 1rem; }
.choose-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(10,21,36,.55); transition: transform .5s var(--ease-out), border-color .3s; }
.choose-card:hover { transform: translateY(-3px); border-color: var(--green); }
.choose-card.is-hl { border-color: rgba(249,178,51,.45); }
.choose-card .kicker { margin: 0; }
.choose-card h3 { font-size: 1.4rem; }
.choose-card p { color: var(--muted); }
.zinfo { display: grid; gap: .8rem; margin-bottom: 2.5rem; }
.zi { padding: 1.1rem 1.3rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(14,29,48,.6); display: grid; gap: .2rem; }
.zi-l { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.zi b { font-size: 1.02rem; }
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(10,21,36,.6); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .93rem; }
.cmp th, .cmp td { padding: .95rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-size: 1rem; background: rgba(255,145,75,.06); }
.cmp thead a { color: var(--green); }
.cmp tbody th { color: var(--muted); font-weight: 500; width: 24%; }
.cmp td.si { color: #9ff5c8; } .cmp td.no { color: #ffc9a8; }
.cmp-note { font-size: .8rem; color: var(--dim); padding: .9rem 1rem; }
.rel-t { font-size: 1.4rem; margin-bottom: 1.2rem; }
.rel-grid { display: grid; gap: .8rem; }
.rel { position: relative; display: grid; gap: .2rem; padding: 1.2rem 3rem 1.2rem 1.3rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(14,29,48,.5); transition: border-color .3s, transform .5s var(--ease-out); }
.rel:hover { border-color: var(--green); transform: translateY(-2px); }
.rel small { color: var(--muted); }
.rel span { position: absolute; right: 1.2rem; top: 50%; translate: 0 -50%; color: var(--green); }
.cta-band { padding-top: 1rem; }
.cta-box { display: grid; gap: 1.5rem; padding: clamp(1.6rem, 4vw, 3rem); border-radius: 30px; border: 1px solid rgba(255,145,75,.35); background: radial-gradient(70% 120% at 100% 0%, rgba(255,179,126,.22), transparent 60%), linear-gradient(140deg, rgba(14,70,60,.6), rgba(10,21,36,.95)); }
.cta-box h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.cta-box p { color: var(--muted); margin-top: .5rem; }
.cta-btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 1.4rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal p { color: var(--muted); margin-bottom: .8rem; }

/* Pie de página multipágina */
.footer-top { display: grid; gap: 2rem; margin-bottom: 2.2rem; }
.fcol { display: grid; gap: .45rem; align-content: start; }
.fcol-t { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: .3rem; }
.fcol a, .footer-contact a { color: var(--muted); font-size: .9rem; }
.fcol a:hover, .footer-contact a:hover { color: var(--text); }
.footer-contact { display: grid; gap: .35rem; margin-top: 1rem; }
.footer-legal a { color: var(--muted); text-decoration: underline; }

/* WhatsApp flotante */
.wa-fab { position: fixed; right: 20px; bottom: 90px; z-index: 149; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); transition: transform .4s var(--ease-out); }
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 30px; height: 30px; }
.chat.is-open ~ .wa-fab, body.chat-open .wa-fab { display: none; }

@media (min-width: 720px) {
  .cgrid.c2, .cgrid.c3, .fit-grid, .pgal, .choose, .rel-grid, .zinfo { grid-template-columns: repeat(2, 1fr); }
  .zinfo { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .ph-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .prose-grid { grid-template-columns: 1.4fr .8fr; gap: 4rem; }
  .prose-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
  .cgrid.c3, .choose.c3, .pgal { grid-template-columns: repeat(3, 1fr); }
  .psteps { grid-template-columns: repeat(2, 1fr); }
  .rel-grid { grid-template-columns: repeat(4, 1fr); }
  .cta-box { grid-template-columns: 1.2fr auto; align-items: center; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .types-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 539px) {
  .dd-menu.dd-2 { grid-template-columns: 1fr; }
  .wa-fab { right: 20px; bottom: 88px; width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .d-charge { animation: none; } }
/* gradiente por palabra en títulos animados (evita que se pierdan palabras en <em>) */
[data-split].is-split em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
[data-split].is-split em .w > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.elec-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 1rem; }
.elec-photos figure { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3/4; }
.elec-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.elec-photos figure:hover img { transform: scale(1.05); }
.elec-photos figcaption { position: absolute; left: .6rem; bottom: .6rem; font-size: .76rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(10,21,36,.85); border: 1px solid var(--line-2); }
@media (min-width: 960px) { .elec-photos { grid-template-columns: repeat(4, 1fr); } }
.regions a { color: var(--text); border-bottom: 1px dashed rgba(255,145,75,.45); }

/* ===== Mejoras v2 ===== */
/* Barra fija en celular */
.mbar { display: none; }
@media (max-width: 719px) {
  .mbar { display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(10,21,36,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); transform: translateY(110%); transition: transform .5s var(--ease-out); }
  body.mbar-on .mbar { transform: none; }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; border-radius: 14px; font-weight: 700; font-size: .95rem; }
  .mbar svg { width: 18px; height: 18px; fill: currentColor; }
  .mbar-calc { background: var(--grad); color: #0A1524; }
  .mbar-wa { background: #25d366; color: #fff; }
  .wa-fab { display: none; }
  .chat { bottom: 16px; transition: bottom .5s var(--ease-out); }
  body.mbar-on .chat { bottom: 84px; }
  body.mbar-on .chat-panel { bottom: 156px; max-height: calc(100svh - 176px); }
  body.chat-open .mbar { transform: translateY(110%); }
  .footer { padding-bottom: 7rem; }
  /* Hero en celular */
  .hero-sun { display: none; }
  .hero-photo.has-img { background-image: url(assets/img/hero-1000.webp) !important; }
  .hero-sub { font-size: 1rem; }
  .hero-zonas { font-size: .78rem; }
}
/* Sectores: texto legible sobre la foto */
.panel::after { background: linear-gradient(0deg, rgba(10,21,36,.97) 0%, rgba(10,21,36,.78) 45%, rgba(10,21,36,.25) 100%); }
.panel.is-active::after { background: linear-gradient(0deg, rgba(10,21,36,.98) 0%, rgba(10,21,36,.85) 55%, rgba(10,21,36,.35) 100%); }
.panel-more p { color: rgba(244,241,234,.88); }

/* Galerías ampliables */
.zoomable { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 4.5rem 1rem 1.5rem; background: rgba(2,8,14,.94); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out); }
.lb.is-on { opacity: 1; pointer-events: auto; }
.lb figure { max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: .8rem; justify-items: center; }
.lb img { max-width: 100%; max-height: calc(100svh - 9rem); width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(.96); transition: transform .45s var(--ease-out); }
.lb.is-on img { transform: none; }
.lb figcaption { color: var(--muted); font-size: .92rem; text-align: center; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20,42,69,.8); color: var(--text); font-size: 1.4rem; display: grid; place-items: center; }
.lb-x { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; } .lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 719px) { .lb-prev, .lb-next { top: auto; bottom: 1rem; translate: none; } }
.proj::after, .proj figcaption, .elec-photos figcaption, .ph-photo figcaption { pointer-events: none; }
.proj { cursor: zoom-in; }

/* ===== Alvarado Solutions ===== */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em, .serif-i { font-style: italic; color: #FF914B; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; display: block; }
.brand--lg .brand-mark { width: 44px; height: 44px; border-radius: 10px; }
.nav-ac { color: #FF914B !important; font-weight: 600; }
.aso-word{display:inline-flex;flex-direction:column;justify-content:center;gap:4px;line-height:1;font-style:normal}
.aso-word b{display:block;font-family:"Cormorant Garamond","Times New Roman",serif;font-weight:700;font-size:25px;line-height:.9;letter-spacing:.14em;margin-right:-.14em;text-transform:uppercase;color:#fff;font-style:normal}
.aso-word i{display:flex;align-items:center;gap:6px;font-style:normal;font-family:Jost,"Segoe UI",sans-serif;font-weight:500;font-size:8.5px;line-height:1;letter-spacing:.5em;text-transform:uppercase;color:#FF914B}
.aso-word i span{margin-right:-.5em}
.aso-word i:before,.aso-word i:after{content:"";flex:1 1 auto;height:1px;background:#FF914B}
.aso-word--lg{gap:8px}.aso-word--lg b{font-size:30px}.aso-word--lg i{font-size:10px;gap:8px}
.alianza { display: inline-flex; align-items: center; gap: .5em; font-size: .8rem; color: var(--muted); margin-top: .6rem; }
@media(max-width:520px){.aso-word b{font-size:20px}.aso-word i{font-size:7px;gap:5px}}
