:root {
  --bg: #050b1a; --bg2: #0a1630; --surface: #0d1b3a;
  --line: rgba(120, 170, 255, .16); --text: #eaf1ff; --muted: #9fb0cf;
  --blue: #0a8cff; --blue-dark: #0b3d91; --wa: #25d366;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Arial Narrow", "Segoe UI", Impact, sans-serif; text-transform: uppercase; line-height: 1; margin: 0; }
h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; text-align: center; margin-bottom: 2.4rem; }
h3 { font-size: 1.35rem; font-weight: 800; }
.blue { color: var(--blue); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem 1.6rem; border-radius: 999px; font-weight: 800; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; font-size: 1rem; }
.btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.btn-wa { background: var(--wa); color: #04210f; box-shadow: 0 8px 28px rgba(37,211,102,.35); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(37,211,102,.55); }
.btn-call { background: var(--blue); color: #fff; box-shadow: 0 8px 28px rgba(10,140,255,.4); }
.btn-call:hover { transform: translateY(-2px); background: #2b9dff; }
.btn-big { padding: 1.15rem 2.1rem; font-size: 1.2rem; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: .3s; }
.site-header.solid { background: rgba(5,11,26,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 900; font-size: 1.15rem; text-transform: uppercase; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); font: italic 900 1rem Georgia, serif; }
.head-actions { display: flex; gap: .6rem; }
.head-actions .btn { padding: .6rem 1.1rem; }
@media (max-width: 560px) { .brand span.name { display: none; } .head-actions .btn { padding: .55rem .9rem; font-size: .9rem; } }

/* hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 100px 0 60px; overflow: hidden;
  background: radial-gradient(800px 520px at 75% 40%, rgba(10,140,255,.32), transparent 62%), radial-gradient(600px 400px at 0% 100%, rgba(11,61,145,.5), transparent 60%), var(--bg); }
.pcb-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.pcb-bg .trace { fill: none; stroke: rgba(10,140,255,.3); stroke-width: 1.5; }
.pcb-bg .pulse { fill: none; stroke: #5cc0ff; stroke-width: 2; stroke-dasharray: 8 220; stroke-linecap: round; animation: pulse 6s linear infinite; }
.pcb-bg .pulse:nth-of-type(2n) { animation-duration: 8s; animation-delay: -2s; }
@keyframes pulse { to { stroke-dashoffset: -228; } }
.hero .wrap { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 2rem; align-items: center; }
.hero h1 span { display: block; }
.big-num { display: block; margin: 1.4rem 0 1.4rem; font: 900 clamp(1.8rem, 4.6vw, 3rem) "Arial Narrow", sans-serif; letter-spacing: .02em; }
.big-num small { display: block; font: 700 .8rem "Segoe UI", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .actions { justify-content: center; } .hero { padding-top: 90px; } }

/* escena de dispositivos */
.stage { position: relative; aspect-ratio: 1.15; width: 100%; max-width: 620px; margin-inline: auto; }
.stage .dev { position: absolute; filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
.stage .laptop { left: 6%; top: 18%; width: 66%; animation: float 7s ease-in-out infinite; }
.stage .phone { right: 2%; top: 4%; width: 17%; animation: float 6s -2s ease-in-out infinite; }
.stage .washer { right: 8%; bottom: 0; width: 25%; animation: float 8s -4s ease-in-out infinite; }
.stage .tower { left: 0; bottom: 0; width: 20%; animation: float 7.5s -1s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.tag { position: absolute; display: flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; font-weight: 800; font-size: .85rem; background: rgba(8,18,42,.92); border: 1px solid rgba(37,211,102,.5); box-shadow: 0 8px 24px rgba(0,0,0,.4); opacity: 0; animation: pop .6s forwards; }
.tag::before { content: "✓"; color: #04210f; background: var(--wa); width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; }
.tag:nth-of-type(1) { left: 2%; top: 8%; animation-delay: 1.1s; }
.tag:nth-of-type(2) { right: 0; top: 52%; animation-delay: 1.7s; }
.tag:nth-of-type(3) { left: 34%; bottom: 2%; animation-delay: 2.3s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
.scan { animation: scan 3.5s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(0); opacity: 0; } 15%, 85% { opacity: .8; } 100% { transform: translateY(86px); } }
.spin { transform-origin: center; transform-box: fill-box; animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.drum { transform-origin: center; transform-box: fill-box; animation: spin 5s linear infinite; }

/* servicios */
.section { padding: 90px 0; }
.section.alt { background: var(--bg2); }
.tiles { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.6rem 1.2rem 1.4rem; border-radius: 22px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(240px 180px at 50% 30%, rgba(10,140,255,.22), transparent 70%), linear-gradient(180deg, rgba(20,40,85,.6), rgba(8,18,42,.85));
  transition: transform .3s, border-color .3s, box-shadow .3s; }
.tile:hover { transform: translateY(-8px); border-color: rgba(10,140,255,.7); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.tile .art { height: 150px; width: 100%; display: grid; place-items: center; margin-bottom: 1rem; }
.tile .art svg { height: 100%; width: auto; max-width: 100%; filter: drop-shadow(0 14px 16px rgba(0,0,0,.5)); transition: transform .4s; }
.tile:hover .art svg { transform: scale(1.08) rotate(-2deg); }
.faults { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .9rem 0 1.2rem; }
.faults span { font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; background: rgba(239,68,68,.14); color: #ff9a9a; border: 1px solid rgba(239,68,68,.3); }
.tile .go { margin-top: auto; display: inline-flex; gap: .5rem; align-items: center; font-weight: 800; font-size: .92rem; color: #04210f; background: var(--wa); padding: .55rem 1.1rem; border-radius: 999px; }
.tile .go svg { width: 18px; height: 18px; fill: currentColor; }

/* pasos */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.step { text-align: center; padding: 1.8rem 1rem; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.step svg { width: 56px; height: 56px; fill: none; stroke: #6fc3ff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .8rem; }
.step h3 { font-size: 1.15rem; }

/* CTA */
.cta { text-align: center; padding: 90px 0; background: radial-gradient(700px 320px at 50% 0%, rgba(10,140,255,.3), transparent 70%), var(--bg); }
.cta .big-num { margin: 1rem 0 1.8rem; font-size: clamp(2.4rem, 8vw, 5rem); }
.cta .actions { justify-content: center; }
.social { margin-top: 2rem; color: var(--muted); display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; font-weight: 600; }
.social a:hover { color: #fff; }

.site-footer { padding: 1.6rem 0 6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; }
.site-footer a { color: var(--muted); }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: .6rem; background: var(--wa); color: #04210f; padding: .9rem 1.3rem; border-radius: 999px; font-weight: 900; box-shadow: 0 10px 30px rgba(37,211,102,.5); animation: ring 2.6s infinite; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
@keyframes ring { 0% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); } 70%, 100% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 20px rgba(37,211,102,0); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), #6fd0ff); transform-origin: 0 50%; transform: scaleX(0); z-index: 100; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .reveal, .tag { opacity: 1; transform: none; } }
