/* ═══════════════════════════════════════════════════════════════════════════
   TRIFY OFFICIAL WEBSITE — DESIGN SYSTEM & HERO STYLES (Mobile-First)
   Carpeta: C:\Users\User\OneDrive\Desktop\pagina web_trify
   Directivas: .agents/rules/aresponsive.md + PALETA_LOGIN_NEON.md
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* ── Paleta Oficial Space Dark Mode ── */
  --bg-darkest: #050510;
  --bg-hero: #060612;
  --bg-dark: #0a0a1a;
  --bg-darker: #0f0f23;
  --bg-surface: #141432;
  --bg-elevated: #1a1a3e;

  /* ── Acentos Neón Índigo / Violeta ── */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-lighter: #a5b4fc;
  --primary-dark: #4f46e5;
  --primary-darker: #4338ca;
  --primary-glow: rgba(99, 102, 241, 0.45);
  --primary-subtle: rgba(99, 102, 241, 0.12);

  /* ── Jerarquía de Texto ── */
  --text-white: #ffffff;
  --text-neon-peak: #e0e7ff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* ── Semánticos ── */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* ── Tipografía ── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset Base Mobile-First ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-hero);
  color: var(--text-white);
  font-family: var(--font-sans);
  /* Barra de Scroll W3C Estándar (Firefox y navegadores modernos) */
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 140, 248, 0.45) #050510;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CUSTOM SCROLLBAR ULTRA-PREMIUM (ESTILO SPACE TITANIUM & NEÓN ÍNDIGO)
   Reemplaza la barra gris por defecto de Windows por un pill futurista y sutil
   ═══════════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #050510;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  border-radius: 999px;
  border: 2px solid #050510;
  background-clip: padding-box;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #818cf8 50%, #a78bfa 100%);
  box-shadow:
    inset 0 0 6px rgba(255, 255, 255, 0.3),
    0 0 10px rgba(99, 102, 241, 0.65);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #93c5fd 0%, #a5b4fc 100%);
}

/* Eliminar flechas toscas por defecto de Windows */
::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-corner {
  background: #050510;
}

body {
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-hero);
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FONDO CÓSMICO TRIFY: RUTAS AÉREAS & CONSTELACIÓN GLOBAL (VERSIÓN 3)
   Optimizado a 60/120 FPS sin filtros pesados · Velocidad Serene/Lenta
   ═══════════════════════════════════════════════════════════════════════════ */
.trify-cosmic-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: strict;
  background-color: var(--bg-hero);
  transform: translateZ(0);
}

/* Orbes Neón de Aurora (Estáticos y 100% fluidos, 0% costo GPU) */
.cosmic-aurora-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cosmic-orb-nw {
  width: min(650px, 60vw);
  height: min(650px, 60vw);
  left: -10%;
  top: -12%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0.12) 28%, rgba(99, 102, 241, 0.04) 55%, transparent 75%);
}

.cosmic-orb-se {
  width: min(720px, 65vw);
  height: min(720px, 65vw);
  right: -12%;
  bottom: -15%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(56, 189, 248, 0.08) 32%, rgba(99, 102, 241, 0.03) 58%, transparent 75%);
}

.cosmic-orb-center {
  width: min(550px, 50vw);
  height: min(550px, 50vw);
  left: 36%;
  top: 25%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(99, 102, 241, 0.05) 35%, transparent 70%);
}

.cosmic-god-ray {
  position: absolute;
  top: -200px;
  left: 18%;
  width: 650px;
  height: 420px;
  background: radial-gradient(ellipse at 50% 30%, rgba(129, 140, 248, 0.08) 0%, rgba(99, 102, 241, 0.02) 50%, transparent 80%);
  transform-origin: top left;
  transform: rotate(-26deg);
  pointer-events: none;
}

/* Constelación de Estrellas Titilantes (Ligera, sin subpíxeles ni filtros) */
.cosmic-stars-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star-dot {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 4px #818cf8;
}

.star-dot.star-pulse {
  animation: starTwinkle 12s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.85; }
}

/* Rutas Aéreas Globales Vectoriales (SVG) a velocidad majestuosa y pausada */
.flight-routes-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flight-route-arc {
  stroke-dasharray: 12 12;
}

.flight-comet-pulse {
  stroke-dasharray: 45 955;
  animation: cometTravel 28s linear infinite;
}

.comet-1 { animation-delay: 0s; }
.comet-2 { animation-delay: 14s; }

@keyframes cometTravel {
  0% { stroke-dashoffset: 1000; opacity: 0; }
  3% { opacity: 1; }
  96% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Radar Beacons en aeropuertos con pulsos pausados */
.beacon-pulse {
  transform-origin: center;
  animation: beaconPulseAnim 9s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes beaconPulseAnim {
  0% { transform: scale(0.6); opacity: 0.85; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Auras ambientales zonales por sección (Multi-etapa nativa sin filtros) */
.clients-showcase-section::before,
.docs-hub-section::before,
.security-hub-section::before {
  content: '';
  position: absolute;
  top: 15%;
  right: -5%;
  width: min(650px, 60vw);
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.06) 40%, rgba(99, 102, 241, 0.02) 65%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.neural-bridge-section::before,
.roles-hub-section::before,
.demo-section::before {
  content: '';
  position: absolute;
  top: 15%;
  left: -5%;
  width: min(650px, 60vw);
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.12) 0%, rgba(99, 102, 241, 0.06) 40%, rgba(56, 189, 248, 0.02) 65%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Optimización GPU Ultra: Content-visibility + Pausa total de animaciones fuera de vista */
/* Sin content-visibility: colapsaba la altura de las secciones fuera de vista y
   provocaba saltos bruscos al scrollear. Solo se pausan las animaciones. */

.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after {
  animation-play-state: paused !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   1. ANIMACIONES DEL LOGO PRISMA 3D Y TÍTULO NEÓN (PROPUESTA 3)
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes premiumLevitation {
  0%, 100% {
    transform: translateY(0);
    color: #ffffff;
    text-shadow:
      0 0 15px rgba(99, 102, 241, 0.45),
      0 0 30px rgba(99, 102, 241, 0.22);
  }
  50% {
    transform: translateY(-5px);
    color: #e0e7ff;
    text-shadow:
      0 0 25px rgba(129, 140, 248, 0.92),
      0 0 45px rgba(99, 102, 241, 0.65),
      0 0 70px rgba(79, 70, 229, 0.45);
  }
}

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

@keyframes jetTakeoffMotion {
  0%, 100% { transform: translate(-1.5px, 1.5px); }
  50% { transform: translate(2.5px, -3px); }
}

@keyframes trailDashFlow {
  0% { stroke-dashoffset: 36; opacity: 0.2; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.2; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. HEADER / NAVBAR SUPERIOR (BASE MÓVIL 320px+)
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.top-navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  z-index: 30;
}

/* Marca Izquierda: Prisma 3D + Trify perfectamente centrados */
.brand-prism-group {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  user-select: none;
}

.prism-shield {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  padding: 1.8px;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(99, 102, 241, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.prism-beam {
  position: absolute;
  inset: -65%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 250deg,
    #6366f1 300deg,
    #a5b4fc 335deg,
    #ffffff 360deg
  );
  animation: borderBeamSpin 5.5s linear infinite;
}

.prism-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 25%, #191b3a 0%, #090a18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trail-line {
  stroke-dasharray: 9 9;
  animation: trailDashFlow 1.35s linear infinite;
}

.jet-icon-group {
  animation: jetTakeoffMotion 3s ease-in-out infinite;
}

.brand-neon-title {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  color: #ffffff;
}

.trify-char {
  display: inline-block;
  color: #ffffff;
  animation: premiumLevitation 4.6s infinite ease-in-out;
  will-change: transform, text-shadow, color;
}

/* Cápsula Derecha: Early Access / Demo */
.early-access-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.early-access-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-lighter);
  margin-bottom: 0.45rem;
}

.early-access-pill {
  display: flex;
  align-items: center;
  width: 100%;
  background: #ffffff;
  border-radius: 9999px;
  padding: 0.3rem 0.3rem 0.3rem 1.15rem;
  box-shadow:
    0 0 32px rgba(99, 102, 241, 0.35),
    0 10px 25px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.early-access-pill:focus-within {
  box-shadow:
    0 0 42px rgba(129, 140, 248, 0.65),
    0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.early-access-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #0a0a1a;
  font-family: var(--font-sans);
  /* Regla crítica Mobile-First: >= 16px en móvil evita auto-zoom en iOS Safari */
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-width: 0;
}

.early-access-input::placeholder {
  color: #64748b;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.early-access-btn {
  min-height: 44px;
  padding: 0 1.35rem;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.early-access-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 22px rgba(129, 140, 248, 0.7);
}

.early-access-btn:active {
  transform: scale(0.97);
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. ESCENARIO CENTRAL: MOCKUPS 3D REALISTAS + TITULAR (BASE MÓVIL)
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  my: auto;
}

/* Escenario 3D de Dispositivos */
.devices-stage-wrapper {
  position: relative;
  width: 100%;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Halo Neón detrás de la Tablet y el iPhone (Nativo multi-etapa, 0% costo de GPU) */
.devices-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.25) 0%,
    rgba(139, 92, 246, 0.12) 35%,
    rgba(99, 102, 241, 0.04) 60%,
    transparent 78%
  );
  pointer-events: none;
}

.devices-3d-rig {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 390px;
  transition: transform 0.2s ease-out;
}

/* ─────────────────────────────────────────────────────────────────────────
   DISPOSITIVO 1: COMPUTADORA / MACBOOK PRO 16" TITANIO OSCURO (3D REALISTA)
   Levitación Serena 60/120 FPS
   ───────────────────────────────────────────────────────────────────────── */
@keyframes floatLaptopReal {
  0%, 100% {
    transform: perspective(1500px) rotateY(18.5deg) rotateX(4.5deg) rotateZ(-2.2deg) translateY(0);
  }
  50% {
    transform: perspective(1500px) rotateY(17.2deg) rotateX(3.8deg) rotateZ(-1.6deg) translateY(-8px);
  }
}

.hardware-laptop {
  position: absolute;
  left: -8px;
  top: 22px;
  width: 88%;
  max-width: 560px;
  animation: floatLaptopReal 7.5s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  z-index: 10;
  cursor: pointer;
}

.hardware-laptop:hover {
  animation-play-state: paused;
  transform: perspective(1500px) rotateY(16deg) rotateX(3deg) rotateZ(-1.5deg) translateY(-10px);
}

/* Pantalla / Tapa superior de la Laptop */
.laptop-lid {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.2;
  border-radius: 16px 16px 4px 4px;
  padding: 6px 6px 8px;
  background: linear-gradient(145deg, #434975 0%, #17192e 40%, #0b0d1b 78%, #6366f1 100%);
  box-shadow:
    -1px 1px 0 #2d3154,
    -2px 2px 0 #262a48,
    -3px 3px 0 #1f223c,
    -4px 4px 0 #181b30,
    -6px 6px 0 #111324,
    -7px 7px 0 rgba(129, 140, 248, 0.48),
    -25px 35px 60px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(99, 102, 241, 0.22);
}

.laptop-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  background: #030308;
  border-radius: 11px 11px 2px 2px;
  padding: 3px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Notch de cámara estilo MacBook Pro en el borde superior */
.laptop-camera-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 7px;
  background: #030308;
  border-radius: 0 0 6px 6px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.laptop-camera-notch::after {
  content: '';
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #34d399 0%, #064e3b 75%);
  box-shadow: 0 0 4px rgba(52, 211, 153, 0.7);
}

.laptop-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px 8px 1px 1px;
  overflow: hidden;
  background: #0b0d1b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* Bisagra central oscura */
.laptop-hinge {
  width: 82%;
  height: 4px;
  margin: 0 auto;
  background: linear-gradient(90deg, #0b0c18 0%, #272b4a 50%, #0b0c18 100%);
}

/* Base / Chasis de aluminio con teclado y muesca frontal (Trackpad Lip) */
.laptop-base {
  position: relative;
  width: 112%;
  height: 13px;
  margin-left: -6%;
  border-radius: 3px 3px 14px 14px;
  background: linear-gradient(
    90deg,
    #1b1e36 0%,
    #3e4470 15%,
    #252947 50%,
    #4a5185 85%,
    #191c33 100%
  );
  box-shadow:
    0 2px 0 #141629,
    0 4px 0 #0d0f1d,
    0 5px 0 rgba(129, 140, 248, 0.55),
    0 18px 36px rgba(0, 0, 0, 0.95),
    0 8px 28px rgba(99, 102, 241, 0.32);
}

/* Muesca frontal para abrir la MacBook */
.laptop-base-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: #101223;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.85);
}

/* Reflejo diagonal de cristal templado sobre la pantalla */
.screen-glass-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.03) 28%,
    transparent 28.5%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 15;
}

/* ─────────────────────────────────────────────────────────────────────────
   DISPOSITIVO 2: IPHONE 16 PRO TITANIO (CON CAPTURA LOGIN MOBILE DE TRIFY)
   Levitación Serena 60/120 FPS
   ───────────────────────────────────────────────────────────────────────── */
@keyframes floatPhoneReal {
  0%, 100% {
    transform: perspective(1500px) rotateY(-18deg) rotateX(7deg) rotateZ(-5.5deg) translateY(0);
  }
  50% {
    transform: perspective(1500px) rotateY(-16.5deg) rotateX(5.5deg) rotateZ(-4.5deg) translateY(-10px);
  }
}

.hardware-iphone {
  position: absolute;
  right: 2%;
  top: 4px;
  width: 185px;
  aspect-ratio: 9 / 18.8;
  border-radius: 34px;
  padding: 6px;
  /* Marco de Titanio Pulido con reflejos índigo neón */
  background: linear-gradient(135deg, #52588a 0%, #1c1f38 35%, #0b0d1b 70%, #6366f1 100%);
  /* Extrusión 3D optimizada de alto rendimiento */
  box-shadow:
    2px 2px 0 #2e3359,
    5px 6px 0 #1d203b,
    8px 9px 0 rgba(129, 140, 248, 0.45),
    -16px 24px 42px rgba(0, 0, 0, 0.85),
    0 0 32px rgba(99, 102, 241, 0.28);
  animation: floatPhoneReal 7.2s ease-in-out 0.8s infinite;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  will-change: transform;
  z-index: 20;
  cursor: pointer;
}

.hardware-iphone:hover {
  animation-play-state: paused;
  transform: perspective(1500px) rotateY(-15deg) rotateX(5deg) rotateZ(-4deg) translateY(-12px);
  box-shadow:
    2px 2px 0 #3b406b,
    6px 7px 0 #282c4f,
    9px 10px 0 rgba(165, 180, 252, 0.6),
    -20px 32px 52px rgba(0, 0, 0, 0.9),
    0 0 44px rgba(99, 102, 241, 0.42);
}

/* Botones laterales físicos del iPhone (Volumen / Action button) */
.hardware-iphone::before {
  content: '';
  position: absolute;
  left: -2.5px;
  top: 72px;
  width: 2.5px;
  height: 24px;
  background: #4a5080;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 32px 0 #4a5080, 0 -24px 0 #6366f1;
}

/* Botón de encendido derecho */
.hardware-iphone::after {
  content: '';
  position: absolute;
  right: -2.5px;
  top: 92px;
  width: 2.5px;
  height: 36px;
  background: #3b406b;
  border-radius: 0 2px 2px 0;
}

.iphone-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  background: #020206;
  border-radius: 29px;
  padding: 4px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Isla Dinámica (Dynamic Island) con lente de cámara zafiro */
.iphone-dynamic-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 15px;
  background: #000000;
  border-radius: 999px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
  box-shadow:
    inset 0 0 2px rgba(255, 255, 255, 0.18),
    0 1px 4px rgba(0, 0, 0, 0.8);
}

.iphone-camera-lens {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4f46e5 0%, #1e1b4b 45%, #05050a 80%);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.4);
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  overflow: hidden;
  background: #0c0b22;
  padding: 0;
}

/* Barra de estado iOS flotante sobre el fondo continuo sin cortes */
.iphone-status-bar {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.2px;
  height: 16px;
  pointer-events: none;
}

.iphone-status-icons {
  display: flex;
  align-items: center;
  gap: 3px;
}

.iphone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center center;
  display: block;
  z-index: 1;
}

/* Barra Home Indicator inferior de iOS */
.iphone-home-bar {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  z-index: 25;
}

/* ─────────────────────────────────────────────────────────────────────────
   COLUMNA DERECHA: PROPUESTA DE VALOR Y TITULAR MONUMENTAL
   ───────────────────────────────────────────────────────────────────────── */
.hero-copy-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 25;
}

.platform-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: var(--primary-lighter);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.22);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 10px #818cf8;
}

.hero-headline {
  font-size: clamp(2.1rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 1.15rem;
}

.hero-headline-gradient {
  background: linear-gradient(90deg, #ffffff 0%, #e0e7ff 45%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 1.75rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.btn-primary-glow {
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow:
    0 12px 30px -6px rgba(99, 102, 241, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -4px rgba(129, 140, 248, 0.75);
  filter: brightness(1.06);
}

.btn-primary-glow:active {
  transform: scale(0.98);
}

.btn-secondary-glass {
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(129, 140, 248, 0.4);
  color: #ffffff;
}

/* Indicador de Scroll Inferior */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
  z-index: 25;
}

.scroll-indicator:hover {
  color: var(--primary-lighter);
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. ESCALADO PROGRESIVO (min-width: sm, md, lg, xl) — aresponsive.md
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .hero-section {
    padding: 1.75rem 2rem 2rem;
  }

  .top-navbar {
    flex-direction: row;
  }

  .early-access-box {
    align-items: flex-end;
    width: auto;
    min-width: 370px;
  }

  .early-access-input {
    font-size: 0.82rem;
  }

  .devices-3d-rig {
    height: 440px;
  }

  .hardware-iphone {
    width: 215px;
    right: 4%;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 2.25rem 3.5rem 1.75rem;
  }

  .hero-main-grid {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }

  .devices-3d-rig {
    height: 490px;
  }

  .hardware-laptop {
    width: 86%;
    max-width: 610px;
    top: 32px;
  }

  .hardware-iphone {
    width: 235px;
    right: 2%;
    top: 8px;
  }

  .hero-copy-column {
    align-items: flex-start;
    text-align: left;
  }

  .hero-cta-group {
    justify-content: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. SECCIÓN 2: MÓDULO TODO-EN-UNO CLIENTES (BARAJA 3D GPU-OPTIMIZADA)
   Directivas: Mobile-First (320px+) -> sm (640px+) -> lg (1024px+)
   ═══════════════════════════════════════════════════════════════════════════ */
.clients-showcase-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4.5rem 1rem 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  contain: layout style;
}

.clients-showcase-container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.75rem;
  width: 100%;
}

/* Columna de Texto + Selector */
.clients-copy-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 20;
}

.clients-headline {
  font-size: clamp(1.85rem, 4.8vw, 3.15rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.clients-subheadline {
  font-size: clamp(0.94rem, 1.9vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.clients-subheadline strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Botones de Conmutación (Idénticos a ClientsManager.jsx, Touch Target >= 44px) */
.clients-switcher-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  width: 100%;
}

.deck-switch-btn {
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 15, 35, 0.85);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.deck-switch-btn:hover {
  color: #ffffff;
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(26, 26, 62, 0.9);
}

.deck-switch-btn:active {
  transform: scale(0.97);
}

.deck-switch-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border-color: rgba(165, 180, 252, 0.6);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 24px -4px rgba(59, 130, 246, 0.55);
}

/* Lista de Beneficios Todo-en-Uno con Checks Morados/Índigo (Nativos y Ligeros) */

.clients-feature-chips {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 460px;
  text-align: left;
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(20, 20, 50, 0.72) 0%, rgba(13, 14, 34, 0.85) 100%);
  border: 1px solid rgba(129, 140, 248, 0.18);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-chip:hover {
  transform: translate3d(4px, 0, 0);
  border-color: rgba(129, 140, 248, 0.5);
  background: linear-gradient(145deg, rgba(28, 29, 68, 0.85) 0%, rgba(16, 18, 42, 0.95) 100%);
}

.chip-check {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.32) 0%, rgba(139, 92, 246, 0.26) 100%);
  border: 1px solid rgba(129, 140, 248, 0.75);
  box-shadow:
    0 0 10px rgba(99, 102, 241, 0.35),
    inset 0 0 6px rgba(165, 180, 252, 0.2);
  color: #e0e7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-chip:hover .chip-check {
  transform: scale(1.08);
  box-shadow:
    0 0 16px rgba(129, 140, 248, 0.6),
    inset 0 0 8px rgba(165, 180, 252, 0.35);
}

.check-path {
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   COLUMNA DERECHA: BARAJA 3D CON LAS 2 CAPTURAS REALES (100% GPU COMPOSITED)
   ───────────────────────────────────────────────────────────────────────── */
.clients-deck-col {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.deck-ambient-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 115%;
  height: 115%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(139, 92, 246, 0.14) 35%, rgba(56, 189, 248, 0.05) 60%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.deck-3d-stack {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9.8;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Tarjeta de Ventana 3D: Solo anima transform y opacity en el hilo compositor GPU */
.deck-window {
  position: absolute;
  width: 94%;
  height: 88%;
  border-radius: 18px;
  background: #080915;
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease;
}

/* Estado al Frente (Activo) */
.deck-window.is-front {
  transform: perspective(1200px) translate3d(0, 14px, 0) scale(1);
  opacity: 1;
  z-index: 20;
  border-color: rgba(129, 140, 248, 0.65);
}

/* Estado Atrás (En espera) — Sin filter:blur() para mantener 120 FPS al scrollear */
.deck-window.is-back {
  transform: perspective(1200px) translate3d(0, -24px, -60px) scale(0.91);
  opacity: 0.38;
  z-index: 10;
  border-color: rgba(99, 102, 241, 0.25);
}

.deck-window.is-back:hover {
  opacity: 0.58;
  transform: perspective(1200px) translate3d(0, -28px, -50px) scale(0.925);
}

/* Barra Superior de la Ventana Captura */
.deck-window-bar {
  height: 32px;
  padding: 0 14px;
  background: linear-gradient(90deg, #0e1024 0%, #151836 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #10b981; }

.window-title {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tag-blue {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.tag-indigo {
  background: rgba(99, 102, 241, 0.22);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.45);
}

.deck-window-body {
  position: relative;
  flex: 1;
  width: 100%;
  background: #060711;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.deck-window-body img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}

/* Insignia sobre la Captura (Estática 120 FPS + Elevación al interactuar) */
.deck-floating-pill {
  position: absolute;
  bottom: 12px;
  right: 14px;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  background: rgba(12, 14, 32, 0.96);
  border: 1px solid rgba(129, 140, 248, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.75);
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.deck-window:hover .deck-floating-pill {
  transform: translateY(-3px);
}

.deck-floating-pill strong {
  color: #ffffff;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green {
  background: #818cf8;
  box-shadow: 0 0 8px #818cf8;
}

.dot-indigo {
  background: #6366f1;
  box-shadow: 0 0 8px #6366f1;
}

.deck-interaction-hint {
  margin-top: 1.1rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-subtle);
  text-align: center;
}

/* Escalado Progresivo Sección 2 */
@media (min-width: 640px) {
  .clients-showcase-section {
    padding: 5.5rem 2rem 6.5rem;
  }
}

@media (min-width: 1024px) {
  .clients-showcase-section {
    padding: 6.5rem 3.5rem 7.5rem;
  }

  .clients-showcase-container {
    grid-template-columns: 5fr 7fr;
    gap: 3.5rem;
  }

  .clients-copy-col {
    align-items: flex-start;
    text-align: left;
  }

  .clients-switcher-row {
    justify-content: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. SECCIÓN 3: PUENTE NEURONAL DUAL — VIAJES, SERVICIOS Y PAQUETES ⇄ OPERADORAS
   Directivas: Mobile-First (320px+) -> sm (640px+) -> lg (1024px+)
   ═══════════════════════════════════════════════════════════════════════════ */
.neural-bridge-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4.5rem 1rem 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  contain: layout style;
}

.neural-bridge-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

/* 1. Encabezado Superior + Conmutador */
.neural-bridge-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.neural-header-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
}

.neural-bridge-headline {
  font-size: clamp(1.85rem, 4.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 0.9rem;
}

.neural-bridge-subheadline {
  font-size: clamp(0.94rem, 1.8vw, 1.06rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.neural-bridge-subheadline strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.neural-switcher-box {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.45rem;
  border-radius: 16px;
  background: rgba(11, 13, 32, 0.9);
  border: 1px solid rgba(129, 140, 248, 0.28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
}

/* 2. Escenario Principal: Baraja 3D Izquierda ⇄ Puente SVG ⇄ Operadoras Derecha */
.neural-bridge-stage {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.bridge-left-deck-col,
.bridge-right-operators-col {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bridge-3d-stack,
.bridge-operator-frame {
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 16 / 10.3;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.bridge-3d-stack .deck-window,
.bridge-operator-frame .deck-window {
  width: 95%;
  height: auto;
}

.bridge-3d-stack .deck-window-body,
.bridge-operator-frame .deck-window-body {
  width: 100%;
  aspect-ratio: 1024 / 555;
  flex: none;
  background: #070814;
}

.bridge-3d-stack .deck-window.is-front {
  transform: perspective(1200px) translate3d(0, 8px, 0) scale(1);
}

.bridge-3d-stack .deck-window.is-back {
  transform: perspective(1200px) translate3d(0, -18px, -50px) scale(0.92);
}

.bridge-3d-stack .deck-window-body img,
.bridge-operator-frame .deck-window-body img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.bridge-operator-frame .deck-window.bridge-static-window {
  cursor: default;
  transform: perspective(1200px) translate3d(0, 8px, 0) scale(1);
  opacity: 1;
  z-index: 20;
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(139, 92, 246, 0.24);
}

/* Columna Central: Fibras Ópticas SVG + Núcleo perfectamente superpuestos */
.bridge-synapse-col {
  position: relative;
  width: 100%;
  max-width: 260px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
}

.bridge-fibers-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(90deg);
  z-index: 10;
  pointer-events: none;
}

/* Pulsos Láser Sin Costuras (pathLength="180", período exacto 30 + 60 = 90, 90 * 2 = 180) */
@keyframes svgPulseForward {
  0% { stroke-dashoffset: 180; }
  100% { stroke-dashoffset: 0; }
}

@keyframes svgPulseBackward {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 180; }
}

.svg-fiber-pulse {
  stroke-dasharray: 28 62;
  will-change: stroke-dashoffset;
}

.pulse-forward {
  animation: svgPulseForward 6.8s linear infinite;
}

.pulse-forward-delayed {
  animation: svgPulseForward 6.8s linear -3.4s infinite;
}

.pulse-fast {
  stroke-dasharray: 34 56;
  animation: svgPulseForward 5.2s linear infinite;
}

.pulse-backward {
  animation: svgPulseBackward 7.2s linear infinite;
}

/* Núcleo Central en el Cruce Exacto (X=50%, Y=50%) — Cero jitter de texto */
@keyframes synapseAuraBreathe {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}

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

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

.synapse-core-card {
  position: relative;
  z-index: 30;
  width: 138px;
  padding: 0.7rem 0.75rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(15, 17, 45, 0.97) 0%, rgba(9, 10, 26, 0.98) 100%);
  border: 1px solid rgba(165, 180, 252, 0.75);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.18rem;
}

.synapse-core-aura {
  position: absolute;
  inset: -10px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.42) 0%, rgba(168, 85, 247, 0.18) 55%, transparent 75%);
  z-index: -1;
  pointer-events: none;
  animation: synapseAuraBreathe 8s ease-in-out infinite;
  will-change: transform, opacity;
}

.synapse-core-icon-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.15rem;
}

.synapse-ring-spin {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  transform-origin: 50% 50%;
  animation: synapseSpinRing 32s linear infinite;
  will-change: transform;
}

.synapse-ring-spin-rev {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 30px;
  height: 30px;
  transform-origin: 50% 50%;
  animation: synapseSpinRingRev 26s linear infinite;
  will-change: transform;
}

.synapse-center-glyph {
  position: relative;
  z-index: 2;
}

.synapse-core-title {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-lighter);
}

.synapse-core-status {
  font-size: 0.73rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.synapse-core-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: #a5b4fc;
}

/* Cápsulas de Datos en Tránsito sobre el Puente Neuronal */
@keyframes dataFlowRight {
  0%, 100% {
    transform: translate3d(-5px, 0, 0);
  }
  50% {
    transform: translate3d(5px, 0, 0);
  }
}

@keyframes dataFlowLeft {
  0%, 100% {
    transform: translate3d(5px, 0, 0);
  }
  50% {
    transform: translate3d(-5px, 0, 0);
  }
}

.synapse-data-pill {
  position: absolute;
  z-index: 32;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: rgba(11, 13, 34, 0.94);
  border: 1px solid rgba(129, 140, 248, 0.55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.75), 0 0 14px rgba(99, 102, 241, 0.25);
  font-size: 0.64rem;
  font-weight: 700;
  color: #e0e7ff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  pointer-events: none;
  will-change: transform;
}

.data-pill-top {
  top: 14px;
  animation: dataFlowRight 8.5s ease-in-out infinite;
}

.data-pill-bottom {
  bottom: 14px;
  border-color: rgba(192, 132, 252, 0.55);
  animation: dataFlowLeft 8.5s ease-in-out infinite;
}

.data-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 8px #818cf8;
  flex-shrink: 0;
}

.data-pill-dot.dot-purple {
  background: #c084fc;
  box-shadow: 0 0 8px #c084fc;
}

/* 3. Grilla Inferior de 3 Chips con Checks Morados */
.bridge-feature-chips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Escalado Progresivo Sección 3 */
@media (min-width: 640px) {
  .neural-bridge-section {
    padding: 5.5rem 2rem 6.5rem;
  }
}

@media (min-width: 1024px) {
  .neural-bridge-section {
    padding: 6.5rem 3.5rem 7.5rem;
  }

  .neural-bridge-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
  }

  .neural-header-copy {
    align-items: flex-start;
  }

  .neural-bridge-stage {
    grid-template-columns: 4.3fr 2.2fr 4.3fr;
    gap: 0.25rem;
  }

  .bridge-synapse-col {
    max-width: 100%;
    height: 280px;
  }

  .bridge-fibers-svg {
    transform: rotate(0deg);
  }

  .bridge-feature-chips-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. SECCIÓN 4: CENTRO DOCUMENTAL — PDFs, EXCEL, FACTURAS ELECTRÓNICAS Y TICKETS
   Directivas: Mobile-First (320px+) -> sm (640px+) -> lg (1024px+)
   ═══════════════════════════════════════════════════════════════════════════ */
.docs-hub-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4.5rem 1rem 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  contain: layout style;
}

.docs-hub-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* 1. Encabezado Superior */
.docs-hub-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.docs-hub-headline {
  font-size: clamp(1.85rem, 4.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 0.9rem;
}

.docs-hub-subheadline {
  font-size: clamp(0.94rem, 1.8vw, 1.06rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.docs-hub-subheadline strong {
  color: var(--text-neon-peak);
  font-weight: 600;
}

/* 2. Escenario Principal: 4 Logos ⇄ Conector SVG ⇄ Ventana Interactiva */
.docs-hub-stage {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.35rem;
  width: 100%;
}

/* Columna Izquierda: Tarjetas con los 4 Logos Oficiales */
.docs-logos-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
}

@keyframes logoFloatSubtle {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
}

.doc-logo-card {
  width: 100%;
  min-height: 74px;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(16, 18, 44, 0.92) 0%, rgba(10, 11, 28, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  font-family: inherit;
  color: var(--text-white);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  will-change: transform;
}

.doc-logo-card:hover {
  transform: translate3d(3px, -2px, 0);
}

.doc-card-pdf.active,
.doc-card-pdf:hover {
  border-color: rgba(239, 68, 68, 0.72);
  background: linear-gradient(155deg, rgba(38, 15, 28, 0.94) 0%, rgba(14, 11, 28, 0.98) 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75), 0 0 22px rgba(239, 68, 68, 0.24);
}

.doc-card-excel.active,
.doc-card-excel:hover {
  border-color: rgba(16, 185, 129, 0.72);
  background: linear-gradient(155deg, rgba(12, 36, 34, 0.94) 0%, rgba(11, 14, 28, 0.98) 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75), 0 0 22px rgba(16, 185, 129, 0.24);
}

.doc-card-factura.active,
.doc-card-factura:hover {
  border-color: rgba(129, 140, 248, 0.82);
  background: linear-gradient(155deg, rgba(22, 25, 62, 0.95) 0%, rgba(12, 14, 34, 0.98) 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75), 0 0 24px rgba(99, 102, 241, 0.3);
}

.doc-card-ticket.active,
.doc-card-ticket:hover {
  border-color: rgba(192, 132, 252, 0.78);
  background: linear-gradient(155deg, rgba(34, 18, 56, 0.94) 0%, rgba(13, 11, 30, 0.98) 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75), 0 0 22px rgba(168, 85, 247, 0.28);
}

.doc-logo-badge {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.doc-card-interactive:hover .doc-logo-badge {
  transform: translateY(-4px);
}

.badge-pdf-wrap {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.38);
}

.badge-excel-wrap {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.38);
  animation-delay: 0.7s;
}

.badge-factura-wrap {
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.42);
  animation-delay: 1.4s;
}

.badge-ticket-wrap {
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(192, 132, 252, 0.42);
  animation-delay: 2.1s;
}

.doc-logo-svg {
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.doc-logo-info {
  flex: 1;
  min-width: 0;
}

.doc-logo-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.22rem;
}

.doc-logo-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-format-tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.48rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.tag-pdf {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.tag-excel {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.tag-factura {
  background: rgba(99, 102, 241, 0.24);
  color: #e0e7ff;
  border: 1px solid rgba(129, 140, 248, 0.45);
}

.tag-ticket {
  background: rgba(168, 85, 247, 0.24);
  color: #f3e8ff;
  border: 1px solid rgba(192, 132, 252, 0.45);
}

.doc-logo-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.38;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Columna Central: Fibras Ópticas de los 4 Formatos + Núcleo */
.docs-synapse-col {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 135px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.docs-fibers-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(90deg);
  pointer-events: none;
}

.docs-core-pill {
  position: relative;
  z-index: 25;
  padding: 0.65rem 0.9rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(15, 17, 45, 0.97) 0%, rgba(9, 10, 26, 0.98) 100%);
  border: 1px solid rgba(165, 180, 252, 0.72);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.88), 0 0 22px rgba(99, 102, 241, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.14rem;
}

.docs-core-ring-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.1rem;
}

.docs-core-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-lighter);
}

.docs-core-active {
  font-size: 0.7rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

/* Columna Derecha: Ventana Interactiva con los 4 Módulos */
.docs-preview-col {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-window-frame {
  position: relative;
  z-index: 15;
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(15, 17, 40, 0.97) 0%, rgba(8, 9, 24, 0.99) 100%);
  border: 1px solid rgba(129, 140, 248, 0.55);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.85),
    0 0 32px rgba(99, 102, 241, 0.22);
  overflow: hidden;
}

.docs-window-bar {
  justify-content: space-between;
  padding: 0.65rem 1rem;
}

.docs-win-pill {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pill-pdf {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.pill-excel {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.pill-factura {
  background: rgba(99, 102, 241, 0.24);
  color: #e0e7ff;
  border: 1px solid rgba(129, 140, 248, 0.5);
}

.pill-ticket {
  background: rgba(168, 85, 247, 0.24);
  color: #f3e8ff;
  border: 1px solid rgba(192, 132, 252, 0.5);
}

.docs-window-body {
  position: relative;
  padding: 1.15rem;
  min-height: 315px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.doc-stage-panel {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.95rem;
  height: 100%;
  animation: docPanelFadeIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.doc-stage-panel.is-active {
  display: flex;
}

@keyframes docPanelFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.doc-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.doc-panel-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.doc-panel-logo {
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.doc-panel-heading {
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.15rem 0;
}

.doc-panel-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.doc-panel-filter-pill {
  font-size: 0.68rem;
  color: #e0e7ff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
}

.doc-panel-filter-pill.pill-emerald {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  font-weight: 700;
}

.doc-panel-filter-pill.pill-indigo {
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.4);
  font-weight: 700;
}

.doc-panel-filter-pill.pill-purple {
  color: #f3e8ff;
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(192, 132, 252, 0.4);
  font-weight: 700;
}

/* Cajas internas de previsualización de documento/reporte */
.doc-mock-box {
  border-radius: 14px;
  background: rgba(6, 7, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.box-pdf { border-color: rgba(239, 68, 68, 0.32); }
.box-excel { border-color: rgba(16, 185, 129, 0.32); }
.box-factura { border-color: rgba(99, 102, 241, 0.38); }
.box-ticket { border-color: rgba(168, 85, 247, 0.35); }

.doc-mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-mock-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.doc-mock-tag {
  font-size: 0.66rem;
  font-weight: 700;
}

.text-red { color: #fca5a5; }
.text-profit { color: #34d399; font-weight: 700; }
.text-indigo { color: #a5b4fc; font-weight: 700; }
.text-purple { color: #d8b4fe; font-weight: 700; }
.text-amber { color: #fcd34d; }
.text-right { text-align: right; }

/* Tabla interna de Reporte PDF y Tickets */
.doc-table {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.72rem;
}

.doc-table-row {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr 1.3fr 1.1fr 1.1fr;
  align-items: center;
  gap: 0.4rem;
  color: #e2e8f0;
}

.doc-table-head {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  padding-bottom: 0.25rem;
}

.doc-table-total {
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 800;
  color: #ffffff;
}

.doc-span-3 {
  grid-column: span 3;
}

.doc-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  color: #94a3b8;
}

/* KPIs y Gráfico de Proyección Anual en Panel Excel */
.doc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.doc-kpi-card {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.doc-kpi-card.kpi-indigo {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(129, 140, 248, 0.3);
}

.doc-kpi-card.kpi-emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
}

.doc-kpi-label {
  font-size: 0.62rem;
  color: #94a3b8;
}

.doc-kpi-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
}

.doc-chart-box {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.doc-chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.55rem;
}

@keyframes docBarPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.06); }
}

.doc-chart-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 0.6rem;
  height: 68px;
  padding-top: 0.3rem;
}

.doc-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  height: 100%;
  font-size: 0.62rem;
  color: #94a3b8;
}

.doc-bar {
  width: 100%;
  max-width: 44px;
  border-radius: 5px 5px 0 0;
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.bar-hist-1 { height: 28px; background: rgba(99, 102, 241, 0.45); }
.bar-hist-2 { height: 38px; background: rgba(99, 102, 241, 0.85); }
.bar-pesim { height: 32px; background: rgba(251, 191, 36, 0.55); }
.bar-real { height: 42px; background: rgba(129, 140, 248, 0.9); }
.bar-opt { height: 50px; background: linear-gradient(180deg, #34d399 0%, #059669 100%); }

/* Panel 3: Factura Electrónica (RUC, IVA 5%/10%, Letras) */
.doc-invoice-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-meta-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.doc-meta-value {
  font-size: 0.76rem;
  color: #ffffff;
}

.doc-iva-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.doc-iva-cell {
  padding: 0.55rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.62rem;
  color: #94a3b8;
}

.doc-iva-cell strong {
  font-size: 0.78rem;
  color: #ffffff;
}

.doc-iva-cell.iva-active {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.5);
  color: #c7d2fe;
}

.doc-letras-bar {
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: rgba(15, 18, 44, 0.9);
  border: 1px solid rgba(129, 140, 248, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: #cbd5e1;
}

.doc-iva-total {
  font-weight: 800;
  color: #a5b4fc;
}

/* Pie de cada Panel */
.doc-panel-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.2rem;
}

.doc-footer-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.doc-action-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.32rem 0.75rem;
  border-radius: 8px;
}

.chip-pdf {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.chip-excel {
  background: rgba(16, 185, 129, 0.18);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.chip-factura {
  background: rgba(99, 102, 241, 0.22);
  color: #e0e7ff;
  border: 1px solid rgba(129, 140, 248, 0.45);
}

.chip-ticket {
  background: rgba(168, 85, 247, 0.22);
  color: #f3e8ff;
  border: 1px solid rgba(192, 132, 252, 0.45);
}

/* 3. Grilla Inferior de 3 Píldoras con Checks Morados */
.docs-feature-chips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: 100%;
}

/* Escalado Progresivo Sección 4 */
@media (min-width: 640px) {
  .docs-hub-section {
    padding: 5.5rem 2rem 6.5rem;
  }

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

@media (min-width: 1024px) {
  .docs-hub-section {
    padding: 6.5rem 3.5rem 7.5rem;
  }

  .docs-hub-stage {
    grid-template-columns: 4.2fr 1.6fr 6.2fr;
    gap: 0.5rem;
  }

  .docs-logos-col {
    grid-template-columns: 1fr;
    gap: 0.68rem;
  }

  .docs-synapse-col {
    max-width: 100%;
    height: 310px;
  }

  .docs-fibers-svg {
    transform: rotate(0deg);
  }

  .docs-feature-chips-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   8. SECCIÓN 5: AJUSTES, ROLES Y AGENTES — MATRIZ DE ACCESOS + RANKING DE EQUIPO
   Directivas: Mobile-First (320px+) -> sm (640px+) -> lg (1024px+)
   ═══════════════════════════════════════════════════════════════════════════ */
.roles-hub-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4.5rem 1rem 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  contain: layout style;
}

.roles-hub-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.roles-hub-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.roles-hub-headline {
  font-size: clamp(1.85rem, 4.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 0.9rem;
}

.roles-hub-subheadline {
  font-size: clamp(0.94rem, 1.8vw, 1.06rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.roles-hub-subheadline strong {
  color: var(--text-neon-peak);
  font-weight: 600;
}

/* Escenario: 2 ventanas */
.roles-hub-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  align-items: stretch;
}

.rm-window {
  position: relative;
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(15, 17, 40, 0.97) 0%, rgba(8, 9, 24, 0.99) 100%);
  border: 1px solid rgba(129, 140, 248, 0.5);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.82),
    0 0 28px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rm-window .deck-window-bar {
  justify-content: flex-start;
  gap: 0.6rem;
}

.rm-win-pill {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.24);
  border: 1px solid rgba(129, 140, 248, 0.5);
}

.rm-win-pill.pill-green {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.45);
}

.rm-window-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Matriz de Accesos ── */
.rm-matrix-head,
.rm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 52px 52px;
  align-items: center;
  column-gap: 0.25rem;
}

.rm-matrix-head {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rm-col-center {
  text-align: center;
}

.rm-role-agente { color: #a5b4fc; }
.rm-role-encargado { color: #6ee7b7; }
.rm-role-manager { color: #fcd34d; }

.rm-matrix-body {
  position: relative;
  --rm-row-h: 32px;
}

.rm-row {
  height: var(--rm-row-h);
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rm-row-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-cell {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.rm-cell.is-locked {
  cursor: default;
}

.rm-cell:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: -2px;
  border-radius: 8px;
}

.rm-check {
  width: 18px;
  height: 18px;
  color: #a855f7;
}

.rm-check path {
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}

.rm-cell.pop .rm-check path {
  animation: rmCheckDraw 0.4s ease-out both;
}

@keyframes rmCheckDraw {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

.rm-off-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
}

/* Escáner desactivado para garantizar 120 FPS estables en la tabla */
.rm-scan-line {
  display: none;
}

.rm-matrix-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  padding-top: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.rm-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.rm-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  flex-shrink: 0;
}

.rm-count {
  font-weight: 700;
  color: #c7d2fe;
}

/* ── Tarjetas de Agentes ── */
.rm-agents-list {
  gap: 0.65rem;
}

.rm-agent-card {
  padding: 0.75rem 0.85rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.rm-agent-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.rm-agent-id {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.rm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
}

.av-indigo { background: rgba(99, 102, 241, 0.25); border: 1px solid rgba(129, 140, 248, 0.6); }
.av-green { background: rgba(16, 185, 129, 0.22); border: 1px solid rgba(52, 211, 153, 0.6); }
.av-amber { background: rgba(245, 158, 11, 0.22); border: 1px solid rgba(251, 191, 36, 0.6); }

.rm-agent-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rm-agent-meta strong {
  font-size: 0.84rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-agent-meta span {
  font-size: 0.68rem;
  color: #94a3b8;
}

.rm-agent-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.rm-role-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.14rem 0.5rem;
  border-radius: 6px;
}

.badge-indigo { color: #c7d2fe; background: rgba(99, 102, 241, 0.2); border: 1px solid rgba(129, 140, 248, 0.5); }
.badge-green { color: #a7f3d0; background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(52, 211, 153, 0.5); }
.badge-amber { color: #fde68a; background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(251, 191, 36, 0.5); }

.rm-commission {
  font-size: 0.66rem;
  font-weight: 700;
  color: #34d399;
}

.rm-progress {
  margin-top: 0.6rem;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.rm-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transform-origin: left;
  animation: rmBarGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform;
}

.fill-indigo { background: linear-gradient(90deg, #6366f1, #a5b4fc); }
.fill-green { background: linear-gradient(90deg, #059669, #6ee7b7); }
.fill-amber { background: linear-gradient(90deg, #d97706, #fcd34d); }

@keyframes rmBarGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.rm-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.66rem;
  color: #94a3b8;
}

.rm-progress-label strong {
  color: #e0e7ff;
}

.roles-feature-chips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: 100%;
}

/* Escalado Progresivo Sección 5 */
@media (min-width: 640px) {
  .roles-hub-section {
    padding: 5.5rem 2rem 6.5rem;
  }

  .rm-window-body {
    padding: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .roles-hub-section {
    padding: 6.5rem 3.5rem 7.5rem;
  }

  .roles-hub-stage {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .roles-feature-chips-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-scan-line,
  .rm-progress-fill,
  .rm-cell.pop .rm-check path {
    animation: none;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   9. SECCIÓN 6: SEGURIDAD Y PROTECCIÓN DE DATOS — ESCUDO DE 6 CAPAS
   Directivas: Mobile-First (320px+) -> sm (640px+) -> lg (1024px+)
   ═══════════════════════════════════════════════════════════════════════════ */
.security-hub-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4.5rem 1rem 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  contain: layout style;
}

.security-hub-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.security-hub-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.security-hub-headline {
  font-size: clamp(1.85rem, 4.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 0.9rem;
}

.security-hub-subheadline {
  font-size: clamp(0.94rem, 1.8vw, 1.06rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.security-hub-subheadline strong {
  color: var(--text-neon-peak);
  font-weight: 600;
}

.security-hub-stage {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
}

/* Escudo con anillos */
.sh-shield-col {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-shield-svg {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 340px;
  height: auto;
  overflow: visible;
}

@keyframes shSpinCw { to { transform: rotate(360deg); } }
@keyframes shSpinCcw { to { transform: rotate(-360deg); } }

@keyframes shCorePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

.sh-core-aura {
  transform-origin: 160px 160px;
  animation: shCorePulse 9s ease-in-out infinite;
  will-change: transform, opacity;
}

.sh-ring {
  transform-origin: 160px 160px;
  will-change: transform;
}

.sh-ring.spin-a { animation: shSpinCw 55s linear infinite; }
.sh-ring.spin-b { animation: shSpinCcw 65s linear infinite; }
.sh-ring.spin-c { animation: shSpinCw 78s linear infinite; }

.sh-ring-circle {
  fill: none;
  stroke: rgba(129, 140, 248, 0.38);
  stroke-width: 1.2;
  stroke-dasharray: 6 7;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.sh-ring.is-active .sh-ring-circle {
  stroke: #a5b4fc;
  stroke-width: 2.4;
  stroke-dasharray: none;
}

.sh-node {
  cursor: pointer;
  outline: none;
}

.sh-node-dot {
  fill: #141432;
  stroke: #818cf8;
  stroke-width: 1.5;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.sh-node.is-active .sh-node-dot {
  fill: #6366f1;
  stroke: #e0e7ff;
}

.sh-node-text {
  fill: #ffffff;
  font-family: var(--font-sans), 'Inter', sans-serif;
  font-weight: 900;
  font-size: 9px;
  text-anchor: middle;
  pointer-events: none;
}

.sh-node.is-active .sh-node-text {
  font-size: 11px;
}

.sh-node:focus-visible .sh-node-dot {
  stroke: #ffffff;
  stroke-width: 2.5;
}

/* Lista de capas + detalle */
.sh-detail-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sh-layer-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.sh-layer-btn {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.8rem;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  font-family: inherit;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.sh-layer-btn:hover {
  border-color: rgba(129, 140, 248, 0.45);
}

.sh-layer-btn.is-active {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.7);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.25);
}

.sh-layer-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(129, 140, 248, 0.5);
  flex-shrink: 0;
}

.sh-layer-icon {
  display: flex;
  color: #a5b4fc;
  flex-shrink: 0;
}

.sh-layer-name {
  font-size: 0.84rem;
  font-weight: 700;
}

.sh-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 104px;
  padding: 0.95rem 1rem;
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(15, 17, 40, 0.97) 0%, rgba(8, 9, 24, 0.99) 100%);
  border: 1px solid rgba(129, 140, 248, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(99, 102, 241, 0.16);
}

.sh-detail-card.is-swapping {
  animation: shDetailIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes shDetailIn {
  from { opacity: 0; transform: translate3d(0, 6px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.sh-detail-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.55);
  flex-shrink: 0;
}

.sh-detail-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.sh-detail-text {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.security-feature-chips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: 100%;
}

/* Escalado Progresivo Sección 6 */
@media (min-width: 640px) {
  .security-hub-section {
    padding: 5.5rem 2rem 6.5rem;
  }
}

@media (min-width: 1024px) {
  .security-hub-section {
    padding: 6.5rem 3.5rem 7.5rem;
  }

  .security-hub-stage {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .security-feature-chips-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-ring,
  .sh-core-aura,
  .sh-detail-card.is-swapping {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   10.5. SECCIÓN 6.5: PROCESO DE ENTREGA & ONBOARDING (ESTILO STARTUP WIDGETS)
   Directivas: Mobile-First (320px+) -> sm (640px+) -> lg (1024px+)
   ═══════════════════════════════════════════════════════════════════════════ */
.onboarding-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4.5rem 1rem 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  contain: layout style;
}

.onboarding-section::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, rgba(56, 189, 248, 0.04) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.onboarding-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.onboarding-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.onboarding-headline {
  font-size: clamp(1.85rem, 4.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 0.9rem;
}

.onboarding-subheadline {
  font-size: clamp(0.94rem, 1.8vw, 1.06rem);
  color: var(--text-muted);
  line-height: 1.65;
}

/* Riel conector con Pulso de Energía Láser */
.onboarding-track-wrap {
  position: relative;
  width: 100%;
}

.onboarding-rail-line {
  display: none;
}

@keyframes railPulseFlow {
  0% { transform: translateX(-100%); opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(380%); opacity: 0; }
}

.onboarding-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Widget Card individual con Micro-Interacciones 120 FPS */
.onboarding-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(16, 18, 44, 0.88) 0%, rgba(9, 10, 26, 0.96) 100%);
  border: 1px solid rgba(129, 140, 248, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.onboarding-card:hover {
  transform: translateY(-6px);
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(99, 102, 241, 0.25);
}

@keyframes freeCardAura {
  0%, 100% {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 14px rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.45);
  }
  50% {
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.8), 0 0 26px rgba(52, 211, 153, 0.35);
    border-color: rgba(52, 211, 153, 0.75);
  }
}

.onboarding-card.card-highlight-free {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(160deg, rgba(14, 28, 42, 0.88) 0%, rgba(7, 18, 26, 0.96) 100%);
  animation: freeCardAura 7s ease-in-out infinite;
}

.onboarding-card.card-highlight-free:hover {
  border-color: rgba(52, 211, 153, 0.85);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.85),
    0 0 32px rgba(16, 185, 129, 0.35);
}

/* Nodo de hito conector con Ondas Radar Pulsantes */
.card-rail-node {
  position: relative;
  width: 44px;
  height: 14px;
  margin-bottom: 0.95rem;
  display: flex;
  align-items: center;
}

@keyframes nodeBeaconWave {
  0% { transform: scale(0.9); opacity: 0.85; }
  100% { transform: scale(2.6); opacity: 0; }
}

.node-beacon {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #818cf8;
  animation: nodeBeaconWave 5.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  pointer-events: none;
}

.node-beacon.beacon-green {
  border-color: #34d399;
}

.beacon-delay-1 { animation-delay: 0s; }
.beacon-delay-2 { animation-delay: 1.3s; }
.beacon-delay-3 { animation-delay: 2.6s; }
.beacon-delay-4 { animation-delay: 3.9s; }

.node-ring {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0b0d1e;
  border: 2px solid #818cf8;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.6);
  z-index: 2;
}

.node-ring.ring-green {
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}

.node-dot {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  z-index: 3;
}

.node-dot.dot-green {
  background: #34d399;
}

/* Cabecera del widget: Número + Tag de tiempo */
.onboarding-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.step-num-code {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: #818cf8;
  letter-spacing: -0.04em;
}

.step-num-code.code-green {
  color: #34d399;
}

.step-badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.55rem;
  border-radius: 7px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tag-blue { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border-color: rgba(59, 130, 246, 0.35); }
.tag-indigo { background: rgba(99, 102, 241, 0.15); color: #c7d2fe; border-color: rgba(99, 102, 241, 0.35); }
.tag-purple { background: rgba(168, 85, 247, 0.15); color: #e9d5ff; border-color: rgba(168, 85, 247, 0.35); }
.tag-green { background: rgba(16, 185, 129, 0.18); color: #a7f3d0; border-color: rgba(52, 211, 153, 0.45); }

/* Ícono del paso con Micro-Levitación Serena */
@keyframes stepIconBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.step-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.onboarding-card[data-step="1"] .step-icon-wrap {
  animation: stepIconBreathe 6.5s ease-in-out 0s infinite;
}

.onboarding-card[data-step="2"] .step-icon-wrap {
  animation: stepIconBreathe 6.5s ease-in-out 1.3s infinite;
}

.onboarding-card[data-step="3"] .step-icon-wrap {
  animation: stepIconBreathe 6.5s ease-in-out 2.6s infinite;
}

.onboarding-card[data-step="4"] .step-icon-wrap {
  animation: stepIconBreathe 6.5s ease-in-out 3.9s infinite;
}

.icon-blue { background: rgba(59, 130, 246, 0.14); border: 1px solid rgba(96, 165, 250, 0.35); color: #60a5fa; }
.icon-indigo { background: rgba(99, 102, 241, 0.14); border: 1px solid rgba(129, 140, 248, 0.35); color: #a5b4fc; }
.icon-purple { background: rgba(168, 85, 247, 0.14); border: 1px solid rgba(192, 132, 252, 0.35); color: #c084fc; }
.icon-green { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(52, 211, 153, 0.4); color: #34d399; }

/* Textos del paso */
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.32;
  margin-bottom: 0.55rem;
}

.step-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.62;
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

.step-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #cbd5e1;
  padding: 0.36rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}

.step-feature-pill.pill-green {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(52, 211, 153, 0.25);
  color: #a7f3d0;
}

/* Barra inferior de Garantía y CTA */
.onboarding-trust-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.4rem 1.6rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(18, 22, 54, 0.78) 0%, rgba(10, 12, 32, 0.92) 100%);
  border: 1px solid rgba(129, 140, 248, 0.28);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
}

.trust-badge-group {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-align: left;
}

@keyframes shieldGlowPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(56, 189, 248, 0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  }
}

.trust-shield-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: shieldGlowPulse 6.5s ease-in-out infinite;
}

.trust-text-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.trust-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.onboarding-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(165, 180, 252, 0.5);
  box-shadow: 0 8px 22px -4px rgba(59, 130, 246, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
}

.onboarding-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(99, 102, 241, 0.65);
  color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────────────────
   MEDIA QUERIES: SM (640px+) Y LG (1024px+) PARA PROCESO DE ENTREGA
   ───────────────────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .onboarding-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }
}

@media (min-width: 860px) {
  .onboarding-trust-bar {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .onboarding-rail-line {
    display: block;
    position: absolute;
    top: 23px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3) 0%, rgba(99, 102, 241, 0.45) 35%, rgba(168, 85, 247, 0.45) 70%, rgba(52, 211, 153, 0.5) 100%);
    z-index: 1;
    overflow: hidden;
  }

  .onboarding-rail-line::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 28%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #818cf8 40%, #34d399 100%);
    border-radius: 4px;
    box-shadow: 0 0 14px rgba(129, 140, 248, 0.9), 0 0 8px #34d399;
    animation: railPulseFlow 6.8s ease-in-out infinite;
    will-change: transform;
  }

  .onboarding-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. SECCIÓN 7: SOLICITAR DEMO OFICIAL — FORMULARIO Y CONTACTO WHATSAPP
   Directivas: Mobile-First (320px+) -> sm (640px+) -> lg (1024px+)
   ═══════════════════════════════════════════════════════════════════════════ */
.demo-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4.5rem 1rem 5.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  contain: layout style;
}

.demo-container {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.demo-headline {
  font-size: clamp(1.85rem, 4.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 0.9rem;
}

.demo-subheadline {
  font-size: clamp(0.94rem, 1.8vw, 1.06rem);
  color: var(--text-muted);
  line-height: 1.65;
}

/* Grilla del Escenario Demo */
.demo-stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
}

/* Columna Izquierda: Tarjeta de Información y Beneficios */
.demo-info-card {
  position: relative;
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(15, 17, 40, 0.97) 0%, rgba(8, 9, 24, 0.99) 100%);
  border: 1px solid rgba(129, 140, 248, 0.5);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.82),
    0 0 28px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-info-body {
  padding: 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.demo-info-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
}

.demo-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.demo-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.demo-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.demo-benefit-item strong {
  display: block;
  font-size: 0.86rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.demo-benefit-item p {
  font-size: 0.77rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* Caja de Contacto Directo WhatsApp */
.demo-direct-chat-box {
  margin-top: auto;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(6, 7, 20, 0.85);
  border: 1px solid rgba(37, 211, 102, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 20px rgba(37, 211, 102, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chat-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chat-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chat-response-time {
  font-size: 0.68rem;
  font-weight: 700;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.16);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.chat-box-desc {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.demo-direct-wa-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.22) 0%, rgba(18, 140, 126, 0.26) 100%);
  border: 1px solid rgba(37, 211, 102, 0.6);
  color: #6ee7b7;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.demo-direct-wa-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.35) 0%, rgba(18, 140, 126, 0.4) 100%);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Columna Derecha: Tarjeta del Formulario */
.demo-form-card {
  position: relative;
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(15, 17, 40, 0.97) 0%, rgba(8, 9, 24, 0.99) 100%);
  border: 1px solid rgba(129, 140, 248, 0.55);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.82),
    0 0 32px rgba(99, 102, 241, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-form-body {
  padding: 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.demo-form-intro {
  margin-bottom: 0.25rem;
}

.form-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.2rem 0;
}

.form-sub {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

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

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

.form-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
}

.required-star {
  color: #f87171;
  font-size: 0.85rem;
}

.input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: #818cf8;
  pointer-events: none;
  flex-shrink: 0;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.9rem 0.65rem 2.45rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.84rem;
  touch-action: manipulation;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.input-textarea-wrapper .input-icon {
  top: 14px;
}

/* Prefijo Fijo de Paraguay (+595) */
.input-phone-wrapper {
  position: relative;
}

.phone-fixed-prefix {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.prefix-flag-tag {
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(129, 140, 248, 0.55);
  color: #c7d2fe;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.14rem 0.4rem;
  border-radius: 5px;
  letter-spacing: 0.04em;
}

.prefix-dial {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.form-input-phone {
  padding-left: 5.25rem !important;
}

.form-textarea {
  min-height: 80px;
  padding: 0.75rem 0.9rem;
  resize: vertical;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: #0f1128;
  color: #ffffff;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #64748b;
  font-size: 0.8rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: #818cf8;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
}

/* Estado de Error */
.form-field-group.has-error .form-input,
.form-field-group.has-error .form-select {
  border-color: #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.32);
}

.field-error-msg {
  display: none;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fca5a5;
  margin-top: 0.15rem;
}

.form-field-group.has-error .field-error-msg {
  display: block;
  animation: errShake 0.3s ease-in-out;
}

@keyframes errShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Botón Principal de Envío a WhatsApp */
.btn-demo-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(37, 211, 102, 0.7);
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow:
    0 12px 30px rgba(37, 211, 102, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-demo-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.52);
  filter: brightness(1.08);
}

.btn-demo-submit:active {
  transform: scale(0.98);
}

.wa-icon-submit {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.form-disclaimer {
  font-size: 0.7rem;
  text-align: center;
  color: var(--text-subtle);
  line-height: 1.45;
  margin: 0;
}

/* Tarjeta de Éxito al Enviar */
.demo-success-card {
  display: none;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  animation: successFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.demo-success-card.is-visible {
  display: flex;
}

@keyframes successFadeIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.success-check-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
}

.success-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.success-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.success-text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #a7f3d0;
  margin: 0;
}

.btn-success-retry {
  align-self: flex-start;
  margin-top: 0.35rem;
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  font-size: 0.76rem;
  border-color: rgba(52, 211, 153, 0.4);
  color: #ffffff;
}

/* Grilla Inferior de Confianza y Garantía */
.demo-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. FOOTER OFICIAL DE TAEM (Mobile-First 320px+)
   ═══════════════════════════════════════════════════════════════════════════ */
.trify-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 3.5rem 1rem 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(6, 7, 20, 0.6) 0%, rgba(4, 5, 14, 0.98) 100%);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  text-align: center;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copy {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.footer-links-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

/* Bloque Central de TAEM (Tipográfico Minimalista Limpio) */
.footer-taem-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
}

.taem-sub-label {
  font-family: var(--font-sans), 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #64748b;
  text-transform: uppercase;
  margin-left: 0.32em;
  line-height: 1.2;
}

.taem-brand-text {
  font-family: var(--font-sans), 'Inter', sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #ffffff;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. ESCALADO PROGRESIVO SECCIÓN DEMO & FOOTER (sm: 640px+, lg: 1024px+)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .demo-section {
    padding: 5.5rem 2rem 6.5rem;
  }

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

  .demo-info-body,
  .demo-form-body {
    padding: 1.5rem 1.4rem;
  }

  .footer-top-bar {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .demo-section {
    padding: 6.5rem 3.5rem 7.5rem;
  }

  .demo-stage-grid {
    grid-template-columns: 5fr 7fr;
    gap: 2rem;
  }

  .demo-trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   AJUSTES MÓVILES (< 640px): capturas completas y widgets sin superposición
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 639px) {
  /* Sección Clientes: la ventana se adapta al alto real de la captura */
  .deck-3d-stack {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    display: grid;
    padding-top: 22px;
  }

  .deck-3d-stack .deck-window {
    position: relative;
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
  }

  .deck-3d-stack .deck-window-body {
    flex: none;
    aspect-ratio: 1024 / 544;
  }

  .deck-3d-stack .deck-window-body img {
    object-position: center center;
  }

  .deck-3d-stack .deck-window.is-front {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .deck-3d-stack .deck-window.is-back {
    transform: translate3d(0, -18px, 0) scale(0.94);
    opacity: 0.3;
  }

  /* La ventana de atrás solo asoma: se ocultan título y etiqueta para que no se encimen */
  .deck-window.is-back .window-title,
  .deck-window.is-back .window-tag {
    visibility: hidden;
  }

  .deck-window-bar {
    gap: 0.5rem;
    padding: 0 10px;
  }

  .window-title {
    font-size: 0.66rem;
    min-width: 0;
  }

  .window-tag {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* La insignia flotante tapaba la captura en pantallas chicas */
  .deck-floating-pill {
    display: none;
  }

  /* Sección Viajes ⇄ Operadoras: más alto para que las cápsulas no pisen el núcleo */
  .bridge-synapse-col {
    height: 250px;
    max-width: 300px;
  }

  .data-pill-top {
    top: 4px;
  }

  .data-pill-bottom {
    bottom: 4px;
  }

  .synapse-core-card {
    width: 150px;
  }

  .synapse-core-sub {
    white-space: nowrap;
  }

  .bridge-3d-stack,
  .bridge-operator-frame {
    aspect-ratio: auto;
    display: grid;
    padding-top: 18px;
  }

  .bridge-3d-stack .deck-window,
  .bridge-operator-frame .deck-window {
    position: relative;
    grid-area: 1 / 1;
    width: 100%;
  }

  /* Sección Documentos: la tabla ensanchaba la grilla y cortaba todo a la derecha */
  .docs-hub-stage,
  .docs-logos-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-logos-col,
  .docs-preview-col,
  .docs-window-frame,
  .doc-logo-card,
  .doc-stage-panel {
    min-width: 0;
    max-width: 100%;
  }

  .docs-window-body {
    padding: 0.9rem;
  }

  .docs-window-bar .window-title {
    font-size: 0.6rem;
  }

  .doc-table {
    font-size: 0.6rem;
  }

  .doc-table-head {
    font-size: 0.55rem;
  }

  .doc-table-row {
    grid-template-columns: 0.95fr 1.25fr 1.15fr 1.15fr 1.05fr;
    gap: 0.3rem;
  }

  .doc-table-row > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  /* Barra de garantía: el botón ya no se sale del recuadro */
  .onboarding-trust-bar {
    padding: 1.2rem 1rem;
  }

  .onboarding-cta-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    font-size: 0.82rem;
  }
}


/* Botón de Iniciar Sesión en la barra superior */
.top-navbar {
  justify-content: space-between !important;
}

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

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff !important;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.45);
  border-radius: 9999px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-login-btn:hover {
  background: rgba(99, 102, 241, 0.4);
  border-color: rgba(165, 180, 252, 0.8);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.5);
  transform: translateY(-1.5px);
  color: #ffffff !important;
}

.btn-login-hero {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}
