/* Progmax — estilo "centro de operaciones": azul noche, vidrio, acentos cian y violeta */
:root {
  --bg: #060c18;
  --bg-2: #0a1426;
  --bg-3: #0f1c33;
  --panel: rgba(22, 44, 78, .42);
  --panel-2: rgba(30, 58, 100, .5);
  --line: rgba(120, 180, 255, .14);
  --line-strong: rgba(130, 200, 255, .28);
  --fg: #eaf3ff;
  --muted: #9db0cc;
  --dim: #6c7f9c;

  --cyan: #3fd8f5;
  --blue: #4a8dff;
  --violet: #8b6cff;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --wa: #25d366;

  --grad: linear-gradient(100deg, #3fd8f5 0%, #4a8dff 50%, #8b6cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(63, 216, 245, .18), rgba(139, 108, 255, .18));

  --f-brand: "Orbitron", "Sora", system-ui, sans-serif;
  --f-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r: 16px;
  --r-lg: 24px;
  --wrap: 1240px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-family: var(--f-head); }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

/* Fondo: azul noche, brillos suaves y retícula */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 80% at 50% -10%, #10264a 0%, var(--bg) 55%), var(--bg);
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120, 180, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 180, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 80%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.g1 { width: 46vw; height: 46vw; top: -18vw; right: -10vw; background: rgba(63, 216, 245, .22); }
.g2 { width: 40vw; height: 40vw; top: 40vh; left: -16vw; background: rgba(139, 108, 255, .2); }
.g3 { width: 36vw; height: 36vw; bottom: -14vw; right: 10vw; background: rgba(74, 141, 255, .16); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.5em;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--f-body); font-size: .98rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s, background-color .2s, filter .2s;
}
.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 30px -10px rgba(74, 141, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 40px -12px rgba(139, 108, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { color: var(--fg); background: var(--panel); border-color: var(--line-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--cyan); background: var(--panel-2); }
.btn-wa { color: #fff; background: rgba(37, 211, 102, .14); border-color: rgba(37, 211, 102, .55); }
.btn-wa:hover { background: rgba(37, 211, 102, .24); transform: translateY(-2px); }
.btn-sm { padding: .65em 1.15em; font-size: .9rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 12, 24, .72);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav { position: relative; display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-tile {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(var(--bg-3), var(--bg-3)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 24px -4px rgba(63, 216, 245, .5);
}
.brand-text { display: grid; line-height: 1.05; }
.brand-text b { font-family: var(--f-brand); font-size: 1.12rem; font-weight: 800; letter-spacing: .14em; background: linear-gradient(180deg, #fff, #b8d8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: .62rem; font-weight: 700; letter-spacing: .3em; color: var(--cyan); margin-top: 4px; }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: .95rem; font-weight: 600; text-decoration: none; transition: color .2s, background-color .2s; }
.menu a:hover { color: var(--fg); background: var(--panel); }
.menu .menu-wa { display: none; }
.menu-toggle {
  display: none; width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-toggle span:not(.sr-only) { width: 18px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  .menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; margin: 0;
    padding: 12px 16px 18px;
    background: rgba(8, 16, 32, .97); border-bottom: 1px solid var(--line);
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; font-size: 1.05rem; }
  .menu .menu-wa { display: block; color: var(--wa); }
}
@media (max-width: 420px) { .nav-cta { display: none; } .menu-toggle { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { overflow-x: clip; padding-block: clamp(44px, 7vw, 100px) clamp(60px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 5vw, 70px); align-items: center; }
.hero h1 {
  margin: 22px 0 22px;
  font-weight: 800;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.lead { max-width: 54ch; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.hero-stats li { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 2px; }
.hero-stats b { font-family: var(--f-brand); font-size: 1.5rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: .8rem; color: var(--muted); line-height: 1.35; }

.hero-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(63, 216, 245, .25); }
.o1 { width: 112%; aspect-ratio: 1; animation: spin 40s linear infinite; border-style: dashed; border-color: rgba(120, 180, 255, .18); }
.o2 { width: 88%; aspect-ratio: 1; animation: spin 18s linear infinite reverse; box-shadow: 0 0 60px -20px rgba(63, 216, 245, .4) inset; }
.o2 i { position: absolute; top: 8%; left: 14%; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px 4px rgba(63, 216, 245, .7); }
@keyframes spin { to { transform: rotate(360deg); } }

.dash {
  position: relative; width: min(100%, 520px);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 36, 66, .92), rgba(10, 20, 40, .92));
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 80px -30px rgba(74, 141, 255, .6);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
}
.dash::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); }
.dash-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.app-dots { display: inline-flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; }
.app-dots i:nth-child(1) { background: var(--red); }
.app-dots i:nth-child(2) { background: var(--amber); }
.app-dots i:nth-child(3) { background: var(--green); }
.dash-title { font-family: var(--f-head); font-weight: 600; font-size: .85rem; }
.live-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--green); letter-spacing: .08em; text-transform: uppercase; }
.live-tag i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 2s infinite; }
.dash-body { display: grid; grid-template-columns: 46px minmax(0, 1fr); }
.dash-side { display: grid; align-content: start; gap: 10px; padding: 14px 10px; border-right: 1px solid var(--line); }
.dash-side i { height: 26px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.dash-side i.on { background: var(--grad-soft); border-color: rgba(63, 216, 245, .5); box-shadow: 0 0 14px -4px var(--cyan); }
.dash-main { padding: 14px; display: grid; gap: 12px; min-width: 0; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-kpi { padding: 10px 11px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 1px; min-width: 0; }
.mini-kpi span { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.mini-kpi b { font-family: var(--f-head); font-size: 1.2rem; font-weight: 700; }
.mini-kpi em { font-style: normal; font-size: .7rem; font-weight: 700; }
.mini-kpi.c-cyan em { color: var(--cyan); } .mini-kpi.c-green em { color: var(--green); } .mini-kpi.c-violet em { color: var(--violet); }
.dash-chart { height: 110px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); padding: 8px 0 0; overflow: hidden; }
.dash-chart svg { width: 100%; height: 100%; display: block; }
.dash-chart .line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash-rows { display: grid; gap: 6px; }
.dash-rows div { display: flex; align-items: center; gap: 9px; font-size: .78rem; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.dash-rows small { margin-left: auto; color: var(--dim); font-size: .7rem; padding-left: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.warn { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.dot.info { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(12, 24, 46, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .85);
  font-size: .85rem;
  animation: float 7s ease-in-out infinite;
}
.fc-ai { top: 2%; left: -2%; }
.fc-ok { bottom: 3%; right: -2%; animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ai-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: #fff; flex: none; box-shadow: 0 0 20px -2px rgba(139, 108, 255, .7); }
.fc-check { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #06261b; background: var(--green); box-shadow: 0 0 20px rgba(52, 211, 153, .5); flex: none; }
.fc-title { font-weight: 700; }
.fc-sub { color: var(--muted); font-size: .78rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { min-height: 0; padding: 40px 0 10px; }
  .dash { transform: none; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: minmax(0, 1fr); }
  .hero-stats li { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
  .fc-ai { top: 0; left: 0; }
  .fc-ok { bottom: -6px; right: 0; }
  .float-card { padding: 9px 12px; font-size: .78rem; }
  .dash-rows small { display: none; }
  .o1 { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(10, 20, 38, .65); overflow: hidden; padding-block: 18px; }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--f-head); font-size: clamp(.95rem, 1.8vw, 1.2rem); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.marquee li::after { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(76px, 10vw, 130px); }
.section-alt { background: linear-gradient(180deg, rgba(10, 20, 38, 0), rgba(10, 20, 38, .8) 12%, rgba(10, 20, 38, .8) 88%, rgba(10, 20, 38, 0)); }
.section-head { display: grid; gap: 16px; max-width: 800px; margin-bottom: clamp(38px, 5vw, 60px); justify-items: start; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section h2 { font-weight: 700; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -.03em; }
.section-head > p:not(.eyebrow) { color: var(--muted); max-width: 62ch; }

/* Paleta por tarjeta */
.c-cyan { --c: var(--cyan); --c-rgb: 63, 216, 245; }
.c-violet { --c: var(--violet); --c-rgb: 139, 108, 255; }
.c-green { --c: var(--green); --c-rgb: 52, 211, 153; }
.c-blue { --c: var(--blue); --c-rgb: 74, 141, 255; }
.c-amber { --c: var(--amber); --c-rgb: 251, 191, 36; }
.c-red { --c: var(--red); --c-rgb: 248, 113, 113; }

/* ---------- Antes / después ---------- */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: center; }
.compare-col { padding: clamp(24px, 3vw, 34px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); height: 100%; }
.compare-col.after { background: linear-gradient(var(--bg-3), var(--bg-3)) padding-box, var(--grad) border-box; border-color: transparent; box-shadow: 0 30px 80px -40px rgba(74, 141, 255, .7); }
.compare-tag { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.before .compare-tag { color: var(--red); background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); }
.after .compare-tag { color: var(--green); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35); }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 1rem; }
.compare li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.before li { color: var(--muted); }
.before li::before { background-color: rgba(248, 113, 113, .15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke='%23f87171' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.after li::before { background-color: rgba(52, 211, 153, .15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17 19 7' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.compare-arrow { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); border: 1px solid var(--line-strong); }
@media (max-width: 820px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare-arrow { justify-self: center; transform: rotate(90deg); }
}

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service {
  position: relative; display: grid; gap: 14px; align-content: start;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(var(--c-rgb), .09), rgba(15, 28, 51, .55) 45%);
  border: 1px solid rgba(var(--c-rgb), .2);
  transition: transform .3s ease, border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.service::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: .6; }
.service:hover { transform: translateY(-5px); border-color: rgba(var(--c-rgb), .5); box-shadow: 0 30px 70px -40px rgba(var(--c-rgb), .8); }
.icon-tile {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 16px;
  color: var(--c);
  background: radial-gradient(circle at 30% 25%, rgba(var(--c-rgb), .35), rgba(var(--c-rgb), .08) 70%);
  border: 1px solid rgba(var(--c-rgb), .45);
  box-shadow: 0 0 26px -6px rgba(var(--c-rgb), .7), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.icon-tile svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.2rem; font-weight: 700; }
.service p { color: var(--muted); font-size: .98rem; }
.tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); background: rgba(255, 255, 255, .02); }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Proyectos ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .3s, transform .3s; }
.project:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.project-shot { position: relative; padding: 18px; display: grid; gap: 12px; align-content: center; background: radial-gradient(120% 90% at 0% 0%, rgba(63, 216, 245, .16), transparent 60%), radial-gradient(120% 90% at 100% 100%, rgba(139, 108, 255, .18), transparent 60%), var(--bg-2); border-right: 1px solid var(--line); min-height: 220px; }
.project-body { padding: clamp(22px, 2.6vw, 28px); display: grid; gap: 12px; align-content: start; }
.project-body h3 { font-size: 1.25rem; font-weight: 700; }
.project-body p { color: var(--muted); font-size: .95rem; }
.chip { display: inline-flex; justify-self: start; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--cyan)); background: rgba(var(--c-rgb, 63, 216, 245), .1); border: 1px solid rgba(var(--c-rgb, 63, 216, 245), .35); }
.mini-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--fg); }
.mini-list li { display: inline-flex; align-items: center; gap: 7px; }
.mini-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.ps-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ps-kpis i { font-style: normal; display: grid; padding: 8px; border-radius: 10px; font-size: .56rem; overflow: hidden; min-width: 0; color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.ps-kpis b { font-family: var(--f-head); font-size: 1.05rem; color: var(--fg); letter-spacing: 0; }
.k-green { border-color: rgba(52, 211, 153, .4) !important; } .k-green b { color: var(--green) !important; }
.k-amber { border-color: rgba(251, 191, 36, .4) !important; } .k-amber b { color: var(--amber) !important; }
.k-red { border-color: rgba(248, 113, 113, .4) !important; } .k-red b { color: var(--red) !important; }
.k-cyan { border-color: rgba(63, 216, 245, .4) !important; } .k-cyan b { color: var(--cyan) !important; }
.k-violet { border-color: rgba(139, 108, 255, .4) !important; } .k-violet b { color: var(--violet) !important; }
.ps-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.ps-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--cyan), rgba(63, 216, 245, .1)); }
.ps-bars i:nth-child(4), .ps-bars i:nth-child(6) { background: linear-gradient(180deg, var(--violet), rgba(139, 108, 255, .1)); }
.ps-table { display: grid; gap: 6px; }
.ps-table i { height: 18px; border-radius: 6px; background: linear-gradient(90deg, rgba(63, 216, 245, .25) 0 22%, rgba(255, 255, 255, .04) 22% 70%, rgba(52, 211, 153, .3) 70% 82%, rgba(255, 255, 255, .04) 82%); border: 1px solid var(--line); }
.ps-bot { width: 70px; height: 52px; justify-self: center; border-radius: 22px; background: linear-gradient(180deg, #f2f7ff, #b9c8de); position: relative; box-shadow: 0 0 0 6px rgba(63, 216, 245, .12), 0 0 40px rgba(63, 216, 245, .45); }
.ps-bot span { position: absolute; inset: 10px 9px; border-radius: 14px; background: #0b1426; }
.ps-bot span::before, .ps-bot span::after { content: ""; position: absolute; top: 12px; width: 12px; height: 6px; border: 3px solid var(--cyan); border-bottom: 0; border-radius: 10px 10px 0 0; filter: drop-shadow(0 0 4px var(--cyan)); }
.ps-bot span::before { left: 10px; } .ps-bot span::after { right: 10px; }
.ps-chat { display: grid; gap: 6px; }
.ps-chat i { height: 16px; border-radius: 8px; width: 70%; }
.ps-chat .u { justify-self: end; background: rgba(255, 255, 255, .08); width: 55%; }
.ps-chat .u.s { width: 35%; }
.ps-chat .b { background: linear-gradient(90deg, rgba(63, 216, 245, .35), rgba(139, 108, 255, .3)); }
.ps-chat .b.l { width: 82%; }
.ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ps-grid i { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(160deg, rgba(251, 191, 36, .25), rgba(255, 255, 255, .03)); border: 1px solid var(--line); }
.ps-grid i:nth-child(even) { background: linear-gradient(160deg, rgba(139, 108, 255, .28), rgba(255, 255, 255, .03)); }
.ps-ticket { display: grid; gap: 5px; padding: 8px; border-radius: 10px; border: 1px dashed var(--line-strong); }
.ps-ticket b { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.ps-ticket b:last-child { height: 12px; background: var(--grad); width: 60%; }
@media (max-width: 1100px) { .projects { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .project { grid-template-columns: minmax(0, 1fr); }
  .project-shot { border-right: 0; border-bottom: 1px solid var(--line); min-height: 180px; }
}

/* ---------- Demos ---------- */
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.demo-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: transform .3s ease, border-color .3s, box-shadow .3s; }
.demo-card:hover { transform: translateY(-5px); border-color: rgba(var(--c-rgb), .5); box-shadow: 0 30px 70px -40px rgba(var(--c-rgb), .9); }
.demo-preview { position: relative; aspect-ratio: 16 / 9; padding: 18px; background: radial-gradient(90% 120% at 100% 0%, rgba(var(--c-rgb), .22), transparent 60%), radial-gradient(80% 120% at 0% 100%, rgba(74, 141, 255, .14), transparent 60%), var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.demo-preview .play-badge { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 0 24px rgba(74, 141, 255, .7); transition: transform .3s; }
.demo-card:hover .play-badge { transform: scale(1.12); }
.demo-body { display: grid; gap: 12px; align-content: start; padding: 22px 22px 24px; }
.demo-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; color: var(--green); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.demo-body h3 { font-size: 1.3rem; font-weight: 700; }
.demo-body h3 small { display: block; margin-top: 3px; font-family: var(--f-body); font-size: .92rem; font-weight: 600; color: var(--c); }
.demo-body > p { color: var(--muted); font-size: .95rem; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 1100px) { .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }

/* Mini vistas previas */
.mini { position: relative; z-index: 1; height: 100%; display: grid; gap: 7px; }
.mini-rooms { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; }
.mini-rooms i { border-radius: 7px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); }
.mini-rooms i.o { background: rgba(63, 216, 245, .28); border-color: rgba(63, 216, 245, .6); }
.mini-rooms i.l { background: rgba(251, 191, 36, .22); border-color: rgba(251, 191, 36, .55); }
.mini-rooms i.m { background: rgba(248, 113, 113, .22); border-color: rgba(248, 113, 113, .5); }
.mini-rooms i.f { background: rgba(52, 211, 153, .2); border-color: rgba(52, 211, 153, .5); }
.mini-pos { grid-template-columns: 1.4fr 1fr; }
.mini-pos .col { display: grid; gap: 7px; align-content: start; }
.mini-pos .row { height: 18px; border-radius: 6px; background: rgba(255, 255, 255, .05); position: relative; overflow: hidden; }
.mini-pos .row::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, rgba(52, 211, 153, .5), rgba(52, 211, 153, .08)); }
.mini-pos .row.low::after { background: linear-gradient(90deg, rgba(248, 113, 113, .6), rgba(248, 113, 113, .1)); }
.mini-pos .ticket { border-radius: 10px; border: 1px dashed var(--line-strong); padding: 10px; display: grid; gap: 6px; align-content: start; }
.mini-pos .ticket b { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.mini-pos .ticket b:last-child { height: 14px; background: var(--grad); margin-top: 6px; }
.mini-cal { grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr; }
.mini-cal i { border-radius: 6px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.mini-cal i.b { background: linear-gradient(135deg, rgba(139, 108, 255, .55), rgba(74, 141, 255, .35)); border-color: rgba(139, 108, 255, .6); }
.mini-chat { align-content: end; }
.mini-chat p { max-width: 78%; padding: 7px 11px; border-radius: 12px; font-size: .78rem; line-height: 1.35; }
.mini-chat .u { justify-self: end; background: rgba(255, 255, 255, .08); }
.mini-chat .b { background: linear-gradient(120deg, rgba(63, 216, 245, .25), rgba(139, 108, 255, .22)); border: 1px solid rgba(63, 216, 245, .3); }
.mini-fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; }
.mini-fleet i { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-style: normal; font-size: .7rem; color: var(--muted); }
.mini-fleet i::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.mini-fleet i.w::before { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.mini-fleet i.r::before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.mini-store { grid-template-columns: 1fr 1fr 1fr; }
.mini-store i { border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(63, 216, 245, .2), rgba(255, 255, 255, .02)); }
.mini-store i:nth-child(3n+2) { background: linear-gradient(160deg, rgba(139, 108, 255, .3), rgba(255, 255, 255, .02)); }
.mini-store i:nth-child(3n) { background: linear-gradient(160deg, rgba(52, 211, 153, .22), rgba(255, 255, 255, .02)); }

/* ---------- Planes ---------- */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.level { position: relative; display: grid; grid-template-rows: auto auto auto auto 1fr auto auto; gap: 12px; padding: clamp(26px, 3vw, 34px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.level.featured { border-color: transparent; background: linear-gradient(var(--bg-3), var(--bg-3)) padding-box, var(--grad) border-box; box-shadow: 0 30px 90px -40px rgba(74, 141, 255, .8); }
.badge { position: absolute; top: -13px; right: 24px; padding: 5px 13px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 8px 20px -6px rgba(139, 108, 255, .8); }
.meter { display: flex; gap: 5px; }
.meter i { width: 30px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.meter i.on { background: var(--grad); box-shadow: 0 0 10px rgba(63, 216, 245, .5); }
.level-tier { font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.level h3 { font-size: 1.7rem; font-weight: 700; }
.level-for { color: var(--muted); font-size: .97rem; }
.checks { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; align-content: start; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: .97rem; }
.checks li::before { content: ""; width: 14px; height: 8px; margin-top: 7px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.level-time { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.level-time b { color: var(--fg); font-size: .92rem; }
@media (max-width: 920px) { .levels { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps li { display: grid; gap: 10px; align-content: start; padding: 24px 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--grad); opacity: .7; }
.step-n { font-family: var(--f-brand); font-size: 2rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 1.08rem; font-weight: 700; }
.steps p { color: var(--muted); font-size: .94rem; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.tech { margin-top: 48px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.tech-label { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.tech ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tech li { padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel); font-weight: 600; font-size: .9rem; color: var(--fg); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 900px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); transition: border-color .2s; }
.faq details[open] { border-color: rgba(63, 216, 245, .4); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-family: var(--f-head); font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--cyan); font-size: 1.1rem; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); max-width: 70ch; }

/* ---------- Contacto ---------- */
.contact-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); padding: clamp(24px, 4vw, 52px); border-radius: 30px; border: 1px solid transparent; background: linear-gradient(160deg, rgba(16, 34, 64, .95), rgba(10, 20, 40, .95)) padding-box, linear-gradient(140deg, rgba(63, 216, 245, .6), rgba(255, 255, 255, .05) 40%, rgba(139, 108, 255, .6)) border-box; box-shadow: 0 50px 120px -60px rgba(74, 141, 255, .9); }
.contact-info { display: grid; gap: 18px; align-content: start; justify-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.contact-lead { color: var(--muted); max-width: 46ch; }
.wa-big { display: inline-flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 18px; text-decoration: none; background: rgba(37, 211, 102, .12); border: 1px solid rgba(37, 211, 102, .5); transition: transform .2s, background-color .2s; }
.wa-big:hover { transform: translateY(-2px); background: rgba(37, 211, 102, .2); }
.wa-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--wa); color: #fff; box-shadow: 0 0 24px rgba(37, 211, 102, .55); }
.wa-big small { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.wa-big b { font-family: var(--f-head); font-size: 1.35rem; letter-spacing: .01em; }
.contact-list { margin: 6px 0 0; display: grid; width: 100%; max-width: 440px; }
.contact-list > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--cyan); }
.copy-btn { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: .78rem; color: var(--muted); cursor: pointer; }
.copy-btn:hover { color: var(--fg); border-color: var(--cyan); }
.form-card { padding: clamp(20px, 3vw, 30px); border-radius: var(--r-lg); background: rgba(6, 12, 24, .55); border: 1px solid var(--line); }
#quote-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-size: .86rem; font-weight: 700; color: var(--muted); padding: 0; }
fieldset.field legend { margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(10, 20, 40, .8);
  color: var(--fg); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
select option { background: var(--bg-2); }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(63, 216, 245, .18); }
textarea { resize: vertical; min-height: 110px; }
.chip-select, .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-select label, .seg label { position: relative; cursor: pointer; }
.chip-select input, .seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-select span, .seg span { display: inline-block; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: .9rem; font-weight: 600; color: var(--muted); transition: all .2s; }
.chip-select input:checked + span { color: var(--fg); border-color: var(--cyan); background: rgba(63, 216, 245, .14); box-shadow: 0 0 14px -4px rgba(63, 216, 245, .6); }
.seg input:checked + span { color: #fff; border-color: transparent; background: var(--grad); }
.chip-select input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form-error { color: var(--red); font-size: .9rem; }
.form-note { font-size: .82rem; color: var(--dim); text-align: center; margin-top: -6px; }
@media (max-width: 920px) { .contact-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } .contact-card { border-radius: 22px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px 28px; background: rgba(4, 8, 16, .75); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 28px 48px; align-items: start; }
.footer-brand { display: grid; gap: 14px; max-width: 380px; }
.footer-brand p { color: var(--muted); font-size: .92rem; }
.footer-nav, .footer-contact { display: grid; gap: 8px; }
.footer-nav a, .footer-contact a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-copy { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; z-index: 40;
  right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; display: grid; place-items: center;
  border-radius: 50%; background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .8);
  transition: transform .2s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.4s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
body.modal-open .wa-float { display: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 14, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modal-panel {
  position: relative; width: min(1140px, 100%); max-height: 100%;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: var(--r-lg); border: 1px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(150deg, rgba(63, 216, 245, .6), rgba(255, 255, 255, .05) 35%, rgba(139, 108, 255, .6)) border-box;
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, .9);
  overflow: hidden; animation: modal-in .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes modal-in { from { transform: translateY(18px) scale(.98); opacity: .4; } }
.modal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 16px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.modal-head > div:first-child { min-width: 0; margin-right: auto; }
.modal-head h3 { font-size: 1.35rem; font-weight: 700; margin-top: 2px; }
.modal-tabs { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.modal-tabs button { padding: 7px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: .9rem; font-weight: 600; cursor: pointer; }
.modal-tabs button[aria-selected="true"] { background: var(--grad); color: #fff; }
.modal-close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel); cursor: pointer; }
.modal-close:hover { border-color: var(--red); }
.modal-body { overflow: auto; padding: 20px 24px; overscroll-behavior: contain; }
.modal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 24px; border-top: 1px solid var(--line); background: rgba(6, 12, 24, .6); font-size: .92rem; color: var(--muted); }
@media (max-width: 600px) {
  .modal { padding: 0; }
  .modal-panel { border-radius: 0; height: 100%; }
  .modal-head { padding: max(14px, env(safe-area-inset-top, 0px)) 16px 12px; }
  .modal-head > div:first-child { flex: 1 1 0; }
  .modal-tabs { order: 3; width: 100%; }
  .modal-tabs button { flex: 1; }
  .modal-body { padding: 14px; }
  .modal-foot { padding: 10px 14px max(10px, env(safe-area-inset-bottom, 0px)); }
  .modal-foot span { display: none; }
  .modal-foot .btn { width: 100%; }
}

/* Video */
.video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-empty { display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 24px; background: radial-gradient(60% 80% at 50% 40%, rgba(63, 216, 245, .16), transparent 70%), var(--bg-3); }
.video-empty .play { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 0 40px rgba(74, 141, 255, .55); }
.video-empty p { color: var(--muted); max-width: 44ch; }
.video-empty strong { color: var(--fg); font-weight: 700; display: block; margin-bottom: 4px; font-size: 1.05rem; }
.video-chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Apps de demostración ---------- */
.demo-app { display: grid; grid-template-columns: 62px minmax(0, 1fr); border-radius: var(--r); border: 1px solid var(--line-strong); background: linear-gradient(180deg, #0c1a31, #08121f); overflow: hidden; font-size: .95rem; }
.app-rail { display: grid; align-content: start; gap: 10px; padding: 14px 10px; background: rgba(4, 10, 20, .6); border-right: 1px solid var(--line); }
.app-rail i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); }
.app-rail i.on { color: var(--cyan); border-color: rgba(63, 216, 245, .55); background: rgba(63, 216, 245, .12); box-shadow: 0 0 16px -4px var(--cyan); }
.app-rail svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-wrap { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.app-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.app-bar b { font-family: var(--f-head); font-size: .95rem; font-weight: 700; }
.app-crumb { color: var(--muted); font-size: .85rem; }
.app-sample { margin-left: auto; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); }
.app-main { padding: 16px; display: grid; gap: 14px; min-width: 0; }
.app-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 800px) { .app-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .demo-app { grid-template-columns: minmax(0, 1fr); } .app-rail { display: none; } }
.app-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(22, 44, 78, .32); display: grid; gap: 12px; min-width: 0; }
.app-card h4 { font-size: .74rem; font-family: var(--f-body); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demo-hint { font-size: .84rem; color: var(--muted); padding: 8px 11px; border-radius: 10px; background: rgba(63, 216, 245, .06); border: 1px dashed rgba(63, 216, 245, .3); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 11px; align-items: center; border: 1px solid rgba(var(--c-rgb), .3); border-radius: 14px; padding: 12px; background: linear-gradient(150deg, rgba(var(--c-rgb), .14), rgba(22, 44, 78, .25) 60%); min-width: 0; }
.kpi .k-ico { grid-row: span 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--c); background: rgba(var(--c-rgb), .14); border: 1px solid rgba(var(--c-rgb), .4); }
.kpi .k-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kpi span { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi b { font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; transition: color .3s; }
.kpi b.bump { color: var(--c); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .kpi { grid-template-columns: minmax(0, 1fr); } .kpi .k-ico { display: none; } }
.app-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 11px; border: 0; background: var(--grad); color: #fff; font-weight: 700; cursor: pointer; transition: filter .2s, transform .2s; }
.app-btn:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.app-btn:disabled { opacity: .4; cursor: not-allowed; }
.app-form { display: grid; gap: 10px; }
.app-form label { display: grid; gap: 5px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.app-form input, .app-form select { padding: 9px 11px; font-size: .95rem; border-radius: 10px; }
.app-total { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.app-total b { font-family: var(--f-head); font-size: 1.2rem; color: var(--fg); font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 90px; display: block; }
.spark .ln { fill: none; stroke: url(#g-brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-legend { display: flex; justify-content: space-between; font-size: .72rem; color: var(--dim); }

.app-log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 190px; overflow: auto; }
.app-log li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(63, 216, 245, .07); border-left: 3px solid var(--cyan); font-size: .86rem; animation: log-in .45s ease; }
.app-log li.warn { background: rgba(251, 191, 36, .08); border-left-color: var(--amber); }
.app-log li.bad { background: rgba(248, 113, 113, .09); border-left-color: var(--red); }
.app-log li.ok { background: rgba(52, 211, 153, .08); border-left-color: var(--green); }
.app-log time { font-size: .74rem; font-weight: 700; color: var(--muted); padding-top: 1px; font-variant-numeric: tabular-nums; }
@keyframes log-in { from { transform: translateX(-8px); opacity: 0; } }
.toast { position: absolute; right: 16px; bottom: 16px; z-index: 5; padding: 10px 14px; border-radius: 12px; background: rgba(8, 18, 34, .95); border: 1px solid rgba(52, 211, 153, .5); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8); font-size: .86rem; display: flex; gap: 9px; align-items: center; animation: toast 3s ease forwards; pointer-events: none; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.app-shell { position: relative; }

/* HotelCore */
.room-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.room { display: grid; gap: 2px; text-align: left; padding: 10px 11px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); cursor: pointer; transition: transform .15s, background-color .2s, border-color .2s, box-shadow .2s; min-width: 0; }
.room:hover { transform: translateY(-2px); }
.room b { font-family: var(--f-head); font-size: 1rem; font-weight: 700; }
.room span { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.room small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room.s-libre { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .08); } .room.s-libre span { color: var(--green); }
.room.s-ocupada { border-color: rgba(63, 216, 245, .55); background: rgba(63, 216, 245, .12); box-shadow: 0 0 16px -8px var(--cyan); } .room.s-ocupada span { color: var(--cyan); }
.room.s-limpieza { border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .09); } .room.s-limpieza span { color: var(--amber); }
.room.s-mant { border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .09); } .room.s-mant span { color: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .76rem; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
@media (max-width: 420px) { .room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* StockPro */
.prod-list { display: grid; gap: 6px; }
.prod { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.prod-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: .85rem; color: #fff; background: var(--grad-soft); border: 1px solid var(--line-strong); }
.prod-name { min-width: 0; }
.prod-name b { display: block; font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-name span { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.stock { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(52, 211, 153, .4); color: var(--green); white-space: nowrap; }
.stock.low { border-color: rgba(248, 113, 113, .5); color: var(--red); }
.add-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; font-size: 1.15rem; cursor: pointer; }
.add-btn:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); background: rgba(63, 216, 245, .1); }
.add-btn:disabled { opacity: .3; cursor: not-allowed; }
.cart-lines { display: grid; gap: 8px; min-height: 60px; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: .9rem; }
.cart-line span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.qty button { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; line-height: 1; }
.cart-empty { color: var(--dim); font-size: .88rem; }
.totals { display: grid; gap: 4px; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: .86rem; color: var(--muted); }
.totals div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.totals .grand { color: var(--fg); font-size: 1.05rem; font-weight: 700; margin-top: 4px; }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pay-methods label { position: relative; cursor: pointer; }
.pay-methods input { position: absolute; opacity: 0; inset: 0; }
.pay-methods span { display: block; text-align: center; padding: 7px 4px; border-radius: 9px; border: 1px solid var(--line-strong); font-size: .8rem; font-weight: 600; color: var(--muted); }
.pay-methods input:checked + span { color: var(--fg); border-color: var(--cyan); background: rgba(63, 216, 245, .12); }

/* AgendaPlus */
.cal-wrap { overflow-x: auto; }
.cal { border-collapse: separate; border-spacing: 5px; width: 100%; min-width: 440px; }
.cal th { font-size: .74rem; font-weight: 700; color: var(--muted); padding: 2px 4px 6px; text-align: center; }
.cal th:first-child { text-align: left; }
.cal td.h { font-size: .76rem; font-weight: 700; color: var(--muted); white-space: nowrap; padding-right: 4px; }
.slot { width: 100%; min-height: 34px; border-radius: 9px; border: 1px solid rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .06); font-size: .72rem; font-weight: 600; color: var(--green); cursor: pointer; padding: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot:hover { background: rgba(52, 211, 153, .16); }
.slot.taken { border-color: var(--line); background: rgba(255, 255, 255, .04); color: var(--dim); cursor: not-allowed; }
.slot.mine { border-color: rgba(139, 108, 255, .6); background: linear-gradient(135deg, rgba(139, 108, 255, .4), rgba(74, 141, 255, .3)); color: var(--fg); cursor: default; }
.slot.sel { border-color: var(--cyan); background: rgba(63, 216, 245, .22); color: var(--fg); box-shadow: 0 0 0 2px rgba(63, 216, 245, .25); }
.sel-info { font-size: .9rem; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-strong); color: var(--muted); }
.sel-info b { color: var(--fg); }

/* FlotaControl */
.fleet-list { display: grid; gap: 8px; }
.veh { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.veh-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: rgba(var(--c-rgb), .12); border: 1px solid rgba(var(--c-rgb), .4); }
.veh-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.veh-info { min-width: 0; }
.veh-info b { font-family: var(--f-head); font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
.veh-info p { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.veh-docs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.doc { font-size: .66rem; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(52, 211, 153, .4); color: var(--green); }
.doc.warn { border-color: rgba(251, 191, 36, .5); color: var(--amber); }
.doc.bad { border-color: rgba(248, 113, 113, .5); color: var(--red); }
.veh-state { font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; color: var(--c); background: rgba(var(--c-rgb), .12); border: 1px solid rgba(var(--c-rgb), .4); white-space: nowrap; }
.veh-actions { display: flex; gap: 6px; grid-column: 2 / -1; flex-wrap: wrap; }
.mini-btn { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: .76rem; font-weight: 700; cursor: pointer; }
.mini-btn:hover { color: var(--fg); border-color: var(--cyan); }
.fuel-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 10px; }
.fuel-bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.fuel-bars .bar { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.fuel-bars i { width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--cyan), rgba(63, 216, 245, .15)); transition: height .5s cubic-bezier(.2, .8, .2, 1); }
.fuel-bars div:last-child i { background: linear-gradient(180deg, var(--violet), rgba(139, 108, 255, .15)); }
.fuel-bars small { font-size: .66rem; color: var(--dim); font-weight: 700; }

/* Asistente IA */
.chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; height: min(560px, 64vh); min-height: 400px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, rgba(63, 216, 245, .12), rgba(139, 108, 255, .14)); }
.bot-face { width: 44px; height: 34px; border-radius: 14px; background: linear-gradient(180deg, #f2f7ff, #b9c8de); position: relative; flex: none; box-shadow: 0 0 0 4px rgba(63, 216, 245, .15), 0 0 24px rgba(63, 216, 245, .5); }
.bot-face::before { content: ""; position: absolute; inset: 6px 5px; border-radius: 10px; background: #0b1426; }
.bot-face::after { content: ""; position: absolute; top: 14px; left: 12px; width: 6px; height: 4px; border: 2px solid var(--cyan); border-bottom: 0; border-radius: 6px 6px 0 0; box-shadow: 13px 0 0 -0px transparent; filter: drop-shadow(0 0 3px var(--cyan)); }
.bot-face i { position: absolute; top: 14px; right: 12px; width: 6px; height: 4px; border: 2px solid var(--cyan); border-bottom: 0; border-radius: 6px 6px 0 0; z-index: 1; filter: drop-shadow(0 0 3px var(--cyan)); }
.chat-head b { font-family: var(--f-head); }
.chat-head p { font-size: .8rem; color: var(--green); display: flex; align-items: center; gap: 6px; }
.chat-head p::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.chat-log { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; font-size: .95rem; animation: log-in .3s ease; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: rgba(255, 255, 255, .08); border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: linear-gradient(120deg, rgba(63, 216, 245, .18), rgba(139, 108, 255, .16)); border: 1px solid rgba(63, 216, 245, .28); border-bottom-left-radius: 5px; }
.msg.card { padding: 12px 14px; display: grid; gap: 6px; }
.msg.card .row { display: flex; justify-content: space-between; gap: 14px; font-size: .86rem; }
.msg.card .row span { color: var(--muted); }
.msg.typing { display: inline-flex; gap: 4px; padding: 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); opacity: .4; animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; } }
.quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; }
.quick button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); font-size: .82rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.quick button:hover { color: var(--fg); border-color: var(--cyan); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }
.demo-app.solo { grid-template-columns: minmax(0, 1fr); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .veh { grid-template-columns: 40px minmax(0, 1fr); }
  .veh-ico { width: 40px; height: 40px; }
  .veh-state { grid-column: 2; justify-self: start; }
  .veh-info p { white-space: normal; }
}
