:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --ink: #0b1220;
  --ink-2: #1a2440;
  --muted: #5a6a85;
  --line: #e6ebf3;
  --line-hi: #cdd8ea;
  --card: #ffffff;

  --sky: #0ea5e9;
  --violet: #7c3aed;
  --amber: #f97316;
  --teal: #06b6d4;
  --grad: linear-gradient(100deg, #06b6d4 0%, #0ea5e9 30%, #7c3aed 66%, #f97316 100%);

  --dark: #0a1020;
  --dark-2: #0f1830;

  --radius: 20px;
  --maxw: 1180px;
  --shadow: 0 18px 50px -24px rgba(20, 40, 90, 0.28);
  --shadow-lg: 0 30px 70px -30px rgba(20, 40, 90, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand-name { font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: -0.02em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== FONDO: red de partículas (sutil, sobre blanco) ===== */
#net { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.9; }
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 1; pointer-events: none;
  width: 420px; height: 420px; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(14,165,233,0.08), transparent 62%);
  transition: opacity 0.4s; opacity: 0;
}
.nav, main, .footer { position: relative; z-index: 3; }

/* ===== UTIL ===== */
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.brand-8 { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  font-family: "Space Mono", monospace; font-size: 0.72rem; font-weight: 700;
  color: var(--sky); margin: 0 0 1rem;
}
.eyebrow.light { color: #7dd3fc; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 0.9rem 1.5rem;
}
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,0.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.22rem; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 2px 6px rgba(14,165,233,0.35)); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.nav-links { display: flex; align-items: center; gap: 1.4rem; font-size: 0.9rem; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 0.5rem 1.1rem; border-radius: 999px; color: #fff !important; background: var(--ink); }
.nav-cta:hover { background: var(--violet); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.25s, background 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { color: #fff; background: var(--grad); background-size: 180% auto; box-shadow: 0 12px 34px -12px rgba(124,58,237,0.55); }
.btn-primary:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(14,165,233,0.6); }
.btn-ghost { background: #fff; border-color: var(--line-hi); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sky); transform: translateY(-2px); }
.btn-ghost.light { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); color: #fff; }
.btn-ghost.light:hover { background: rgba(255,255,255,0.16); }
.btn-block { width: 100%; }

/* ===== HERO ===== */
.hero {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
  min-height: 86vh; padding: 3.5rem 1.5rem 3rem;
}
.hero-inner { max-width: 620px; }
.hero-title { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.03; margin: 0 0 1.4rem; font-weight: 700; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); margin: 0 0 2rem; }
.lede strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.8rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 0 1.7rem; margin-top: 0.5rem; }
.hero-proof div { display: flex; flex-direction: column; padding: 0.1rem 1.7rem 0.1rem 0; border-right: 1px solid var(--line); }
.hero-proof div:last-child { border-right: none; padding-right: 0; }
.hero-proof b { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--ink); line-height: 1.15; }
.hero-proof b:first-letter { }
.hero-proof div:first-child b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-proof span { font-size: 0.78rem; color: var(--muted); }

/* ===== FRANJA VIVA (detección de contexto en el hero) ===== */
.livestrip { margin-top: 1.7rem; max-width: 560px; padding: 0.95rem 1.15rem; border-radius: 16px; background: linear-gradient(180deg, #ffffff, #f4f8ff); border: 1px solid var(--line); box-shadow: 0 14px 36px -20px rgba(20,40,90,0.28); }
.ls-live { display: inline-flex; align-items: center; gap: 0.45rem; font-family: "Space Mono", monospace; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #16a34a; }
.ls-live i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,0.5); animation: blip 1.6s ease-out infinite; }
.ls-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0.65rem; }
.ls-chip { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.84rem; color: var(--ink-2); background: #fff; border: 1px solid var(--line-hi); border-radius: 999px; padding: 0.34rem 0.75rem; opacity: 0; transform: translateY(9px) scale(0.95); transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.2,.8,.2,1); }
.ls-chip.in { opacity: 1; transform: none; }
.ls-chip i { font-style: normal; }
.ls-geo { cursor: pointer; }
.ls-geo:hover { border-color: var(--sky); color: var(--sky); }
.ls-pin { border-color: var(--sky); color: var(--sky); background: rgba(14,165,233,0.08); }
.ls-note { font-size: 0.8rem; color: var(--muted); }
.ls-note b { color: var(--ink); }

/* Dashboard vivo */
.hero-dash {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 1.4rem; box-shadow: var(--shadow-lg); position: relative;
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.dash-live { display: inline-flex; align-items: center; gap: 0.4rem; font-family: "Space Mono", monospace; font-size: 0.68rem; font-weight: 700; color: #16a34a; letter-spacing: 0.1em; }
.dash-live i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,0.5); animation: blip 1.6s ease-out infinite; }
@keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.5); } 100% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } }
.dash-title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-bottom: 1.1rem; }
.kpi { border-radius: 12px; padding: 0.7rem 0.8rem; border: 1px solid var(--line); }
.kpi small { display: block; color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.kpi b { font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; }
.kpi-a { background: rgba(14,165,233,0.09); border-color: rgba(14,165,233,0.25); } .kpi-a b { color: #0284c7; }
.kpi-b { background: rgba(22,163,74,0.09); border-color: rgba(22,163,74,0.25); } .kpi-b b { color: #16a34a; }
.kpi-c { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.28); } .kpi-c b { color: #ea580c; }
.dash-chart { width: 100%; height: 90px; display: block; }
.dash-chart .stroke { stroke: var(--sky); stroke-width: 2.5; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s ease forwards 0.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash-bars { display: flex; align-items: flex-end; gap: 0.4rem; height: 46px; margin-top: 0.7rem; }
.dash-bars span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: var(--grad); opacity: 0.85; transform-origin: bottom; animation: grow 0.8s ease forwards; transform: scaleY(0); }
.dash-bars span:nth-child(2){animation-delay:.05s}.dash-bars span:nth-child(3){animation-delay:.1s}.dash-bars span:nth-child(4){animation-delay:.15s}.dash-bars span:nth-child(5){animation-delay:.2s}.dash-bars span:nth-child(6){animation-delay:.25s}.dash-bars span:nth-child(7){animation-delay:.3s}.dash-bars span:nth-child(8){animation-delay:.35s}
@keyframes grow { to { transform: scaleY(1); } }

.scroll-cue { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid var(--line-hi); border-radius: 13px; display: grid; place-items: start center; padding-top: 6px; }
.scroll-cue span { width: 4px; height: 7px; border-radius: 2px; background: var(--sky); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ===== MARQUEE ===== */
.marquee { position: relative; z-index: 3; overflow: hidden; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.marquee-track { display: inline-flex; align-items: center; gap: 1.8rem; white-space: nowrap; animation: scroll-x 34s linear infinite; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.25rem; color: var(--ink-2); }
.marquee-track i { color: var(--amber); font-style: normal; font-size: 0.8rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ===== SECTIONS ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.5rem; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); margin: 0 0 0.7rem; line-height: 1.08; }
.section-sub { color: var(--muted); margin: 0; font-size: 1.06rem; }
.section-sub.light { color: #9fb0d0; }

/* spotlight */
.spot { position: relative; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity 0.3s; background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), rgba(14,165,233,0.10), transparent 60%); pointer-events: none; }
.spot:hover::before { opacity: 1; }

/* ===== DOMINIOS (con color) ===== */
.domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.domain { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; overflow: hidden; }
.domain::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--accent, var(--sky)); opacity: 0.9; }
.domain:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-hi); }
.d-ico { font-size: 1.5rem; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 0.9rem; background: color-mix(in srgb, var(--accent, var(--sky)) 14%, #fff); }
.domain h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.domain p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.domain:nth-child(1) { --accent: #0ea5e9; }
.domain:nth-child(2) { --accent: #f97316; }
.domain:nth-child(3) { --accent: #16a34a; }
.domain:nth-child(4) { --accent: #7c3aed; }
.domain:nth-child(5) { --accent: #eab308; }
.domain:nth-child(6) { --accent: #06b6d4; }

/* ===== PILARES ===== */
.pillars { }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.pillar { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; transition: transform 0.25s, box-shadow 0.25s; overflow: hidden; }
.pillar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.pillar:nth-child(1)::after { background: #0ea5e9; } .pillar:nth-child(1) .pillar-n { color: #0ea5e9; }
.pillar:nth-child(2)::after { background: #06b6d4; } .pillar:nth-child(2) .pillar-n { color: #06b6d4; }
.pillar:nth-child(3)::after { background: #f97316; } .pillar:nth-child(3) .pillar-n { color: #ea580c; }
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar-hot { background: linear-gradient(180deg, #fff, #fff7f0); border-color: #fbe0c8; }
.pillar-n { font-family: "Space Mono", monospace; font-weight: 700; font-size: 0.9rem; color: var(--sky); }
.pillar h3 { font-size: 1.5rem; margin: 0.5rem 0 0.6rem; }
.pillar p { color: var(--muted); font-size: 0.97rem; margin: 0 0 1.1rem; }
.pillar strong { color: var(--ink); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.tags li { font-family: "Space Mono", monospace; font-size: 0.7rem; color: var(--sky); background: rgba(14,165,233,0.08); border: 1px solid rgba(14,165,233,0.2); padding: 0.2rem 0.6rem; border-radius: 999px; }
.tags.light li { color: #7dd3fc; background: rgba(125,211,252,0.1); border-color: rgba(125,211,252,0.25); }

/* ===== OPERADOR (oscuro) ===== */
.operador { position: relative; z-index: 3; background: var(--dark); background-image: radial-gradient(900px 500px at 80% -10%, #1b2550, var(--dark) 60%); margin: 2rem 0; overflow: hidden; }
.operador::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0V40' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E"); pointer-events: none; }
.operador-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.5rem; }
.operador h2, .operador h3, .operador h4 { color: #fff; }
.operador .section-head { margin-bottom: 2rem; }

.flow { margin: 1.5rem 0 2.5rem; }
.flow-svg { width: 100%; height: auto; }
.flow-nodes circle { fill: #7dd3fc; }
.flow-nodes text { fill: #9fb0d0; font-size: 13px; text-anchor: middle; }
.flow-dot { fill: #fff; filter: drop-shadow(0 0 6px #7dd3fc); }

.op-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.op-tile { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 1.6rem; transition: transform 0.25s, border-color 0.25s, background 0.25s; }
.op-tile:hover { transform: translateY(-5px); border-color: rgba(125,211,252,0.4); background: rgba(255,255,255,0.06); }
.op-lg { grid-column: span 1; grid-row: span 2; display: flex; flex-direction: column; }
.op-wide { grid-column: span 2; }
.op-tag { font-family: "Space Mono", monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); }
.op-tile h3 { font-size: 1.2rem; margin: 0.5rem 0 0.5rem; }
.op-tile p { color: #9fb0d0; font-size: 0.95rem; margin: 0 0 1rem; }
.op-mini { margin-top: auto; }
.mini-map { position: relative; height: 120px; border-radius: 12px; background: rgba(125,211,252,0.06); border: 1px solid rgba(125,211,252,0.15); overflow: hidden; }
.mini-map span { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #7dd3fc; box-shadow: 0 0 0 0 rgba(125,211,252,0.6); animation: blip 2s ease-out infinite; }
.mini-map span:nth-child(1){top:20%;left:18%}.mini-map span:nth-child(2){top:60%;left:35%;background:#f97316;animation-delay:.3s}.mini-map span:nth-child(3){top:38%;left:55%;animation-delay:.6s}.mini-map span:nth-child(4){top:72%;left:70%;animation-delay:.9s}.mini-map span:nth-child(5){top:28%;left:82%;background:#f97316;animation-delay:1.2s}.mini-map span:nth-child(6){top:55%;left:12%;animation-delay:1.5s}

/* ===== MOCKUP: PANEL DE CONTROL ===== */
.mock { border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.12); background: #0b1428; margin-bottom: 1.5rem; }
.mock-chrome { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; background: #0f1a33; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mc-dot { width: 11px; height: 11px; border-radius: 50%; background: #34405f; }
.mc-dot:nth-child(1){background:#ff5f57}.mc-dot:nth-child(2){background:#febc2e}.mc-dot:nth-child(3){background:#28c840}
.mc-url { flex: 1; text-align: center; font-family: "Space Mono", monospace; font-size: 0.74rem; color: #9fb0d0; background: #0b1428; border-radius: 8px; padding: 0.3rem 0.8rem; }
.mc-url .lock { color: #16a34a; }
.mock-tenants { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; background: #0d1730; border-bottom: 1px solid rgba(255,255,255,0.06); }
.tenant { font-family: "Space Grotesk", sans-serif; font-size: 0.78rem; font-weight: 600; color: #9fb0d0; background: transparent; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 0.3rem 0.85rem; cursor: default; }
.tenant.active { color: #fff; background: linear-gradient(100deg,#0ea5e9,#7c3aed); border-color: transparent; }
.tenant-hint { margin-left: auto; font-family: "Space Mono", monospace; font-size: 0.66rem; color: #5f6f92; }
.mock-app { display: grid; grid-template-columns: 150px 1fr; min-height: 380px; }
.mock-side { background: #0d1730; border-right: 1px solid rgba(255,255,255,0.06); padding: 0.9rem 0.6rem; display: flex; flex-direction: column; gap: 0.15rem; }
.ms-item { font-size: 0.8rem; color: #8494b8; padding: 0.5rem 0.6rem; border-radius: 8px; }
.ms-on { color: #fff; background: rgba(14,165,233,0.16); }
.mock-main { padding: 1rem 1.1rem; }
.mm-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.9rem; }
.mm-head h4 { color: #fff; font-size: 1.05rem; margin: 0; }
.mm-head em { font-style: normal; font-family: "Space Mono", monospace; font-size: 0.68rem; color: #7dd3fc; }
.live { display: inline-flex; align-items: center; gap: 0.35rem; font-family: "Space Mono", monospace; font-size: 0.64rem; font-weight: 700; color: #22c55e; letter-spacing: 0.08em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: blip 1.6s ease-out infinite; }
.mm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 0.9rem; }
.mmk { border-radius: 10px; padding: 0.6rem 0.7rem; border: 1px solid rgba(255,255,255,0.08); }
.mmk small { display: block; color: #8494b8; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; }
.mmk b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; color: #fff; line-height: 1.2; }
.mmk u { text-decoration: none; font-family: "Space Mono", monospace; font-size: 0.58rem; }
.mmk1 { background: rgba(14,165,233,0.12); } .mmk1 u { color: #38bdf8; }
.mmk2 { background: rgba(22,163,74,0.12); } .mmk2 u { color: #4ade80; }
.mmk3 { background: rgba(249,115,22,0.14); } .mmk3 u { color: #fb923c; }
.mmk4 { background: rgba(124,58,237,0.14); } .mmk4 u { color: #c4b5fd; }
.mm-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.7rem; }
.mm-map { background: #0c1730; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; }
.mm-map-head { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.7rem; font-family: "Space Mono", monospace; font-size: 0.66rem; color: #9fb0d0; }
.mm-coord { color: #5f6f92; }
.map-svg { width: 100%; height: 160px; display: block; }
.pins circle { filter: drop-shadow(0 0 4px currentColor); }
.pin-ok { fill: #22c55e; color: #22c55e; }
.pin-warn { fill: #f97316; color: #f97316; }
.pin-leak { fill: #ef4444; color: #ef4444; animation: leakpulse 1.6s ease-out infinite; }
@keyframes leakpulse { 0% { r: 6; opacity: 1; } 70% { r: 11; opacity: 0.3; } 100% { r: 6; opacity: 1; } }
.mm-legend { display: flex; gap: 0.7rem; padding: 0.5rem 0.7rem; }
.lg { font-family: "Space Mono", monospace; font-size: 0.6rem; color: #9fb0d0; display: inline-flex; align-items: center; gap: 0.3rem; }
.lg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.lg-ok::before { background: #22c55e; } .lg-warn::before { background: #f97316; } .lg-leak::before { background: #ef4444; }
.mm-side { display: flex; flex-direction: column; gap: 0.7rem; }
.mm-chart { background: #0c1730; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0.6rem 0.7rem; }
.mmc-head { font-family: "Space Mono", monospace; font-size: 0.62rem; color: #9fb0d0; margin-bottom: 0.3rem; }
.mm-chart svg { width: 100%; height: 56px; display: block; }
.mm-alerts { display: flex; flex-direction: column; gap: 0.4rem; }
.al { border-radius: 9px; padding: 0.45rem 0.6rem; border-left: 3px solid; background: rgba(255,255,255,0.04); }
.al b { display: block; font-size: 0.74rem; color: #fff; }
.al span { font-size: 0.66rem; color: #9fb0d0; }
.al-red { border-color: #ef4444; } .al-amber { border-color: #f97316; } .al-blue { border-color: #38bdf8; }

/* ===== CARRUSEL DE PERFILES ===== */
.pc { position: relative; }
.pc-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.4rem; }
.pc-tab { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.86rem; color: var(--muted); background: #fff; border: 1px solid var(--line-hi); border-radius: 999px; padding: 0.6rem 1.15rem; cursor: pointer; transition: transform 0.12s ease, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.pc-tab:hover { color: var(--ink); border-color: var(--sky); }
.pc-tab:active { transform: scale(0.94); }
.pc-tab.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 10px 24px -10px rgba(124,58,237,0.5); transform: translateY(-1px); }
/* stage de altura fija → los slides se superponen y hacen crossfade
   EN SU LUGAR, así la página nunca se reacomoda al auto-rotar */
.pc-stage { position: relative; height: 560px; }
.pc-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s; }
.pc-slide.active { opacity: 1; visibility: visible; }
.pc-slide > * { width: 100%; }
.pc-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.3rem; }
.pc-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--line-hi); cursor: pointer; transition: all 0.2s; padding: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pc-dot:active { transform: scale(0.85); }
.pc-dot.active { background: var(--sky); width: 26px; border-radius: 999px; }
.pc-foot { text-align: center; margin-top: 1.4rem; color: var(--muted); }
.pc-foot a { color: var(--sky); font-weight: 600; border-bottom: 1px solid currentColor; }

/* elementos interactivos DENTRO de los mockups → que se sienta que se pican */
.cyc-btn, .cb, .cyc-tabs span, .tenant, .ms-item, .rt-nav b {
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.cyc-btn:active, .cb:active, .cyc-tabs span:active, .tenant:active, .ms-item:active, .rt-nav b:active { transform: scale(0.94); }
.cb:hover { outline: 2px solid rgba(255,255,255,0.35); outline-offset: 1px; }
.ms-item:hover { background: rgba(255,255,255,0.06); }
.tenant:hover { border-color: rgba(125,211,252,0.5); }
.rt-nav b:hover { background: rgba(22,163,74,0.12); color: #16a34a; }
.cyc-btn.done { background: #22c55e !important; color: #fff !important; box-shadow: 0 8px 20px -8px rgba(34,197,94,0.6); }

/* mapa Leaflet real */
.leafmap { height: 200px; width: 100%; background: #0c1730; }
.leafmap .leaflet-control-attribution { font-size: 9px; background: rgba(12,23,48,0.7); color: #6b7ba0; }
.leafmap .leaflet-control-attribution a { color: #8494b8; }
.leafmap .leaflet-bar a { background: #14213f; color: #cdd8ea; border-color: #26365e; }

/* panel genérico (cycling, tienda) */
.mm-panel { background: #0c1730; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0.7rem 0.8rem; }
.mm-panel .mmc-head { font-family: "Space Mono", monospace; font-size: 0.64rem; color: #9fb0d0; margin-bottom: 0.6rem; }
.area-chart { width: 100%; height: 92px; display: block; }
.top-prod { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.6rem; }
.top-prod span { font-size: 0.72rem; color: #cdd8ea; background: rgba(255,255,255,0.04); border-radius: 7px; padding: 0.3rem 0.5rem; }

/* bicis */
.bikes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; }
.bk { aspect-ratio: 1; border-radius: 7px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
.bk.on { background: linear-gradient(135deg,#0ea5e9,#7c3aed); border-color: transparent; box-shadow: 0 0 8px rgba(124,58,237,0.4); }
.bikes-legend { display: flex; gap: 0.8rem; margin-top: 0.6rem; }
.lg-free::before { background: rgba(255,255,255,0.2) !important; }

/* temperaturas (cadena de frío) */
.temps { display: flex; gap: 0.5rem; }
.temp { flex: 1; text-align: center; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); border-radius: 9px; padding: 0.5rem 0.3rem; }
.temp b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; color: #4ade80; }
.temp span { font-size: 0.6rem; color: #9fb0d0; }
.temp-hot { background: rgba(249,115,22,0.12); border-color: rgba(249,115,22,0.3); }
.temp-hot b { color: #fb923c; }

/* flota */
.map-svg.fleet .tk { font-size: 18px; }
.trucks text { animation: none; }
.al-green { border-color: #22c55e; }
.mm-alerts.tall .al { padding: 0.5rem 0.6rem; }
.dash-bars.in-mock { height: 44px; margin-top: 0.3rem; }
.dash-bars.in-mock span { opacity: 0.9; }

/* slide agua: sin margen extra dentro del stage centrado */
.s-agua .mock { margin-bottom: 0; }

/* ============ SLIDE CYCLING · app móvil neón ============ */
.s-cyc .cyc { position: relative; display: flex; align-items: center; justify-content: center; gap: 1.5rem; width: 100%; height: 560px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(600px 400px at 30% 20%, #3b1055, #120a1f 60%), #0d0716; border: 1px solid #2a1740; }
.cyc-phone { width: 240px; background: #160c26; box-shadow: 0 30px 70px -20px rgba(236,72,153,0.4), inset 0 0 0 2px rgba(236,72,153,0.15); z-index: 2; }
.cyc-screen { background: linear-gradient(180deg,#1c0f33,#120a24); min-height: 470px; padding: 1.4rem 0.9rem 0.8rem; }
.cyc-top { display: flex; justify-content: space-between; align-items: center; margin: 0.3rem 0 0.9rem; }
.cyc-brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.15em; color: #fff; }
.cyc-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; color: #fff; background: linear-gradient(135deg,#ec4899,#a855f7); }
.cyc-hero { background: linear-gradient(135deg,#ec4899,#a855f7); border-radius: 16px; padding: 0.9rem; color: #fff; box-shadow: 0 14px 30px -12px rgba(236,72,153,0.6); }
.cyc-hero small { font-family: "Space Mono", monospace; font-size: 0.58rem; opacity: 0.85; letter-spacing: 0.06em; }
.cyc-hero b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; margin: 0.15rem 0; }
.cyc-coach { font-size: 0.72rem; opacity: 0.9; }
.cyc-count { display: flex; gap: 0.25rem; margin: 0.6rem 0; font-family: "Space Mono", monospace; }
.cyc-count i { background: rgba(0,0,0,0.25); border-radius: 6px; padding: 0.25rem 0.4rem; font-size: 0.9rem; font-style: normal; font-weight: 700; }
.cyc-btn { text-align: center; background: #fff; color: #a21caf; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.82rem; border-radius: 10px; padding: 0.55rem; }
.cyc-pick { margin-top: 0.9rem; }
.cyc-pick-h { font-size: 0.7rem; color: #c4b0e0; margin-bottom: 0.4rem; }
.cyc-bikes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.3rem; }
.cb { aspect-ratio: 1; border-radius: 5px; background: rgba(255,255,255,0.08); }
.cb.on { background: linear-gradient(135deg,#ec4899,#a855f7); }
.cb.sel { background: #22d3ee; box-shadow: 0 0 8px #22d3ee; }
.cyc-streak { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; background: rgba(255,255,255,0.06); border-radius: 10px; padding: 0.5rem 0.7rem; }
.cyc-streak span { font-size: 0.72rem; color: #f9a8d4; }
.cyc-streak b { color: #fff; font-family: "Space Grotesk", sans-serif; }
.cyc-streak em { margin-left: auto; font-style: normal; font-size: 0.62rem; color: #fbbf24; }
.cyc-tabs { display: flex; justify-content: space-around; margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid rgba(255,255,255,0.08); }
.cyc-tabs span { font-size: 1rem; opacity: 0.5; }
.cyc-tabs span.on { opacity: 1; }
.cyc-card { width: 190px; background: rgba(255,255,255,0.06); backdrop-filter: blur(8px); border: 1px solid rgba(236,72,153,0.25); border-radius: 16px; padding: 1.1rem; color: #fff; }
.cyc-l { text-align: center; }
.cyc-l span { font-size: 0.8rem; color: #e9d5ff; }
.cyc-ring { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 0.7rem; display: grid; place-items: center;
  background: conic-gradient(#ec4899 calc(var(--p)*1%), rgba(255,255,255,0.1) 0); }
.cyc-ring b { width: 66px; height: 66px; border-radius: 50%; background: #160c26; display: grid; place-items: center; font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; color: #fff; }
.cyc-lead-h { font-family: "Space Grotesk", sans-serif; font-size: 0.85rem; margin-bottom: 0.7rem; }
.cyc-lead { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); color: #e9d5ff; }
.cyc-lead b { color: #fff; font-family: "Space Mono", monospace; }
.cyc-new { margin-top: 0.8rem; font-size: 0.72rem; color: #86efac; background: rgba(34,197,94,0.12); border-radius: 8px; padding: 0.4rem 0.5rem; text-align: center; }

/* ============ SLIDE TIENDA · panel claro, nav arriba ============ */
.s-tienda .retail { width: 100%; max-width: 940px; height: 520px; margin: 0 auto; background: #ffffff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; }
.rt-top { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--line); background: #fbfdff; }
.rt-brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: #16a34a; }
.rt-nav { display: flex; gap: 0.3rem; margin: 0 auto 0 0.5rem; }
.rt-nav b { font-weight: 600; font-size: 0.82rem; color: var(--muted); padding: 0.35rem 0.8rem; border-radius: 8px; cursor: default; }
.rt-nav b.on { color: #fff; background: #16a34a; }
.rt-date { font-family: "Space Mono", monospace; font-size: 0.7rem; color: var(--muted); }
.rt-body { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 0.9rem; padding: 1.1rem 1.2rem; }
.rt-hero { display: flex; flex-direction: column; }
.rt-hero small { font-family: "Space Mono", monospace; font-size: 0.64rem; color: var(--muted); letter-spacing: 0.05em; }
.rt-hero > b { font-family: "Space Grotesk", sans-serif; font-size: 2.6rem; color: var(--ink); line-height: 1.1; }
.rt-delta { color: #16a34a; font-weight: 600; font-size: 0.82rem; margin-bottom: 0.5rem; }
.rt-spark { width: 100%; height: 66px; }
.rt-mini { display: flex; gap: 0.5rem; margin-top: auto; }
.rt-mini div { flex: 1; background: #f4f8ff; border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem; text-align: center; }
.rt-mini b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1rem; color: var(--ink); }
.rt-mini span { font-size: 0.62rem; color: var(--muted); }
.rt-ph { font-family: "Space Mono", monospace; font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.rt-prods { display: flex; flex-direction: column; gap: 0.45rem; }
.rt-prod { display: flex; align-items: center; gap: 0.6rem; background: #f8fbff; border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 0.7rem; }
.rt-prod div { flex: 1; } .rt-prod b { display: block; font-size: 0.82rem; color: var(--ink); } .rt-prod small { font-size: 0.66rem; color: var(--muted); }
.rt-prod u { text-decoration: none; font-family: "Space Mono", monospace; font-size: 0.76rem; color: #16a34a; }
.rt-medal { font-size: 1.1rem; }
.rt-prod.low { background: #fff7ed; border-color: #fed7aa; } .rt-prod.low u { color: #ea580c; }
.rt-side { display: flex; flex-direction: column; gap: 0.7rem; }
.rt-ticket { background: #0f1830; border-radius: 12px; padding: 0.8rem; color: #fff; }
.rt-ticket .rt-ph { color: #8fa3c8; }
.rt-line { display: flex; justify-content: space-between; font-size: 0.78rem; color: #cdd8ea; padding: 0.25rem 0; }
.rt-line.total { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 0.3rem; padding-top: 0.5rem; color: #fff; font-weight: 600; }
.rt-line b { font-family: "Space Mono", monospace; }
.rt-pay { margin-top: 0.6rem; font-size: 0.72rem; color: #4ade80; background: rgba(34,197,94,0.14); border-radius: 8px; padding: 0.4rem; text-align: center; }
.rt-cold { background: #f8fbff; border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.8rem; }
.rt-temps { display: flex; gap: 0.4rem; }
.rt-temps span { flex: 1; text-align: center; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.82rem; border-radius: 8px; padding: 0.45rem 0.2rem; }
.rt-temps .ok { color: #16a34a; background: rgba(34,197,94,0.12); }
.rt-temps .hot { color: #ea580c; background: rgba(249,115,22,0.14); }

/* ============ SLIDE FLOTA · consola despacho ámbar ============ */
.s-flota .fleet-panel { width: 100%; max-width: 960px; height: auto; margin: 0 auto; background: #0b1526; border: 1px solid #1c2c4d; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.7); display: flex; flex-direction: column; }
.fl-chrome { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem; background: #0f1a33; border-bottom: 1px solid rgba(255,255,255,0.08); }
.fl-chrome .mc-url { flex: 1; text-align: center; font-family: "Space Mono", monospace; font-size: 0.72rem; color: #9fb0d0; background: #0b1428; border-radius: 8px; padding: 0.3rem 0.8rem; }
.fl-live { display: inline-flex; align-items: center; gap: 0.35rem; font-family: "Space Mono", monospace; font-size: 0.66rem; font-weight: 700; color: #f59e0b; }
.fl-live i { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; animation: blip 1.6s ease-out infinite; }
.fl-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.8rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.fp { display: inline-flex; align-items: baseline; gap: 0.35rem; font-size: 0.72rem; color: #9fb0d0; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; padding: 0.35rem 0.8rem; }
.fp b { font-family: "Space Grotesk", sans-serif; font-size: 0.95rem; color: #fff; }
.fp-warn { background: rgba(249,115,22,0.12); border-color: rgba(249,115,22,0.3); } .fp-warn b { color: #fb923c; }
.fp-good { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.3); } .fp-good b { color: #4ade80; }
.fl-body { display: grid; grid-template-columns: 1.7fr 1fr; }
.fl-map { position: relative; overflow: hidden; }
.fleetmap { height: 360px; width: 100%; background: #0c1730; }
.truck-ico { background: none !important; border: none !important; font-size: 19px; line-height: 26px; text-align: center; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); }
.truck-ico.hot { filter: drop-shadow(0 0 5px #ef4444); }
.fl-rail { max-height: 360px; }
.fl-rail { border-left: 1px solid rgba(255,255,255,0.08); padding: 0.8rem; overflow-y: auto; }
.fl-rail-h { font-family: "Space Mono", monospace; font-size: 0.66rem; text-transform: uppercase; color: #8fa3c8; margin-bottom: 0.6rem; }
.fu { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.fu-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.fu-dot.red { background: #ef4444; box-shadow: 0 0 6px #ef4444; } .fu-dot.amber { background: #f59e0b; } .fu-dot.green { background: #22c55e; } .fu-dot.blue { background: #38bdf8; }
.fu b { display: block; font-size: 0.8rem; color: #fff; } .fu small { font-size: 0.68rem; color: #9fb0d0; }

/* ===== TAMAÑO ===== */
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.size { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; transition: transform 0.25s, box-shadow 0.25s; }
.size:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.size-mid { border: 2px solid transparent; background:
  linear-gradient(#fff,#fff) padding-box,
  var(--grad) border-box; box-shadow: var(--shadow); position: relative; }
.size-mid::after { content: "Más pedido"; position: absolute; top: -11px; left: 1.9rem; font-family: "Space Mono", monospace; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; background: var(--violet); padding: 0.2rem 0.6rem; border-radius: 999px; }
.size-ico { font-size: 2rem; margin-bottom: 0.7rem; }
.size h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }
.size-need { color: var(--ink-2); font-size: 0.98rem; margin: 0 0 1rem; }
.size-need strong { color: var(--sky); }
.size-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.size-list li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: 0.94rem; }
.size-list li::before { content: "✦"; position: absolute; left: 0; color: var(--sky); }
.size-tag { font-family: "Space Grotesk", sans-serif; font-weight: 600; color: var(--ink); margin: 0; font-size: 0.98rem; }

/* ===== ARSENAL ===== */
.arsenal-hero {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem;
  background: linear-gradient(120deg, #0a1020, #201038); border-radius: 22px; padding: 2rem 2.2rem; margin-bottom: 1.4rem;
  position: relative; overflow: hidden;
}
.arsenal-hero::before { content:""; position:absolute; top:-50%; right:-10%; width:400px; height:400px; background: radial-gradient(circle, rgba(124,58,237,0.4), transparent 65%); }
.ai-badge { position: relative; font-family: "Space Mono", monospace; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); padding: 0.3rem 0.7rem; border-radius: 999px; }
.arsenal-hero h3 { position: relative; color: #fff; font-size: clamp(1.3rem,3vw,1.9rem); margin: 0.4rem 0 0.3rem; }
.arsenal-hero p { position: relative; color: #b9c6e2; margin: 0; max-width: 60ch; }
.arsenal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.ars { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.ars:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-hi); }
.ars-ico { font-size: 1.4rem; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 0.7rem; }
.ars:nth-child(4n+1) .ars-ico { background: rgba(14,165,233,0.13); }
.ars:nth-child(4n+2) .ars-ico { background: rgba(124,58,237,0.13); }
.ars:nth-child(4n+3) .ars-ico { background: rgba(249,115,22,0.13); }
.ars:nth-child(4n+4) .ars-ico { background: rgba(22,163,74,0.13); }
.ars h4 { font-size: 1.02rem; margin: 0 0 0.3rem; }
.ars p { color: var(--muted); font-size: 0.86rem; margin: 0; }
.arsenal-cta { text-align: center; margin-top: 2rem; color: var(--muted); font-size: 1.05rem; }
.arsenal-cta a { color: var(--sky); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ===== STATS ===== */
.stats-band { max-width: var(--maxw); margin: 1rem auto; padding: 2.4rem 1.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { text-align: center; }
.stat strong { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--muted); font-size: 0.85rem; }

/* ===== WORK ===== */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.work-item { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.work-item::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.work-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-hi); }
.work-hero { grid-column: span 2; }
.work-tag { font-family: "Space Mono", monospace; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--amber); text-transform: uppercase; margin-bottom: 0.7rem; }
.work-item h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.work-hero h3 { font-size: 1.65rem; }
.work-item p { margin: 0 0 1rem; color: var(--muted); font-size: 0.96rem; max-width: 62ch; }
.work-metric { font-size: 0.9rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 0.9rem; }
.work-metric strong { color: var(--sky); }
.work-note { text-align: center; color: var(--muted); margin-top: 2.4rem; font-size: 1.05rem; }

/* ===== CASO ESTRELLA ===== */
.case { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 2.5rem; align-items: center; background: linear-gradient(135deg, #f6f9ff, #f2f6ff 40%, #fbf5ff); border: 1px solid var(--line); border-radius: 24px; padding: 2.4rem; margin-bottom: 1.8rem; }
.case-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.case-badges span { font-family: "Space Mono", monospace; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; padding: 0.25rem 0.7rem; border-radius: 999px; }
.case-badges span:nth-child(1){background:#0ea5e9}.case-badges span:nth-child(2){background:#7c3aed}.case-badges span:nth-child(3){background:#f97316}
.case-info h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 0.7rem; line-height: 1.1; }
.case-lead { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 1.3rem; }
.case-feats { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.6rem; }
.case-feats li { position: relative; padding-left: 1.6rem; color: var(--muted); font-size: 0.96rem; }
.case-feats li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--sky); }
.case-feats b { color: var(--ink); font-weight: 600; }
.case-metrics { display: flex; gap: 1.8rem; flex-wrap: wrap; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.case-metrics b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.9rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.case-metrics span { color: var(--muted); font-size: 0.82rem; }
.case-visual { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.case-tenants { font-family: "Space Mono", monospace; font-size: 0.72rem; color: var(--muted); text-align: center; }
.case-tenants b { color: var(--ink); }

/* Phone mockup */
.phone { width: 250px; max-width: 100%; background: #0b1428; border-radius: 34px; padding: 12px; box-shadow: 0 30px 70px -30px rgba(20,40,90,0.6), inset 0 0 0 2px rgba(255,255,255,0.08); position: relative; }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; background: #0b1428; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen { background: linear-gradient(180deg,#0f1a33,#0b1428); border-radius: 24px; padding: 1.4rem 1rem 1rem; min-height: 460px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; margin: 0.4rem 0 1rem; }
.ph-brand { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.82rem; color: #fff; }
.ph-off { font-family: "Space Mono", monospace; font-size: 0.62rem; color: #fbbf24; }
.ph-order { background: rgba(14,165,233,0.12); border: 1px solid rgba(14,165,233,0.28); border-radius: 12px; padding: 0.7rem 0.8rem; margin-bottom: 0.8rem; }
.ph-order small { font-family: "Space Mono", monospace; font-size: 0.58rem; color: #38bdf8; }
.ph-order b { display: block; color: #fff; font-size: 0.86rem; margin: 0.2rem 0; }
.ph-sla { font-size: 0.66rem; color: #fb923c; }
.ph-photo { position: relative; height: 92px; border-radius: 12px; margin-bottom: 0.8rem; display: grid; place-items: center; background: linear-gradient(135deg,#1e3a5f,#3b2f6b,#7c3aed); overflow: hidden; }
.ph-photo span { font-size: 1.6rem; }
.ph-photo em { position: absolute; bottom: 6px; left: 8px; font-style: normal; font-family: "Space Mono", monospace; font-size: 0.58rem; color: rgba(255,255,255,0.85); }
.ph-check { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.ph-check li { font-size: 0.76rem; color: #6b7ba0; }
.ph-check li.done { color: #4ade80; }
.ph-btn { text-align: center; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.82rem; color: #fff; background: linear-gradient(100deg,#0ea5e9,#7c3aed); border-radius: 12px; padding: 0.7rem; }

/* ===== SHOWCASE ===== */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.sc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; transition: box-shadow 0.25s ease, border-color 0.25s ease; }
.sc:hover { box-shadow: var(--shadow); border-color: var(--line-hi); }
.sc-ico { font-size: 1.5rem; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 0.9rem; }
.sc h3 { font-size: 1.12rem; margin: 0 0 0.5rem; }

/* ejemplos visuales = mini-pantallas realistas */
.sc-viz { height: 122px; border-radius: 12px; margin-bottom: 1rem; overflow: hidden; position: relative; border: 1px solid var(--line); }
.sc-viz.shot { background: #fff; box-shadow: 0 8px 20px -12px rgba(20,40,90,0.28); }
.shot-hd { display: flex; align-items: center; justify-content: space-between; padding: 0.45rem 0.7rem; border-bottom: 1px solid var(--line); }
.shot-hd b { font-family: "Space Grotesk", sans-serif; font-size: 0.72rem; color: var(--ink); }
.shot-hd i { font-style: normal; font-family: "Space Mono", monospace; font-size: 0.6rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 999px; }
.shot-hd.dark { background: #0f1830; border-color: rgba(255,255,255,0.08); } .shot-hd.dark b { color: #fff; }
.pl-live { color: #16a34a; background: rgba(22,163,74,0.12); }
.pl-red { color: #dc2626; background: rgba(220,38,38,0.12); }
.pl-off { color: #f59e0b; background: rgba(245,158,11,0.16); }
.shot-cta { margin: 0.55rem 0.7rem 0.6rem; text-align: center; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.72rem; color: #fff; border-radius: 8px; padding: 0.42rem; }
.cta-mag { background: linear-gradient(100deg,#ec4899,#a855f7); }
.cta-amber { background: linear-gradient(100deg,#f59e0b,#ea580c); }
/* 1 · cycling */
.v-cyc { background: linear-gradient(135deg,#fdf2fb,#f6f0ff) !important; }
.seatrow { display: flex; gap: 5px; padding: 0.75rem 0.7rem 0.5rem; justify-content: center; }
.seatrow s { width: 15px; height: 15px; border-radius: 4px; background: #e7d7f5; }
.seatrow s.o { background: linear-gradient(135deg,#ec4899,#a855f7); }
.seatrow s.sel { background: #06b6d4; box-shadow: 0 0 0 2px #a5f3fc; }
/* 2 · comercio */
.v-shop { display: flex; }
.prodimg { width: 44%; display: grid; place-items: center; font-size: 2.3rem; background: radial-gradient(circle at 50% 38%,#ffffff,#eef2f7); border-right: 1px solid var(--line); position: relative; }
.pl-360 { position: absolute; bottom: 8px; font-family: "Space Mono", monospace; font-size: 0.56rem; font-weight: 700; color: #0284c7; background: #fff; border: 1px solid #bae6fd; border-radius: 999px; padding: 0.12rem 0.45rem; }
.prodmeta { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; padding: 0.8rem; }
.prodmeta b { font-size: 0.86rem; color: var(--ink); }
.prodmeta u { text-decoration: none; font-family: "Space Grotesk", sans-serif; font-weight: 700; color: #16a34a; font-size: 1rem; }
.pl-wa { font-style: normal; font-size: 0.62rem; font-weight: 700; color: #fff; background: #25d366; border-radius: 6px; padding: 0.18rem 0.45rem; align-self: flex-start; }
/* 3 · análisis */
.v-an .anchart { width: 100%; height: 76px; display: block; padding: 0.3rem 0.2rem 0; }
/* 4 · balance */
.v-bal { display: flex; gap: 0.5rem; padding: 0.7rem; align-items: stretch; }
.v-bal .wk { flex: 1; background: #f4f8ff; border: 1px solid var(--line); border-radius: 9px; padding: 0.45rem 0.5rem; display: flex; flex-direction: column; justify-content: center; }
.v-bal .wk small { font-size: 0.54rem; color: var(--muted); line-height: 1.2; }
.v-bal .wk b { font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; color: #0369a1; margin-top: 0.1rem; }
.v-bal .wk b u { text-decoration: none; font-size: 0.58rem; color: var(--muted); margin-left: 1px; }
.v-bal .wk.hot { background: #fff7ed; border-color: #fed7aa; } .v-bal .wk.hot b { color: #ea580c; }
/* 5 · campo (oscuro) */
.v-field { background: #0f1830 !important; }
.fchecks { display: flex; flex-wrap: wrap; gap: 0.3rem 0.7rem; padding: 0.55rem 0.7rem 0.2rem; }
.fchecks u { text-decoration: none; font-size: 0.7rem; color: #6b7ba0; }
.fchecks u.ok { color: #4ade80; }
/* 6 · reporte PDF */
.v-pdf { background: #eef2f7 !important; display: grid; place-items: center; }
.pdfpg { width: 84px; height: 102px; background: #fff; border: 1px solid #dbe3ee; border-radius: 4px; box-shadow: 0 5px 14px -6px rgba(20,40,90,0.35); padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.pdf-top { display: flex; align-items: center; gap: 4px; }
.pdf-logo { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg,#0ea5e9,#7c3aed); }
.pdf-ttl { flex: 1; height: 5px; border-radius: 2px; background: #0ea5e9; }
.pdf-kpis { display: flex; gap: 3px; }
.pdf-kpis i { flex: 1; height: 16px; border-radius: 3px; background: #f1f5f9; border: 1px solid #e2e8f0; }
.pdf-rows { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.pdf-rows span { height: 4px; border-radius: 2px; background: #e2e8f0; }
.pdf-rows span:nth-child(2) { width: 82%; } .pdf-rows span:nth-child(3) { width: 60%; }
.pdf-tag { position: absolute; bottom: 8px; right: 10px; font-family: "Space Mono", monospace; font-size: 0.56rem; color: #64748b; background: #fff; border: 1px solid #e2e8f0; border-radius: 5px; padding: 0.12rem 0.4rem; }
.sc p { color: var(--muted); font-size: 0.94rem; margin: 0 0 1rem; }
.sc p b { color: var(--ink); }
.sc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.sc-tags li { font-family: "Space Mono", monospace; font-size: 0.68rem; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 0.2rem 0.6rem; border-radius: 999px; }

/* ===== STEPS ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; transition: transform 0.25s, box-shadow 0.25s; }
.steps li:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-n { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 2.2rem; display: block; margin-bottom: 0.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.steps h3 { margin: 0 0 0.45rem; font-size: 1.18rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ===== CONTACT ===== */
.contact-card { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.6rem; padding: 3rem; border-radius: 28px; overflow: hidden; background: var(--dark); background-image: radial-gradient(600px 400px at 15% 0%, #1a2550, var(--dark) 60%); }
.contact-card h2, .contact-card .section-sub { color: #fff; }
.contact-copy h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 0 0 0.7rem; line-height: 1.08; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.35rem; font-family: "Space Mono", monospace; font-size: 0.72rem; color: #9fb0d0; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-form input, .contact-form textarea { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; padding: 0.8rem 0.95rem; color: #fff; font-family: "Inter", sans-serif; font-size: 0.98rem; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6b7ba0; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #7dd3fc; box-shadow: 0 0 0 3px rgba(125,211,252,0.16); }
.form-hint { font-family: "Space Mono", monospace; font-size: 0.7rem; color: #9fb0d0; margin: 0; text-align: center; }

/* ===== FOOTER ===== */
.footer { max-width: var(--maxw); margin: 2rem auto 0; padding: 3rem 1.5rem 4rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); margin-bottom: 0.6rem; }
.footer p { margin: 0.2rem 0; font-size: 0.9rem; }
.footer-tag { color: var(--sky) !important; font-weight: 600; font-family: "Space Mono", monospace; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2.5rem; }
  .hero-dash { max-width: 460px; }
  .arsenal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: 2rem; }
  .case-visual { order: -1; }
}
@media (max-width: 980px) {
  /* carrusel: hilera de cards de cycling se recorta → ocultar laterales */
  .cyc-card { display: none; }
}
/* ≤900px = tablets en vertical (iPad) y abajo */
@media (max-width: 900px) {
  .domains, .pillar-grid, .op-bento, .sizes, .showcase { grid-template-columns: 1fr 1fr; }
  .op-lg { grid-row: span 1; } .op-wide { grid-column: span 2; }
  .arsenal-grid { grid-template-columns: repeat(2, 1fr); }
  .mm-kpis { grid-template-columns: repeat(2, 1fr); }
  /* carrusel: sin superposición, alto natural, sin auto-rotar */
  .pc-stage { height: auto; }
  .pc-slide { position: relative; inset: auto; display: none; opacity: 1; visibility: visible; transition: none; }
  .pc-slide.active { display: flex; }
  .s-cyc .cyc { height: auto; padding: 1.5rem 0; }
  .s-tienda .retail, .s-flota .fleet-panel { height: auto; }
  .rt-body { grid-template-columns: 1fr; }
  .fl-body { grid-template-columns: 1fr; } .fl-map { min-height: 220px; }
}
@media (max-width: 620px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .domains, .pillar-grid, .op-bento, .sizes, .showcase, .steps, .arsenal-grid, .stats-band { grid-template-columns: 1fr; }
  .op-wide { grid-column: span 1; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .contact-card { grid-template-columns: 1fr; padding: 1.8rem; gap: 1.6rem; }
  .marquee-track { font-size: 1.05rem; }
  .mock-app { grid-template-columns: 1fr; }
  .mock-side { flex-direction: row; flex-wrap: wrap; }
  .mm-grid { grid-template-columns: 1fr; }
  .mm-kpis { grid-template-columns: 1fr 1fr; }
}

/* ===== AFINACIÓN MÓVIL (iPhone / Samsung chico) ===== */
@media (max-width: 640px) {
  .section { padding: 3.2rem 1.1rem; }
  .section-head { margin-bottom: 2rem; }
  .nav { padding: 0.7rem 1rem; }
  .brand { font-size: 1.08rem; }
  .hero { padding: 1.4rem 1.1rem 2rem; gap: 1.4rem; min-height: auto; }
  .hero-title { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .lede { font-size: 1.01rem; }
  .hero-proof { gap: 0.7rem 1rem; }
  .hero-proof div { padding-right: 1rem; }
  .hero-proof b { font-size: 1.05rem; }
  .hero-dash { padding: 1.1rem; }
  .dash-kpis { gap: 0.5rem; }
  /* carrusel: legibilidad de los paneles */
  .pc-tabs { gap: 0.35rem; }
  .pc-tab { font-size: 0.75rem; padding: 0.45rem 0.7rem; }
  .mock-side { gap: 0.3rem; padding: 0.6rem; }
  .ms-item { font-size: 0.72rem; padding: 0.32rem 0.5rem; }
  .mm-head h4 { font-size: 0.95rem; }
  .mmk b { font-size: 1.05rem; }
  .leafmap { height: 175px; }
  .fleetmap { height: 230px; }
  .fl-pills { gap: 0.35rem; padding: 0.6rem 0.7rem; }
  .fp { font-size: 0.66rem; padding: 0.3rem 0.6rem; }
  .fl-rail { max-height: none; }
  .rt-top { flex-wrap: wrap; gap: 0.5rem 0.7rem; padding: 0.7rem 0.8rem; }
  .rt-nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rt-nav b { font-size: 0.74rem; padding: 0.3rem 0.6rem; white-space: nowrap; }
  .rt-hero > b { font-size: 2rem; }
  .cyc-phone, .phone { width: 230px; }
  /* welcome */
  .welcome { padding: 0.9rem; }
  .wl-card { padding: 1.5rem 1.2rem; }
  .wl-name { font-size: 1.35rem; }
  .wl-radar { width: 72px; height: 72px; margin-bottom: 0.9rem; }
  .wl-chip { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
  .wl-actions { width: 100%; }
  .wl-actions .btn { flex: 1 1 auto; }
  /* chat */
  .chat { height: 430px; }
  .cm { font-size: 0.88rem; max-width: 88%; }
  /* caso estrella */
  .case { padding: 1.4rem; }
  .case-info h3 { font-size: 1.35rem; }
  .case-metrics { gap: 1.1rem; }
  .case-metrics b { font-size: 1.5rem; }
}
@media (max-width: 380px) {
  .hero-title { font-size: 1.9rem; }
  .section-head h2 { font-size: 1.5rem; }
  .pc-tab { font-size: 0.7rem; padding: 0.4rem 0.55rem; }
  .hero-proof div:last-child { border: none; }
  .mm-kpis { grid-template-columns: 1fr 1fr; }
  .rt-mini { flex-wrap: wrap; }
  .brand-name { font-size: 1rem; }
  .nav-cta { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
}

/* ===== OVERLAY DE BIENVENIDA ===== */
.welcome { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1.2rem; background: rgba(6,10,22,0.55); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.welcome.show { opacity: 1; pointer-events: auto; }
/* CRÍTICO: que el atributo hidden de verdad lo saque del DOM visual (si no, tapa clicks) */
.welcome[hidden] { display: none !important; }
.wl-card { position: relative; width: min(440px, 100%); background: linear-gradient(160deg,#0c1430,#0a1020); border-radius: 22px; padding: 2rem 1.8rem; color: #fff; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8); transform: translateY(16px) scale(0.98); transition: transform 0.4s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.welcome.show .wl-card { transform: none; }
.wl-card::before { content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; background: conic-gradient(from 0deg,transparent,#0ea5e9,transparent 30%,#7c3aed,transparent 60%,#f97316,transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 7s linear infinite; opacity: 0.7; }
.wl-close { position: absolute; top: 0.8rem; right: 0.9rem; z-index: 2; background: rgba(255,255,255,0.08); border: none; color: #9fb0d0; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; }
.wl-close:hover { background: rgba(255,255,255,0.16); color: #fff; }
/* escaneo */
.wl-scanning { text-align: center; padding: 1.5rem 0; }
.wl-radar { width: 88px; height: 88px; margin: 0 auto 1.2rem; position: relative; border-radius: 50%; border: 1px solid rgba(125,211,252,0.25); }
.wl-radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(56,189,248,0.5), transparent 55%); animation: spin 1.4s linear infinite; }
.wl-radar span { position: absolute; border-radius: 50%; border: 1px solid rgba(125,211,252,0.2); }
.wl-radar span:nth-child(1){ inset: 16px; } .wl-radar span:nth-child(2){ inset: 30px; } .wl-radar span:nth-child(3){ inset: 42px; background: #38bdf8; border: none; box-shadow: 0 0 12px #38bdf8; }
.wl-scanning p { font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; margin: 0; }
.wl-scanning small { color: #7f8db0; font-family: "Space Mono", monospace; font-size: 0.72rem; }
.wl-dots::after { content: ""; animation: wldots 1.4s steps(4,end) infinite; }
@keyframes wldots { 0%{content:""} 25%{content:"."} 50%{content:".."} 75%{content:"..."} }
/* revelado */
.wl-reveal { position: relative; z-index: 1; text-align: center; }
.wl-hi { font-family: "Space Mono", monospace; font-size: 0.8rem; color: #7dd3fc; margin: 0 0 0.2rem; }
.wl-name { font-size: 1.7rem; margin: 0 0 0.5rem; color: #fff; }
.wl-sub { font-size: 0.9rem; color: #b9c6e2; margin: 0 0 1rem; line-height: 1.5; }
.wl-sub b { color: #fff; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.2rem; }
.wl-chip { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: #cdd8ea; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 0.35rem 0.75rem; opacity: 0; transform: translateY(8px); }
.wl-chip.in { animation: chipIn 0.5s ease forwards; }
.wl-chip i { font-style: normal; }
.wl-chip.wl-pin { border-color: rgba(56,189,248,0.5); color: #fff; background: rgba(56,189,248,0.14); }
@keyframes chipIn { to { opacity: 1; transform: none; } }
.wl-note { font-size: 0.88rem; color: #9fb0d0; margin: 0 0 1.4rem; }
.wl-note b { color: #fff; }
.wl-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.wl-actions .btn { padding: 0.7rem 1.1rem; font-size: 0.9rem; }

/* ===== CHATBOT DE CONTACTO ===== */
.chat { display: flex; flex-direction: column; height: 440px; background: #0c1430; border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.08); }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.85rem; color: #fff; background: linear-gradient(135deg,#0ea5e9,#7c3aed); }
.chat-id b { display: block; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 0.92rem; }
.chat-id em { font-style: normal; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; color: #6ee7b7; }
.chat-id em i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); animation: blip 1.6s ease-out infinite; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.cm { max-width: 82%; padding: 0.6rem 0.85rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; animation: cmIn 0.35s ease; }
.cm b { font-weight: 600; }
.cm.bot { align-self: flex-start; background: rgba(255,255,255,0.08); color: #eaf0ff; border-bottom-left-radius: 5px; }
.cm.user { align-self: flex-end; background: linear-gradient(120deg,#0ea5e9,#7c3aed); color: #fff; border-bottom-right-radius: 5px; }
@keyframes cmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cm.typing { display: inline-flex; gap: 4px; }
.cm.typing span { width: 7px; height: 7px; border-radius: 50%; background: #7f8db0; animation: tdot 1.2s infinite; }
.cm.typing span:nth-child(2){ animation-delay: 0.2s; } .cm.typing span:nth-child(3){ animation-delay: 0.4s; }
@keyframes tdot { 0%,60%,100%{ transform: translateY(0); opacity: 0.5; } 30%{ transform: translateY(-4px); opacity: 1; } }
.chat-input { padding: 0.7rem; border-top: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); min-height: 60px; display: flex; align-items: center; }
.cin { display: flex; gap: 0.5rem; width: 100%; }
.cin input { flex: 1; background: rgba(5,7,15,0.5); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 0.7rem 0.9rem; color: #fff; font-family: "Inter", sans-serif; font-size: 0.92rem; }
.cin input::placeholder { color: #6b7ba0; }
.cin input:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
.cin button { width: 44px; border: none; border-radius: 10px; background: linear-gradient(120deg,#0ea5e9,#7c3aed); color: #fff; font-size: 1rem; cursor: pointer; }
.cchips { display: flex; flex-wrap: wrap; gap: 0.4rem; width: 100%; }
.cchip { font-size: 0.82rem; color: #cdd8ea; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 0.4rem 0.75rem; cursor: pointer; transition: all 0.18s; }
.cchip:hover { color: #fff; border-color: #38bdf8; background: rgba(56,189,248,0.14); }
.cwa { text-decoration: none; }

@media (max-width: 620px) {
  .chat { height: 400px; }
  .wl-name { font-size: 1.4rem; }
}

/* ===================================================================
   PULIDO 2026 — aurora de fondo, grano, tilt 3D y line-draw del flujo
   =================================================================== */

/* --- Aurora ambiental (profundidad detrás de la red de nodos) --- */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(80px); will-change: transform; opacity: 0.34;
}
.aurora .a1 { width: 52vw; height: 52vw; top: -14vw; left: -10vw;  background: radial-gradient(circle, #22d3ee 0%, transparent 68%); animation: aur1 28s ease-in-out infinite; }
.aurora .a2 { width: 46vw; height: 46vw; top: 4vw;   right: -14vw; background: radial-gradient(circle, #7c3aed 0%, transparent 68%); animation: aur2 34s ease-in-out infinite; opacity: 0.30; }
.aurora .a3 { width: 44vw; height: 44vw; bottom: -18vw; left: 26vw; background: radial-gradient(circle, #f97316 0%, transparent 70%); animation: aur3 31s ease-in-out infinite; opacity: 0.22; }
@keyframes aur1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw,4vw) scale(1.12); } }
@keyframes aur2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw,5vw) scale(1.08); } }
@keyframes aur3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,-6vw) scale(1.15); } }

/* --- Grano sutil (textura de revista, casi imperceptible) --- */
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Tilt 3D en tarjetas .spot (JS aplica el transform inline) --- */
.spot:hover { z-index: 5; }

/* --- Line-draw del flujo Sensor → Cierre --- */
.flow-glow { fill: none; stroke: url(#flowgrad); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 820; stroke-dashoffset: 820; filter: drop-shadow(0 0 5px rgba(125,211,252,0.6)); }
.flow.drawn .flow-glow { animation: flowdraw 1.7s cubic-bezier(.4,.1,.2,1) forwards; }
@keyframes flowdraw { to { stroke-dashoffset: 0; } }
.flow-nodes g { opacity: 0; }
.flow.drawn .flow-nodes g { animation: nodefade 0.5s ease forwards; }
.flow.drawn .flow-nodes g:nth-of-type(1) { animation-delay: 0.15s; }
.flow.drawn .flow-nodes g:nth-of-type(2) { animation-delay: 0.42s; }
.flow.drawn .flow-nodes g:nth-of-type(3) { animation-delay: 0.69s; }
.flow.drawn .flow-nodes g:nth-of-type(4) { animation-delay: 0.96s; }
.flow.drawn .flow-nodes g:nth-of-type(5) { animation-delay: 1.23s; }
.flow.drawn .flow-nodes g:nth-of-type(6) { animation-delay: 1.5s; }
@keyframes nodefade { from { opacity: 0; } to { opacity: 1; } }

/* --- INTRO "wow": ∞ → 8 → Lumin8 → escaneo → agujero negro --- */
.intro {
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  display: grid; place-items: center; transform-origin: 50% 50%;
  background: radial-gradient(125% 125% at 50% 42%, #0b1430 0%, #070c1c 58%, #04060f 100%);
  transition: transform .95s cubic-bezier(.55,.06,.9,.3), opacity .95s ease, filter .95s ease, border-radius .95s ease;
  animation: introIn .5s ease both;
}
@keyframes introIn { from { opacity: 0; } to { opacity: 1; } }
/* salida = colapso tipo agujero negro que abre paso a la página */
.intro.blackhole { transform: scale(.02) rotate(-45deg); border-radius: 50%; opacity: 0; filter: blur(7px); pointer-events: none; }
.intro #intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* wordmark: el 8 se enfoca (blur→nítido) y "Lumin" se despliega desde el 8 a la izquierda */
.intro-word {
  position: relative; z-index: 3; display: flex; align-items: baseline; line-height: 1;
  font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700;
  font-size: clamp(2.8rem, 11vw, 7.4rem); letter-spacing: -0.03em;
  opacity: 0; filter: blur(16px); transform: scale(.92);
  transition: opacity .55s ease, filter .75s ease, transform .75s cubic-bezier(.2,.7,.2,1);
}
.intro-word.show { opacity: 1; filter: blur(0); transform: none; }
.lw-lumin { color: #eaf2ff; clip-path: inset(0 0 0 100%); transition: clip-path .85s cubic-bezier(.4,0,.2,1); }
.intro-word.unfurl .lw-lumin { clip-path: inset(0 0 0 0); }
.lw-8 { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(124,58,237,.5)); }
/* al aparecer, el 8 sólido llega MUY luminoso y se asienta a normal */
.intro-word.show .lw-8 { animation: lw8pop .9s ease both; }
@keyframes lw8pop {
  0%   { filter: drop-shadow(0 0 42px rgba(190,225,255,.95)) brightness(1.9); }
  100% { filter: drop-shadow(0 0 18px rgba(124,58,237,.5)) brightness(1); }
}

/* escaneo de bienvenida (checklist técnico) + barra de progreso */
.intro-loader { position: absolute; left: 0; right: 0; bottom: 7vh; z-index: 3; padding: 0 1rem;
  display: flex; flex-direction: column; align-items: center; gap: .65rem;
  opacity: 0; transition: opacity .4s ease; }
.intro-loader.show { opacity: 1; }
.il-scan { font-family: "Space Mono", monospace; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: #7dd3fc; }
.il-lines { display: flex; flex-direction: column; gap: .32rem; min-height: 3.6rem; width: min(340px, 82vw); }
.il-line { display: grid; grid-template-columns: 1.2rem 1fr auto; align-items: center; gap: .5rem;
  font-family: "Space Mono", monospace; color: #9fb2d4;
  opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; }
.il-line.in { opacity: 1; transform: none; }
.il-line u { color: #22c55e; text-decoration: none; font-style: normal; }
.il-line span { text-transform: uppercase; letter-spacing: .09em; font-size: .66rem; }
.il-line b { color: #fff; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .84rem; justify-self: end; }
.il-bar { width: min(280px, 70vw); height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: .3rem; }
.il-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 3px; transition: width .35s ease; }
.il-tag { margin-top: .4rem; color: #cfe0ff; font-size: .95rem; opacity: 0; transition: opacity .6s ease; }
.il-tag.in { opacity: 1; }
.il-tag b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.intro-skip { position: absolute; bottom: 1.4rem; right: 1.6rem; z-index: 4; background: transparent;
  border: 0; color: #5f7196; font-size: .82rem; letter-spacing: .1em; cursor: pointer;
  font-family: "Space Mono", monospace; transition: color .2s; }
.intro-skip:hover { color: #cfe0ff; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .dash-chart .stroke { stroke-dashoffset: 0; }
  .dash-bars span { transform: scaleY(1); }
  .wl-chip { opacity: 1; transform: none; }
  .flow-glow { stroke-dashoffset: 0 !important; }
  .flow-nodes g { opacity: 1 !important; }
}
