/* BASCO Servicios v3: concepto "circuito encendido". Colores base del sitio original. */
:root {
  --ink: #12151a;
  --ink-2: #1b2028;
  --ink-3: #262c36;
  --bg: #0d0f13;
  --surface: #ffffff;
  --text: #15181d;
  --muted: #4f5761;
  --muted-on-dark: #c3cad3;
  --line: #e4e1d9;
  --red: #d60b12;
  --red-dark: #92070c;
  --orange: #f06413;
  --amber: #ff9a3d;
  --yellow: #ffc426;
  --wa: #15803d;
  --wa-hover: #116b33;
  --grad: linear-gradient(90deg, var(--yellow), var(--orange) 32%, var(--red) 64%, var(--red-dark));
  --warm: linear-gradient(90deg, var(--yellow), var(--orange));
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", var(--font);
  --radius: 16px;
  --header-h: 74px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: #fff; background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Fondo de luces naranja ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.orb { position: absolute; border-radius: 50%; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--c) 0%, transparent 62%); animation: float var(--t, 18s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
@keyframes float { from { transform: translate3d(-4vmax, -3vmax, 0) scale(1); opacity: .7; } to { transform: translate3d(5vmax, 4vmax, 0) scale(1.15); opacity: 1; } }
.o1 { width: 70vmax; height: 70vmax; left: -22vmax; top: 5vh; --c: rgba(194, 65, 12, .55); --t: 19s; --dl: -6s; }
.o2 { width: 56vmax; height: 56vmax; right: -18vmax; top: 35vh; --c: rgba(234, 88, 12, .40); --t: 23s; --dl: -11s; }
.o3 { width: 46vmax; height: 46vmax; left: 28vw; top: 78vh; --c: rgba(160, 20, 12, .42); --t: 17s; --dl: -3s; }
.o4 { width: 40vmax; height: 40vmax; right: 8vw; top: -12vh; --c: rgba(245, 158, 11, .22); --t: 21s; --dl: -9s; }
.o5 { width: 50vmax; height: 50vmax; left: -12vw; top: 62vh; --c: rgba(180, 83, 9, .40); --t: 25s; --dl: -14s; }
.beam { position: absolute; top: -30vh; height: 160vh; width: 18vmax; background: linear-gradient(90deg, transparent, rgba(255, 140, 40, .13) 45%, rgba(255, 196, 38, .18) 50%, rgba(255, 140, 40, .13) 55%, transparent); opacity: 0; animation: sweep 14s ease-in-out infinite; }
.b1 { left: 10vw; }
.b2 { left: 55vw; animation-duration: 18s; animation-delay: -7s; }
@keyframes sweep { 0% { transform: rotate(22deg) translate3d(-20vw, 0, 0); opacity: 0; } 40%, 60% { opacity: 1; } 100% { transform: rotate(22deg) translate3d(30vw, 0, 0); opacity: 0; } }
.grid-lines { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,170,60,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,170,60,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%); }
.ambient-veil { position: absolute; inset: 0; background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(13,15,19,.15), rgba(13,15,19,.6)); }

/* ---------- Línea de energía (barra superior = progreso de lectura) ---------- */
.power-line { position: relative; height: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.power-fill { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 1)); }
.power-fill::after { content: ""; position: absolute; inset: 0 auto 0 -30%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent); animation: current 3.6s linear infinite; animation-delay: -1.2s; }
.footer .power-line { background: var(--grad); }
.footer .power-line::after { content: ""; position: absolute; inset: 0 auto 0 -30%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent); animation: current 3.6s linear infinite; }
@keyframes current { to { transform: translateX(440%); } }

/* ---------- Botones ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent; font: 700 1rem/1.1 var(--font); text-decoration: none; cursor: pointer; transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease; white-space: nowrap; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg) translateX(0); opacity: 0; pointer-events: none; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { opacity: 1; animation: shine .8s ease; }
@keyframes shine { to { transform: skewX(-20deg) translateX(420%); } }
.btn:active { transform: translateY(0); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 14px 34px rgba(21, 128, 61, .35); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 14px 34px rgba(214, 11, 18, .3); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(13, 15, 19, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); color: #fff; transition: background-color .3s ease, box-shadow .3s ease; }
.topbar.scrolled { background: rgba(13, 15, 19, .95); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.nav { max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: calc(var(--header-h) - 4px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-logo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,196,38,.45), 0 6px 18px rgba(240,100,19,.35); }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.32rem; letter-spacing: .04em; line-height: 1.05; }
.brand-text small { display: block; font-family: var(--font); font-weight: 500; font-size: .76rem; letter-spacing: .02em; color: var(--muted-on-dark); }
.links { display: flex; align-items: center; gap: 4px; }
.links a:not(.btn) { position: relative; padding: 10px 12px; text-decoration: none; font-weight: 600; font-size: .95rem; color: #e9edf2; border-radius: 8px; }
.links a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.links a:not(.btn):hover::after, .links a.active::after { transform: scaleX(1); }
.btn-call { min-height: 44px; padding: 10px 18px; margin-left: 10px; background: var(--yellow); color: var(--ink); font-size: .95rem; box-shadow: 0 0 24px rgba(255,196,38,.3); }
.btn-call:hover { background: #ffd65c; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: transparent; color: #fff; cursor: pointer; padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 22px; } .menu-btn span:nth-child(3) { top: 29px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Logo con luces LED ---------- */
.led-logo { --s: 120px; position: relative; width: var(--s); height: var(--s); margin: 18px 0 38px 18px; }
.led-logo::before { content: ""; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,38,.55) 0%, rgba(240,100,19,.22) 38%, transparent 68%); opacity: .55; animation: halo 3.2s ease-in-out infinite; animation-delay: -1.1s; pointer-events: none; }
@keyframes halo { 50% { opacity: 1; transform: scale(1.08); } }
.hero-logo { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255,196,38,.35), 0 10px 40px rgba(0,0,0,.45); }
.led-ring { position: absolute; inset: -16px; z-index: 0; border-radius: 50%; }
.led-dot { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #ffe29a; box-shadow: 0 0 6px 2px rgba(255,170,40,.85); opacity: .18; animation: chase 2.4s linear infinite; }
@keyframes chase { 0%, 100% { opacity: .18; } 8% { opacity: 1; } 30% { opacity: .35; } }
.led-bulb { position: absolute; z-index: 2; left: 50%; top: 51%; width: 46%; height: 46%; margin: -23% 0 0 -23%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,255,235,.95) 0%, rgba(255,236,150,.7) 28%, rgba(255,196,38,.25) 55%, transparent 72%); mix-blend-mode: screen; opacity: .55; animation: flicker 1.6s steps(1, end) .3s 1 both, bulb 2.8s ease-in-out 1.9s infinite; }
@keyframes flicker { 0% { opacity: 0; } 12% { opacity: .9; } 18% { opacity: .1; } 26% { opacity: .8; } 32% { opacity: .2; } 44% { opacity: 1; } 52% { opacity: .4; } 64%, 100% { opacity: .85; } }
@keyframes bulb { 0%, 100% { opacity: .85; } 50% { opacity: .45; } }
.led-mini { position: relative; flex: none; display: block; width: 48px; height: 48px; }
.led-mini .led-bulb { animation: bulb 2.8s ease-in-out infinite; }
.footer .led-mini { width: 44px; height: 44px; }

/* ---------- Riel de circuito (navegación lateral) ---------- */
.rail { position: fixed; z-index: 40; left: 22px; top: 50%; height: 300px; transform: translateY(-50%); display: none; flex-direction: column; justify-content: space-between; align-items: center; opacity: 0; transition: opacity .4s ease; }
.rail.show { opacity: 1; }
.rail-track { position: absolute; left: 50%; top: 18px; bottom: 18px; width: 2px; margin-left: -1px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.rail-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--yellow), var(--orange), var(--red)); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 12px rgba(255,170,40,.8); }
.rail-node { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #14171c; border: 1.5px solid rgba(255,255,255,.18); text-decoration: none; font: 700 .72rem var(--font); color: #8b939d; transition: border-color .3s ease, color .3s ease, box-shadow .3s ease, background-color .3s ease; }
.rail-node:hover { color: #fff; border-color: var(--amber); }
.rail-node.on { color: var(--ink); background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 5px rgba(255,196,38,.15), 0 0 22px rgba(255,170,40,.8); }
.rail-node.passed { color: var(--yellow); border-color: rgba(255,196,38,.6); }
@media (min-width: 1360px) { .rail { display: flex; } }

/* ---------- Portada ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; background: var(--ink); }
.hero-bg { position: absolute; inset: -2%; z-index: -4; background: url("assets/img/paisaje.jpg") center 60% / cover no-repeat; animation: drift 22s ease-in-out infinite alternate; }
@media (max-width: 900px) { .hero-bg { background-image: url("assets/img/paisaje-900.jpg"); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07) translate3d(-1%, -1%, 0); } }
.hero-scrim { position: absolute; inset: 0; z-index: -3; background:
  linear-gradient(100deg, rgba(10,11,14,.95) 0%, rgba(10,11,14,.84) 40%, rgba(20,12,8,.5) 72%, rgba(40,16,6,.35) 100%),
  linear-gradient(0deg, rgba(13,15,19,1) 0%, rgba(13,15,19,0) 32%),
  radial-gradient(60% 50% at 12% 18%, rgba(255,196,38,.18), transparent 70%),
  radial-gradient(50% 60% at 95% 85%, rgba(240,100,19,.28), transparent 70%); }
.cables { position: absolute; z-index: -2; left: 0; right: 0; bottom: 8%; width: 100%; height: 38%; overflow: visible; }
.cable { fill: none; stroke: rgba(255,255,255,.13); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pulse { fill: none; stroke: #ffc45c; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 4 96; stroke-dashoffset: 100; opacity: .95; animation: flow 4.8s linear infinite; }
.p2 { animation-duration: 6.2s; animation-delay: -2.1s; stroke: #ff9a3d; }
.p3 { animation-duration: 5.4s; animation-delay: -3.7s; stroke: #ffd77a; }
@keyframes flow { to { stroke-dashoffset: 0; } }
.hero-word { position: absolute; z-index: -1; right: -2vw; bottom: -4vw; font-family: var(--font-head); font-weight: 800; font-size: clamp(8rem, 30vw, 28rem); line-height: .8; letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,196,38,.2); pointer-events: none; user-select: none; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(370px, 400px); gap: 48px; align-items: end; padding-top: 48px; padding-bottom: 110px; }
.hero-copy { max-width: 780px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); background: rgba(255,196,38,.1); border: 1px solid rgba(255,196,38,.35); padding: 7px 14px; border-radius: 999px; text-shadow: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.brand-title { margin: 22px 0 10px; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: .34em; text-transform: uppercase; color: #fff; opacity: .9; }
.headline { font-size: clamp(3rem, 7.4vw, 6rem); font-weight: 800; line-height: .9; text-transform: uppercase; letter-spacing: .005em; }
.ln { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em 0 .06em; margin-bottom: -.06em; }
.w { display: inline-block; animation: wordUp 1s var(--ease) both; }
.ln:nth-child(1) .w { animation-delay: .15s; } .ln:nth-child(2) .w { animation-delay: .27s; } .ln:nth-child(3) .w { animation-delay: .39s; } .ln:nth-child(4) .w { animation-delay: .51s; }
@keyframes wordUp { from { transform: translateY(105%); } }
.hl { background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 22px rgba(255,150,40,.35)); }
.lead { margin: 26px 0 34px; max-width: 620px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #e3e8ee; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-card { position: relative; background: rgba(18, 21, 26, .6); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 30px; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.card-led { position: absolute; top: 22px; right: 22px; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px #4ade80; animation: blink 2s ease-in-out infinite; }
.hero-card h2 { font-size: 2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.hero-card p { margin-top: 10px; color: var(--muted-on-dark); font-size: .98rem; }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-list a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; font-weight: 700; text-decoration: none; overflow-wrap: break-word; min-width: 0; transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.contact-list a:hover { background: rgba(255,196,38,.14); border-color: rgba(255,196,38,.5); transform: translateX(4px); }
.ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: .95rem; font-weight: 800; }
.ico-wa { background: var(--wa); color: #fff; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.45); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--yellow); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Entrada de portada */
.rise { animation: rise .9s var(--ease) both; }
.hero-copy > .rise:nth-child(2) { animation-delay: .08s; }
.hero-copy > .rise:nth-child(3) { animation-delay: .14s; }
.hero-copy > .rise:nth-child(5) { animation-delay: .6s; }
.hero-copy > .rise:nth-child(6) { animation-delay: .72s; }
.hero-card.rise { animation-delay: .85s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Franja de datos ---------- */
.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: -58px; }
.stat { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius); background: rgba(22, 26, 32, .82); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.stat b { flex: none; display: inline-flex; align-items: baseline; font-family: var(--font-head); font-weight: 800; font-size: 3.2rem; line-height: 1; background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 2.6ch; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 1.6rem; margin-left: 2px; }
.stat .volt { color: var(--yellow); background: none; -webkit-background-clip: border-box; background-clip: border-box; filter: drop-shadow(0 0 12px rgba(255,170,40,.7)); animation: blink 3s ease-in-out infinite; }
.stat > span { color: var(--muted-on-dark); font-weight: 600; font-size: .95rem; line-height: 1.4; }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 10vw, 132px) 0; position: relative; }
.section + .section::after { content: ""; position: absolute; top: 0; left: 50%; width: min(1100px, 90vw); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(255,170,40,.55), transparent); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 48px; align-items: end; margin-bottom: 48px; }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head > p:last-child { color: var(--muted-on-dark); font-size: 1.08rem; max-width: 520px; justify-self: end; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad); }
h2 { position: relative; font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 800; text-transform: uppercase; padding-bottom: 14px; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 4px; border-radius: 4px; background: var(--grad); box-shadow: 0 0 14px rgba(255,150,40,.6); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease) .35s; }
.in h2::after, html:not(.js) h2::after { transform: scaleX(1); }
.hero-card h2 { padding-bottom: 0; } .hero-card h2::after { display: none; }

/* ---------- Servicios: tablero ---------- */
.board { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; align-items: stretch; }
.board-switches { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 22px; background: linear-gradient(180deg, #1c2129, #14171c); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.35); position: relative; }
.board-switches::before { content: ""; position: absolute; left: 18px; right: 18px; top: 8px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.15) 0 6px, transparent 6px 12px); }
.breaker { display: grid; grid-template-columns: 34px 30px 1fr 12px; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, #222833, #1a1f27); color: #c9d0d8; font: 700 1rem/1.2 var(--font); text-align: left; cursor: pointer; transition: border-color .3s ease, background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.breaker:hover { border-color: rgba(255,170,40,.45); color: #fff; }
.lever { position: relative; width: 26px; height: 42px; border-radius: 7px; background: #0c0e12; border: 1px solid rgba(255,255,255,.12); }
.lever i { position: absolute; left: 3px; right: 3px; top: 50%; height: 16px; border-radius: 4px; background: linear-gradient(180deg, #e9edf2, #9aa3ad); transform: translateY(0); transition: transform .35s var(--ease), background .35s ease; }
.b-num { font-family: var(--font-head); font-size: 1.05rem; color: #7d8691; letter-spacing: .08em; }
.b-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.b-led { width: 10px; height: 10px; border-radius: 50%; background: #3a4049; transition: background-color .3s ease, box-shadow .3s ease; }
.breaker.is-on { color: #fff; border-color: rgba(255,196,38,.55); background: linear-gradient(180deg, #2a2418, #1d1a14); box-shadow: 0 0 0 1px rgba(255,196,38,.15), 0 10px 30px rgba(240,100,19,.18); }
.breaker.is-on .lever i { transform: translateY(-16px); background: var(--warm); }
.breaker.is-on .b-num { color: var(--yellow); }
.breaker.is-on .b-led { background: var(--yellow); box-shadow: 0 0 10px 2px rgba(255,196,38,.8); }

.board-panels { position: relative; min-width: 0; }
.panel { display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; background: rgba(22, 26, 32, .78); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.panel + .panel { margin-top: 18px; }
.panel-media { position: relative; aspect-ratio: 2.42 / 1; overflow: hidden; background: #fff; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; }
.panel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13,15,19,.55)); pointer-events: none; }
.panel-body { position: relative; padding: 28px 30px 32px; display: grid; gap: 14px; }
.panel-num { position: absolute; right: 26px; top: -46px; font-family: var(--font-head); font-weight: 800; font-size: 5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,196,38,.85); text-shadow: 0 0 30px rgba(255,150,40,.4); z-index: 2; }
.panel h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; text-transform: uppercase; }
.panel p { color: var(--muted-on-dark); font-size: 1.08rem; max-width: 640px; }
.panel ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.panel li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; background: rgba(255,196,38,.08); border: 1px solid rgba(255,196,38,.3); font-weight: 600; font-size: .95rem; color: #fff; }
.panel li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3 6.8 11 12 5.5' fill='none' stroke='%2312151a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (min-width: 901px) {
  .js .panel:not(.is-active) { display: none; }
  .js .panel + .panel { margin-top: 0; }
  .js .panel.is-active { animation: powerOn .7s var(--ease) both; }
  .js .panel.is-active .panel-media img { animation: flick .6s steps(1, end) both; }
}
@keyframes powerOn { from { opacity: 0; transform: translateY(14px) scale(.99); } }
@keyframes flick { 0% { opacity: .2; } 20% { opacity: .9; } 30% { opacity: .4; } 45%, 100% { opacity: 1; } }

/* ---------- Historia ---------- */
.section-band { background: linear-gradient(180deg, rgba(18,21,26,.25), rgba(18,21,26,.5) 20%, rgba(18,21,26,.5) 80%, rgba(18,21,26,.25)); overflow: hidden; }
.story { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.story-text h2 { margin: 14px 0 26px; }
.story-text p:not(.eyebrow) { color: var(--muted-on-dark); font-size: 1.12rem; }
.story-text p + p { margin-top: 16px; }
.story-photo { position: relative; margin: 0; padding: 2px; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, rgba(255,196,38,.85), rgba(240,100,19,.55) 35%, rgba(255,255,255,.08) 70%, rgba(214,11,18,.45)); box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 90px rgba(240,100,19,.16); }
.story-photo img { width: 100%; height: auto; aspect-ratio: 613 / 264; object-fit: cover; object-position: 35% 60%; border-radius: 20px; background: #1b2028; }
.scan { position: absolute; top: 2px; bottom: 2px; left: 0; width: 30%; border-radius: 20px; background: linear-gradient(90deg, transparent, rgba(255,220,150,.35), transparent); transform: translateX(-120%); pointer-events: none; }
.story-photo.in .scan { animation: scan 1.6s var(--ease) .5s both; }
@keyframes scan { to { transform: translateX(420%); } }
.values { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(56px, 8vw, 96px); }
.value { position: relative; overflow: hidden; padding: 30px 28px; border-radius: var(--radius); background: rgba(27,32,40,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.09); transition: border-color .3s ease, transform .3s ease; }
.value:hover { border-color: rgba(255,196,38,.45); transform: translateY(-4px); }
.value-strip { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); box-shadow: 0 0 14px rgba(255,150,40,.7); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) .3s; }
.value.in .value-strip { transform: scaleX(1); }
.value-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(255,196,38,.12); color: var(--yellow); margin-bottom: 18px; box-shadow: 0 0 0 1px rgba(255,196,38,.25); }
.value h3 { font-size: 1.9rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.value p { color: var(--muted-on-dark); }

/* ---------- Trabajos ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.work { grid-column: span 3; position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.1); text-decoration: none; box-shadow: 0 20px 60px rgba(0,0,0,.35); cursor: zoom-in; }
.work:nth-child(n+3) { grid-column: span 2; }
.work img { width: 100%; aspect-ratio: 2.42 / 1; object-fit: cover; transition: transform .6s ease; }
.work:nth-child(n+3) img { aspect-ratio: 4 / 3; }
.work:hover img { transform: scale(1.05); }
.work span { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(13,15,19,.84); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-weight: 700; line-height: 1.3; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.work span::after { content: "⤢"; color: var(--yellow); font-size: 1.1rem; }
.work::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255,170,40,.22), transparent 60%); opacity: 0; transition: opacity .35s ease; z-index: 1; }
.work:hover::after { opacity: 1; }
.work:hover { box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,170,40,.5), 0 0 60px rgba(240,100,19,.25); }

/* ---------- Agenda ---------- */
.booking { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; align-items: stretch; }
.contact-panel { position: relative; overflow: hidden; background: rgba(22,26,32,.85); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; border-radius: 22px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.contact-panel::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,38,.25), transparent 70%); animation: breathe 6s ease-in-out infinite; animation-delay: -3s; pointer-events: none; }
@keyframes breathe { 50% { transform: scale(1.2); opacity: .7; } }
.contact-panel h2 { margin-top: 6px; margin-bottom: 6px; }
.contact-panel p:not(.eyebrow) { color: var(--muted-on-dark); margin-bottom: 8px; }
.contact-line { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 48px; color: #ffe7a6; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-line:hover { color: #fff; }
.form-card { position: relative; overflow: hidden; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3.5vw, 38px); box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 0 80px rgba(240,100,19,.12); }
.charge { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: #ece9e2; }
.charge-fill { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(var(--c, 0)); transition: transform .5s var(--ease); box-shadow: 0 0 12px rgba(255,150,40,.7); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 700; font-size: .92rem; color: #29313a; }
input, select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #d3d0c8; border-radius: 12px; font: 400 1rem var(--font); color: var(--text); background: #fbfaf7; color-scheme: light; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
input::placeholder, textarea::placeholder { color: #6f757e; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(240,100,19,.18); }
textarea { min-height: 120px; resize: vertical; }
.wide, .form-actions, .form-status, .note { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-status { font-weight: 600; color: var(--wa); }
.form-status:empty { display: none; }
.form-status a { font-weight: 700; }
.note { color: var(--muted); font-size: .9rem; }

/* ---------- Pie ---------- */
.footer { background: #08090c; color: #dfe4ea; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-top: 36px; padding-bottom: 36px; }
.footer .brand strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; letter-spacing: .03em; }
.footer-contact { color: #aab2bc; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; display: inline-block; padding: 6px 0; }
.footer-contact a:hover { color: var(--yellow); }

/* WhatsApp flotante */
.float-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 14px 34px rgba(21,128,61,.45); transition: transform .3s ease; }
.float-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.8s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.float-wa:hover { transform: scale(1.08); }

/* Visor de fotos */
.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: #0c0e12; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(8,9,12,.88); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 18px 18px 0 0; background: #fff; }
.lightbox figcaption { padding: 14px 20px; font-weight: 700; }
.lightbox-close, .lightbox-nav { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.lightbox-close { top: -16px; right: -16px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: -20px; } .lightbox-nav.next { right: -20px; }

/* ---------- Entradas al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; gap: 32px; }
  .hero-card { max-width: 560px; }
  .board { grid-template-columns: 280px minmax(0, 1fr); }
  .b-name { font-size: 1.12rem; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .menu-btn { display: block; }
  .links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 22px; background: rgba(13,15,19,.98); border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 40px rgba(0,0,0,.35); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  .links.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .links a:not(.btn) { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .links a:not(.btn)::after { display: none; }
  .btn-call { margin: 12px 0 0; min-height: 50px; }
  .stats { grid-template-columns: 1fr; margin-top: -40px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head > p:last-child { justify-self: start; }
  .board { grid-template-columns: 1fr; }
  .board-switches { display: none; }
  .story, .booking { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work, .work:nth-child(n+3) { grid-column: span 1; }
  .work:first-child { grid-column: 1 / -1; }
  .work img, .work:nth-child(n+3) img { aspect-ratio: 4 / 3; }
  .work:first-child img { aspect-ratio: 2.42 / 1; }
  .o4, .o5, .beam { display: none; }
  .o1 { width: 110vmax; height: 110vmax; left: -50vmax; }
  .o2 { width: 90vmax; height: 90vmax; right: -50vmax; }
  .grid-lines { background-size: 48px 48px; }
}
@media (max-width: 620px) {
  .wrap, .nav { padding-left: 16px; padding-right: 16px; }
  .led-mini { width: 42px; height: 42px; }
  .brand-text { font-size: 1.15rem; }
  .brand-text small { font-size: .7rem; }
  .hero { min-height: 0; align-items: flex-start; }
  .hero-inner { padding-top: 28px; padding-bottom: 90px; }
  .led-logo { --s: 84px; margin: 14px 0 28px 14px; }
  .led-ring { inset: -12px; }
  .led-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
  .kicker { font-size: .72rem; letter-spacing: .1em; }
  .brand-title { margin-top: 16px; letter-spacing: .24em; }
  .headline { font-size: clamp(2.5rem, 12.6vw, 3.6rem); }
  .lead { margin: 18px 0 26px; }
  .hero-actions .btn, .form-actions .btn { width: 100%; }
  .hero-card { padding: 22px; }
  .cables { height: 22%; bottom: 4%; }
  .scroll-cue { display: none; }
  .stat { padding: 18px; gap: 14px; }
  .stat b { font-size: 2.6rem; }
  .panel-body { padding: 24px 20px 26px; }
  .panel-num { font-size: 3.6rem; top: -34px; right: 16px; }
  form { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .work, .work:nth-child(n+3), .work:first-child { grid-column: auto; }
  .work img, .work:nth-child(n+3) img, .work:first-child img { aspect-ratio: 2.42 / 1; object-fit: contain; background: #fff; }
  .work span { position: static; border-radius: 0; background: var(--ink); }
  .footer-inner { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }
  .lightbox-nav.prev { left: 6px; } .lightbox-nav.next { right: 6px; }
  .lightbox-close { top: -14px; right: 6px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  h2::after, .value-strip { transform: scaleX(1); }
  .pulse { display: none; }
}
