/* ═══════════════════════════════════════════════════════════════
   KRANIA — Hoja de estilos principal
   Diseño: Neural Lab — moderno, oscuro, ejecutivo
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────
   1. VARIABLES (puedes editar colores aquí)
   ─────────────────────────────────────────────── */
:root {
  /* Colores base */
  --bg:           #06080F;        /* Fondo principal (casi negro) */
  --bg-soft:      #0A0E1A;        /* Fondo suave */
  --bg-card:      #0D131F;        /* Fondo de tarjetas */
  --bg-elevated:  rgba(15, 22, 38, 0.7);

  /* Colores de marca */
  --accent:       #00E5FF;        /* Cian principal */
  --accent-soft:  #00B4D8;        /* Cian suave */
  --accent-blue:  #4D8DFF;        /* Azul */
  --accent-warm:  #FF6B6B;        /* Acento cálido para detalles */

  /* Texto */
  --text:         #E8F0FA;        /* Texto principal */
  --text-soft:    #A8B8CC;        /* Texto secundario */
  --text-muted:   #6A7A92;        /* Texto apagado */

  /* Bordes */
  --border:       rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 229, 255, 0.25);

  /* Sombras y efectos */
  --shadow-card:  0 1px 0 rgba(255,255,255,0.03) inset, 0 20px 50px -20px rgba(0,0,0,0.6);
  --shadow-glow:  0 0 60px rgba(0, 229, 255, 0.15);

  /* Tipografías */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --container:    1240px;
  --header-h:     72px;
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    24px;

  /* Curvas de animación */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* IMPORTANTE: cursor nativo del sistema (NO personalizado) */
  cursor: auto;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Selección de texto */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Scrollbar elegante */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.2);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 229, 255, 0.4); }

/* ───────────────────────────────────────────────
   3. CONTENEDOR
   ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* ───────────────────────────────────────────────
   4. CANVAS DE FONDO
   ─────────────────────────────────────────────── */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ───────────────────────────────────────────────
   5. BARRA DE PROGRESO DE SCROLL
   ─────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  z-index: 200;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  transition: width 0.08s linear;
}

/* ───────────────────────────────────────────────
   6. HEADER
   ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(6, 8, 15, 0.75);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(77, 141, 255, 0.08));
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
}

.main-nav a {
  color: var(--text-soft);
  position: relative;
  transition: color 0.2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  flex-shrink: 0;
}

/* Botón hamburguesa móvil */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.2s;
}

.menu-toggle:hover {
  border-color: var(--border-hover);
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Menú móvil desplegable */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  background: rgba(13, 19, 31, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text-soft);
  transition: all 0.2s;
}

.mobile-menu a:hover {
  background: rgba(0, 229, 255, 0.05);
  color: var(--text);
}

.mobile-cta {
  margin-top: 8px;
  justify-content: center;
}

/* ───────────────────────────────────────────────
   7. BOTONES
   ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-large {
  padding: 14px 28px;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 6px 24px -4px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(0, 229, 255, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.04);
  border-color: var(--border-hover);
  color: var(--accent);
}

/* ───────────────────────────────────────────────
   8. HERO
   ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 60px) 0 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  /* Resplandor radial sutil detrás del hero */
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "copy visual"
    "stats stats";
  gap: 60px 50px;
  align-items: center;
}

.hero-copy {
  grid-area: copy;
}

.hero-visual {
  grid-area: visual;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: badgePulse 1.6s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.9s var(--ease-out) 0.1s both;
}

.hero-rotator {
  display: inline-block;
  position: relative;
  height: 1.1em;
  vertical-align: top;
  min-width: 6ch;
}

.rotator-word {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
  white-space: nowrap;
}

.rotator-word[data-active] {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.gradient-text {
  background: linear-gradient(120deg, #FFFFFF 0%, var(--accent) 50%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 32px;
  animation: fadeInUp 1s var(--ease-out) 0.2s both;
}

.hero-description em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  animation: fadeInUp 1.1s var(--ease-out) 0.3s both;
}

/* Visual hero — Núcleo neural */
.hero-visual {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1.2s var(--ease-out) 0.4s both;
}

.neural-core {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.core-ring {
  position: absolute;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.core-ring::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  top: -4px;
  left: 50%;
  margin-left: -4px;
  box-shadow: 0 0 16px var(--accent);
}

.ring-1 {
  width: 240px;
  height: 240px;
  animation: ringSpin1 12s linear infinite;
}

.ring-2 {
  width: 320px;
  height: 320px;
  border-color: rgba(77, 141, 255, 0.18);
  animation: ringSpin2 18s linear infinite reverse;
}

.ring-2::before {
  background: var(--accent-blue);
  box-shadow: 0 0 16px var(--accent-blue);
}

.ring-3 {
  width: 400px;
  height: 400px;
  border-color: rgba(0, 229, 255, 0.08);
  animation: ringSpin3 24s linear infinite;
}

@keyframes ringSpin1 {
  from { transform: rotateX(70deg) rotateZ(0deg); }
  to   { transform: rotateX(70deg) rotateZ(360deg); }
}

@keyframes ringSpin2 {
  from { transform: rotateX(75deg) rotateY(20deg) rotateZ(0deg); }
  to   { transform: rotateX(75deg) rotateY(20deg) rotateZ(360deg); }
}

@keyframes ringSpin3 {
  from { transform: rotateX(60deg) rotateZ(0deg); }
  to   { transform: rotateX(60deg) rotateZ(360deg); }
}

.core-center {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 80, 150, 0.4), rgba(6, 8, 15, 0.95));
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 80px rgba(0, 229, 255, 0.2), inset 0 0 40px rgba(0, 229, 255, 0.05);
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: corePulse 3.5s ease-in-out infinite;
  z-index: 2;
}

.core-center::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(0,229,255,0.05) 12px, rgba(0,229,255,0.05) 13px),
    repeating-linear-gradient(90deg, transparent, transparent 12px, rgba(0,229,255,0.05) 12px, rgba(0,229,255,0.05) 13px);
  border-radius: 50%;
}

.core-center img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4));
  animation: coreFloat 4s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% {
    box-shadow: 0 0 80px rgba(0, 229, 255, 0.2), inset 0 0 40px rgba(0, 229, 255, 0.05);
  }
  50% {
    box-shadow: 0 0 120px rgba(0, 229, 255, 0.35), inset 0 0 60px rgba(0, 229, 255, 0.1);
  }
}

@keyframes coreFloat {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.03) translateY(-3px); }
}

/* Partículas flotantes */
.core-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.p1 { top: 10%; left: 15%; animation: particle1 7s ease-in-out infinite; }
.p2 { top: 20%; right: 10%; animation: particle2 9s ease-in-out infinite; }
.p3 { bottom: 15%; left: 10%; animation: particle3 8s ease-in-out infinite; }
.p4 { bottom: 25%; right: 15%; animation: particle4 10s ease-in-out infinite; background: var(--accent-blue); box-shadow: 0 0 12px var(--accent-blue); }

@keyframes particle1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-20px)} }
@keyframes particle2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-25px,30px)} }
@keyframes particle3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-25px)} }
@keyframes particle4 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,-20px)} }

/* Stats hero */
.hero-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  margin-top: 20px;
  animation: fadeInUp 1.2s var(--ease-out) 0.4s both;
}

.stat {
  padding: 22px 20px;
  text-align: left;
  position: relative;
  transition: background 0.3s;
}

.stat:hover {
  background: rgba(0, 229, 255, 0.03);
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 2px;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* ───────────────────────────────────────────────
   9. SECCIONES BASE
   ─────────────────────────────────────────────── */
.section {
  padding: 90px 0;
  position: relative;
}

.section-head {
  margin-bottom: 56px;
  max-width: 700px;
}

.section-head-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.kicker-center {
  display: block;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text);
}

.section-lead {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 56ch;
}

.section-head-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ───────────────────────────────────────────────
   10. BENTO GRID DE SERVICIOS
   ─────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 16px;
}

.bento-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-card::before {
  /* Brillo sutil en hover */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), 0 0 30px rgba(0, 229, 255, 0.06);
}

.bento-card:hover::before {
  opacity: 1;
}

/* Tamaños de tarjetas */
.bento-card { grid-column: span 1; }
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-medium { grid-column: span 2; }

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(77, 141, 255, 0.08));
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: all 0.3s;
  flex-shrink: 0;
}

.bento-card:hover .bento-icon {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(77, 141, 255, 0.15));
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
  transform: scale(1.05);
}

.bento-icon svg {
  width: 22px;
  height: 22px;
}

.bento-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(0, 229, 255, 0.3);
  letter-spacing: 0.05em;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.bento-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.bento-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--accent);
}

/* Decoraciones bento (código) */
.bento-deco {
  margin-top: 16px;
  position: relative;
  flex: 1;
  min-height: 100px;
}

.code-deco pre {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-soft);
  overflow: hidden;
}

.c-key  { color: #FF7AB6; }
.c-var  { color: var(--accent); }
.c-prop { color: #B8DAFF; }
.c-str  { color: #A8E6A1; }
.c-num  { color: #FFB86B; }

/* Decoración móvil */
.phone-deco {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.phone-mock {
  width: 130px;
  height: 180px;
  border: 2px solid rgba(0, 229, 255, 0.25);
  border-radius: 18px;
  padding: 16px 12px;
  background: linear-gradient(180deg, rgba(0,229,255,0.04), transparent);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform 0.5s var(--ease-out);
}

.bento-card:hover .phone-mock {
  transform: rotate(-3deg) scale(1.05);
}

.phone-bar {
  width: 60%;
  height: 8px;
  background: var(--accent);
  border-radius: 4px;
  margin-bottom: 8px;
}

.phone-line {
  height: 6px;
  background: rgba(0, 229, 255, 0.2);
  border-radius: 3px;
}

.phone-line.short { width: 70%; }

.phone-block {
  margin-top: auto;
  height: 50px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(77, 141, 255, 0.05));
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 8px;
}

/* ───────────────────────────────────────────────
   11. STACK TECNOLÓGICO
   ─────────────────────────────────────────────── */
.section-stack {
  background: linear-gradient(180deg, transparent, rgba(0, 20, 40, 0.3), transparent);
  overflow: hidden;
}

.stack-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.stack-categories {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.stack-cat {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  align-items: center;
  transition: padding 0.3s;
}

.stack-cat:last-child {
  border-bottom: 1px solid var(--border);
}

.stack-cat:hover {
  padding-left: 8px;
}

.cat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cat-items {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

/* Orb central del stack */
.stack-orb {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.18);
}

.orb-ring::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  top: -5px;
  left: 50%;
  margin-left: -5px;
  box-shadow: 0 0 18px var(--accent);
}

.ring-a {
  width: 280px;
  height: 280px;
  animation: orbSpinA 14s linear infinite;
}

.ring-b {
  width: 360px;
  height: 360px;
  border-color: rgba(77, 141, 255, 0.15);
  animation: orbSpinB 22s linear infinite reverse;
}

.ring-b::before {
  background: var(--accent-blue);
  box-shadow: 0 0 18px var(--accent-blue);
}

.ring-c {
  width: 440px;
  height: 440px;
  border-color: rgba(0, 229, 255, 0.08);
  animation: orbSpinC 32s linear infinite;
}

@keyframes orbSpinA {
  from { transform: rotate(0deg) rotateX(70deg); }
  to   { transform: rotate(360deg) rotateX(70deg); }
}

@keyframes orbSpinB {
  from { transform: rotate(0deg) rotateX(75deg) rotateZ(15deg); }
  to   { transform: rotate(360deg) rotateX(75deg) rotateZ(15deg); }
}

@keyframes orbSpinC {
  from { transform: rotate(0deg) rotateX(65deg) rotateZ(-10deg); }
  to   { transform: rotate(360deg) rotateX(65deg) rotateZ(-10deg); }
}

.orb-core {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(0, 80, 150, 0.5), rgba(6, 8, 15, 0.95));
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.2), inset 0 0 40px rgba(0, 229, 255, 0.05);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.orb-core span {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* Tags flotantes alrededor del orb */
.orb-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 12px;
  background: rgba(13, 19, 31, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  color: var(--accent);
  white-space: nowrap;
  animation: tagFloat 4s ease-in-out infinite;
  z-index: 3;
  backdrop-filter: blur(8px);
}

.tag-1 { top: 8%;  left: 12%; animation-delay: 0s; }
.tag-2 { top: 18%; right: 8%; animation-delay: 0.6s; }
.tag-3 { top: 50%; left: 0%;  animation-delay: 1.2s; }
.tag-4 { bottom: 22%; right: 4%; animation-delay: 1.8s; }
.tag-5 { bottom: 12%; left: 18%; animation-delay: 2.4s; }
.tag-6 { top: 50%; right: 0%; animation-delay: 3s; }

@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ───────────────────────────────────────────────
   12. PROCESO (timeline horizontal)
   ─────────────────────────────────────────────── */
.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.process-line {
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent-blue) 80%, transparent);
  opacity: 0.3;
  z-index: 0;
}

.process-step {
  position: relative;
  padding: 70px 18px 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  z-index: 1;
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.step-number {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13, 19, 31, 1), rgba(0, 229, 255, 0.1));
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.25);
  transition: all 0.3s;
}

.process-step:hover .step-number {
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.5);
  transform: translate(-50%, -50%) scale(1.05);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 16px;
}

.step-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ───────────────────────────────────────────────
   13. CTA FINAL
   ─────────────────────────────────────────────── */
.section-cta {
  padding-bottom: 60px;
}

.cta-card {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(13, 19, 31, 0.9), rgba(6, 8, 15, 0.95));
  border: 1px solid var(--border);
  overflow: hidden;
}

.cta-card::before {
  /* Borde rotativo brillante */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: conic-gradient(from 0deg, transparent, rgba(0,229,255,0.5) 60deg, rgba(77,141,255,0.5) 120deg, transparent 180deg, transparent 360deg);
  animation: borderSpin 6s linear infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes borderSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-card::after {
  /* Resplandor de fondo */
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.1), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 12px 0 16px;
  color: var(--text);
}

.cta-description {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cta-info {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: all 0.25s;
}

.info-pill:hover {
  background: rgba(0, 229, 255, 0.05);
  border-color: var(--border-hover);
  color: var(--text);
}

.info-pill svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ───────────────────────────────────────────────
   14. FOOTER
   ─────────────────────────────────────────────── */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ───────────────────────────────────────────────
   15. ANIMACIONES DE REVEAL (al hacer scroll)
   ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ───────────────────────────────────────────────
   16. RESPONSIVE — TABLET
   ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "copy"
      "stats";
    gap: 40px;
  }

  .hero-visual {
    height: 360px;
  }

  .neural-core {
    width: 300px;
    height: 300px;
  }

  .ring-1 { width: 200px; height: 200px; }
  .ring-2 { width: 270px; height: 270px; }
  .ring-3 { width: 340px; height: 340px; }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .bento-medium {
    grid-column: span 2;
  }

  .stack-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .stack-orb {
    height: 400px;
    order: -1;
  }

  .ring-a { width: 240px; height: 240px; }
  .ring-b { width: 320px; height: 320px; }
  .ring-c { width: 400px; height: 400px; }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 20px;
  }

  .process-line {
    display: none;
  }
}

/* ───────────────────────────────────────────────
   17. RESPONSIVE — MÓVIL
   ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .main-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding: calc(var(--header-h) + 40px) 0 60px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-left: 1px solid var(--border);
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .stat:nth-child(3) {
    border-left: none;
  }

  .neural-core {
    width: 260px;
    height: 260px;
  }

  .ring-1 { width: 170px; height: 170px; }
  .ring-2 { width: 230px; height: 230px; }
  .ring-3 { width: 290px; height: 290px; }

  .core-center {
    width: 130px;
    height: 130px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-card,
  .bento-large,
  .bento-medium {
    grid-column: span 1;
    grid-row: span 1;
  }

  .stack-cat {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-card {
    padding: 50px 24px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-copy {
    font-size: 0.8rem;
  }
}

/* ───────────────────────────────────────────────
   18. RESPONSIVE — MÓVIL PEQUEÑO
   ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .stack-orb {
    height: 320px;
  }

  .ring-a { width: 200px; height: 200px; }
  .ring-b { width: 260px; height: 260px; }
  .ring-c { width: 320px; height: 320px; }

  .orb-tag {
    font-size: 0.68rem;
    padding: 5px 10px;
  }
}

/* ───────────────────────────────────────────────
   19. ACCESIBILIDAD — Reducir movimiento
   ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
