/* ═══════════════════════════════════════════════════════════
   URMAH AI AGENCY — styles.css
   Futuristic Neural Glassmorphism Design System
   v=20260810
   ═══════════════════════════════════════════════════════════ */

/* ─── TOKENS & DESIGN SYSTEM ─────────────────────────────── */
:root {
  --bg-deep:       #030712;
  --bg-card:       #0b0f19;
  --bg-card-hover: #111827;
  
  --cyan:          #00f2fe;
  --cyan-glow:     rgba(0, 242, 254, 0.35);
  --indigo:        #4f46e5;
  --indigo-glow:   rgba(79, 70, 229, 0.4);
  --violet:        #7c3aed;
  --green:         #10b981;
  
  --text:          #f8fafc;
  --text-muted:    rgba(248, 250, 252, 0.65);
  --text-dim:      rgba(248, 250, 252, 0.32);
  --line:          rgba(255, 255, 255, 0.08);
  --line-bright:   rgba(0, 242, 254, 0.25);
  
  --glass-bg:      rgba(11, 15, 25, 0.68);
  --glass-border:  rgba(255, 255, 255, 0.12);
  --glass-glow:    0 8px 32px 0 rgba(0, 242, 254, 0.08);

  --font-serif: 'Outfit', sans-serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-io:   cubic-bezier(0.83, 0, 0.17, 1);

  --nav-h: 80px;
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  font-size: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--bg-deep);
  color: var(--text);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
textarea { resize: vertical; }

.mono { font-family: var(--font-mono); }
.text-cyan { color: var(--cyan) !important; }
.text-green { color: var(--green) !important; }

/* ─── BACKGROUND LAYERS & CANVAS ─────────────────────────── */
#three-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(3, 7, 18, 0.45);
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, transparent 30%, rgba(3, 7, 18, 0.6) 70%, rgba(3, 7, 18, 0.95) 100%);
  pointer-events: none;
}

.cyber-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.7;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.035;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

/* ─── CUSTOM CURSOR & POINTER VISIBILITY ─────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  pointer-events: none;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 0 12px var(--cyan);
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 242, 254, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  will-change: transform;
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring,
body:has(.glass-card:hover) .cursor-ring {
  width: 54px;
  height: 54px;
  border-color: var(--cyan);
  background: rgba(0, 242, 254, 0.08);
}

/* ─── SPLASH SCREEN ─────────────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .7s ease, transform .7s var(--ease-in);
}
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.splash-logo-box {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid var(--line-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.2);
  animation: logoPulse 2s infinite alternate ease-in-out;
}
@keyframes logoPulse {
  0% { box-shadow: 0 0 20px rgba(0, 242, 254, 0.2); transform: scale(0.98); }
  100% { box-shadow: 0 0 50px rgba(0, 242, 254, 0.5); transform: scale(1.04); }
}

.splash-img-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.splash-wordmark {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: var(--text);
  display: flex;
  gap: 0.1em;
}

.splash-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
}

.splash-bar {
  width: 180px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.splash-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  animation: splashFill 2.2s var(--ease-out) forwards;
}
@keyframes splashFill {
  to { width: 100%; }
}

.cyber-blink {
  animation: blink 0.8s infinite alternate;
}
@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0.2; }
}

/* ─── LAYOUT & UTILITIES ─────────────────────────────────── */
main {
  position: relative;
  z-index: 10;
}

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(5rem, 9vw, 9rem);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-glow);
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s var(--ease-out), box-shadow .3s ease;
}

.glass-card:hover {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 12px 40px rgba(0, 242, 254, 0.15);
}

/* ─── FLOATING NAVBAR ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 500;
  height: var(--nav-h);
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.4));
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-wordmark {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text);
  line-height: 1;
}

.nav-submark {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--text);
}
.nav-link:hover::after {
  width: 100%;
}

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.lang-toggle:hover {
  background: var(--cyan);
  color: #030712;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.btn-nav {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background: var(--cyan);
  color: #030712;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.pulse-icon {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulseDot 1.8s infinite ease-in-out;
}
.btn-nav:hover .pulse-icon {
  background: #030712;
  box-shadow: none;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* ─── MOBILE HAMBURGER TOGGLE ───────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(3, 7, 18, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .nav-actions { gap: 0.5rem; }

  .lang-toggle {
    padding: 0.5rem 0.6rem;
    font-size: 0.65rem;
  }

  .nav-submark { font-size: 0.55rem; }
  .nav-wordmark { font-size: 1rem; }
  .nav-logo-img { width: 32px; height: 32px; }
  .nav-inner { gap: 0.75rem; }
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), #3b82f6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.4);
  background: linear-gradient(135deg, #4338ca, var(--cyan));
  color: #030712;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.6s ease;
}
.btn-glow:hover::before {
  transform: rotate(30deg) translateY(100%);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.84rem;
}

.btn-block {
  width: 100%;
}

/* ─── HERO SECTION ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 5rem;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid var(--line-bright);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 1.8rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-title em,
.hero-title em .split-inner,
.section-title em,
.section-title em .split-inner,
.value-statement em,
.value-statement em .split-inner {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), #3b82f6, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 54ch;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.hero-metrics-strip {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.strip-item {
  display: flex;
  flex-direction: column;
}

.strip-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cyan);
}

.strip-lbl {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.strip-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

/* AI CONSOLE / TERMINAL WIDGET */
.ai-console {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 254, 0.12);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.console-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.console-controls {
  display: flex;
  gap: 6px;
}

.ctrl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ctrl-dot.red { background: #ef4444; }
.ctrl-dot.yellow { background: #f59e0b; }
.ctrl-dot.green { background: #10b981; }

.console-title {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.console-status {
  font-size: 0.7rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.console-body {
  padding: 1.5rem;
  min-height: 200px;
  font-size: 0.84rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.console-body .line.dim { color: var(--text-dim); }
.console-body .line.cyan { color: var(--cyan); }
.console-body .line.typewriter { color: #ffffff; font-weight: 500; }

.console-footer {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.8rem 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.console-widget {
  display: flex;
  flex-direction: column;
}
.widget-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}
.widget-val {
  font-size: 0.85rem;
  font-weight: 600;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 35px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollLine 2s infinite ease-in-out;
}
@keyframes scrollLine {
  0% { transform: scaleY(0.2); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0.2); transform-origin: bottom; }
}

/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-split] {
  opacity: 1;
  transform: none;
}
.split-word {
  display: inline-block;
  overflow: hidden;
}

/* ─── VENTAJAS / VALUE SECTION ───────────────────────────── */
.section-tag-box {
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--cyan);
  text-transform: uppercase;
  font-weight: 600;
}

.value-header-flex {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .value-header-flex {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

.value-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.value-statement em {
  font-style: normal;
  color: var(--cyan);
}

.value-subtext {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.value-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-glow-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(0, 242, 254, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.value-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--line-bright);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.value-card-num {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--indigo);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.value-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── SERVICIOS / MATRIZ DE SOLUCIONES ───────────────────── */
.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-block: 0.8rem 1rem;
}

.section-title em {
  font-style: normal;
  color: var(--cyan);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
}

.services-interactive-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

@media (max-width: 900px) {
  .services-interactive-wrapper {
    grid-template-columns: 1fr;
  }
}

.services-nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: var(--text-muted);
  text-align: left;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.tab-btn.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--line-bright);
  color: var(--cyan);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.1);
}

.tab-num {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.7;
}

.tab-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.services-tab-content {
  position: relative;
  min-height: 400px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s var(--ease-out) forwards;
}
.tab-panel.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  height: 100%;
}

@media (max-width: 768px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }
}

.panel-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1rem;
}

.panel-badge {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--indigo);
  font-weight: 700;
}

.panel-info h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
}

.panel-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.panel-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text);
}

.panel-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.panel-features svg {
  color: var(--cyan);
  flex-shrink: 0;
}

.panel-visual {
  height: 100%;
  min-height: 320px;
  padding: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 18, 0.7);
}

/* Tab visual contents */
.visual-code-preview {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.code-comment { color: var(--text-dim); }
.code-kw { color: var(--cyan); font-weight: 600; }
.code-str { color: #f59e0b; }
.code-bool { color: #10b981; }

.visual-workflow-nodes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}
.wf-node {
  width: 100%;
  padding: 0.8rem;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.wf-node.active {
  border-color: var(--cyan);
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}
.wf-arrow { color: var(--text-dim); font-size: 0.8rem; }

.chat-sim-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.chat-msg {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  line-height: 1.5;
}
.chat-msg.user {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  align-self: flex-end;
  max-width: 85%;
}
.chat-msg.bot {
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.3);
  color: var(--text);
  align-self: flex-start;
  max-width: 90%;
}
.bot-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 6px;
  background: var(--indigo);
  color: #fff;
  border-radius: 4px;
  margin-right: 6px;
}

.analytics-sim-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.sim-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.sim-bar-wrapper {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
}
.sim-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  border-radius: 5px;
}

.content-sim-box {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}
.content-card-chip {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

/* ─── CALCULADORA ROI ────────────────────────────────────── */
.roi-wrapper {
  padding: clamp(2rem, 5vw, 3.8rem);
}

.roi-header {
  text-align: center;
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.roi-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-block: 0.8rem;
}

.roi-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.roi-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .roi-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.roi-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.control-label-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.range-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cyan);
}

.roi-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  transition: background 0.3s ease;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 15px var(--cyan);
  transition: transform 0.2s ease;
}

.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.roi-results-box {
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.1);
}

.results-badge {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.result-amount {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 1.8rem;
}

.result-amount .currency {
  font-size: 0.4em;
  color: var(--text-muted);
  vertical-align: super;
}

.results-stats-row {
  display: flex;
  gap: 2rem;
  width: 100%;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.8rem;
}

.res-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.res-val {
  font-size: 1.3rem;
  font-weight: 700;
}

.res-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.roi-cta-wrap {
  width: 100%;
}

/* ─── PROCESO / ARQUITECTURA DE INTEGRACIÓN ─── */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--indigo);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.step-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;

}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── ESTADÍSTICAS & TESTIMONIO ──────────────────────────── */
.stats-section { padding-block: clamp(4rem, 8vw, 7rem); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-suffix {
  font-size: 0.6em;
  color: var(--cyan);
  vertical-align: super;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.testimonial {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.testimonial p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.testimonial cite {
  font-size: 0.82rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  font-style: normal;
}

/* ─── CONTACTO ───────────────────────────────────────────── */
.contact-wrapper {
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 980px;
  margin-inline: auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-input {
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-select {
  cursor: pointer;
}
.form-select option {
  background: var(--bg-card);
  color: var(--text);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}

.form-textarea {
  min-height: 130px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-submit {
  flex: 1;
  min-width: 260px;
  position: relative;
  overflow: hidden;
  padding: 1.05rem 2rem;
  font-size: 0.98rem;
}

.btn-submit .state-sending,
.btn-submit .state-sent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-submit.is-sending .state-default { opacity: 0; }
.btn-submit.is-sending .state-sending { opacity: 1; }

.btn-submit.is-sent .state-default { opacity: 0; }
.btn-submit.is-sent .state-sent { opacity: 1; background: var(--green); color: #fff; }

.form-status {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 1.2rem;
}
.form-status.is-error { color: #ef4444; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2rem;
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 38ch;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--green);
  font-size: 0.7rem;
}

.status-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

/* ─── FLOATING WHATSAPP BUTTON (HIGH-TECH GLASS) ──────────── */
.floating-wa-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(11, 15, 25, 0.88);
  border: 1px solid rgba(37, 211, 102, 0.4);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: #ffffff;
  padding: 0.65rem 1.2rem 0.65rem 0.75rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(37, 211, 102, 0.2);
  transition: all 0.35s var(--ease-out);
  text-decoration: none;
}

.floating-wa-btn:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #25d366;
  background: rgba(11, 15, 25, 0.95);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(37, 211, 102, 0.4);
}

.wa-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.floating-wa-btn:hover .wa-icon-box {
  background: #25d366;
  color: #030712;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.6);
}

.wa-tooltip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ─── CONTACT QUICK CARDS GRID (SEPARATED & BALANCED) ────── */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 860px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.contact-quick-card {
  background: rgba(3, 7, 18, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  transition: all 0.3s ease;
}

.contact-quick-card:hover {
  border-color: var(--cyan);
  background: rgba(0, 242, 254, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}

.contact-quick-card.wa-quick-card:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.08);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
}

.contact-quick-card.ig-quick-card:hover {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.08);
  box-shadow: 0 10px 30px rgba(225, 48, 108, 0.2);
}

.quick-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-icon-box.wa-box {
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
}

.quick-icon-box.ig-box {
  color: #e1306c;
  background: rgba(225, 48, 108, 0.1);
  border-color: rgba(225, 48, 108, 0.3);
}

.quick-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quick-lbl {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.quick-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-wa-hero {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-wa-hero:hover {
  background: #25d366;
  color: #030712;
  border-color: #25d366;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.btn-wa-form {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35);
  padding: 1.05rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
}
.btn-wa-form:hover {
  background: #25d366;
  color: #030712;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.footer-direct-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}

.footer-contact-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}
.footer-contact-link:hover {
  color: var(--cyan);
}
