/* ═══════════════════════════════════════════════════════════════
   CLEO AI · CleverXIA — Dimensión 3D / HUD holográfico
   Todo el sitio es un espacio tridimensional. Los contenidos
   emergen como paneles holográficos al hacer scroll.
   Vanilla CSS + canvas. Sin librerías, sin CDN funcional.
   ═══════════════════════════════════════════════════════════════ */

/* Inter alojada en el propio sitio (variable, 100-900): no se pide nada a Google Fonts antes del consentimiento. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #05080f;
  --navy2:   #0a1120;
  --blue:    #2563eb;
  --blue2:   #3b82f6;
  --blue3:   #60a5fa;
  --blue4:   #93c5fd;
  --cyan:    #38bdf8;
  --cyan2:   #22d3ee;
  --violet:  #a78bfa;
  --text:    #e8f0ff;
  --muted:   #8aa0c2;
  --glass:   rgba(12, 20, 38, 0.62);
  --glass-bd:rgba(120, 190, 255, 0.18);
  --radius:  16px;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --mono:    ui-monospace, 'SFMono-Regular', 'Courier New', monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 120px 24px; position: relative; z-index: 2; }
img { max-width: 100%; display: block; }
svg { display: block; }

/* ── ESCENA 3D DE FONDO ─────────────────────────────────────── */
#scene {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%;
  pointer-events: none; display: block;
  background:
    radial-gradient(120% 80% at 50% 0%, #0b1834 0%, #05080f 55%, #03050a 100%);
}
.scene-fade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 45%, transparent 40%, rgba(3,5,10,0.55) 100%);
}

/* ── CAPA HUD ───────────────────────────────────────────────── */
#hud { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.hud-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(120,190,255,0.025) 0 1px, transparent 1px 3px);
  opacity: 0.6;
}
.hud-vignette {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 200px rgba(0,0,0,0.6), inset 0 0 60px rgba(0,0,0,0.4);
}
.hud-corner { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(56,189,248,0.4); }
.hud-corner.tl { top: 16px; left: 16px;  border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 16px; right: 16px; border-left: 0;  border-bottom: 0; }
.hud-corner.bl { bottom: 16px; left: 16px;  border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 16px; right: 16px; border-left: 0;  border-top: 0; }
.hud-readout {
  position: absolute; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--cyan); text-transform: uppercase;
  text-shadow: 0 0 8px rgba(56,189,248,0.6);
}
.hud-dim { color: rgba(138,160,194,0.7); }
.hud-top-left     { top: 24px; left: 56px; }
.hud-top-right    { top: 24px; right: 56px; }
.hud-bottom-left  { bottom: 24px; left: 56px; }
.hud-bottom-right { bottom: 24px; right: 56px; }
.hud-blink { animation: hudBlink 1.4s steps(1) infinite; }
@keyframes hudBlink { 50% { opacity: 0.15; } }

/* ── BARRA DE PROGRESO ──────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan2));
  z-index: 200; box-shadow: 0 0 14px rgba(56,189,248,0.9);
  transition: width 0.1s linear;
}

/* ── LOADER / BOOT ──────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 9999; background: #04060c;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo { width: 76px; height: 76px; object-fit: contain; margin: 0 auto; animation: logoPulse 1.2s ease-in-out infinite; }
.boot-lines { font-family: var(--mono); font-size: 12px; color: rgba(56,189,248,0.75); margin: 22px 0 4px; }
.boot-lines span { display: block; opacity: 0; line-height: 1.9; letter-spacing: 0.04em; animation: bootIn 0.4s ease forwards; }
.boot-lines span:nth-child(1) { animation-delay: 0.2s; }
.boot-lines span:nth-child(2) { animation-delay: 0.6s; }
.boot-lines span:nth-child(3) { animation-delay: 1.0s; }
.boot-lines span:nth-child(4) { animation-delay: 1.4s; }
.boot-lines span:nth-child(5) { animation-delay: 1.8s; color: #4ade80; }
@keyframes bootIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 0.85; transform: none; } }
.loader-bar { width: 220px; height: 3px; background: rgba(120,190,255,0.14); border-radius: 99px; margin: 16px auto 0; overflow: hidden; }
.loader-progress { height: 100%; background: var(--cyan); border-radius: 99px; box-shadow: 0 0 10px var(--cyan); animation: loadBar 1.1s ease forwards; }
@keyframes logoPulse { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 14px rgba(56,189,248,0.55)); } 50% { transform: scale(1.07); filter: drop-shadow(0 0 30px rgba(56,189,248,1)); } }
@keyframes loadBar { from { width: 0; } to { width: 100%; } }

/* ── NAVBAR ─────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(5,8,15,0.55);
  border-bottom: 1px solid rgba(120,190,255,0.1);
  transition: background 0.3s, border-color 0.3s;
}
#navbar.scrolled { background: rgba(5,8,15,0.85); border-color: rgba(120,190,255,0.18); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(56,189,248,0.5)); }
.nav-name { color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-ai { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: rgba(232,240,255,0.7); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transition: width 0.25s var(--ease); }
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { background: var(--blue); color: #fff !important; padding: 9px 20px; border-radius: 9px; box-shadow: 0 0 22px rgba(37,99,235,0.55); transition: transform 0.2s, box-shadow 0.2s, background 0.2s !important; }
.nav-cta:hover { background: var(--blue2) !important; transform: translateY(-1px); box-shadow: 0 0 30px rgba(56,189,248,0.7); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: 0; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BOTONES ────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #1d4ed8); color: #fff;
  padding: 14px 28px; border-radius: 11px; font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid rgba(120,190,255,0.3); cursor: pointer; font-family: inherit;
  box-shadow: 0 0 26px rgba(37,99,235,0.5), inset 0 0 12px rgba(120,190,255,0.15);
  transition: transform 0.2s var(--ease), box-shadow 0.2s; display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(56,189,248,0.6); }
.btn-ghost {
  background: rgba(120,190,255,0.06); color: rgba(232,240,255,0.88);
  border: 1px solid rgba(120,190,255,0.22); padding: 14px 28px; border-radius: 11px;
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s; display: inline-block; font-family: inherit;
}
.btn-ghost:hover { background: rgba(120,190,255,0.12); transform: translateY(-2px); box-shadow: 0 0 22px rgba(56,189,248,0.25); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ── ESQUINAS HUD COMPARTIDAS (paneles holográficos) ────────── */
.stat-card, .example-card, .why-card, .sec-panel, .dash,
.vision-big-card, .cta-box, .demo-tab, .float-card, .kpi {
  position: relative;
}
.stat-card::before, .example-card::before, .why-card::before, .sec-panel::before,
.dash::before, .vision-big-card::before, .cta-box::before,
.stat-card::after, .example-card::after, .why-card::after, .sec-panel::after,
.dash::after, .vision-big-card::after, .cta-box::after {
  content: ''; position: absolute; width: 13px; height: 13px; border: 2px solid var(--cyan);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none; z-index: 3;
}
.stat-card::before, .example-card::before, .why-card::before, .sec-panel::before,
.dash::before, .vision-big-card::before, .cta-box::before {
  top: 9px; left: 9px; border-right: 0; border-bottom: 0;
}
.stat-card::after, .example-card::after, .why-card::after, .sec-panel::after,
.dash::after, .vision-big-card::after, .cta-box::after {
  bottom: 9px; right: 9px; border-left: 0; border-top: 0;
}
.visible .stat-card::before, .visible .stat-card::after,
.stat-card.visible::before, .stat-card.visible::after,
.example-card:hover::before, .example-card:hover::after,
.why-card:hover::before, .why-card:hover::after,
.sec-panel.visible::before, .sec-panel.visible::after,
.dash.visible::before, .dash.visible::after,
.vision-big-card:hover::before, .vision-big-card:hover::after,
.cta-box.visible::before, .cta-box.visible::after,
.stat-card:hover::before, .stat-card:hover::after { opacity: 0.85; }

/* glass por defecto en paneles claros reconvertidos */
.stat-card, .example-card, .why-card, .demo-tab {
  background: var(--glass); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; gap: 60px; padding: 140px 40px 100px; z-index: 2;
}
#particles { display: none; }       /* el fondo lo genera la escena global #scene */
.hero-grid { display: none; }
.hero-aurora {
  position: absolute; z-index: -1; top: 6%; left: 50%; transform: translateX(-50%);
  width: 760px; height: 520px; pointer-events: none; filter: blur(30px);
  background: radial-gradient(closest-side, rgba(37,99,235,0.3), transparent 70%);
  animation: aurora 12s ease-in-out infinite alternate;
}
@keyframes aurora { 0% { opacity: 0.7; transform: translateX(-52%) scale(1); } 100% { opacity: 1; transform: translateX(-48%) scale(1.12); } }
.hero-content { flex: 1 1 0; max-width: 620px; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono);
  background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.3);
  color: var(--blue4); padding: 7px 16px; border-radius: 99px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(56,189,248,0.12);
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-title { font-size: clamp(36px, 5.2vw, 66px); font-weight: 900; color: #fff; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 22px; text-shadow: 0 0 40px rgba(37,99,235,0.25); }
.gradient-text { background: linear-gradient(110deg, var(--blue3), var(--cyan2) 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 18px; color: rgba(232,240,255,0.68); line-height: 1.7; margin-bottom: 36px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-float-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.float-card { background: var(--glass); border: 1px solid var(--glass-bd); border-radius: 13px; padding: 12px 16px; display: flex; align-items: center; gap: 11px; backdrop-filter: blur(8px); }
.fc-icon { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; background: rgba(56,189,248,0.14); display: flex; align-items: center; justify-content: center; }
.fc-icon svg { width: 18px; height: 18px; stroke: var(--blue4); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fc-text { font-size: 13px; color: rgba(232,240,255,0.74); line-height: 1.4; }
.fc-text strong { color: #fff; }
.fc1 { animation: floatA 4s ease-in-out infinite; }
.fc2 { animation: floatA 4.6s ease-in-out infinite 0.5s; }
.fc3 { animation: floatA 5.2s ease-in-out infinite 1s; }
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-hint span { display: block; width: 24px; height: 38px; border: 2px solid rgba(120,190,255,0.35); border-radius: 14px; position: relative; }
.scroll-hint span::after { content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; border-radius: 4px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%,12px); } }

/* ── PHONE MOCKUP ───────────────────────────────────────────── */
.hero-phone-wrap { position: relative; z-index: 1; flex: 0 0 auto; transform: perspective(1400px) rotateY(-14deg) rotateX(4deg); transition: transform 0.5s var(--ease); }
.hero-phone-wrap:hover { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.phone-glow { position: absolute; inset: -50px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,0.4), transparent 65%); filter: blur(34px); z-index: -1; }
.phone-frame { width: 320px; background: #0a1322; border-radius: 38px; border: 1px solid rgba(120,190,255,0.25); overflow: hidden; box-shadow: 0 36px 90px rgba(0,0,0,0.6), 0 0 40px rgba(56,189,248,0.18), inset 0 0 0 1px rgba(120,190,255,0.06); position: relative; }
.phone-frame::before { content: ''; position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 80px; height: 6px; background: rgba(120,190,255,0.16); border-radius: 99px; z-index: 10; }
.phone-screen { padding: 38px 0 0; }
.phone-frame-sm { width: 270px; }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(4,9,18,0.8); border-bottom: 1px solid rgba(120,190,255,0.1); }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 14px rgba(56,189,248,0.5); }
.chat-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.chat-name { color: #fff; font-size: 13px; font-weight: 600; }
.chat-status { color: #4ade80; font-size: 11px; display: flex; align-items: center; gap: 5px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.chat-body { padding: 14px 16px 24px 12px; min-height: 300px; background: linear-gradient(180deg, rgba(13,22,40,0.9), rgba(8,16,32,0.9)); display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 84%; padding: 9px 12px; border-radius: 13px; font-size: 12.5px; line-height: 1.5; opacity: 0; animation: msgAppear 0.4s var(--ease) forwards; }
.msg-in { background: rgba(120,190,255,0.1); color: rgba(232,240,255,0.92); border-radius: 13px 13px 13px 3px; align-self: flex-start; }
.msg-out { background: linear-gradient(135deg, var(--blue), #1d4ed8); color: #fff; border-radius: 13px 13px 3px 13px; align-self: flex-end; box-shadow: 0 4px 14px rgba(37,99,235,0.4); }
.typing-dots { display: flex; align-items: center; gap: 4px; padding: 12px 16px; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.65); animation: dot 1.2s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot { 0%,80%,100% { transform: scale(0.8); opacity: 0.4; } 40% { transform: scale(1.2); opacity: 1; } }
@keyframes msgAppear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.anim-in { opacity: 0; }

/* ── ENCABEZADOS DE SECCIÓN ─────────────────────────────────── */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 66px; }
.section-tag { display: inline-block; font-family: var(--mono); color: var(--cyan); background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.3); padding: 5px 15px; border-radius: 99px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; box-shadow: 0 0 18px rgba(56,189,248,0.12); }
.sec-tag-cyan { color: var(--cyan2); }
.section-header h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; color: #fff; letter-spacing: -0.025em; line-height: 1.18; margin-bottom: 16px; text-shadow: 0 0 30px rgba(37,99,235,0.25); }
.section-header p { font-size: 17px; color: rgba(232,240,255,0.62); line-height: 1.7; }

/* ── STATS ──────────────────────────────────────────────────── */
#stats { padding: 80px 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat-card { border-radius: var(--radius); padding: 30px 26px; text-align: center; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 0 40px rgba(56,189,248,0.2); border-color: rgba(56,189,248,0.45); }
.stat-figure { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat-number { font-size: 52px; font-weight: 900; color: var(--cyan); letter-spacing: -0.03em; line-height: 1; text-shadow: 0 0 20px rgba(56,189,248,0.5); }
.stat-unit { font-size: 26px; font-weight: 700; color: var(--blue3); }
.stat-label { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.stat-icon { display: flex; justify-content: center; margin-bottom: 10px; }
.stat-icon svg { width: 38px; height: 38px; stroke: var(--cyan); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(56,189,248,0.5)); }
.stat-label-big { font-size: 21px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 4px; }
.stat-sub { font-size: 13px; color: var(--muted); }

/* ── PIPELINE ───────────────────────────────────────────────── */
.pipeline { position: relative; margin-bottom: 64px; }
.pipeline-track { position: absolute; top: 40px; left: 0; width: 100%; height: 80px; z-index: 0; }
.pl-line { stroke: rgba(56,189,248,0.3); stroke-width: 2; stroke-dasharray: 6 6; }
.pl-pulse { fill: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
.pipeline.visible .pl-pulse { animation: plMove 4s linear infinite; }
@keyframes plMove { from { transform: translateX(0); } to { transform: translateX(880px); } }
.pipeline-nodes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pl-node { text-align: center; padding: 0 8px; }
.pl-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; background: linear-gradient(150deg, var(--blue), #1d4ed8); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 30px rgba(37,99,235,0.45); position: relative; }
.pl-icon svg { width: 30px; height: 30px; stroke: #fff; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pl-icon-wa  { background: linear-gradient(150deg, #25d366, #128c4f); box-shadow: 0 0 30px rgba(37,211,102,0.4); }
.pl-icon-erp { background: linear-gradient(150deg, #0ea5e9, #0369a1); box-shadow: 0 0 30px rgba(14,165,233,0.45); }
.pl-icon-ok  { background: linear-gradient(150deg, #22c55e, #15803d); box-shadow: 0 0 30px rgba(34,197,94,0.4); }
.pl-icon-cleo { background: #06101f; padding: 12px; box-shadow: 0 0 30px rgba(56,189,248,0.4); }
.pl-icon-cleo img { width: 100%; height: 100%; object-fit: contain; }
.pl-node-core .pl-icon { transform: scale(1.12); }
.pl-icon::after { content: ''; position: absolute; inset: -5px; border-radius: 24px; border: 2px solid currentColor; opacity: 0; }
.pipeline.visible .pl-node .pl-icon::after { animation: ringPulse 2.4s ease-in-out infinite; color: rgba(56,189,248,0.5); }
@keyframes ringPulse { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.16); opacity: 0; } }
.pl-node h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 7px; }
.pl-node p { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.flow-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.example-card { border-radius: var(--radius); padding: 24px; transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s; }
.example-card:hover { box-shadow: 0 0 36px rgba(56,189,248,0.2); transform: translateY(-4px); border-color: rgba(56,189,248,0.4); }
.ex-label { font-family: var(--mono); font-size: 11px; color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.ex-msg { padding: 10px 14px; border-radius: 11px; font-size: 13px; line-height: 1.5; }
.ex-in { background: rgba(120,190,255,0.08); color: rgba(232,240,255,0.85); border-radius: 11px 11px 11px 3px; }
.ex-out { background: linear-gradient(135deg, var(--blue), #1d4ed8); color: #fff; border-radius: 11px 11px 3px 11px; margin-top: 8px; }
.ex-arrow { text-align: center; color: var(--cyan); font-size: 18px; margin: 6px 0; }

/* ── CAPACIDADES ────────────────────────────────────────────── */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.cap-card { background: var(--glass); border: 1px solid var(--glass-bd); border-radius: 22px; padding: 36px; position: relative; overflow: hidden; backdrop-filter: blur(10px); transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.cap-card:hover { transform: translateY(-7px); border-color: rgba(56,189,248,0.45); box-shadow: 0 0 44px rgba(56,189,248,0.22); }
.cap-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0.6; }
.cap-featured { background: linear-gradient(150deg, rgba(37,99,235,0.85), rgba(29,78,216,0.7)); border-color: rgba(120,190,255,0.4); box-shadow: 0 0 60px rgba(37,99,235,0.45); }
.cap-badge { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.22); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.05em; }
.cap-icon { width: 58px; height: 58px; border-radius: 15px; background: rgba(56,189,248,0.14); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; box-shadow: inset 0 0 16px rgba(56,189,248,0.18); }
.cap-icon svg { width: 30px; height: 30px; stroke: var(--blue4); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cap-icon-white { background: rgba(255,255,255,0.2); }
.cap-icon-white svg { stroke: #fff; }
.cap-glow { position: absolute; top: -20px; right: -20px; width: 140px; height: 140px; border-radius: 50%; filter: blur(60px); opacity: 0.22; pointer-events: none; background: var(--cyan); }
.cap-card h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -0.01em; }
.cap-card p { font-size: 14px; color: rgba(232,240,255,0.64); line-height: 1.7; margin-bottom: 20px; }
.cap-list { list-style: none; margin-bottom: 20px; }
.cap-list li { padding: 7px 0; font-size: 14px; color: rgba(232,240,255,0.74); display: flex; align-items: center; gap: 9px; }
.cap-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); flex-shrink: 0; }
.cap-list-white li::before { background: rgba(255,255,255,0.8); box-shadow: none; }
.cap-tag { display: inline-block; font-family: var(--mono); font-size: 11.5px; color: var(--blue4); background: rgba(96,165,250,0.1); border: 1px solid rgba(96,165,250,0.28); padding: 5px 13px; border-radius: 99px; }
.cap-tag-white { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.22); }

/* spotlight */
.spotlight > * { position: relative; z-index: 1; }
.spotlight .spot-layer, .spotlight::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; z-index: 0; background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(56,189,248,0.16), transparent 45%); transition: opacity 0.3s; }
.spotlight:hover::after { opacity: 1; }

/* ── DEMO INTERACTIVA ───────────────────────────────────────── */
.demo-wrap { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 760px; margin: 0 auto; }
.demo-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.demo-tab { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); padding: 11px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s; }
.demo-tab svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.demo-tab:hover { border-color: rgba(56,189,248,0.5); color: var(--cyan); }
.demo-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 26px rgba(37,99,235,0.5); }
.demo-phone { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.demo-phone .phone-frame { width: 340px; }
.demo-phone .chat-body { min-height: 340px; }
#demo-replay { color: var(--cyan); background: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.25); }
#demo-replay:hover { background: rgba(56,189,248,0.14); }

/* ── EXPERIENCIA ────────────────────────────────────────────── */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.exp-text h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.2; margin: 14px 0 16px; }
.exp-text > p { font-size: 16px; color: rgba(232,240,255,0.62); line-height: 1.7; margin-bottom: 32px; }
.exp-features { display: flex; flex-direction: column; gap: 20px; }
.exp-feat { display: flex; gap: 14px; align-items: flex-start; }
.feat-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; margin-top: 5px; box-shadow: 0 0 0 4px rgba(56,189,248,0.15), 0 0 10px var(--cyan); }
.exp-feat strong { display: block; font-size: 15px; color: #fff; margin-bottom: 4px; }
.exp-feat p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.exp-phone { position: relative; display: flex; justify-content: center; }
.exp-phone .phone-frame-sm { transform: perspective(1400px) rotateY(12deg) rotateX(4deg); }
.exp-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.4; pointer-events: none; }
.orb1 { width: 200px; height: 200px; background: var(--blue2); top: 16%; left: 6%; animation: orbFloat 6s ease-in-out infinite; }
.orb2 { width: 160px; height: 160px; background: var(--violet); bottom: 12%; right: 6%; animation: orbFloat 7s ease-in-out infinite 1s; }
@keyframes orbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

/* ── SEGURIDAD ──────────────────────────────────────────────── */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.sec-panel { background: var(--glass); border: 1px solid var(--glass-bd); border-radius: 22px; padding: 30px; backdrop-filter: blur(10px); }
.sec-panel-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.sec-shield { width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; background: rgba(37,99,235,0.18); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 16px rgba(56,189,248,0.2); }
.sec-shield svg { width: 26px; height: 26px; stroke: var(--blue3); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sec-shield-cyan { background: rgba(56,189,248,0.18); }
.sec-shield-cyan svg { stroke: var(--cyan); }
.sec-panel-head h4 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.sec-panel-head p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.sec-vault { display: flex; flex-direction: column; gap: 10px; }
.vault-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 11px; background: rgba(120,190,255,0.04); border: 1px solid rgba(120,190,255,0.1); font-size: 13px; }
.vault-row.blocked { background: rgba(248,113,113,0.07); border-color: rgba(248,113,113,0.25); }
.vault-user { color: rgba(232,240,255,0.85); font-weight: 500; }
.vault-lock { font-size: 12px; padding: 3px 10px; border-radius: 99px; }
.vault-lock.ok { color: #4ade80; background: rgba(74,222,128,0.12); }
.vault-lock.no { color: #f87171; background: rgba(248,113,113,0.14); }
.roles-table { display: flex; flex-direction: column; gap: 2px; }
.roles-head, .roles-row { display: grid; grid-template-columns: 1.6fr 0.7fr 0.7fr 0.7fr; align-items: center; gap: 8px; padding: 11px 14px; }
.roles-head { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.roles-head span:not(:first-child) { text-align: center; justify-self: center; }
.roles-row i { justify-self: center; }
.roles-row { background: rgba(120,190,255,0.03); border-radius: 9px; font-size: 13px; color: rgba(232,240,255,0.8); }
.rk { width: 18px; height: 18px; border-radius: 50%; display: inline-block; position: relative; }
.rk.yes { background: rgba(74,222,128,0.16); }
.rk.yes::after { content: ''; position: absolute; inset: 0; margin: auto; width: 5px; height: 9px; border: 2px solid #4ade80; border-top: 0; border-left: 0; transform: translateY(-1px) rotate(45deg); }
.rk.no { background: rgba(248,113,113,0.14); }
.rk.no::after { content: ''; position: absolute; inset: 0; margin: auto; width: 9px; height: 2px; background: #f87171; border-radius: 2px; }
.sec-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sec-pill { background: rgba(56,189,248,0.07); border: 1px solid rgba(56,189,248,0.22); color: var(--blue4); font-size: 13px; font-weight: 500; padding: 9px 18px; border-radius: 99px; }

/* ── DASHBOARD ──────────────────────────────────────────────── */
.dash { max-width: 980px; margin: 0 auto; background: var(--glass); border: 1px solid var(--glass-bd); border-radius: 22px; overflow: hidden; backdrop-filter: blur(12px); box-shadow: 0 0 60px rgba(37,99,235,0.18); }
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: rgba(4,9,18,0.5); border-bottom: 1px solid rgba(120,190,255,0.12); }
.dash-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dash-bar .dot.r { background: #ff5f57; } .dash-bar .dot.y { background: #febc2e; } .dash-bar .dot.g { background: #28c840; }
.dash-title { font-family: var(--mono); color: var(--muted); font-size: 12.5px; margin-left: 10px; }
.dash-live { margin-left: auto; color: #4ade80; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.dash-body { padding: 28px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.dash-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: rgba(120,190,255,0.04); border: 1px solid rgba(120,190,255,0.1); border-radius: 14px; padding: 18px; text-align: center; }
.kpi-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.kpi-num { font-size: 30px; font-weight: 800; color: var(--cyan); letter-spacing: -0.02em; text-shadow: 0 0 14px rgba(56,189,248,0.5); }
.kpi-unit { font-size: 18px; color: var(--cyan); font-weight: 700; }
.dash-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 14px; background: rgba(120,190,255,0.03); border: 1px solid rgba(120,190,255,0.1); border-radius: 14px; }
.dash-chart .bar { flex: 1; height: 0; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--cyan), var(--blue)); box-shadow: 0 0 12px rgba(56,189,248,0.4); transition: height 1s var(--ease); align-self: flex-end; }
.dash.visible .dash-chart .bar { height: var(--h); }
.dash-feed { display: flex; flex-direction: column; gap: 10px; }
.feed-item { background: rgba(120,190,255,0.03); border: 1px solid rgba(120,190,255,0.1); border-radius: 11px; padding: 12px 14px; font-size: 13px; color: rgba(232,240,255,0.75); }
.feed-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 6px; margin-right: 8px; }
.t-fac { background: rgba(96,165,250,0.18); color: var(--blue4); }
.t-ped { background: rgba(74,222,128,0.16); color: #4ade80; }
.t-sto { background: rgba(56,189,248,0.16); color: var(--cyan); }

/* ── POR QUÉ ────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.why-card { border-radius: var(--radius); padding: 30px; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.why-card:hover { transform: translateY(-5px); box-shadow: 0 0 40px rgba(56,189,248,0.2); border-color: rgba(56,189,248,0.4); }
.why-icon { width: 50px; height: 50px; border-radius: 14px; margin-bottom: 16px; background: rgba(37,99,235,0.1); border: 1px solid rgba(56,189,248,0.18); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 14px rgba(56,189,248,0.15); }
.why-icon svg { width: 25px; height: 25px; stroke: var(--cyan); stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.why-card h4 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── VISIÓN ─────────────────────────────────────────────────── */
#vision::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(167,139,250,0.5), transparent); }
.vision-tag-label { color: var(--violet) !important; border-color: rgba(167,139,250,0.3) !important; background: rgba(167,139,250,0.08) !important; }
.vision-feat-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -22px 0 56px; }
.vision-feat-pill { background: rgba(167,139,250,0.08); border: 1px solid rgba(167,139,250,0.28); color: #c4b5fd; font-size: 13px; font-weight: 500; padding: 9px 18px; border-radius: 99px; transition: background 0.2s, border-color 0.2s; }
.vision-feat-pill:hover { background: rgba(167,139,250,0.18); border-color: rgba(167,139,250,0.5); }
.vision-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vision-big-card { background: linear-gradient(150deg, rgba(167,139,250,0.1), rgba(10,16,32,0.55)); border: 1px solid rgba(167,139,250,0.22); border-radius: 24px; padding: 40px 28px; text-align: center; backdrop-filter: blur(10px); transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.vision-big-card:hover { transform: translateY(-7px); border-color: rgba(167,139,250,0.5); box-shadow: 0 0 50px rgba(167,139,250,0.25); }
.vbc-icon { width: 66px; height: 66px; border-radius: 18px; background: linear-gradient(135deg, rgba(167,139,250,0.22), rgba(167,139,250,0.06)); border: 1px solid rgba(167,139,250,0.25); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.vbc-icon svg { width: 30px; height: 30px; stroke: #c4b5fd; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vision-big-card h4 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.vision-big-card p { color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ── CTA / CONTACTO ─────────────────────────────────────────── */
.cta-box { max-width: 720px; margin: 0 auto; text-align: center; position: relative; overflow: hidden; background: var(--glass); border: 1px solid rgba(120,190,255,0.25); border-radius: 30px; padding: 64px 48px; backdrop-filter: blur(12px); box-shadow: 0 0 70px rgba(37,99,235,0.22); }
.cta-glow { position: absolute; top: -90px; left: 50%; transform: translateX(-50%); width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,0.3), transparent 70%); pointer-events: none; }
.cta-logo { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 24px; filter: drop-shadow(0 0 22px rgba(56,189,248,0.7)); animation: logoPulse 3s ease-in-out infinite; position: relative; }
.cta-box h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; color: #fff; line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 16px; position: relative; }
.cta-box > p { font-size: 16px; color: rgba(232,240,255,0.65); line-height: 1.7; margin-bottom: 36px; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-trust { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 28px; }
.cta-trust strong { color: rgba(232,240,255,0.85); }

/* ── FORMULARIO ─────────────────────────────────────────────── */
.contact-form-wrapper { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.55s var(--ease), opacity 0.4s ease, margin-top 0.4s ease; width: 100%; margin-top: 0; }
.contact-form-wrapper.form-open { max-height: 1500px; opacity: 1; margin-top: 28px; }
.contact-form-inner { background: rgba(120,190,255,0.04); border: 1px solid rgba(120,190,255,0.14); border-radius: 20px; padding: 32px; position: relative; text-align: left; }
.form-close-btn { position: absolute; top: 16px; right: 16px; background: rgba(120,190,255,0.07); border: 1px solid rgba(120,190,255,0.14); border-radius: 8px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: background 0.2s, color 0.2s; }
.form-close-btn:hover { background: rgba(120,190,255,0.13); color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-row .form-group { margin-bottom: 0; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: rgba(232,240,255,0.78); margin-bottom: 7px; }
.req { color: #f87171; }
.opt { color: var(--muted); font-weight: 400; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group textarea {
  width: 100%; background: rgba(8,16,32,0.6); border: 1px solid rgba(120,190,255,0.16);
  border-radius: 11px; padding: 12px 14px; font-size: 14px; font-family: inherit; color: #fff; outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(232,240,255,0.32); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--cyan); background: rgba(8,16,32,0.85); box-shadow: 0 0 0 3px rgba(56,189,248,0.18); }
.form-group textarea { resize: vertical; min-height: 86px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-privacy-block { margin: 20px 0 18px; }
.form-checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-custom { flex-shrink: 0; width: 19px; height: 19px; border-radius: 6px; border: 2px solid rgba(120,190,255,0.3); background: rgba(8,16,32,0.6); margin-top: 1px; transition: border-color 0.2s, background 0.2s; display: flex; align-items: center; justify-content: center; }
.form-checkbox-label input:checked + .checkbox-custom { border-color: var(--cyan); background: var(--blue); }
.form-checkbox-label input:checked + .checkbox-custom::after { content: ''; width: 5px; height: 9px; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(45deg) translate(-1px,-1px); display: block; }
.form-checkbox-label input:focus-visible + .checkbox-custom { box-shadow: 0 0 0 3px rgba(56,189,248,0.3); }
.checkbox-text { font-size: 13px; color: rgba(232,240,255,0.66); line-height: 1.5; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cyan); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.link-btn:hover { color: var(--blue4); }
.privacy-info { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease, padding 0.3s ease; margin-top: 0; border-radius: 12px; background: rgba(120,190,255,0.03); border: 1px solid rgba(120,190,255,0.1); padding: 0 18px; }
.privacy-info.open { max-height: 800px; opacity: 1; margin-top: 14px; padding: 16px 18px; }
.privacy-info h4 { color: rgba(232,240,255,0.82); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.privacy-info p { color: var(--muted); font-size: 12px; line-height: 1.65; margin-bottom: 8px; }
.privacy-info p:last-child { margin-bottom: 0; }
.privacy-info a { color: var(--cyan); }
.cf-status { font-size: 14px; font-weight: 500; min-height: 22px; margin-bottom: 10px; }
.cf-status-success { color: #4ade80; }
.cf-status-error { color: #f87171; }
.cf-submit-btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; display: block; text-align: center; }
.cf-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer { background: rgba(4,7,14,0.85); padding: 26px 24px; border-top: 1px solid rgba(120,190,255,0.1); position: relative; z-index: 2; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: rgba(232,240,255,0.75); font-size: 15px; font-weight: 700; }
.footer-logo { width: 26px; height: 26px; object-fit: contain; }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ── REVELADO 3D (los paneles emergen desde la profundidad) ─── */
.reveal-up   { opacity: 0; transform: perspective(1300px) rotateX(16deg) translate3d(0, 60px, -260px); filter: blur(5px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), filter 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-left { opacity: 0; transform: perspective(1300px) rotateY(-18deg) translate3d(-70px, 0, -220px); filter: blur(5px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), filter 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-right{ opacity: 0; transform: perspective(1300px) rotateY(18deg) translate3d(70px, 0, -220px); filter: blur(5px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), filter 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: perspective(1300px) rotateX(0) rotateY(0) translate3d(0,0,0); filter: blur(0); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .pipeline-nodes { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
  .pipeline-track { display: none; }
  .pl-node-core { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  section { padding: 90px 24px; }
  #hero { flex-direction: column; padding-top: 120px; gap: 44px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-actions, .hero-float-cards { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-phone-wrap { display: none; }
  .scroll-hint { display: none; }
  .exp-grid { grid-template-columns: 1fr; gap: 48px; }
  .sec-grid { grid-template-columns: 1fr; }
  .vision-row { grid-template-columns: 1fr; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .hud-readout { font-size: 10px; }
  .hud-top-left, .hud-bottom-left { left: 44px; }
  .hud-top-right, .hud-bottom-right { right: 44px; }
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: transparent; border: 0; padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
  .nav-links.open { background: rgba(5,8,15,0.97); border-bottom: 1px solid rgba(120,190,255,0.12); padding: 8px 16px 16px; max-height: 420px; }
  .nav-links a { padding: 13px 8px; border-bottom: 1px solid rgba(120,190,255,0.06); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 10px; }
}
@media (max-width: 640px) {
  section { padding: 70px 20px; }
  #hero { padding: 110px 20px 80px; }
  .cta-box { padding: 40px 22px; }
  .cap-card { padding: 28px 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-card { padding: 22px 16px; }
  .stat-number { font-size: 40px; }
  .pipeline-nodes { grid-template-columns: 1fr; }
  .pl-node-core { grid-column: auto; }
  .cap-grid { grid-template-columns: 1fr; }
  .demo-phone .phone-frame { width: 100%; max-width: 340px; }
  .roles-head, .roles-row { grid-template-columns: 1.4fr 0.6fr 0.6fr 0.6fr; padding: 10px; font-size: 12px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .form-group { margin-bottom: 16px; }
  .hud-corner { width: 20px; height: 20px; }
  .hud-readout { font-size: 9px; letter-spacing: 0.08em; }
  .hud-top-left, .hud-bottom-left { left: 28px; }
  .hud-top-right, .hud-bottom-right { right: 28px; }
}
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: 1fr; }
}

/* ═══════════ COMPONENTES NARRATIVOS 3D (secciones nuevas) ═══════════ */

/* Hero: claim + terminal */
.hero-claim { font-size: clamp(18px, 2.3vw, 25px); font-weight: 600; color: #fff; line-height: 1.35; margin-bottom: 16px; }
.hero-terminal { margin-top: 38px; max-width: 480px; background: rgba(6,12,24,0.72); border: 1px solid var(--glass-bd); border-radius: 12px; overflow: hidden; backdrop-filter: blur(8px); box-shadow: 0 0 30px rgba(37,99,235,0.16); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 9px 14px; background: rgba(0,0,0,0.3); border-bottom: 1px solid rgba(120,190,255,0.1); }
.term-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.term-bar .dot.r { background: #ff5f57; } .term-bar .dot.y { background: #febc2e; } .term-bar .dot.g { background: #28c840; }
.term-name { color: var(--muted); font-family: var(--mono); font-size: 12px; margin-left: 6px; }
.term-body { padding: 14px 16px; margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: #7fe0ff; white-space: pre-wrap; min-height: 168px; }
.term-caret { color: var(--cyan); animation: hudBlink 1s steps(1) infinite; }

/* Mapa de red (empresa conectada) */
.netmap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.net-node { display: flex; flex-direction: column; align-items: center; gap: 7px; background: var(--glass); border: 1px solid var(--glass-bd); border-radius: 14px; padding: 16px 18px; font-size: 13px; color: rgba(232,240,255,0.85); min-width: 104px; text-align: center; backdrop-filter: blur(8px); }
.net-ico { font-size: 24px; }
.net-core { border-color: rgba(56,189,248,0.5); box-shadow: 0 0 30px rgba(56,189,248,0.3); color: #fff; font-weight: 600; }
.net-core img { width: 30px; height: 30px; object-fit: contain; }
.net-link { width: 34px; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); position: relative; flex-shrink: 0; }
.net-link::after { content: ''; position: absolute; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transform: translateY(-50%); animation: netFlow 2s linear infinite; }
@keyframes netFlow { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* Tarjetas HUD flotantes */
.float-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.hud-card { background: var(--glass); border: 1px solid var(--glass-bd); border-radius: 16px; padding: 24px; backdrop-filter: blur(10px); transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s; }
.hud-card:hover { transform: translateY(-5px); border-color: rgba(56,189,248,0.4); box-shadow: 0 0 36px rgba(56,189,248,0.18); }
.hc-ico { font-size: 26px; display: block; margin-bottom: 12px; }
.hud-card h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.hud-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* Split (texto + visual) */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-text h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.2; margin: 14px 0 16px; }
.split-text > p { font-size: 16px; color: rgba(232,240,255,0.62); line-height: 1.7; margin-bottom: 24px; }
.split-visual { position: relative; display: flex; justify-content: center; }
.split-visual .phone-frame { transform: perspective(1400px) rotateY(-12deg) rotateX(4deg); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.check-list li { position: relative; padding-left: 30px; color: rgba(232,240,255,0.84); font-size: 15px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: rgba(56,189,248,0.16); }
.check-list li::after { content: ''; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px; border: 2px solid var(--cyan); border-top: 0; border-left: 0; transform: rotate(45deg); }

/* Data core (tu sistema en tiempo real) */
.datacore { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 42px; }
.dc-panel { background: var(--glass); border: 1px solid var(--glass-bd); border-radius: 14px; padding: 20px; backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.dc-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0.6; }
.dc-k { font-family: var(--mono); color: #fff; font-size: 15px; font-weight: 700; }
.dc-v { color: var(--cyan); font-size: 12px; font-family: var(--mono); }
.keypoints { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
.kp { display: flex; align-items: center; gap: 10px; color: rgba(232,240,255,0.82); font-size: 14.5px; }
.kp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* Seguridad: anillos + escudo */
.shield-stage { position: relative; width: 200px; height: 200px; margin: 0 auto 50px; display: flex; align-items: center; justify-content: center; }
.shield-ring { position: absolute; border-radius: 50%; }
.shield-ring.r1 { width: 90px; height: 90px; border: 1px dashed rgba(56,189,248,0.45); animation: spin 8s linear infinite; }
.shield-ring.r2 { width: 142px; height: 142px; border: 1px solid rgba(109,92,255,0.32); animation: spin 14s linear infinite reverse; }
.shield-ring.r3 { width: 192px; height: 192px; border: 1px dotted rgba(56,189,248,0.3); animation: spin 20s linear infinite; }
.shield-core { font-size: 44px; filter: drop-shadow(0 0 16px rgba(56,189,248,0.7)); }
@keyframes spin { to { transform: rotate(360deg); } }
.why-icon { font-size: 24px; }

/* Automatizaciones: raíles de flujo */
.flow-rails { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.rail { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 24px; background: var(--glass); border: 1px solid var(--glass-bd); border-radius: 12px; overflow: hidden; backdrop-filter: blur(8px); }
.rail::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.rail::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; background: linear-gradient(90deg, transparent, rgba(56,189,248,0.12), transparent); animation: railSweep 3.2s linear infinite; }
@keyframes railSweep { from { left: -90px; } to { left: 100%; } }
.rail-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); flex-shrink: 0; animation: railPulse 2.8s ease-in-out infinite; }
@keyframes railPulse { 0%,100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.3); } }
.rail-txt { color: rgba(232,240,255,0.85); font-size: 15px; position: relative; z-index: 1; }

/* Casos de uso: tarjetas 3D inclinables */
.usecase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; perspective: 1100px; }
.usecase { background: var(--glass); border: 1px solid var(--glass-bd); border-radius: 16px; padding: 26px; backdrop-filter: blur(10px); transform-style: preserve-3d; transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.usecase:hover { transform: rotateX(7deg) rotateY(-7deg) translateY(-6px); border-color: rgba(56,189,248,0.45); box-shadow: 0 0 40px rgba(56,189,248,0.2); }
.uc-ico { font-size: 30px; display: block; margin-bottom: 14px; }
.usecase h4 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.usecase p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* CTA trust simplificado */
.cta-trust strong { color: var(--cyan); font-size: 15px; }

/* Fallback sin WebGL */
body.no-webgl { background: radial-gradient(120% 80% at 50% 0%, #0b1834 0%, #05080f 60%); }
body.no-webgl .scene-fade { display: none; }

/* Responsive de los componentes nuevos */
@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; gap: 44px; }
  .netmap .net-link { display: none; }
  .netmap { gap: 14px; }
}

/* ── MOVIMIENTO REDUCIDO ──────────────────────────────────────
   La experiencia 3D es el producto en sí, así que NO se desactiva
   por "prefers-reduced-motion". Solo se suaviza el desplazamiento
   por anclas para quien lo tenga activado.                        */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ═══════════ AJUSTES v9 ═══════════ */

/* HERO centrado + degradado de texto agradable */
#hero { text-align: center; }
.hero-centered { max-width: 800px; margin: 0 auto; text-align: center; }
.hero-centered .hero-badge { margin-left: auto; margin-right: auto; }
.hero-centered .hero-actions { justify-content: center; }
.hero-centered .hero-subtitle { margin-left: auto; margin-right: auto; }
.hero-claim {
  background: linear-gradient(100deg, #ffffff 0%, #bfe3ff 48%, #79c2ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-size: clamp(19px, 2.4vw, 27px); text-shadow: none !important;
  filter: drop-shadow(0 1px 10px rgba(56,189,248,0.25));
}
.hero-subtitle { color: rgba(226,238,255,0.88); }

/* HERO · bocadillos flotantes integrados en el fondo (sin recuadro) */
.hero-bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; max-width: 235px; padding: 11px 15px; font-size: 13.5px; line-height: 1.45;
  border-radius: 16px; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); opacity: 0;
  animation: bubbleIn 0.7s var(--ease) forwards, bubbleFloat 7s ease-in-out infinite;
  box-shadow: 0 12px 44px rgba(0,0,0,0.4);
}
.b-in  { background: rgba(18,30,54,0.66); border: 1px solid rgba(120,190,255,0.28); color: #e8f0ff; border-bottom-left-radius: 4px; }
.b-out { background: linear-gradient(135deg, rgba(37,99,235,0.88), rgba(29,78,216,0.82)); border: 1px solid rgba(120,190,255,0.45); color: #fff; border-bottom-right-radius: 4px; }
.pos1 { top: 19%; left: 3%;   animation-delay: 0.6s, 0.6s; }
.pos2 { top: 31%; right: 3%;  animation-delay: 1.5s, 1.5s; }
.pos3 { top: 57%; left: 5%;   animation-delay: 2.4s, 2.4s; }
.pos4 { top: 66%; right: 4%;  animation-delay: 3.3s, 3.3s; }
.pos5 { top: 84%; right: 13%; animation-delay: 4.1s, 4.1s; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(22px) scale(0.95); } to { opacity: 0.97; transform: translateY(0) scale(1); } }
@keyframes bubbleFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 1100px) { .hero-bubbles { display: none; } }

/* Cajas de la sección conexión, centradas */
.float-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.float-grid .hud-card { width: 268px; max-width: 100%; }

/* Cajas de casos de uso, centradas */
.usecase-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.usecase-grid .usecase { width: 250px; max-width: 100%; }

/* Cajas de seguridad, centradas */
.why-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.why-grid .why-card { width: 300px; max-width: 100%; }

/* Cajas "data core" (Tu sistema), centradas */
.datacore { display: flex; flex-wrap: wrap; justify-content: center; }
.datacore .dc-panel { width: 180px; max-width: 100%; }
.keypoints { justify-content: center; }

/* Sección final (CTA): caja centrada teniendo en cuenta el footer,
   para que al llegar abajo del todo la caja quede en el medio y el
   footer justo debajo (no la caja desplazada hacia arriba). */
/* Altura = pantalla menos 2× el footer → la caja queda en el centro
   exacto del viewport cuando llegas abajo, con el footer justo debajo.
   --footer-h lo mide el JS (se adapta a cualquier tamaño/breakpoint). */
#contacto { display: flex; align-items: center; min-height: calc(100vh - 2 * var(--footer-h, 80px)); }
#contacto .container { width: 100%; }

/* netmap: etiquetas pequeñas + frase explicativa */
.net-node small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.netmap-caption { text-align: center; max-width: 760px; margin: 10px auto 52px; color: rgba(226,238,255,0.78); font-size: 16px; line-height: 1.65; }

/* Fuera las esquinas tipo "tijera" en hover */
.why-card::before, .why-card::after, .cta-box::before, .cta-box::after { content: none !important; }

/* LEGIBILIDAD: velo más fuerte tras encabezados y paneles más sólidos */
.section-header::before { background: radial-gradient(62% 62% at 50% 50%, rgba(3,7,16,0.88), rgba(3,7,16,0.45) 62%, transparent 82%); inset: -34px -56px; }
.why-card, .usecase, .dc-panel, .hud-card, .dash, .sec-panel, .rail, .example-card { background: rgba(7,13,28,0.74); }
.cta-box { background: rgba(6,12,26,0.85) !important; }
.cta-glow { opacity: 0.38; }
/* halo extra de oscurecimiento detrás del escudo y del CTA (donde la "bola" deslumbra) */
.shield-stage::after, .cta-box::after { content: none; }
#seguridad .why-grid, #seguridad .shield-stage { position: relative; z-index: 1; }

/* ═══════════ MOTIVO DE FONDO POR SECCIÓN ═══════════ */
#motif { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.55; transition: background 1.2s ease, opacity 1.2s ease; background-repeat: repeat; }
body[data-amb="conectada"]        #motif { background-image: radial-gradient(rgba(56,189,248,0.13) 1.5px, transparent 1.7px); background-size: 38px 38px; }
body[data-amb="whatsapp"]         #motif { background-image: radial-gradient(rgba(34,197,94,0.12) 1.5px, transparent 1.7px); background-size: 42px 42px; }
body[data-amb="sistema"]          #motif { background-image: linear-gradient(rgba(59,130,246,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.09) 1px, transparent 1px); background-size: 46px 46px; }
body[data-amb="seguridad"]        #motif { background-image: repeating-radial-gradient(circle at 50% 42%, rgba(99,102,241,0.11) 0 1px, transparent 1px 64px); }
body[data-amb="automatizaciones"] #motif { background-image: repeating-linear-gradient(90deg, rgba(56,189,248,0.10) 0 1px, transparent 1px 72px); }
body[data-amb="panel"]            #motif { background-image: linear-gradient(rgba(37,99,235,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.09) 1px, transparent 1px); background-size: 48px 48px; }
body[data-amb="casos"]            #motif { background-image: radial-gradient(rgba(96,165,250,0.11) 1.5px, transparent 1.7px); background-size: 48px 48px; }
body[data-amb="hero"]             #motif,
body[data-amb="contacto"]         #motif { background-image: none; opacity: 0; }

/* ═══════════ MATRIX v2 · iconos, color azul, scroll 3D ═══════════ */

/* Esquema azul corporativo (sin violetas) */
:root { --violet: #4f7cff; }

/* El fondo neuronal 3D debe verse: menos oscurecimiento, paneles más translúcidos */
.scene-fade { background: radial-gradient(70% 60% at 50% 45%, transparent 55%, rgba(3,6,14,0.35) 100%); }
:root { --glass: rgba(9, 16, 33, 0.45); }
/* RENDIMIENTO: el backdrop-filter sobre muchas cajas en movimiento mata los FPS.
   Las tarjetas ya tienen fondo sólido, así que se desactiva el desenfoque en ellas
   y se mantiene solo en la barra de navegación (un único elemento, barato).        */
.hud-card, .why-card, .usecase, .dc-panel, .rail, .net-node, .dash, .cta-box,
.phone-frame, .sec-panel, .example-card, .cap-card, .vision-big-card, .float-card,
.contact-form-inner, .bubble, .hero-terminal {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}

/* Iconos SVG profesionales (sustituyen a los emojis) */
.ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
.net-ico { color: var(--cyan); display: inline-flex; }
.net-ico .ico { width: 26px; height: 26px; }
.hc-ico { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; background: rgba(56,189,248,0.12); color: var(--cyan); margin-bottom: 14px; box-shadow: inset 0 0 14px rgba(56,189,248,0.15); }
.hc-ico .ico { width: 24px; height: 24px; }
.why-icon { color: var(--cyan); }
.why-icon .ico { width: 24px; height: 24px; }
.uc-ico { display: inline-flex; width: 50px; height: 50px; border-radius: 13px; align-items: center; justify-content: center; background: rgba(37,99,235,0.14); color: var(--cyan); margin-bottom: 14px; box-shadow: inset 0 0 14px rgba(56,189,248,0.14); }
.uc-ico .ico { width: 26px; height: 26px; }
.shield-core { color: var(--cyan); }
.shield-core .ico { width: 48px; height: 48px; filter: drop-shadow(0 0 14px rgba(56,189,248,0.7)); }

/* Coreografía por scroll: el contenido entra/sale en 3D (instantáneo, ligado al scroll) */
.choreo { transition: none !important; filter: none !important; will-change: transform, opacity; backface-visibility: hidden; }

/* Entrada del hero (única, nítida) */
#hero .reveal-up { transition: opacity 0.9s var(--ease), transform 1s var(--ease); }

/* Núcleo de Cleo (logo) en el mapa de red, con halo */
.net-core img { filter: drop-shadow(0 0 12px rgba(56,189,248,0.7)); }

/* "AI" del hero: degradado azul con brillo (la sombra de texto lo aplanaba) */
.gradient-text {
  background: linear-gradient(110deg, #60a5fa 0%, #38bdf8 50%, #3b82f6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none !important;
  filter: drop-shadow(0 0 18px rgba(56,189,248,0.5));
}

/* Indicador de diagnóstico */
#diag {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(20px);
  z-index: 9998; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--cyan); background: rgba(6,12,24,0.85); border: 1px solid rgba(56,189,248,0.35);
  padding: 8px 16px; border-radius: 99px; backdrop-filter: blur(8px); cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 0.4s, transform 0.4s; max-width: 92vw; text-align: center;
}
#diag.diag-show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
#diag.diag-ok { color: #4ade80; border-color: rgba(74,222,128,0.4); }
#diag.diag-err { color: #fbbf24; border-color: rgba(251,191,36,0.45); }

/* Fondo de respaldo ANIMADO si no hay WebGL (nunca plano) */
body.no-webgl { background: #04060c; }
body.no-webgl .scene-fade {
  display: block !important;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(37,99,235,0.22), transparent 70%),
    linear-gradient(rgba(56,189,248,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.05) 1px, transparent 1px),
    radial-gradient(120% 80% at 50% 0%, #0b1834, #04060c 60%);
  background-size: 100% 100%, 46px 46px, 46px 46px, 100% 100%;
  animation: gridDrift 18s linear infinite;
}
@keyframes gridDrift { from { background-position: 0 0, 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 460px, 460px 0, 0 0; } }

/* ═══════════ LEGIBILIDAD · velo bajo el contenido ═══════════ */
/* Sin tapar el 3D: una sombra-halo suave detrás de cada bloque de
   texto para que las letras blancas no compitan con el brillo.    */
.section-header { position: relative; }
.section-header::before {
  content: ''; position: absolute; inset: -28px -40px; z-index: -1; border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(4,8,18,0.72), rgba(4,8,18,0.32) 60%, transparent 80%);
  filter: blur(6px); pointer-events: none;
}
.hero-content { position: relative; }
.hero-content::before {
  content: ''; position: absolute; inset: -30px -50px; z-index: -1; border-radius: 40px;
  background: radial-gradient(70% 70% at 40% 50%, rgba(4,8,18,0.7), rgba(4,8,18,0.25) 65%, transparent 85%);
  filter: blur(8px); pointer-events: none;
}
/* el aura del hero ya no debe deslumbrar tras el texto */
.hero-aurora { opacity: 0.5; }

/* texto un punto más sólido y con sombra fina para despegar del fondo */
.section-header h2, .hero-title, .hero-claim, .split-text h2 { text-shadow: 0 2px 24px rgba(4,8,18,0.85), 0 0 2px rgba(4,8,18,0.6); }
.section-header p, .hero-subtitle { color: rgba(232,240,255,0.82); }

/* los paneles ganan algo de cuerpo para que el texto interior se lea */
.hud-card, .why-card, .usecase, .dc-panel, .rail, .dash, .cta-box, .sec-panel, .example-card {
  background: rgba(8, 15, 31, 0.62);
}

/* ═══════════ AMBIENTE POR SECCIÓN (tinte de fondo) ═══════════ */
/* Una capa de color a pantalla completa, por DEBAJO del contenido y
   por ENCIMA del 3D, que cambia de tono según la sección activa.   */
#ambient {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  transition: background 1.2s ease, opacity 1.2s ease;
  background: radial-gradient(85% 65% at 50% 40%, rgba(37,99,235,0.20), transparent 72%);
  opacity: 1;
}
body[data-amb="conectada"]        #ambient { background: radial-gradient(85% 65% at 28% 35%, rgba(56,189,248,0.26), transparent 72%); }
body[data-amb="whatsapp"]         #ambient { background: radial-gradient(80% 65% at 78% 45%, rgba(34,197,94,0.24), transparent 72%); }
body[data-amb="sistema"]          #ambient { background: radial-gradient(82% 65% at 22% 50%, rgba(59,130,246,0.30), transparent 72%); }
body[data-amb="seguridad"]        #ambient { background: radial-gradient(78% 72% at 50% 28%, rgba(99,102,241,0.30), transparent 74%); }
body[data-amb="automatizaciones"] #ambient { background: radial-gradient(85% 65% at 62% 55%, rgba(56,189,248,0.28), transparent 72%); }
body[data-amb="panel"]            #ambient { background: radial-gradient(82% 65% at 38% 40%, rgba(37,99,235,0.30), transparent 74%); }
body[data-amb="casos"]            #ambient { background: radial-gradient(90% 72% at 50% 45%, rgba(96,165,250,0.24), transparent 74%); }
body[data-amb="contacto"]         #ambient { background: radial-gradient(65% 58% at 50% 45%, rgba(56,189,248,0.34), transparent 72%); }

/* ═══════════ TIPOGRAFÍA · textos un punto más grandes ═══════════ */
/* Sube los tamaños pequeños para mejor lectura, sin romper el responsive. */
.section-header p { font-size: 18px; }
.hero-subtitle { font-size: 19px; }
.hero-claim { font-size: clamp(20px, 2.5vw, 28px); }
.hud-card p, .usecase p, .why-card p, .cap-card p, .pl-node p { font-size: 14.5px; line-height: 1.6; }
.hud-card h4, .usecase h4, .why-card h4 { font-size: 17px; }
.net-node { font-size: 14px; }
.net-node small { font-size: 12px; }
.dc-k { font-size: 16px; }
.dc-v { font-size: 13px; }
.kp { font-size: 15.5px; }
.rail-txt { font-size: 16px; }
.sec-pill, .vision-feat-pill { font-size: 14px; }
.cap-tag, .cap-tag-white { font-size: 12.5px; }
.feed-item, .kpi-label, .stat-sub, .dash-title { font-size: 13.5px; }
.nav-links a { font-size: 15px; }
.form-group label { font-size: 14px; }
.checkbox-text, .link-btn { font-size: 14px; }
.privacy-info p { font-size: 13px; }
.privacy-info h4 { font-size: 14px; }
.bubble { font-size: 14.5px; }
.cta-trust { font-size: 14px; }
.ex-msg, .ex-in, .ex-out { font-size: 14px; }
.exp-feat p { font-size: 14.5px; }
.exp-feat strong { font-size: 16px; }
.footer-copy { font-size: 13px; }

/* En móviles pequeños, recortamos un pelín para que no apriete */
@media (max-width: 480px) {
  .section-header p { font-size: 16px; }
  .hero-subtitle { font-size: 16.5px; }
  .rail-txt, .kp { font-size: 14.5px; }
}

/* ═══════════ POLÍTICA DE PRIVACIDAD · más legible ═══════════ */
.privacy-info.open { padding: 20px 22px; }
.privacy-info h4 { margin-bottom: 14px; color: rgba(232,240,255,0.9); font-size: 14.5px; }
.privacy-info p { font-size: 13.5px; line-height: 1.8; margin-bottom: 13px; color: rgba(226,238,255,0.7); }
.privacy-info p strong { color: rgba(232,240,255,0.92); }
/* El correo, sin destacar (no en azul) */
.privacy-info a { color: inherit; text-decoration: none; }

/* ═══════════ RESPONSIVE GLOBAL · todas las pantallas ═══════════ */
/* Sin scroll horizontal en ningún tamaño */
html, body { max-width: 100%; overflow-x: clip; }
img, canvas, svg, video { max-width: 100%; }
.phone-frame, .phone-frame-sm { max-width: 100%; }
.netmap, .float-grid, .usecase-grid, .flow-rails, .datacore, .keypoints, .why-grid, .cap-grid, .stats-grid, .vision-row, .sec-grid { max-width: 100%; }

/* Pantallas grandes: el contenido se ensancha y crece (no se ve pequeño) */
@media (min-width: 1700px) {
  .container { max-width: 1480px; }
  .dash { max-width: 1180px; }
  .flow-rails { max-width: 920px; }
  .section-header { max-width: 860px; }
  .section-header h2 { font-size: clamp(40px, 3vw, 60px); }
  .section-header p { font-size: clamp(17px, 1.1vw, 21px); }
  .hero-subtitle { font-size: clamp(18px, 1.3vw, 24px); }
}
/* Proyectores / 4K / ultrawide */
@media (min-width: 2300px) {
  .container { max-width: 1820px; }
  .dash { max-width: 1480px; }
  section { padding: 150px 24px; }
  .float-grid .hud-card { width: 320px; }
  .usecase-grid .usecase { width: 300px; }
  .hud-card p, .usecase p, .why-card p { font-size: 15px; }
}
/* Pantallas muy bajas en horizontal (portátiles 768px alto, etc.) */
@media (max-height: 680px) and (min-width: 900px) {
  #hero { min-height: auto; padding-top: 120px; padding-bottom: 70px; }
}

/* ═══════════ LEGIBILIDAD v2 · textos oscuros un pelín más blancos (2026-09-14) ═══════════ */
/* Petición de dirección: solo los textos más apagados, un toque más claros.
   Mismo tono azulado; cada valor anota el que tenía antes para poder volver.   */
:root { --muted: #9caecb; }                                          /* antes #8aa0c2 */
.hud-dim { color: rgba(156,174,203,0.75); }                          /* antes rgba(138,160,194,.7) */
.section-header p, .hero-subtitle { color: rgba(232,240,255,0.88); } /* antes .82 */
.split-text > p { color: rgba(232,240,255,0.72); }                   /* antes .62 */
.cta-box > p { color: rgba(232,240,255,0.75); }                      /* antes .65 */
.checkbox-text { color: rgba(232,240,255,0.76); }                    /* antes .66 */
.fc-text { color: rgba(232,240,255,0.82); }                          /* antes .74 */
.privacy-info p { color: rgba(226,238,255,0.8); }                    /* antes .7  */
.footer-brand { color: rgba(232,240,255,0.85); }                     /* antes .75 */
.form-group label { color: rgba(232,240,255,0.86); }                 /* antes .78 */
.netmap-caption { color: rgba(226,238,255,0.86); }                   /* antes .78 */
.nav-links a { color: rgba(232,240,255,0.78); }                      /* antes .7  */

/* ═══════════ CLEVERXIA · HOME DE AGENCIA Y PAQUETES (2026-09-14) ═══════════ */
/* La home genérica y las páginas de cada paquete (Cleo AI y los que vengan)
   usan EXACTAMENTE los mismos componentes; aquí solo lo que no existía.     */

/* Hero: el <h1> envuelve marca + claim (una sola frase para buscadores) */
.hero-h1 { margin: 0; }
.hero-h1 .hero-title, .hero-h1 .hero-claim { display: block; }

/* Loader con la marca en texto (CleverXIA aún no tiene logotipo propio) */
.loader-word { font-size: 40px; font-weight: 900; letter-spacing: -0.03em; color: #fff; animation: logoPulse 1.2s ease-in-out infinite; }
.loader-word span { color: var(--cyan); }

/* Enlace de vuelta a CleverXIA desde un paquete */
.nav-back { display: inline-flex; align-items: center; gap: 6px; }
.nav-back::before { content: "\2190"; color: var(--cyan); font-weight: 700; }

/* Títulos de tarjeta como <h3> (jerarquía correcta) con el mismo aspecto que los <h4> */
.hud-card h3, .usecase h3 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.why-card h3 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 8px; }

/* Paquetes / soluciones */
.pack-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; align-items: stretch; }
.pack-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  background: rgba(8,15,31,0.62); border: 1px solid var(--glass-bd); border-radius: 22px; padding: 36px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.pack-card:hover { transform: translateY(-5px); border-color: rgba(56,189,248,0.4); box-shadow: 0 0 40px rgba(56,189,248,0.18); }
.pack-card.is-featured { border-color: rgba(56,189,248,0.42); box-shadow: 0 0 60px rgba(37,99,235,0.22), inset 0 0 30px rgba(56,189,248,0.05); }
.pack-card.is-featured::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0.8;
}
.pack-card.is-soon { border-style: dashed; background: rgba(8,15,31,0.48); }
.pack-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pack-logo { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(56,189,248,0.6)); }
.pack-ico { display: inline-flex; width: 58px; height: 58px; border-radius: 16px; align-items: center; justify-content: center; background: rgba(37,99,235,0.14); color: var(--cyan); box-shadow: inset 0 0 14px rgba(56,189,248,0.12); }
.pack-ico .ico { width: 28px; height: 28px; }
.pack-status {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 13px; border-radius: 99px;
  color: var(--blue4); background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.3);
}
.pack-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pack-status.is-live { color: #4ade80; border-color: rgba(74,222,128,0.35); background: rgba(74,222,128,0.07); }
.pack-status.is-live::before { animation: pulseDot 2s ease-in-out infinite; }
.pack-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.pack-card h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.15; }
.pack-card h3 .nav-ai { color: var(--cyan); }
.pack-card > p { font-size: 15.5px; color: var(--muted); line-height: 1.7; }
.pack-card .check-list { gap: 11px; }
.pack-card .check-list li { font-size: 15px; }
.pack-actions { margin-top: auto; padding-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Método: número de paso en las tarjetas HUD */
.step-num { display: block; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--cyan); margin-bottom: 12px; text-shadow: 0 0 10px rgba(56,189,248,0.5); }
#metodo .keypoints { margin-top: 44px; }

/* Preguntas frecuentes (<details>: accesible y legible por buscadores sin JS) */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: rgba(8,15,31,0.62); border: 1px solid var(--glass-bd); border-radius: 14px; transition: border-color 0.25s, box-shadow 0.25s; }
.faq-item[open] { border-color: rgba(56,189,248,0.38); box-shadow: 0 0 30px rgba(56,189,248,0.12); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 19px 22px; color: #fff; font-size: 16.5px; font-weight: 600; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 500; color: var(--cyan); background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.25);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--blue4); }
.faq-item summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 14px; }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.faq-answer a { color: var(--cyan); }

/* Pie con enlaces internos */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: rgba(232,240,255,0.78); font-size: 13.5px; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(120,190,255,0.3); }
.footer-copy a:hover { color: #fff; }

/* Ambiente y motivo de fondo de las secciones de la home */
body[data-amb="soluciones"] #ambient { background: radial-gradient(85% 65% at 30% 40%, rgba(56,189,248,0.26), transparent 72%); }
body[data-amb="servicios"]  #ambient { background: radial-gradient(82% 65% at 70% 45%, rgba(59,130,246,0.30), transparent 72%); }
body[data-amb="metodo"]     #ambient { background: radial-gradient(85% 65% at 40% 55%, rgba(56,189,248,0.26), transparent 72%); }
body[data-amb="sectores"]   #ambient { background: radial-gradient(90% 72% at 50% 45%, rgba(96,165,250,0.24), transparent 74%); }
body[data-amb="faq"]        #ambient { background: radial-gradient(82% 65% at 60% 40%, rgba(37,99,235,0.28), transparent 74%); }
body[data-amb="soluciones"] #motif { background-image: radial-gradient(rgba(56,189,248,0.13) 1.5px, transparent 1.7px); background-size: 38px 38px; }
body[data-amb="servicios"]  #motif { background-image: linear-gradient(rgba(59,130,246,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.09) 1px, transparent 1px); background-size: 46px 46px; }
body[data-amb="metodo"]     #motif { background-image: repeating-linear-gradient(90deg, rgba(56,189,248,0.10) 0 1px, transparent 1px 72px); }
body[data-amb="sectores"]   #motif { background-image: radial-gradient(rgba(96,165,250,0.11) 1.5px, transparent 1.7px); background-size: 48px 48px; }
body[data-amb="faq"]        #motif { background-image: linear-gradient(rgba(37,99,235,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.08) 1px, transparent 1px); background-size: 48px 48px; }

/* Rendimiento: sin desenfoque en los componentes nuevos (igual que en el resto) */
.pack-card, .faq-item { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

@media (max-width: 900px) {
  .pack-grid { grid-template-columns: 1fr; }
  .pack-card { padding: 30px 26px; }
}
@media (max-width: 640px) {
  .faq-item summary { padding: 17px 18px; font-size: 15.5px; }
  .faq-answer { padding: 0 18px 18px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (min-width: 1700px) {
  .faq-list { max-width: 1000px; }
}

/* ═══════════ CLEVERXIA · detalles de la home (2026-09-14) ═══════════ */
/* Énfasis y enlace dentro del subtítulo del hero */
.hero-subtitle strong { color: #fff; font-weight: 600; }
.hero-subtitle a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(56,189,248,0.45); transition: color 0.2s, border-color 0.2s; }
.hero-subtitle a:hover { color: #fff; border-color: #fff; }
/* Pasos del método como lista ordenada, sin viñetas */
.steps { list-style: none; }
/* Etiqueta de sección dentro de la caja de contacto */
.cta-box .section-tag { position: relative; }

/* ═══════════ NAV · el enlace «← CleverXIA» no aprieta el menú (2026-09-14) ═══════════ */
/* Con el enlace de vuelta, entre 901 y ~930 px el menú no cabía y la marca «Cleo AI»
   se partía en dos líneas (la barra pasaba de 68 a 90 px). Solo en ese tramo y solo en
   menús con enlace de vuelta: separación algo menor. La marca nunca se encoge.        */
.nav-brand { flex-shrink: 0; }
@media (min-width: 901px) and (max-width: 1060px) {
  .nav-links:has(.nav-back) { gap: 16px; }
  .nav-links:has(.nav-back) a { white-space: nowrap; }
}

/* ═══════════ NAV · aprovecha las pantallas grandes (2026-09-14) ═══════════ */
/* Con 1200 px fijos, en monitores grandes la marca y el menú quedaban apretados en el
   centro con mucho hueco a los lados. Ahora el menú crece con la pantalla (90 % del
   ancho, tope 1840 px). Por debajo de 1334 px sigue exactamente como antes.          */
.nav-inner { max-width: max(1200px, min(90vw, 1840px)); }
@media (min-width: 1334px) {
  .nav-inner { padding-left: 32px; padding-right: 32px; }
}

/* ═══════════ NAV · botón «Volver a CleverXIA» (2026-09-14) ═══════════ */
/* Píldora cian con icono: se distingue de los enlaces de sección (grises) y del botón
   principal (azul sólido), para que se entienda que sale a la web de CleverXIA.      */
.nav-links a.nav-back {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 5px 14px 5px 6px; margin-right: 6px; border-radius: 99px;
  color: #7dd3fc; font-weight: 600; letter-spacing: 0.01em;
  background: rgba(56,189,248,0.10); border: 1px solid rgba(56,189,248,0.40);
  box-shadow: 0 0 16px rgba(56,189,248,0.14), inset 0 0 10px rgba(56,189,248,0.06);
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.nav-links a.nav-back::before { content: none; }   /* fuera la flecha de texto anterior */
.nav-links a.nav-back::after  { content: none; }   /* sin el subrayado de los enlaces de sección */
.nav-back-ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(56,189,248,0.22); color: #e0f2fe; transition: transform 0.2s var(--ease);
}
.nav-back-ico .ico { width: 13px; height: 13px; stroke-width: 2.5; }
.nav-links a.nav-back:hover {
  color: #fff; background: rgba(56,189,248,0.20); border-color: rgba(56,189,248,0.65);
  box-shadow: 0 0 24px rgba(56,189,248,0.32);
}
.nav-links a.nav-back:hover .nav-back-ico { transform: translateX(-2px); }
.nav-links a.nav-back:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
/* Tramo intermedio (901–1279 px): solo «CleverXIA», para que el menú quepa en una línea */
@media (min-width: 901px) and (max-width: 1279px) {
  .nav-back-pre { display: none; }
  .nav-links a.nav-back { padding-right: 12px; margin-right: 0; }
}
/* Menú de móvil: píldora arriba del todo, sin estirarse */
@media (max-width: 900px) {
  .nav-links a.nav-back { align-self: flex-start; margin: 12px 0 8px; padding: 7px 16px 7px 8px; border-bottom: 1px solid rgba(56,189,248,0.40); }
}

/* ═══════════ NAV · aire entre la marca y el menú (2026-09-14) ═══════════ */
/* Con el botón «CleverXIA», entre 901 y ~940 px la marca «Cleo AI» y el menú se tocaban
   (0 px de separación). La marca y el menú nunca bajan de 24 px de aire, y solo en ese
   tramo y en menús con botón de vuelta: algo menos de separación y texto 1 px menor.   */
.nav-inner { gap: 24px; }
@media (min-width: 901px) and (max-width: 1060px) {
  .nav-links:has(.nav-back) { gap: 12px; }
  .nav-links:has(.nav-back) a { font-size: 14px; }
  .nav-links:has(.nav-back) .nav-cta { padding: 9px 16px; }
}

/* ═══════════ SOLUCIONES · rejillas sin tarjetas huérfanas (2026-09-21) ═══════════ */
/* Con flex + ancho fijo, 6 tarjetas quedaban 5 + 1 en pantallas muy anchas. Rejilla real. */
.why-grid.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why-grid.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; }
.why-grid.grid-3 .why-card, .why-grid.grid-2 .why-card { width: auto; }
.float-grid.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.float-grid.grid-4 .hud-card { width: auto; }
.usecase-grid.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.usecase-grid.grid-4 .usecase { width: auto; }
@media (max-width: 1100px) { .float-grid.grid-4, .usecase-grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px)  { .why-grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .why-grid.grid-3, .why-grid.grid-2, .float-grid.grid-4, .usecase-grid.grid-4 { grid-template-columns: 1fr; } }

/* ═══════════ HOME · dos soluciones + franja «próximamente» (2026-09-21) ═══════════ */
.pack-grid.is-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pack-status.is-new { color: #7dd3fc; border-color: rgba(125,211,252,0.45); background: rgba(56,189,248,0.10); }
.pack-status.is-new::before { animation: pulseDot 2s ease-in-out infinite; }
.pack-soon {
  margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 20px 26px; border-radius: 18px; border: 1px dashed rgba(120,190,255,0.28); background: rgba(8,15,31,0.48);
}
.pack-soon p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; max-width: 760px; }
.pack-soon strong { color: #fff; }
@media (max-width: 900px) { .pack-grid.is-duo { grid-template-columns: 1fr; } }

/* ═══════════ AGENTES DE VOZ IA · página de la solución (2026-09-21) ═══════════ */
/* Hero en dos columnas: texto + llamada en curso */
#hero.hero-voz { text-align: left; }
.hero-split {
  width: 100%; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center; position: relative; z-index: 1;
}
.hero-split .hero-content { max-width: 620px; }
.hero-split .hero-badge { margin-bottom: 22px; }
.hero-split .hero-title { font-size: clamp(34px, 4.6vw, 58px); }
.hero-split .hero-subtitle { margin-left: 0; margin-right: 0; max-width: 560px; }
.hero-split .hero-actions { justify-content: flex-start; margin-bottom: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.call-panel {
  position: relative; border-radius: 22px; padding: 22px 22px 18px;
  background: rgba(8,15,31,0.78); border: 1px solid rgba(56,189,248,0.32);
  box-shadow: 0 0 60px rgba(37,99,235,0.22), inset 0 0 30px rgba(56,189,248,0.05);
}
.call-panel::before {
  content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0.8;
}
.call-live { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.call-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: pulseDot 1.6s ease-in-out infinite; }
.call-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid rgba(120,190,255,0.12); }
.call-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 22px rgba(56,189,248,0.45);
}
.call-who { flex: 1; min-width: 0; }
.call-name { color: #fff; font-weight: 700; font-size: 16px; }
.call-meta { color: var(--muted); font-size: 13px; margin-top: 2px; font-family: var(--mono); }
.call-wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.call-wave i { display: block; width: 4px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 8px rgba(56,189,248,0.6); animation: callWave 1.1s ease-in-out infinite; }
.call-wave i:nth-child(1) { height: 30%; animation-delay: 0s; }
.call-wave i:nth-child(2) { height: 70%; animation-delay: .15s; }
.call-wave i:nth-child(3) { height: 100%; animation-delay: .3s; }
.call-wave i:nth-child(4) { height: 55%; animation-delay: .45s; }
.call-wave i:nth-child(5) { height: 80%; animation-delay: .6s; }
@keyframes callWave { 0%,100% { transform: scaleY(0.45); opacity: 0.7; } 50% { transform: scaleY(1); opacity: 1; } }
.call-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; }
.call-msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.call-msg.ia { align-self: flex-start; color: #e8f0ff; background: rgba(18,30,54,0.8); border: 1px solid rgba(120,190,255,0.24); border-bottom-left-radius: 4px; }
.call-msg.cli { align-self: flex-end; color: #fff; background: linear-gradient(135deg, rgba(37,99,235,0.9), rgba(29,78,216,0.85)); border: 1px solid rgba(120,190,255,0.4); border-bottom-right-radius: 4px; }
.call-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(120,190,255,0.12); }
.call-tags span {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #7dd3fc; padding: 5px 10px; border-radius: 7px; background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.3);
}

/* Cifras */
.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats-band .dc-panel { width: auto; padding: 24px 22px; }
.stat-num {
  font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(110deg, #ffffff 0%, #bfe3ff 45%, #38bdf8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-lbl { color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 8px; }
@media (max-width: 900px) { .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Método en raíles: número + título + explicación */
.flow-rails.steps-rails { max-width: 880px; }
.steps-rails .rail { align-items: flex-start; padding: 18px 22px 18px 24px; }
.rail-num { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--cyan); min-width: 28px; padding-top: 2px; position: relative; z-index: 1; text-shadow: 0 0 10px rgba(56,189,248,0.5); }
.steps-rails .rail-txt { font-size: 15px; line-height: 1.6; color: var(--muted); }
.steps-rails .rail-txt strong { display: block; color: #fff; font-size: 16.5px; font-weight: 700; margin-bottom: 3px; }
.center-cta { display: flex; justify-content: center; margin-top: 34px; }

/* Cumplimiento: escudo + tarjetas */
#cumplimiento .shield-stage { margin-bottom: 44px; }
.cta-box .check-list { text-align: left; max-width: 460px; margin: 0 auto 30px; position: relative; }

/* Ambiente y tinte de fondo de las secciones nuevas */
body[data-amb="cifras"]       #ambient { background: radial-gradient(85% 65% at 50% 40%, rgba(56,189,248,0.24), transparent 72%); }
body[data-amb="plataforma"]   #ambient { background: radial-gradient(82% 65% at 38% 40%, rgba(37,99,235,0.30), transparent 74%); }
body[data-amb="cumplimiento"] #ambient { background: radial-gradient(78% 72% at 50% 28%, rgba(59,130,246,0.30), transparent 74%); }
body[data-amb="cifras"]       #motif { background-image: radial-gradient(rgba(56,189,248,0.13) 1.5px, transparent 1.7px); background-size: 38px 38px; }
body[data-amb="plataforma"]   #motif { background-image: linear-gradient(rgba(37,99,235,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.09) 1px, transparent 1px); background-size: 48px 48px; }
body[data-amb="cumplimiento"] #motif { background-image: repeating-radial-gradient(circle at 50% 42%, rgba(59,130,246,0.11) 0 1px, transparent 1px 64px); }

.call-panel, .stats-band .dc-panel { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  #hero.hero-voz { text-align: center; }
  .hero-split .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-split .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-split .hero-actions, .trust-row { justify-content: center; }
  .call-panel { max-width: 520px; margin: 0 auto; text-align: left; }
}
@media (max-width: 640px) {
  .call-msg { font-size: 14px; }
  .steps-rails .rail { padding: 16px 16px 16px 20px; }
}

/* Logo oficial de CleverXIA (04/11/2026) */
.nav-logo-full { height: 38px; width: auto; display: block; }
.footer-logo-full { height: 30px; width: auto; display: block; }
@media (max-width: 600px) { .nav-logo-full { height: 32px; } }

/* Pie: enlaces legales y contacto en todas las páginas (12/11/2026) */
.footer-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 14px; border-top: 1px solid rgba(120,190,255,0.08); }
.footer-legal a { color: rgba(232,240,255,0.72); font-size: 12.5px; text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: #fff; }
@media (max-width: 640px) { .footer-legal { justify-content: center; } }
