/* ============================================================
   NexoLink — estilos
   ============================================================ */
:root {
  --bg: #050b16;
  --bg-2: #08121f;
  --panel: #0d1a2b;
  --panel-2: #12223a;
  --line: rgba(148, 180, 220, .14);
  --text: #e8f0fb;
  --text-2: #a7b6cb;
  --muted: #6f819a;
  --blue: #1f6bff;
  --cyan: #12b5e8;
  --green: #22d68a;
  --grad: linear-gradient(120deg, #1f6bff 0%, #12b5e8 50%, #22d68a 100%);
  --radius: 20px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --font-h: "Sora", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font-b); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--text-2); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px; font-weight: 600; font-size: .98rem;
  transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .62em 1.15em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-grad { background: var(--grad); color: #04101c; box-shadow: 0 10px 30px -10px rgba(18, 181, 232, .7); }
.btn-grad:hover { box-shadow: 0 16px 40px -10px rgba(34, 214, 138, .7); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5, 11, 22, .78); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6em; font: 700 1.25rem var(--font-h); }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; clip-path: inset(3% round 22%); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: .93rem; color: var(--text-2); }
.nav-links a:not(.btn):hover { color: var(--text); }
.burger { display: none; width: 42px; height: 42px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: .3s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 25px; }
.burger.open span:first-child { top: 20px; transform: rotate(45deg); }
.burger.open span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 120px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 40% at 75% 35%, rgba(31, 107, 255, .28), transparent 70%),
    radial-gradient(35% 35% at 90% 60%, rgba(34, 214, 138, .18), transparent 70%),
    radial-gradient(30% 30% at 10% 20%, rgba(18, 181, 232, .12), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .55em; padding: .45em 1em; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--text-2); background: rgba(255, 255, 255, .03); margin-bottom: 1.3rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 214, 138, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34, 214, 138, 0); } }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8rem 0 1.4rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.3rem; color: var(--text-2); font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: .4em; }
.hero-points .ic { color: var(--green); }
#heroBrand { display: inline-block; transition: opacity .3s, transform .3s; }

/* Stage */
.stage {
  position: relative; aspect-ratio: 16 / 11; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, #0b1a30 0%, #0a1526 55%, #070d18 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stage-sky { position: absolute; inset: 0; }
.city { position: absolute; left: -5%; right: -5%; bottom: 33%; transition: transform .25s ease-out; }
.city-back { height: 38%; opacity: .35; background:
  linear-gradient(#18304f, #18304f) 3% 100%/6% 60% no-repeat, linear-gradient(#18304f, #18304f) 11% 100%/5% 85% no-repeat,
  linear-gradient(#18304f, #18304f) 18% 100%/8% 45% no-repeat, linear-gradient(#18304f, #18304f) 29% 100%/4% 95% no-repeat,
  linear-gradient(#18304f, #18304f) 36% 100%/7% 70% no-repeat, linear-gradient(#18304f, #18304f) 46% 100%/5% 55% no-repeat,
  linear-gradient(#18304f, #18304f) 54% 100%/6% 90% no-repeat, linear-gradient(#18304f, #18304f) 63% 100%/9% 50% no-repeat,
  linear-gradient(#18304f, #18304f) 75% 100%/5% 80% no-repeat, linear-gradient(#18304f, #18304f) 83% 100%/7% 60% no-repeat,
  linear-gradient(#18304f, #18304f) 93% 100%/6% 100% no-repeat; }
.city-front { height: 26%; opacity: .7; background:
  linear-gradient(#0f2238, #0f2238) 0% 100%/9% 70% no-repeat, linear-gradient(#0f2238, #0f2238) 14% 100%/6% 100% no-repeat,
  linear-gradient(#0f2238, #0f2238) 24% 100%/10% 55% no-repeat, linear-gradient(#0f2238, #0f2238) 40% 100%/6% 85% no-repeat,
  linear-gradient(#0f2238, #0f2238) 52% 100%/9% 60% no-repeat, linear-gradient(#0f2238, #0f2238) 67% 100%/5% 95% no-repeat,
  linear-gradient(#0f2238, #0f2238) 78% 100%/10% 65% no-repeat, linear-gradient(#0f2238, #0f2238) 95% 100%/8% 80% no-repeat; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, #111b29, #0a111b); border-top: 2px solid #1d2c40; }
.road-lines { position: absolute; left: 0; right: 0; top: 55%; height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 46px, transparent 46px 110px); }
.stage.driving .road-lines { animation: road .45s linear infinite; }
@keyframes road { to { background-position: 110px 0; } }
.car-holder { position: absolute; left: 8%; right: 8%; bottom: 9%; transition: transform .6s cubic-bezier(.2, .9, .2, 1); }
.car-holder.enter { animation: carIn 1.1s cubic-bezier(.15, .85, .25, 1) both; }
@keyframes carIn { from { transform: translateX(-120%); } }
.car-holder.leave { transform: translateX(130%); transition: transform .45s ease-in; }
.stage.driving .car-holder { animation: bob .5s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-2px); } }
.car-svg { width: 100%; height: auto; overflow: visible; }
.car-svg .spin { transform-box: fill-box; transform-origin: center; }
.stage.driving .car-svg .spin, .car-holder.enter .car-svg .spin { animation: spin .5s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.car-svg .headlight { fill: #8aa0b6; transition: fill .3s, filter .3s; }
.car-svg .taillight { fill: #5a1a22; transition: fill .3s, filter .3s; }
.car-svg .beam { opacity: 0; transition: opacity .4s; }
.lights-on .car-svg .headlight { fill: #eaf7ff; filter: drop-shadow(0 0 6px #9fdcff) drop-shadow(0 0 14px #5fb8ff); }
.lights-on .car-svg .taillight { fill: #ff3b4e; filter: drop-shadow(0 0 6px #ff3b4e); }
.lights-on .car-svg .beam { opacity: .55; }
.stage-hud { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: flex-start; }
.hud-name { font: 700 1.35rem var(--font-h); }
.hud-type { color: var(--text-2); font-size: .88rem; }
.hud-actions { display: flex; gap: 8px; }
.hud-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); transition: .2s; }
.hud-btn[aria-pressed="true"] { background: var(--grad); color: #04101c; border-color: transparent; }
.swatches { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; padding: 7px 10px; border-radius: 999px; background: rgba(5, 11, 22, .6); backdrop-filter: blur(8px); border: 1px solid var(--line); }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); transition: transform .2s; }
.swatch:hover { transform: scale(1.15); }
.swatch.on { outline: 2px solid var(--cyan); outline-offset: 2px; }

.model-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 28px 2px 6px; scrollbar-width: none; }
.model-tabs::-webkit-scrollbar { display: none; }
.model-tab { flex: none; padding: .6em 1.1em; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: .9rem; font-weight: 500; transition: .2s; background: rgba(255, 255, 255, .02); }
.model-tab:hover { color: var(--text); border-color: rgba(148, 180, 220, .35); }
.model-tab.on { background: var(--grad); color: #04101c; border-color: transparent; font-weight: 600; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--bg-2); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: 600 1.05rem var(--font-h); color: var(--muted); white-space: nowrap; }
.marquee span::before { content: "◆"; margin-right: 56px; color: var(--cyan); font-size: .6em; vertical-align: middle; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head p { color: var(--text-2); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Simulador ---------- */
.sim { max-width: 980px; margin: 0 auto; }
.sim-controls { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.seg button { display: flex; align-items: center; gap: .45em; padding: .55em 1.1em; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--text-2); transition: .25s; }
.seg button.on { background: var(--grad); color: #04101c; font-weight: 600; }
.dash {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 22px;
  padding: 46px 30px 56px; border-radius: 34px;
  background: radial-gradient(120% 90% at 50% 0%, #1a2638, #0b111b 70%);
  border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
  min-height: 480px;
}
.dash-vent { width: 60px; height: 120px; border-radius: 16px; flex: none; background: repeating-linear-gradient(180deg, #1c2533 0 6px, #0a0f17 6px 12px); opacity: .8; }
.screen-wrap { width: min(720px, 100%); aspect-ratio: 16 / 9; transition: width .7s cubic-bezier(.6, 0, .2, 1), aspect-ratio .7s cubic-bezier(.6, 0, .2, 1); }
.screen-wrap.portrait { width: min(300px, 100%); aspect-ratio: 9 / 16; }
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 18px; overflow: hidden;
  background: #000; border: 8px solid #05070b; box-shadow: 0 0 0 1px #2a3341, 0 20px 50px rgba(0, 0, 0, .6);
  --acc: #0a84ff; font-size: clamp(11px, 1.4vw, 14px);
}
.screen.os-android { --acc: #22d68a; }
.view { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; transform: scale(.98); }
.view.on { opacity: 1; pointer-events: auto; transform: none; }
.view-splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(circle at 50% 40%, #0f2547, #03060c 70%); z-index: 3; }
.splash-logo { width: 22%; max-width: 110px; border-radius: 22%; clip-path: inset(3% round 22%); box-shadow: 0 0 40px rgba(18, 181, 232, .35); }
.view-splash.connecting .splash-logo { animation: breathe 1s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.08); box-shadow: 0 0 70px rgba(34, 214, 138, .6); } }
.splash-title { font: 700 1.6em var(--font-h); }
.splash-status { color: var(--text-2); font-size: .9em; min-height: 1.4em; }

.shell { position: absolute; inset: 0; display: flex; background: #000; opacity: 0; transition: opacity .4s; }
.shell.on { opacity: 1; }
.dock { flex: none; width: 13%; min-width: 58px; display: flex; flex-direction: column; align-items: center; gap: 8%; padding: 4% 0; background: #0c0f14; border-right: 1px solid #1b2028; }
.dock-time { font-weight: 600; font-size: .95em; }
.dock-app { width: 64%; aspect-ratio: 1; border-radius: 24%; display: grid; place-items: center; background: var(--c); color: #fff; transition: transform .2s; }
.dock-app .ic { width: 52%; height: auto; aspect-ratio: 1; }
.app-grid .ic, .gen-ic .ic { height: auto !important; aspect-ratio: 1; }
.dock-app { flex: none; }
.dock-app:hover { transform: scale(1.08); }
.dock-sig { margin-top: auto; display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.dock-sig i { width: 3px; background: #fff; border-radius: 1px; }
.dock-sig i:nth-child(1) { height: 25%; } .dock-sig i:nth-child(2) { height: 50%; } .dock-sig i:nth-child(3) { height: 75%; } .dock-sig i:nth-child(4) { height: 100%; }
/* Android: dock abajo */
.os-android .shell { flex-direction: column-reverse; }
.os-android .dock { width: 100%; height: 15%; min-height: 44px; flex-direction: row; justify-content: center; gap: 4%; padding: 0 4%; border-right: 0; border-top: 1px solid #1b2028; background: #101418; }
.os-android .dock-app { width: auto; height: 66%; border-radius: 50%; }
.os-android .dock-time { order: -1; margin-right: auto; }
.os-android .dock-sig { margin: 0 0 0 auto; }
.views { position: relative; flex: 1; overflow: hidden; }

.view-home { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #1b2433, #05070b); }
.os-android .view-home { background: radial-gradient(circle at 70% 20%, #11291f, #05070b); }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6% 7%; width: 84%; }
.app-grid button { display: flex; flex-direction: column; align-items: center; gap: .4em; font-size: .85em; color: #d9e2ee; }
.app-grid span { width: 72%; aspect-ratio: 1; border-radius: 24%; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 8px 20px -6px var(--c); transition: transform .2s; }
.os-android .app-grid span { border-radius: 50%; }
.app-grid button:hover span { transform: translateY(-4px) scale(1.05); }
.app-grid .ic { width: 48%; height: 48%; }
.portrait .app-grid { grid-template-columns: repeat(2, 1fr); gap: 4% 10%; width: 70%; }

.view-maps { background: #0d1520; }
.map { width: 100%; height: 100%; }
.map-bg { fill: #0f1925; }
.map-blocks rect { fill: #17222f; }
.map-park { fill: #12301f; }
.route-bg { fill: none; stroke: #0b1119; stroke-width: 16; stroke-linejoin: round; stroke-linecap: round; }
.route { fill: none; stroke: var(--acc); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; }
.view-maps.on .route { animation: draw 1.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dest { fill: #f43f5e; stroke: #fff; stroke-width: 3; }
.me { fill: #fff; stroke: var(--acc); stroke-width: 4; }
.nav-card { position: absolute; top: 5%; left: 4%; display: flex; align-items: center; gap: .8em; padding: .7em 1em; border-radius: 14px; background: rgba(15, 20, 28, .92); border: 1px solid #253042; }
.nav-card b, .eta-card b { display: block; font: 700 1.3em var(--font-h); }
.nav-card span, .eta-card span { color: #9fb0c6; font-size: .85em; }
.nav-turn { width: 2.6em; height: 2.6em; border-radius: 10px; display: grid; place-items: center; background: var(--acc); color: #fff; }
.eta-card { position: absolute; bottom: 5%; right: 4%; padding: .6em 1em; border-radius: 14px; background: rgba(15, 20, 28, .92); border: 1px solid #253042; text-align: right; }
.eta-card b { color: var(--green); }

.view-music { display: flex; align-items: center; gap: 6%; padding: 6% 7%; background: linear-gradient(135deg, #2a0f1e, #0a0b12 60%); }
.album { flex: none; width: 34%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px -10px rgba(244, 63, 94, .45); }
.album-art { width: 100%; height: 100%; background: conic-gradient(from 210deg, #1f6bff, #12b5e8, #22d68a, #f59e0b, #f43f5e, #1f6bff); filter: saturate(1.1); transition: filter .5s; }
.album.playing .album-art { animation: hue 8s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
.track { flex: 1; min-width: 0; }
.track-title { font: 700 1.5em var(--font-h); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { color: #a7b6cb; margin-bottom: 1em; }
.bar { height: 5px; border-radius: 3px; background: #2a2f3a; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--acc); border-radius: 3px; }
.player { display: flex; align-items: center; gap: 1.4em; margin-top: 1.2em; }
.player button { width: 2.6em; height: 2.6em; display: grid; place-items: center; border-radius: 50%; }
.player button:hover { background: rgba(255, 255, 255, .08); }
.player .play { width: 3.4em; height: 3.4em; background: #fff; color: #000; }
.player .play:hover { background: #fff; transform: scale(1.06); }
.eq { position: absolute; bottom: 6%; right: 5%; display: flex; gap: 4px; align-items: flex-end; height: 26px; }
.eq i { width: 4px; height: 30%; background: var(--acc); border-radius: 2px; }
.view-music.playing .eq i { animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s !important; } .eq i:nth-child(3) { animation-delay: -.6s !important; }
.eq i:nth-child(4) { animation-delay: -.15s !important; } .eq i:nth-child(5) { animation-delay: -.45s !important; }
.eq i:nth-child(6) { animation-delay: -.75s !important; } .eq i:nth-child(7) { animation-delay: -.2s !important; }
@keyframes eq { from { height: 15%; } to { height: 100%; } }
.portrait .view-music { flex-direction: column; justify-content: center; text-align: center; }
.portrait .album { width: 60%; }
.portrait .player { justify-content: center; }

.view-phone { background: #07090d; padding: 5%; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 4%; height: 100%; align-content: center; }
.contact { display: flex; align-items: center; gap: .8em; padding: .9em 1em; border-radius: 14px; background: #11161e; font-weight: 500; text-align: left; transition: background .2s; }
.contact:hover { background: #18202b; }
.av { width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--c); color: #fff; flex: none; }
.portrait .contacts { grid-template-columns: 1fr; }
.calling { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em; background: radial-gradient(circle at 50% 40%, #0f3a2a, #04070a 70%); opacity: 0; pointer-events: none; transition: .35s; }
.calling.on { opacity: 1; pointer-events: auto; }
.call-av { width: 4.4em; height: 4.4em; border-radius: 50%; display: grid; place-items: center; font: 700 1.8em var(--font-h); background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: ring 1.4s infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 26px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.call-name { font: 700 1.5em var(--font-h); }
.call-time { color: #9fb0c6; }
.hang { margin-top: 1em; width: 3.4em; height: 3.4em; border-radius: 50%; display: grid; place-items: center; background: #ef4444; color: #fff; }
.hang .ic { transform: rotate(135deg); }

.view-msg { display: flex; flex-direction: column; justify-content: flex-end; gap: 4%; padding: 5%; background: #07090d; align-items: flex-start; }
.bubbles { display: flex; flex-direction: column; gap: .6em; width: 100%; }
.bubble { max-width: 75%; padding: .7em 1em; border-radius: 16px 16px 16px 4px; background: #1a212c; animation: pop .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.bubble small { display: block; color: var(--acc); font-weight: 600; font-size: .8em; }
.bubble.me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--acc); color: #fff; }
.bubble.me small { color: rgba(255, 255, 255, .8); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.95); } }

.view-generic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em; text-align: center; padding: 8%; background: radial-gradient(circle at 50% 30%, #121a26, #05070b); }
.view-generic b { font: 700 1.35em var(--font-h); }
.view-generic span { color: #9fb0c6; }
.gen-ic { width: 4.4em; height: 4.4em; border-radius: 24%; display: grid; place-items: center; background: var(--c); color: #fff; margin-bottom: .6em; }
.gen-ic .ic { width: 50%; height: 50%; }
.voice-orb { position: relative; width: 6em; height: 6em; margin-bottom: 1em; }
.voice-orb i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--acc), #a855f7, #f43f5e, var(--acc)); filter: blur(6px); animation: orb 3s linear infinite; opacity: .8; }
.voice-orb i:nth-child(2) { inset: 12%; animation-duration: 2s; animation-direction: reverse; }
.voice-orb i:nth-child(3) { inset: 26%; background: #fff; filter: blur(10px); animation: breathe2 1.2s ease-in-out infinite alternate; }
@keyframes orb { to { transform: rotate(360deg); } }
@keyframes breathe2 { to { transform: scale(1.25); } }
.sim-note { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 18px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  position: relative; padding: 30px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), rgba(13, 26, 43, .4));
  border: 1px solid var(--line); transition: transform .25s, border-color .25s; transform-style: preserve-3d; overflow: hidden;
}
.feat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(18, 181, 232, .14), transparent 45%); opacity: 0; transition: opacity .3s; }
.feat:hover { border-color: rgba(18, 181, 232, .4); }
.feat:hover::before { opacity: 1; }
.feat-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--grad); color: #04101c; }
.feat-ic .ic { width: 26px; height: 26px; }
.feat p { color: var(--text-2); margin: 0; font-size: .95rem; }

/* ---------- Showroom ---------- */
.showroom-wrap { position: relative; }
.showroom { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(16px, calc((100vw - 1200px) / 2)) 30px; scrollbar-width: none; }
.showroom::-webkit-scrollbar { display: none; }
.sr-card {
  flex: none; width: min(380px, 82vw); scroll-snap-align: center; border-radius: 24px; padding: 24px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); transition: transform .35s, border-color .35s, box-shadow .35s;
}
.sr-card::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 36%; height: 40%; background: radial-gradient(50% 50% at 50% 100%, var(--glow, rgba(31, 107, 255, .35)), transparent 70%); pointer-events: none; transition: opacity .35s; opacity: .5; }
.sr-card:hover { transform: translateY(-6px); border-color: rgba(18, 181, 232, .45); box-shadow: 0 30px 60px -30px rgba(18, 181, 232, .5); }
.sr-card:hover::after { opacity: 1; }
.sr-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sr-top h3 { margin: 0; }
.badge { font-size: .72rem; font-weight: 600; padding: .3em .7em; border-radius: 999px; background: rgba(34, 214, 138, .14); color: var(--green); white-space: nowrap; }
.sr-type { color: var(--text-2); font-size: .88rem; }
.sr-car { position: relative; z-index: 1; margin: 18px -6px 10px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.sr-card:hover .sr-car { transform: translateX(-10px) scale(1.04); }
.sr-card:hover .spin { animation: spin .7s linear infinite reverse; }
.sr-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.mini-sw { display: flex; gap: 6px; }
.mini-sw button { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.mini-sw button.on { outline: 2px solid var(--cyan); outline-offset: 1px; }
.sr-arrow { position: absolute; top: 45%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(13, 26, 43, .9); border: 1px solid var(--line); backdrop-filter: blur(6px); transition: .2s; }
.sr-arrow:hover { background: var(--grad); color: #04101c; }
.sr-arrow.prev { left: max(10px, calc((100vw - 1260px) / 2)); }
.sr-arrow.next { right: max(10px, calc((100vw - 1260px) / 2)); }

/* ---------- Compatibilidad ---------- */
.compat-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.legend { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; color: var(--text-2); font-size: .93rem; }
.legend li { display: flex; align-items: center; gap: .6em; }
.st { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.st-ok { background: var(--green); box-shadow: 0 0 10px var(--green); }
.st-check { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
.compat-card { padding: 28px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fields { display: grid; grid-template-columns: 1.1fr 1.4fr .8fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: .82rem; font-weight: 500; color: var(--text-2); }
select, input, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text); padding: .8em 1em; border-radius: 12px;
  background: #081322; border: 1px solid var(--line); outline: none; transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7f93ad 50%), linear-gradient(135deg, #7f93ad 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2em; }
select:focus, input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(18, 181, 232, .15); }
textarea { resize: vertical; min-height: 110px; }
.result { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; margin-top: 22px; padding: 20px; border-radius: 18px; background: #081322; border: 1px solid var(--line); }
.result-car { transition: opacity .3s, transform .4s; }
.result-car.swap { opacity: 0; transform: translateX(-20px); }
.result-status { display: inline-flex; align-items: center; gap: .5em; font: 700 1.1rem var(--font-h); margin-bottom: .4em; }
.result-body p { color: var(--text-2); font-size: .92rem; }

/* ---------- Pasos ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-line { position: absolute; top: 30px; left: 16%; right: 16%; height: 2px; background: var(--line); }
.step-line i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 1.6s ease; }
.step { text-align: center; padding: 0 10px; }
.step-n { position: relative; width: 60px; height: 60px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; font: 700 1.3rem var(--font-h); background: var(--bg); border: 2px solid transparent; background-image: linear-gradient(var(--bg), var(--bg)), var(--grad); background-origin: border-box; background-clip: padding-box, border-box; }
.step p { color: var(--text-2); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 1.05rem var(--font-h); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 1.5rem; font-weight: 400; color: var(--cyan); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0 0 22px; animation: pop .35s ease both; }

/* ---------- Contacto ---------- */
.contact { overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 700px; height: 700px; left: -250px; top: 10%; background: radial-gradient(circle, rgba(31, 107, 255, .18), transparent 65%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.wa-card { display: flex; align-items: center; gap: 14px; margin: 1.8rem 0 1.2rem; padding: 16px 20px; border-radius: 18px; background: rgba(37, 211, 102, .08); border: 1px solid rgba(37, 211, 102, .3); transition: .25s; max-width: 380px; }
.wa-card:hover { background: rgba(37, 211, 102, .14); transform: translateY(-2px); }
.wa-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #25d366; color: #fff; }
.wa-ic .ic { width: 26px; height: 26px; }
.wa-card small { display: block; color: var(--text-2); font-size: .8rem; }
.wa-card b { font: 700 1.15rem var(--font-h); }
.wa-card .arrow { margin-left: auto; color: #25d366; }
.by-nexora { color: var(--muted); font-size: .88rem; }
.by-nexora b { color: var(--text-2); }
.form { display: grid; gap: 16px; padding: 30px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: .92rem; min-height: 1.4em; text-align: center; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #f87171; }
input.bad, textarea.bad { border-color: #f87171; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); font-size: .88rem; text-align: right; }
.footer small { font-size: .75rem; }
.footer a:hover { color: var(--text); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .6); transition: transform .25s; }
.wa-float .ic { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waRing 2.2s infinite; }
@keyframes waRing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .compat-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .features { grid-template-columns: 1fr 1fr; }
  .dash-vent { display: none; }
  .dash { padding: 26px 14px 34px; min-height: 0; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 20px;
    background: rgba(5, 11, 22, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .burger { display: block; }
  .nav { background: rgba(5, 11, 22, .85); backdrop-filter: blur(14px); }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .step-line { display: none; }
  .fields, .row2, .result { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 4 / 3.4; }
  .hud-name { font-size: 1.1rem; }
  .screen { font-size: 10px; border-width: 5px; }
  .screen-wrap.portrait { width: min(240px, 100%); }
  .sr-arrow { display: none; }
  .footer p { text-align: left; }
  .form, .compat-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
