/* =========================================================
   Laurie + Energy — Landing
   ========================================================= */

:root {
  /* Brand */
  --bg: #05121f;
  --bg-2: #0a1d31;
  --surface: #0e243b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef3f7;
  --muted: #9fb2c4;
  --green: #8cc63f;
  --green-2: #6fae2a;
  --lime: #d6e66e;
  --teal: #13a597;
  --navy: #0b2f86;

  --paper: #f2f4ef;
  --ink: #0b1b2b;
  --ink-muted: #4b5b69;

  /* Type */
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion (Emil Kowalski tokens) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --radius: 22px;
  --wrap: min(1180px, 100% - 2 * clamp(20px, 5vw, 48px));
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 5vw, 3.75rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
.eyebrow--dark { color: var(--green-2); }
.fine { font-size: 0.85rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--green); color: var(--ink); box-shadow: 0 0 0 0 rgba(140, 198, 63, 0); }
.btn--ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #9bd24e; box-shadow: 0 10px 40px -10px rgba(140, 198, 63, 0.6); }
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: transform 300ms var(--ease-out), background-color 300ms ease, box-shadow 300ms ease;
}
.nav.is-solid { background: rgba(5, 18, 31, 0.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { width: var(--wrap); margin-inline: auto; height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__emblem { width: 36px; height: 36px; }
.brand__name { width: 150px; height: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 0.95rem; color: var(--muted); }
.nav__links a { transition: color 200ms ease; }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
.nav__toggle { display: none; }
.menu { display: none; }

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 12px;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 250ms var(--ease-out), opacity 200ms ease; }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { transform: translateY(-6px); }
  .nav__bars::after { transform: translateY(6px); }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { transform: rotate(-45deg); }

  .menu {
    display: grid; gap: 2px; padding: 8px var(--pad, 20px) 20px; width: var(--wrap); margin-inline: auto;
    transform-origin: top center;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  }
  .menu[hidden] { display: none; }
  .menu a { padding: 14px 4px; font-family: var(--display); font-size: 1.35rem; border-bottom: 1px solid var(--line); }
  .menu.is-entering { opacity: 0; transform: translateY(-8px); }
  .nav.is-open { background: rgba(5, 18, 31, 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
}
@media (max-width: 420px) { .brand__name { width: 118px; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 18, 31, 0.92) 0%, rgba(5, 18, 31, 0.55) 45%, rgba(5, 18, 31, 0) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 18, 31, 0) 30%);
}
.hero__content { padding-block: calc(var(--nav-h) + 40px) 120px; }
.hero__title { font-size: clamp(3.2rem, 10vw, 8.5rem); line-height: 0.95; letter-spacing: -0.045em; font-weight: 700; margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1100ms var(--ease-out); }
.hero__title .line:nth-child(2) > span { transition-delay: 90ms; }
.accent { background: linear-gradient(90deg, var(--lime), var(--green) 55%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c6d3de; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
[data-intro] { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.hero__eyebrow { transition-delay: 0ms; }
.hero__lead[data-intro] { transition-delay: 320ms; }
.hero__actions[data-intro] { transition-delay: 420ms; }
.is-loaded .hero__title .line > span { transform: translateY(0); }
.is-loaded [data-intro] { opacity: 1; transform: none; }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: scrollcue 1.8s var(--ease-out) infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

@media (max-width: 720px) {
  .hero { align-items: end; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 8%, rgba(5, 18, 31, 0.75) 50%, rgba(5, 18, 31, 0.15) 100%); }
  .hero__content { padding-bottom: 96px; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Statement ---------- */
.statement { height: 220vh; position: relative; }
.statement__sticky { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; }
.statement__text { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1.12; letter-spacing: -0.035em; max-width: 24ch; }
.statement__text .w { opacity: 0.16; transition: opacity 250ms ease; }
.statement__text .w.on { opacity: 1; }
.statement__text .w.hl.on { color: var(--green); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-block: 40px 140px; }
.stat { background: var(--bg); padding: 40px 32px; }
.stat__num { font-family: var(--display); font-size: clamp(3rem, 6vw, 4.75rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin-bottom: 14px; }
.stat__num--word { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.15; padding-block: 0.18em; }
.stat__label { color: var(--muted); max-width: 22ch; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: 56px; max-width: 46rem; }
.section-head--center { text-align: center; margin-inline: auto; }

/* ---------- Services (light) ---------- */
.services { background: var(--paper); color: var(--ink); padding-block: 130px; border-radius: 36px 36px 0 0; }
.services h2 { color: var(--ink); }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(11, 27, 43, 0.1); font-size: 0.9rem; color: var(--ink-muted); }

.bento { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.card { grid-column: span 2; background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(11, 27, 43, 0.06), 0 20px 50px -30px rgba(11, 27, 43, 0.25); }
.card--wide { grid-column: span 3; }
.card .media { aspect-ratio: 16 / 10; }
.card__body { padding: 26px 28px 30px; }
.card__kicker { font-family: var(--display); font-size: 0.85rem; color: var(--green-2); font-weight: 600; margin-bottom: 10px; }
.card h3 { margin-bottom: 10px; color: var(--ink); }
.card p:last-child { color: var(--ink-muted); }
.card .media img { transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .media img { transform: scale(1.04); }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .card, .card--wide { grid-column: auto; }
}

/* ---------- Media + placeholders ---------- */
.media { position: relative; overflow: hidden; background: #dfe5df; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { display: none; }
.media.is-missing::after {
  content: "Subir foto:\A images/" attr(data-file);
  white-space: pre; position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  font: 500 0.85rem/1.5 var(--body); color: rgba(11, 27, 43, 0.55);
  background:
    repeating-linear-gradient(135deg, rgba(11, 27, 43, 0.035) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #e9eee6, #d7dfd4);
}

/* ---------- Product story (sticky) ---------- */
.product { height: 360vh; position: relative; background: var(--bg); }
.product__sticky { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.product__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.product h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); margin-bottom: 36px; }
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 18px; max-width: 30rem; }
.steps li { color: var(--muted); opacity: 0.38; transition: opacity 400ms var(--ease-out), color 400ms ease; font-size: 1.1rem; }
.steps li strong { color: var(--text); font-family: var(--display); font-weight: 600; margin-right: 4px; }
.steps li.is-active { opacity: 1; color: #c6d3de; }
.progress { width: 160px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }

.product__stage { display: grid; place-items: center; perspective: 1200px; }
.panel { position: relative; width: min(38vw, 440px); aspect-ratio: 1; transform-style: preserve-3d; will-change: transform; }
.panel__glow {
  position: absolute; inset: -60%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(235, 245, 255, 0.55), rgba(180, 220, 255, 0.18) 45%, rgba(140, 198, 63, 0.06) 70%, transparent);
  opacity: 0; will-change: opacity, transform;
}
.panel__body {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #f4f6f8 0%, #d9dee4 60%, #b9c1ca 100%);
  box-shadow: inset 0 0 0 10px #e9edf1, inset 0 0 0 11px rgba(0, 0, 0, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.panel__lit {
  position: absolute; inset: 11px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #fbfdff 55%, #e6f0fa 100%);
  box-shadow: 0 0 60px 10px rgba(255, 255, 255, 0.9) inset;
  opacity: 0;
}
.panel__sensor {
  position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff, #e3e7eb 45%, #bcc4cc 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.panel__waves { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms ease; }
.panel__waves.is-on { opacity: 1; }
.panel__waves i { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 2px solid var(--green); opacity: 0; }
.panel__waves.is-on i { animation: wave 2.1s var(--ease-out) infinite; }
.panel__waves.is-on i:nth-child(2) { animation-delay: 0.7s; }
.panel__waves.is-on i:nth-child(3) { animation-delay: 1.4s; }
@keyframes wave { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(5.5); opacity: 0; } }

@media (max-width: 820px) {
  .product { height: 320vh; }
  .product__grid { grid-template-columns: 1fr; gap: 28px; }
  .product__stage { order: -1; }
  .panel { width: min(62vw, 300px); }
  .product h2 { margin-bottom: 20px; }
  .steps { gap: 12px; }
  .steps li { font-size: 1rem; }
}
@media (max-width: 820px) and (max-height: 700px) { .panel { width: min(46vw, 220px); } }

/* ---------- Offer ---------- */
.offer { padding-block: 40px 100px; }
.offer__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.compare { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: pan-y; background: #0e243b; }
.compare__layer { position: absolute; inset: 0; }
.compare__before { clip-path: inset(0 50% 0 0); }
.compare .media.is-missing::after { color: rgba(238, 243, 247, 0.6); }
.compare__after.is-missing::after { background: radial-gradient(60% 40% at 50% 18%, rgba(255, 255, 255, 0.55), transparent 70%), linear-gradient(180deg, #dfe8ef, #9fb0bf); color: rgba(11, 27, 43, 0.6); }
.compare__before.is-missing::after { background: radial-gradient(30% 25% at 50% 18%, rgba(255, 196, 120, 0.45), transparent 70%), linear-gradient(180deg, #2b2418, #120f0b); }
.compare__tag { position: absolute; top: 16px; left: 16px; padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(5, 18, 31, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.compare__tag--after { left: auto; right: 16px; background: var(--green); color: var(--ink); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; will-change: transform; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.compare__handle span::before, .compare__handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid var(--ink); border-width: 0 0 2px 2px; }
.compare__handle span::before { left: 11px; transform: translateY(-50%) rotate(45deg); }
.compare__handle span::after { right: 11px; transform: translateY(-50%) rotate(-135deg); }
.compare { cursor: ew-resize; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.compare.is-dragging .compare__handle span { transform: scale(1.08); }
.compare__handle span { transition: transform 160ms var(--ease-out); }
.compare__before.is-missing::after { place-content: center start; padding-left: 7%; text-align: left; }
.compare__after.is-missing::after { place-content: center end; padding-right: 7%; text-align: right; }
.compare__range:focus-visible ~ .compare__handle span, .compare:has(.compare__range:focus-visible) .compare__handle span { outline: 3px solid var(--lime); outline-offset: 3px; }

.price__amount { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 8vw, 6.5rem); letter-spacing: -0.05em; line-height: 1; margin-bottom: 26px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.price__cur { font-size: 0.4em; color: var(--green); letter-spacing: -0.02em; }
.price__unit { font-family: var(--body); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: #c6d3de; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 9px; border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg); transform-origin: center; }
.price .btn { margin-bottom: 16px; }
@media (max-width: 900px) { .offer__grid { grid-template-columns: 1fr; } }

/* ---------- Garage scene ---------- */
.garage { position: relative; min-height: max(100svh, 640px); overflow: hidden; isolation: isolate; display: grid; grid-template-rows: 1fr auto; background: #03090f; }
.garage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.garage__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 9, 15, 0.9) 0%, rgba(3, 9, 15, 0.6) 32%, rgba(3, 9, 15, 0) 55%), linear-gradient(180deg, var(--bg) 0%, rgba(5, 18, 31, 0) 18%), linear-gradient(0deg, var(--bg) 0%, rgba(5, 18, 31, 0) 22%); }
@media (max-width: 720px) {
  .garage__shade { background: linear-gradient(180deg, var(--bg) 0%, rgba(3, 9, 15, 0.85) 30%, rgba(3, 9, 15, 0) 52%), linear-gradient(0deg, var(--bg) 0%, rgba(5, 18, 31, 0) 22%); }
}
.garage__copy { padding-top: 110px; align-self: start; }
.garage h2 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -0.045em; margin-bottom: 18px; }
.garage__lead { max-width: 30rem; color: #c6d3de; font-size: 1.1rem; }
.garage__meter { padding-bottom: 56px; display: grid; gap: 10px; max-width: 360px; margin-left: max(clamp(20px, 5vw, 48px), calc((100% - 1180px) / 2)); }
.garage__meter p { font-size: 0.95rem; color: #c6d3de; }
.garage__meter strong { font-family: var(--display); font-size: 1.6rem; color: var(--green); font-variant-numeric: tabular-nums; margin-right: 4px; }
.garage__bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.garage__bar span { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); transition: transform 400ms var(--ease-out); }
.garage__note { font-size: 0.82rem !important; color: var(--muted) !important; }
@media (max-width: 720px) {
  .garage { min-height: 760px; }
  .garage__copy { padding-top: 84px; }
  .garage__lead { font-size: 1rem; }
  .garage__meter { padding-bottom: 36px; }
}

/* ---------- Calculator ---------- */
.calc { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); padding-block: 80px 140px; }
.calc__box { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1px; background: var(--line); border-radius: 28px; overflow: hidden; }
.calc__inputs, .calc__result { background: var(--surface); padding: clamp(24px, 4vw, 44px); }
.calc__inputs { display: grid; gap: 26px; }
.calc__result { background: #0c2034; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.calc__label { color: var(--muted); }
.calc__big { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 6.5vw, 5.25rem); letter-spacing: -0.05em; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.calc__year { font-size: 1.1rem; }
.calc__bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; font-size: 0.92rem; }
.bar__name { color: var(--muted); }
.bar__val { font-variant-numeric: tabular-nums; }
.bar__track { grid-column: 1 / -1; height: 10px; background: rgba(255, 255, 255, 0.06); border-radius: 10px; overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--teal), var(--green)); transform-origin: left; transform: scaleX(0); transition: transform 600ms var(--ease-out); }
.bar__fill--old { background: linear-gradient(90deg, #c98a3a, #e0a34e); }

.field { display: grid; gap: 10px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 500; font-size: 0.95rem; }
.field output { font-family: var(--display); font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.field--row { grid-template-columns: 1fr 1fr; gap: 16px; }
.field--row > div { display: grid; gap: 10px; }
.hint { font-size: 0.82rem; color: var(--muted); }
.opt { color: var(--muted); font-weight: 400; }
select, input[type="number"], input:not([type]), textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 0;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239fb2c4' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select option { background: var(--surface); color: var(--text); }
textarea { resize: vertical; min-height: 96px; }
select:focus-visible, input:focus-visible, textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--green); background-color: rgba(255, 255, 255, 0.09); }
::placeholder { color: #6f8396; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--green) var(--p), rgba(255, 255, 255, 0.12) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--green); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); transition: transform 140ms var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(214, 230, 110, 0.6); }

@media (max-width: 900px) { .calc__box { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { padding-block: 140px 120px; position: relative; }
.process__track { height: 2px; background: var(--line); margin-bottom: 40px; border-radius: 2px; overflow: hidden; }
.process__track span { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--green), var(--teal)); transform-origin: left; transform: scaleX(0); }
.process__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process__n { display: block; font-family: var(--display); font-weight: 600; color: var(--green); margin-bottom: 18px; font-size: 0.95rem; }
.process__list h3 { margin-bottom: 10px; }
.process__list p { color: var(--muted); }
@media (max-width: 900px) { .process__list { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
@media (max-width: 520px) { .process__list { grid-template-columns: 1fr; } }

/* ---------- Work / gallery ---------- */
.work { padding-block: 40px 140px; }
.work__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.work__nav { display: flex; gap: 10px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); font-size: 1.1rem; transition: transform 140ms var(--ease-out), background-color 200ms ease; }
.round:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .round:hover { background: rgba(255, 255, 255, 0.14); } }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 480px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(calc((100vw - 1180px) / 2), clamp(20px, 5vw, 48px));
  scroll-padding-inline: max(calc((100vw - 1180px) / 2), clamp(20px, 5vw, 48px));
}
.gallery::-webkit-scrollbar { display: none; }
.shot { margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--surface); }
.shot.is-missing::after { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 12px, transparent 12px 24px), linear-gradient(160deg, #11304d, #0a1d31); color: rgba(238, 243, 247, 0.55); }
.shot img { transition: transform 900ms var(--ease-out); }
.shot figcaption { position: absolute; inset: auto 0 0; padding: 60px 22px 20px; background: linear-gradient(0deg, rgba(5, 18, 31, 0.9), transparent); font-weight: 500; z-index: 1; }
@media (hover: hover) and (pointer: fine) { .shot:hover img { transform: scale(1.04); } }
@media (max-width: 560px) { .work__nav { display: none; } }

/* ---------- Contact ---------- */
.contact { position: relative; padding-block: 140px; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.contact__glow { position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(140, 198, 63, 0.16), rgba(19, 165, 151, 0.08) 50%, transparent); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 { margin-bottom: 20px; }
.contact__lead { color: #c6d3de; font-size: 1.15rem; margin-bottom: 40px; max-width: 30rem; }
.direct { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; max-width: 30rem; }
.direct a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; background: var(--bg); transition: background-color 200ms ease; }
.direct__k { color: var(--muted); font-size: 0.9rem; }
.direct__v { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) { .direct a:hover { background: var(--surface); } }
.form { background: var(--surface); padding: clamp(24px, 4vw, 40px); border-radius: 28px; display: grid; gap: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.form__error { color: #ffb4a8; font-size: 0.92rem; }
.form .fine { text-align: center; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 56px 100px; }
.foot__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.foot__inner img { width: 200px; height: auto; }
.foot__tag { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; }
.foot__copy { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { .foot__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
  transform: translateY(0) scale(1); opacity: 1;
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
}
.wa-float.is-away { transform: translateY(16px) scale(0.95); opacity: 0; pointer-events: none; }
.wa-float:active { transform: scale(0.95); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .no-js [data-intro] { opacity: 1; transform: none; }
.no-js .hero__title .line > span { transform: none; }

/* ---------- Reduced motion: keep fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, [data-intro] { transform: none; transition: opacity 400ms ease; }
  .hero__title .line > span { transform: none; transition: none; }
  .hero__scroll span { animation: none; opacity: 1; }
  .panel__waves.is-on i { animation: none; opacity: 0.5; transform: scale(2.5); }
  .card .media img, .shot img { transition: none; }
  .nav { transition: background-color 300ms ease; }
  .nav.is-hidden { transform: none; }
}

/* =========================================================
   Sistema SHER
   ========================================================= */
.sher { padding-block: 140px 60px; position: relative; }
.sher__lead { color: #c6d3de; font-size: 1.15rem; margin-top: 20px; max-width: 38rem; }
.phases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.phase-card a {
  position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%;
  padding: 30px 28px 28px; border-radius: var(--radius); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 300ms var(--ease-out), box-shadow 300ms ease, background-color 300ms ease;
}
.phase-card__n { font-family: var(--display); font-weight: 700; font-size: 3.5rem; letter-spacing: -0.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(140, 198, 63, 0.7); }
.phase-card .tag { position: absolute; top: 30px; right: 28px; }
.phase-card p { color: var(--muted); }
.phase-card__more { margin-top: auto; padding-top: 8px; color: var(--green); font-weight: 600; font-size: 0.95rem; }
.phase-card a:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .phase-card a:hover { transform: translateY(-4px); background: #11293f; box-shadow: inset 0 0 0 1px rgba(140, 198, 63, 0.35); }
}
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--body); vertical-align: middle; }
.tag--ok { background: rgba(140, 198, 63, 0.14); color: var(--green); }
.tag--dev { background: rgba(214, 230, 110, 0.14); color: var(--lime); }
.applies { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.applies > p { color: var(--muted); font-size: 0.95rem; }
.applies .chips { margin: 0; }
.chips--dark li { background: rgba(255, 255, 255, 0.05); color: #c6d3de; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr; } }

/* Encabezado de fase */
.phase-head {
  display: grid; grid-template-columns: auto 1.2fr 1fr; gap: 20px 48px; align-items: end;
  padding-block: 120px 56px; border-top: 1px solid var(--line); margin-top: 40px;
}
.phase-head__n { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--green); writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.2em; text-transform: uppercase; align-self: start; }
.phase-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.phase-head .eyebrow { margin-bottom: 14px; }
.phase-head__body { display: grid; gap: 16px; color: #c6d3de; }
.note { padding-left: 16px; border-left: 2px solid var(--green); color: var(--muted); font-size: 0.98rem; }
@media (max-width: 900px) {
  .phase-head { grid-template-columns: 1fr; padding-block: 96px 40px; }
  .phase-head__n { writing-mode: horizontal-tb; transform: none; }
}

/* Píldora flotante de fases */
.phase-pill {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(14, 36, 59, 0.78); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 40px -12px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
}
.phase-pill.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.phase-pill a { padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background-color 250ms ease, color 250ms ease; }
.phase-pill a b { font-family: var(--display); margin-right: 4px; }
.phase-pill a.is-current { background: var(--green); color: var(--ink); }
@media (max-width: 560px) {
  .phase-pill { left: 16px; transform: translate(0, 24px); }
  .phase-pill.is-on { transform: translate(0, 0); }
  .phase-pill a { padding: 9px 11px; font-size: 0.82rem; }
}

/* ---------- Fase 2: respaldo ---------- */
.backup { padding-bottom: 120px; }
.backup__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.backup__stage { margin: 0; background: linear-gradient(180deg, #0b2036, #071627); border-radius: 28px; padding: 18px 18px 22px; box-shadow: inset 0 0 0 1px var(--line); }
.bk { width: 100%; height: auto; display: block; }
.bk-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; font-weight: 500; font-size: 0.98rem; }
.bk-dot { width: 10px; height: 10px; border-radius: 50%; background: #e7c25a; box-shadow: 0 0 12px #e7c25a; transition: background-color 300ms ease, box-shadow 300ms ease; }
.backup__stage:has([data-state="out"]) .bk-dot { background: #ff5a5a; box-shadow: 0 0 12px #ff5a5a; }
.backup__stage:has([data-state="backup"]) .bk-dot { background: var(--green); box-shadow: 0 0 12px var(--green); }

.bk-city rect { fill: #0e263d; }
.bk-pole { stroke: #3c536a; stroke-width: 5; stroke-linecap: round; }
.bk-wire { fill: none; stroke: #2a4258; stroke-width: 3; }
.bk-label { fill: #9fb2c4; font: 600 13px var(--body); letter-spacing: 0.04em; }
.bk-building { fill: #102c46; stroke: #1d3d5c; stroke-width: 2; }
.bk-roof { fill: #1d3d5c; }
.bk-ground { stroke: #2a4258; stroke-width: 2; }
.bk-basement { fill: #0a1f33; }
.bk-car { fill: #24384c; }
.bk-meter { fill: #1d3d5c; stroke: #3c536a; }
.bk-slab { stroke: #1d3d5c; stroke-width: 2; }
.bk-core { fill: #0d2740; }
.bk-stair { fill: none; stroke: #27486a; stroke-width: 2; }
.bk-win { fill: #f2c77a; opacity: 0.85; transition: opacity 250ms ease; }
.bk-lamp { fill: #eaf6ff; transition: opacity 250ms ease, fill 300ms ease; }
.bk-halo { opacity: 0.55; transition: opacity 250ms ease; }
.bk-halo--g { opacity: 0; transition: opacity 300ms ease; }
.bk-outlet { fill: #1d3d5c; stroke: #3c536a; stroke-width: 1.5; transition: fill 300ms ease, stroke 300ms ease; }
.bk-outlet-slot { fill: #0a1f33; }
.bk-outlet-glow { opacity: 0; transition: opacity 300ms ease; }
.bk-riser { stroke: #2a4258; stroke-width: 3; }
.bk-flow { fill: none; stroke-width: 3; stroke-dasharray: 6 12; stroke-linecap: round; opacity: 0; transition: opacity 300ms ease, stroke 300ms ease; animation: bkflow 0.9s linear infinite; }
.bk-flow--grid { stroke: #e7c25a; }
.bk-flow--riser { stroke: #e7c25a; }
@keyframes bkflow { to { stroke-dashoffset: -36; } }
.bk-module { fill: #12324f; stroke: #2f5a7f; stroke-width: 1.5; transition: fill 300ms ease, stroke 300ms ease; }
.bk-module-led { fill: #e7c25a; transition: fill 300ms ease; }

/* estados */
.bk[data-state="grid"] .bk-flow { opacity: 1; }
.bk[data-state="grid"] .bk-backup .bk-flow { opacity: 0; }
.bk[data-state="grid"] .bk-module-led { animation: bkcharge 1.6s ease-in-out infinite; }
@keyframes bkcharge { 50% { opacity: 0.35; } }

.bk[data-state="out"] .bk-win,
.bk[data-state="backup"] .bk-win { opacity: 0.06; }
.bk[data-state="out"] .bk-lamp { opacity: 0.15; }
.bk[data-state="out"] .bk-halo { opacity: 0; }
.bk[data-state="out"] .bk-flow { opacity: 0; }

.bk[data-state="backup"] .bk-flow--riser { opacity: 1; stroke: var(--green); }
.bk[data-state="backup"] .bk-flow--grid { opacity: 0; }
.bk[data-state="backup"] .bk-halo { opacity: 0; }
.bk[data-state="backup"] .bk-halo--g { opacity: 0.6; }
.bk[data-state="backup"] .bk-outlet { fill: #8cc63f; stroke: #c9ea8f; }
.bk[data-state="backup"] .bk-outlet-glow { opacity: 0.7; }
.bk[data-state="backup"] .bk-module { fill: #1e4a2a; stroke: #8cc63f; }
.bk[data-state="backup"] .bk-module-led { fill: #8cc63f; }

.feats { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 22px; }
.feats li { padding-left: 22px; border-left: 2px solid var(--line); color: var(--muted); }
.feats strong { display: block; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.bk-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 16px; }
.stepper { display: inline-flex; align-items: center; gap: 12px; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.stepper span { min-width: 92px; text-align: center; color: #c6d3de; }
.stepper strong { font-family: var(--display); color: var(--green); }
.round--sm { width: 42px; height: 42px; font-size: 1.2rem; }
@media (max-width: 900px) { .backup__grid { grid-template-columns: 1fr; } }

/* ---------- Fase 3: renovable ---------- */
.renew { padding-bottom: 140px; }
.renew__stage { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: #dfe4e8; }
.renew__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.renew__hud {
  position: absolute; left: 20px; bottom: 20px; display: grid; gap: 8px; min-width: 220px;
  padding: 14px 16px; border-radius: 16px; background: rgba(5, 18, 31, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hud-row { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 500; }
.hud-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.hud-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), #f3c84b); transform-origin: left; transform: scaleX(0.5); }
.hud-bar--wind span { background: linear-gradient(90deg, var(--teal), var(--green)); }
.renew__hud .fine { font-size: 0.75rem; }
@media (max-width: 720px) {
  .renew__stage { aspect-ratio: 4 / 5; }
  .renew__hud { left: 12px; top: 12px; bottom: auto; width: 56%; min-width: 0; padding: 10px 12px; gap: 6px; }
  .hud-row { grid-template-columns: 48px 1fr; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-flow { animation: none; stroke-dasharray: none; }
  .bk[data-state="grid"] .bk-module-led { animation: none; }
  .phase-pill, .phase-pill.is-on { transition: opacity 300ms ease; }
}

/* ---------- Fase 1: acercar el panel al encabezado (solo escritorio) ---------- */
.product { background: transparent; }
@media (min-width: 821px) {
  .phase-head + .product { margin-top: -22vh; }
}

/* ---------- Fase 2: respaldo para departamentos ---------- */
.apt { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center; margin-top: 120px; padding-top: 80px; border-top: 1px solid var(--line); }
.apt__title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 18px; }
.apt__lead { color: #c6d3de; margin-bottom: 28px; }
.apt .feats { margin-bottom: 28px; }
.ap-facade { fill: #0d2740; }
.ap-strip { opacity: 0.5; }
.ap-room { fill: #0f2b45; stroke: #2a4a6a; stroke-width: 2; }
.ap-floor, .ap-wall { stroke: #2a4a6a; stroke-width: 2; }
.ap-furn { fill: #1a3b5a; }
.ap-shelf { fill: #2a4a6a; }
.ap-router { fill: #dfe6ec; }
.ap-fridge { fill: #c9d3db; }
.ap-fridge-line { stroke: #9fadb9; stroke-width: 1.5; }
.ap-led { fill: #8cc63f; transition: opacity 250ms ease; }
.ap-tv-frame { fill: #0a1a2a; stroke: #2a4a6a; stroke-width: 1.5; }
.ap-tv { fill: #5b93c9; opacity: 0.85; transition: opacity 250ms ease; }
.ap-phone { fill: #0a1a2a; stroke: #6d8396; stroke-width: 1.5; }
.ap-charge { fill: #e7c25a; transition: fill 300ms ease, opacity 250ms ease; }
.ap-wifi path { stroke: #dfe6ec; stroke-width: 2.5; transition: stroke 300ms ease; }
.ap-wifi { transition: opacity 250ms ease; }
.ap-circuit { fill: none; }
.ap .bk-flow { fill: none; }
.ap-label { font-size: 12px; }
.ap .bk-win { opacity: 0.75; }

.bk[data-state="out"] .ap-tv, .bk[data-state="backup"] .ap-tv { opacity: 0.04; }
.bk[data-state="out"] .ap-wifi, .bk[data-state="out"] .ap-led, .bk[data-state="out"] .ap-charge { opacity: 0.1; }
.bk[data-state="backup"] .ap-wifi path { stroke: var(--green); }
.bk[data-state="backup"] .ap-charge { fill: var(--green); }
.bk[data-state="grid"] .ap-wifi path:nth-child(3) { animation: bkcharge 1.6s ease-in-out infinite; }
.bk[data-state="backup"] .ap-wifi path:nth-child(3) { animation: bkcharge 1.6s ease-in-out infinite; }
.bk[data-state="out"] .ap-room { fill: #0a1f33; }

@media (max-width: 900px) {
  .apt { grid-template-columns: 1fr; margin-top: 80px; padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) { .ap-wifi path { animation: none !important; } }

/* ---------- Clientes ---------- */
.clients { margin-top: -80px; margin-bottom: 140px; text-align: center; }
.clients__title { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.clients__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.logo-tile { aspect-ratio: 2 / 1; border-radius: 16px; background: #f4f6f2; }
.logo-tile img { object-fit: contain; padding: 14% 12%; filter: grayscale(1); opacity: 0.75; transition: filter 300ms ease, opacity 300ms ease; }
@media (hover: hover) and (pointer: fine) { .logo-tile:hover img { filter: none; opacity: 1; } }
.logo-tile.is-missing::after { content: "Logo\A images/" attr(data-file); font-size: 0.78rem; background: rgba(255, 255, 255, 0.04); color: rgba(238, 243, 247, 0.5); }
.logo-tile.is-missing { background: transparent; outline: 1px dashed rgba(255, 255, 255, 0.18); outline-offset: -1px; }
@media (max-width: 820px) {
  .clients { margin-top: -100px; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) { .clients__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reconocimientos ---------- */
.recos { padding-block: 40px 140px; }
.recos__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.reco__thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 18px; overflow: hidden; background: var(--surface); margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 160ms var(--ease-out);
}
.reco__thumb:active { transform: scale(0.98); }
.reco__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.reco__thumb--portrait img { object-fit: cover; object-position: 50% 30%; }
.reco__zoom { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 18, 31, 0.75); color: var(--text); font-size: 1.2rem; opacity: 0; transform: scale(0.9); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .reco__thumb:hover img { transform: scale(1.04); }
  .reco__thumb:hover .reco__zoom { opacity: 1; transform: scale(1); }
}
.reco__year { font-family: var(--display); font-weight: 700; font-size: 2rem; letter-spacing: -0.04em; line-height: 1; color: var(--green); margin-bottom: 8px; }
.reco__org { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.reco h3 { font-size: 1.2rem; margin-bottom: 6px; }
.reco__text { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 1000px) { .recos__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .recos__list { grid-template-columns: 1fr; } }

.zoom { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 90vh; overflow: visible; }
.zoom::backdrop { background: rgba(3, 9, 15, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zoom img { display: block; max-width: min(92vw, 1100px); max-height: 86vh; width: auto; height: auto; border-radius: 14px; }
.zoom__close { position: absolute; top: -56px; right: 0; color: var(--text); font-size: 1.5rem; }
.zoom[open] { animation: zoomIn 260ms var(--ease-out); }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.96); } }
@media (prefers-reduced-motion: reduce) { .zoom[open] { animation: fadeOnly 200ms ease; } @keyframes fadeOnly { from { opacity: 0; } } }
