/* SOFTBUNY — inicio (oscuro, neón de marca) */
:root {
  --bg: #030A06;
  --bg-2: #06140C;
  --text: #ECFFF3;
  --soft: #9DBBA9;
  --dim: #5F7E6B;
  --line: rgba(120, 255, 170, .16);
  --line-2: rgba(120, 255, 170, .28);
  --glass: rgba(10, 38, 22, .42);
  --glass-2: rgba(14, 52, 30, .55);
  --cyan: #39FF7A;
  --blue: #00D4A0;
  --deep-blue: #00A85A;
  --grad: linear-gradient(135deg, #39FF7A 0%, #00D4A0 55%, #00A85A 100%);
  --mx: #E5373A;
  --per: #35E0A1;

  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1220px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--cyan); color: #021208; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Fondos en parallax (dos capas detrás del contenido) ---------- */
.bg-far, .bg-mid { position: fixed; inset: -10vh 0; z-index: 0; pointer-events: none; will-change: transform; }
.bg-far {
  background-image: radial-gradient(rgba(120, 255, 170, .22) 1px, transparent 1.4px);
  background-size: 34px 34px;
  mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.g1 { width: 46vw; height: 46vw; left: -12vw; top: 5vh; background: #0A5A2C; }
.g2 { width: 40vw; height: 40vw; right: -10vw; top: 60vh; background: #06603C; }
.g3 { width: 50vw; height: 50vw; left: 25vw; top: 140vh; background: #0A4A26; }
.orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(57, 255, 122, .28), rgba(0, 212, 160, .05) 55%, transparent 70%); box-shadow: inset 0 0 0 1px rgba(57, 255, 122, .25); }
.o1 { width: 140px; height: 140px; left: 6vw; top: 85vh; }
.o2 { width: 90px; height: 90px; right: 9vw; top: 30vh; }
.o3 { width: 200px; height: 200px; right: 14vw; top: 170vh; opacity: .6; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(57, 255, 122, .18); }
.r1 { width: 520px; height: 520px; left: -200px; top: 120vh; }
.r2 { width: 380px; height: 380px; right: -140px; top: 220vh; }
main, .top, .foot { position: relative; z-index: 1; }

/* ---------- Tipografía ---------- */
h1, h2 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4.9rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
.h2-sm { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font: 600 1.12rem/1.3 var(--f-display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: var(--soft); max-width: 40em; text-wrap: pretty; }
.mini { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.hint { font-size: .9rem; color: var(--soft); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nowrap { white-space: nowrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
  border: 1px solid var(--line-2); background: rgba(57, 255, 122, .06);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--cyan);
}
.pill-mx { color: #FF6A6C; border-color: rgba(229, 55, 58, .45); background: rgba(229, 55, 58, .08); }

/* ---------- Vidrio ---------- */
.glass {
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 50px -30px rgba(0, 0, 0, .8);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px; border: 1px solid transparent;
  font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s ease, border-color .2s ease;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; border-radius: 11px; }
.btn-glow { background: var(--grad); color: #021208; box-shadow: 0 0 0 0 rgba(57, 255, 122, 0); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -6px rgba(57, 255, 122, .55); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(57, 255, 122, .08); }
.btn-mx { background: var(--mx); color: #fff; }
.btn-mx:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -6px rgba(229, 55, 58, .6); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-text { background: none; border: 0; padding: 8px 4px; cursor: pointer; font-weight: 700; color: var(--soft); text-decoration: underline; text-underline-offset: 4px; }
.btn-text:hover { color: var(--text); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 11px; background: transparent; cursor: pointer; }
.icon-btn:hover { border-color: var(--cyan); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#sound-btn path:first-child { fill: currentColor; stroke: none; }
#sound-btn .sound-on { display: none; }
#sound-btn[aria-pressed="true"] .sound-on { display: inline; }
#sound-btn[aria-pressed="true"] .sound-off { display: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---------- Encabezado ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  height: 76px; padding: 0 var(--gutter);
  background: rgba(3, 10, 6, .6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img:first-child { width: 38px; filter: drop-shadow(0 0 8px rgba(57, 255, 122, .4)); }
.brand-word { width: 140px; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); margin: 0 auto; }
.nav a { font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--soft); padding: 8px 0; position: relative; transition: color .2s ease; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; height: 40px; }
.lang button { font-size: .72rem; font-weight: 800; letter-spacing: .08em; padding: 0 11px; border: 0; background: transparent; color: var(--soft); cursor: pointer; }
.lang button[aria-pressed="true"] { background: rgba(57, 255, 122, .14); color: var(--cyan); }
.menu-btn { display: none; }

/* ---------- Secciones ---------- */
main > section { padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 150px); }
.section > * { max-width: var(--max); margin-inline: auto; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head .lead { margin-top: 18px; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(60px, 8vw, 110px); text-align: center; overflow: hidden; }
.circuits { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.circuits .base { fill: none; stroke: rgba(57, 255, 122, .22); stroke-width: 1.4; }
.circuits .pulse { fill: none; stroke: url(#pulseGrad); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 60 900; animation: pulse 5s linear infinite; filter: drop-shadow(0 0 5px #39FF7A); }
.circuits circle { fill: var(--bg); stroke: rgba(57, 255, 122, .6); stroke-width: 1.5; }
@keyframes pulse { from { stroke-dashoffset: 960; } to { stroke-dashoffset: 0; } }
.hero-inner { position: relative; max-width: 980px; margin: 0 auto; display: grid; justify-items: center; gap: 24px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 38, 22, .6); font-size: .86rem; font-weight: 700; }
.badge-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--cyan); box-shadow: 4px 4px 0 var(--blue), 0 0 12px var(--cyan); margin-right: 6px; }
.rotator { display: inline; }
.rotator-word { display: inline; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .3s ease, transform .3s var(--ease), filter .3s ease; }
.rotator-word.out { opacity: 0; filter: blur(6px); }
.rotator-word.pre { opacity: 0; filter: blur(6px); transition: none; }
.hero .lead { margin-inline: auto; }
.hero .cta-row { justify-content: center; }

.horizon { position: relative; height: clamp(250px, 30vw, 360px); margin: clamp(20px, 3vw, 40px) auto 0; max-width: 1100px; }
.arc {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(1100px, 130%); height: 58%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border-top: 2px solid rgba(57, 255, 122, .85);
  background: radial-gradient(60% 90% at 50% 0%, rgba(57, 255, 122, .22), rgba(0, 212, 160, .06) 50%, transparent 75%);
  box-shadow: 0 -18px 60px -10px rgba(57, 255, 122, .45);
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent);
}
.hero-bunny { position: absolute; left: 50%; bottom: calc(58% - 6px); width: clamp(120px, 14vw, 180px); transform: translateX(-50%); filter: drop-shadow(0 0 18px rgba(57, 255, 122, .55)); cursor: pointer; }
.hero-bunny svg, .hero-bunny img { width: 100%; height: auto; display: block; }
.hero-bunny.hopping { animation: bigHop .7s var(--ease); }
@keyframes bigHop { 30% { transform: translateX(-50%) scale(1.06, .9); } 60% { transform: translateX(-50%) translateY(-40px) scale(.96, 1.06); } }
.hero-cards { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 16px; max-width: 1100px; margin: -24px auto 0; text-align: left; }
.hc { padding: 18px 20px; display: grid; gap: 14px; align-content: start; }
.hc-main { transform: translateY(-18px); border-color: var(--line-2); box-shadow: 0 0 0 1px rgba(57, 255, 122, .2), 0 30px 60px -30px rgba(57, 255, 122, .45); }
.hc-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; }
.hc-ico { font-style: normal; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(57, 255, 122, .12); font-size: .85rem; color: var(--cyan); }
.hc-foot { font-size: .78rem; color: var(--soft); }
.chat { display: grid; gap: 8px; }
.chat b { height: 12px; border-radius: 8px; background: rgba(157, 187, 169, .22); width: 80%; }
.chat b.me { justify-self: end; width: 60%; background: var(--grad); opacity: .85; }
.chat b.s { width: 45%; }
.wire { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wire-bar { display: flex; gap: 5px; padding: 8px; border-bottom: 1px solid var(--line); }
.wire-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(157, 187, 169, .35); }
.wire-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; padding: 10px; }
.wire-body span { height: 16px; border-radius: 6px; background: rgba(157, 187, 169, .18); }
.wire-body .w-a { grid-row: span 2; height: 40px; background: rgba(57, 255, 122, .3); }
.wire-body .w-d { grid-column: 1 / -1; }
.days { height: 6px; border-radius: 9px; background: rgba(157, 187, 169, .15); overflow: hidden; }
.days-fill { display: block; height: 100%; width: 0; background: var(--grad); animation: days 3.2s var(--ease) 1.2s forwards; }
@keyframes days { to { width: 100%; } }
.launch { width: 100%; height: 64px; }
.launch path { fill: none; stroke: var(--cyan); stroke-width: 2; vector-effect: non-scaling-stroke; }
.launch .area { fill: rgba(57, 255, 122, .12); stroke: none; }
@media (prefers-reduced-motion: reduce) { .circuits .pulse { animation: none; opacity: 0; } .days-fill { animation: none; width: 100%; } .rotator-word { transition: none; } }

/* ---------- Servicios ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc { padding: 28px 24px 30px; display: grid; gap: 12px; align-content: start; transition: transform .35s var(--ease), border-color .3s ease; }
.svc:hover { transform: translateY(-6px); border-color: rgba(57, 255, 122, .45); }
.svc-ico { width: 52px; height: 52px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(57, 255, 122, .5)); margin-bottom: 8px; }
.svc-ico .fillc { fill: rgba(0, 212, 160, .35); stroke: var(--blue); }
.svc-ico .fillc-s { stroke: var(--blue); stroke-width: 2.4; }
.svc p { color: var(--soft); font-size: .96rem; }

/* ---------- Diagnóstico ---------- */
.diag { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; }
.diag > * { margin: 0; max-width: none; }
.diag-intro h2 { margin-bottom: 18px; }
.diag-panel { padding: clamp(22px, 3vw, 36px); min-height: 440px; display: flex; flex-direction: column; }
.dots { display: flex; gap: 8px; margin-bottom: 14px; }
.dots i { width: 28px; height: 6px; border-radius: 9px; background: rgba(157, 187, 169, .2); transition: background-color .3s ease; }
.dots i.on { background: var(--grad); }
.dq { border: 0; padding: 0; margin: 14px 0 0; display: none; min-width: 0; }
.dq.is-on { display: block; animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
.dq legend, .wiz-step legend { font: 500 clamp(1.25rem, 2.2vw, 1.6rem)/1.2 var(--f-display); margin-bottom: 20px; padding: 0; }
.opts, .choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.opt, .choice {
  text-align: left; padding: 15px 16px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .02); border: 1px solid var(--line); color: var(--text);
  display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .96rem;
  transition: border-color .2s ease, background-color .2s ease, transform .2s var(--ease);
}
.opt:hover, .choice:hover { border-color: var(--cyan); transform: translateY(-2px); background: rgba(57, 255, 122, .06); }
.opt[aria-pressed="true"], .choice[aria-pressed="true"], .choice[aria-checked="true"] { background: rgba(57, 255, 122, .16); border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
.ico { font-size: 1.15rem; }
#diag-back { align-self: flex-start; margin-top: auto; padding-top: 20px; }
.diag-result { display: grid; gap: 14px; animation: stepIn .5s var(--ease); }
.gauge-wrap { position: relative; width: min(260px, 100%); margin: 0 auto 4px; }
.gauge { width: 100%; }
.gauge path { fill: none; stroke-width: 14; stroke-linecap: round; }
.g-bg { stroke: rgba(157, 187, 169, .15); }
.g-fg { stroke: url(#gGrad); stroke: var(--cyan); filter: drop-shadow(0 0 8px rgba(57, 255, 122, .6)); stroke-dasharray: 268; stroke-dashoffset: 268; transition: stroke-dashoffset 1.4s var(--ease); }
.gauge-label { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; display: grid; gap: 2px; }
.gauge-label b { font: 500 1.5rem/1.1 var(--f-display); }
.diag-levtext { color: var(--soft); text-align: center; max-width: 34em; margin: 0 auto 6px; }
.recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recs li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(57, 255, 122, .06); border: 1px solid var(--line); animation: stepIn .5s var(--ease) both; }
.recs li:nth-child(2) { animation-delay: .1s; } .recs li:nth-child(3) { animation-delay: .2s; }
.recs li::before { content: ""; width: 9px; height: 9px; margin-top: 8px; flex: none; border-radius: 2px; background: var(--cyan); box-shadow: 3px 3px 0 var(--blue); }
.diag-form { display: grid; gap: 12px; margin-top: 10px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.diag-get { font: 500 1.15rem/1.2 var(--f-display); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
#diag-restart { justify-self: start; }

/* ---------- Campos ---------- */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 700; }

.field .optl { color: var(--dim); font-weight: 500; }
.field input, .field textarea {
  width: 100%; font: 500 1rem/1.4 var(--f-body); color: var(--text);
  background: rgba(3, 10, 6, .55); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(57, 255, 122, .25); }
.field [aria-invalid="true"] { border-color: #FF6B6B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--cyan); }
.form-status.err { color: #FF8A8A; }
.form-status a { color: inherit; font-weight: 800; }

/* ---------- MEXALI ---------- */
.mx-split { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; margin-bottom: 36px; }
.mx-side { padding: clamp(24px, 3vw, 36px); display: grid; gap: 10px; align-content: start; text-decoration: none; position: relative; overflow: hidden; }
.mx-front { border-color: rgba(229, 55, 58, .4); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mx-front:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(229, 55, 58, .6); }
.mx-front::before { content: ""; position: absolute; inset: -40% 40% auto -30%; height: 90%; background: radial-gradient(closest-side, rgba(229, 55, 58, .25), transparent); pointer-events: none; }
.mx-back::before { content: ""; position: absolute; inset: -40% -30% auto 40%; height: 90%; background: radial-gradient(closest-side, rgba(57, 255, 122, .2), transparent); pointer-events: none; }
.mx-brand { font: 600 .8rem/1 var(--f-display); letter-spacing: .14em; }
.mx-front .mx-brand { color: #FF6A6C; }
.mx-back .mx-brand { color: var(--cyan); }
.mx-role { font: 500 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--f-display); }
.mx-desc { color: var(--soft); max-width: 26em; }
.mx-browser { margin-top: 14px; border: 1px solid rgba(229, 55, 58, .35); border-radius: 12px; padding: 10px; display: grid; grid-template-columns: repeat(3, 8px) 1fr; gap: 6px 5px; align-items: center; }
.mx-browser i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.mx-browser b { grid-column: 1 / -1; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.mx-browser b.s { width: 60%; }
.mx-browser em { grid-column: 1 / -1; height: 26px; width: 40%; border-radius: 8px; background: var(--mx); }
.mx-code { margin-top: 14px; display: block; font: 500 .86rem/1.8 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--soft); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: rgba(3, 10, 6, .5); }
.mx-code span { color: var(--cyan); }
.mx-link { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: clamp(36px, 6vw, 90px); }
.mx-link span { height: 2px; background: linear-gradient(90deg, var(--mx), var(--cyan)); }
.mx-link i { width: 14px; height: 14px; border-radius: 4px; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 2px var(--cyan); opacity: .6; } }

/* ---------- Proceso ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: linear-gradient(90deg, transparent, var(--line-2) 10%, var(--line-2) 90%, transparent); }
.timeline li { position: relative; padding-top: 44px; display: grid; gap: 8px; align-content: start; }
.timeline li::before { content: ""; position: absolute; top: 8px; left: 0; width: 16px; height: 16px; border-radius: 5px; background: var(--bg); border: 2px solid var(--line-2); }
.timeline .t-hot::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.t-key { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.timeline p { color: var(--soft); font-size: .96rem; }
.t-hot h3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Productos (peso menor) ---------- */
.products { padding-block: clamp(60px, 8vw, 100px); }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prod { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; padding: 22px 24px; text-decoration: none; transition: transform .3s var(--ease), border-color .3s ease; }
.prod:hover { transform: translateY(-3px); }
.prod-per:hover { border-color: rgba(53, 224, 161, .5); }
.prod > img { grid-row: span 2; width: 40px; filter: invert(1) drop-shadow(0 0 6px rgba(53, 224, 161, .5)); }
.prod-ico { grid-row: span 2; font-size: 1.8rem; }
.prod-body { display: grid; gap: 4px; }
.prod-body b { font: 600 1rem/1.2 var(--f-display); letter-spacing: .04em; }
.prod-per .prod-body b { color: var(--per); letter-spacing: .14em; }
.prod-body span { color: var(--soft); font-size: .94rem; }
.prod-go { grid-column: 2; font-weight: 700; font-size: .92rem; color: var(--cyan); text-decoration: none; }
.prod-per .prod-go { color: var(--per); }

/* ---------- Dudas ---------- */
.ask-box { padding: clamp(28px, 5vw, 64px); text-align: center; display: grid; justify-items: center; gap: 18px; position: relative; overflow: hidden; }
.ask-box::before { content: ""; position: absolute; inset: auto -10% -70% -10%; height: 100%; background: radial-gradient(closest-side, rgba(57, 255, 122, .22), transparent); pointer-events: none; }
.ask-box > * { position: relative; }
.ask-box .pill { margin-bottom: 0; }
.ask-box h2 { font-size: clamp(1.9rem, 4.6vw, 3.6rem); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(3, 10, 6, .4); text-decoration: none; font-weight: 600; font-size: .94rem;
  transition: border-color .2s ease, transform .2s var(--ease), background-color .2s ease;
}
.chip::before { content: "?"; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: rgba(57, 255, 122, .18); color: var(--cyan); }
.chip:hover { border-color: #25D366; transform: translateY(-2px); background: rgba(37, 211, 102, .08); }

/* ---------- Cotizador ---------- */
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.wizard { padding: clamp(22px, 3vw, 36px); min-height: 470px; display: flex; flex-direction: column; }
.wiz-progress { position: relative; height: 34px; margin-bottom: 6px; }
.wiz-bar { position: absolute; left: 0; right: 0; bottom: 4px; height: 6px; border-radius: 9px; background: rgba(157, 187, 169, .15); overflow: hidden; }
.wiz-bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .5s var(--ease); }
.wiz-bunny { position: absolute; bottom: 8px; left: 0; width: 32px; transform: translateX(-50%); transition: left .5s var(--ease); filter: drop-shadow(0 0 6px rgba(57, 255, 122, .6)); }
.wiz-bunny.hop { animation: wizHop .5s var(--ease); }
@keyframes wizHop { 50% { transform: translate(-50%, -16px); } }
#wiz-count { margin-bottom: 18px; }
.wiz-step { border: 0; margin: 0; padding: 0; display: none; min-width: 0; }
.wiz-step.is-on { display: block; animation: stepIn .45s var(--ease); }
.wiz-step .hint { margin: -8px 0 16px; }
.wiz-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 28px; }
#wiz-back { margin-right: auto; }
#wiz-back[hidden] + * { margin-left: auto; }
.wiz-done { text-align: center; display: grid; justify-items: center; gap: 12px; margin: auto; padding: 30px 0; animation: stepIn .5s var(--ease); }
.wiz-done img { filter: drop-shadow(0 0 14px rgba(57, 255, 122, .6)); animation: wizHop .6s var(--ease) 2; }
.wiz-done h3 { font-size: 1.6rem; }
.wiz-done p { color: var(--soft); }
.ticket { padding: 24px; position: sticky; top: 100px; }
.ticket > .mini { padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); margin-bottom: 14px; }
.ticket dl { margin: 0; display: grid; gap: 12px; }
.ticket dt { font-size: .78rem; color: var(--dim); font-weight: 700; }
.ticket dd { margin: 2px 0 0; font-weight: 600; }
.tchip { display: inline-block; margin: 3px 4px 0 0; padding: 3px 10px; border-radius: 99px; background: rgba(57, 255, 122, .12); color: var(--cyan); font-size: .8rem; font-weight: 700; }
.ticket-foot { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.ticket-time { font: 500 1.6rem/1.2 var(--f-display); margin-top: 4px; }

/* ---------- Contacto + footer ---------- */
.contact { padding-top: 0; }
.contact h2 { margin-bottom: 22px; }
.direct { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.direct a { display: grid; gap: 6px; padding: 20px 22px; text-decoration: none; transition: border-color .2s ease, transform .25s var(--ease); }
.direct a:hover { border-color: var(--cyan); transform: translateY(-3px); }
.direct b { font: 500 clamp(1.05rem, 1.8vw, 1.3rem)/1.2 var(--f-display); }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 30px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--soft); font-size: .9rem; background: rgba(3, 10, 6, .7); }
.foot-brand img { width: 130px; margin-bottom: 8px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: flex-end; gap: 12px; }
.wa-btn { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 0 0 4px rgba(37, 211, 102, .18), 0 10px 26px -8px rgba(0, 0, 0, .6); transition: transform .25s var(--ease); }
.wa-btn:hover { transform: scale(1.08) rotate(-6deg); }
.wa-bubble { max-width: 230px; padding: 12px 34px 12px 14px; border-radius: 16px 16px 4px 16px; font-size: .9rem; font-weight: 600; position: relative; background: #0B2416; border: 1px solid var(--line-2); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8); animation: stepIn .5s var(--ease); }
.wa-close { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; padding: 4px; line-height: 1; color: var(--soft); }

/* ---------- Minijuego ---------- */
.game { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0; background: #06180E; color: var(--text); width: min(760px, calc(100vw - 24px)); }
.game::backdrop { background: rgba(1, 6, 3, .75); backdrop-filter: blur(4px); }
.game-head { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.game-head h2 { font-size: 1.2rem; white-space: nowrap; }
.game-score { margin-left: auto; font-size: .9rem; }
.game canvas { display: block; width: 100%; height: auto; touch-action: manipulation; cursor: pointer; }
.game-help { padding: 12px 18px; font-size: .86rem; color: var(--soft); }

/* ---------- Puntero de píxel ---------- */
.cursor, .trail { display: none; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor .opt, .has-cursor .choice { cursor: none; }
  .has-cursor input, .has-cursor textarea { cursor: text; }
  .has-cursor .trail { display: block; position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 89; }
  .has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 90; }
  .px1, .px2 { position: absolute; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s ease; }
  .px1 { width: 9px; height: 9px; left: -4px; top: -4px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
  .px2 { width: 6px; height: 6px; left: 5px; top: 5px; background: var(--blue); }
  .cb { position: absolute; width: 10px; height: 10px; border: 2px solid var(--cyan); opacity: 0; transition: transform .3s var(--ease), opacity .2s ease; filter: drop-shadow(0 0 4px var(--cyan)); }
  .cb.tl { left: -6px; top: -6px; border-right: 0; border-bottom: 0; }
  .cb.tr { left: -4px; top: -6px; border-left: 0; border-bottom: 0; }
  .cb.bl { left: -6px; top: -4px; border-right: 0; border-top: 0; }
  .cb.br { left: -4px; top: -4px; border-left: 0; border-top: 0; }
  .cursor.hot .px1 { transform: scale(.6); }
  .cursor.hot .px2 { opacity: 0; }
  .cursor.hot .cb { opacity: 1; }
  .cursor.hot .tl { transform: translate(-12px, -12px); }
  .cursor.hot .tr { transform: translate(12px, -12px); }
  .cursor.hot .bl { transform: translate(-12px, 12px); }
  .cursor.hot .br { transform: translate(12px, 12px); }
  .cursor.down .px1 { transform: scale(1.6); }
  .cursor.hidden { opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 16px; }
}
@media (max-width: 980px) {
  .diag, .quote-grid { grid-template-columns: 1fr; }
  .ticket { position: static; }
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .hc-main { grid-column: 1 / -1; order: -1; transform: none; }
  .mx-split { grid-template-columns: 1fr; }
  .mx-link { width: 2px; height: 40px; margin: 0 auto; grid-template-columns: 1fr; grid-template-rows: 1fr auto 1fr; }
  .mx-link span { width: 2px; height: auto; background: linear-gradient(var(--mx), var(--cyan)); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .timeline::before { display: none; }
  .direct { grid-template-columns: 1fr; }
  .menu-btn { display: grid; place-content: center; gap: 6px; width: 42px; height: 40px; border: 1px solid var(--line-2); border-radius: 11px; background: transparent; cursor: pointer; }
  .menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .2s ease; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .top-actions { margin-left: auto; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: #030A06; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; box-shadow: 0 30px 40px -10px rgba(0, 0, 0, .7); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { height: 66px; gap: 10px; }
  html { scroll-padding-top: 72px; }
  .brand-word { display: none; }
  .nav-cta { display: none; }
  .svc-grid, .prod-grid, .fields, .hero-cards, .timeline { grid-template-columns: 1fr; }
  .hero-cards .hc:not(.hc-main) { display: none; }
  .btn { width: 100%; }
  .cta-row, .row { flex-direction: column; }
  .opts, .choices { grid-template-columns: 1fr 1fr; }
  .opt, .choice { padding: 13px; font-size: .9rem; }
  .wiz-nav .btn { width: auto; flex: 1; }
  .wa-float { right: 14px; bottom: 14px; }
  .wa-btn { width: 52px; height: 52px; }
}

/* ---------- Celular: más compacto y más ligero ---------- */
.nav-quote { display: none; }
@media (max-width: 980px) {
  .nav .nav-quote { display: block; margin-top: 14px; padding: 14px; border: 0; border-radius: 12px; text-align: center; background: var(--grad); color: #021208; font-weight: 800; }
}
@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .products { padding-block: 40px; }
  .section-head { margin-bottom: 28px; }
  .hero { padding-top: 36px; padding-bottom: 48px; }
  .hero-inner { gap: 18px; }
  .badge { font-size: .78rem; }
  .horizon { height: 220px; margin-top: 8px; }
  .hero-cards { margin-top: -10px; }
  .glass { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .circuits .pulse { filter: none; }
  .glow { filter: blur(60px); }

  .svc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .svc { padding: 18px 16px 20px; gap: 8px; }
  .svc-ico { width: 38px; height: 38px; margin-bottom: 2px; }
  .svc h3 { font-size: .92rem; }
  .svc p { font-size: .84rem; line-height: 1.5; }

  .diag-panel, .wizard { min-height: 0; padding: 20px 16px; }
  .dq legend, .wiz-step legend { font-size: 1.15rem; margin-bottom: 16px; }
  .mx-side { padding: 22px 20px; }
  .mx-code { font-size: .78rem; }

  .timeline { grid-template-columns: 1fr; row-gap: 22px; padding-left: 4px; }
  .timeline::before { display: block; left: 11px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: var(--line-2); }
  .timeline li { padding: 0 0 0 38px; }
  .timeline li::before { top: 2px; left: 4px; }

  .prod { padding: 18px; gap: 4px 14px; }
  .prod-go { padding: 8px 0; }
  .ask-box { padding: 28px 18px; }
  .chip { font-size: .88rem; padding: 10px 14px; }

  .ticket { padding: 16px 18px; }
  .ticket dl, .ticket > .mini { display: none; }
  .ticket-foot { margin: 0; padding: 0; border: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .ticket-time { font-size: 1.1rem; margin: 0; }

  .direct a { padding: 16px 18px; }
  .foot { padding-bottom: 90px; }
  .foot-links a { display: inline-block; padding: 8px 0; }
}
