/* ============================================
   STARTAC - Estilos globales
   Paleta inspirada en el logo (azul, magenta,
   naranja, púrpura, azul profundo)
   ============================================ */

:root {
  /* Paleta principal */
  --blue: #4A9BD8;
  --magenta: #E91E80;
  --orange: #FF7B47;
  --purple: #8E3A9E;
  --deep-blue: #3B5BA5;

  /* Neutrales */
  --bg-light: #ffffff;
  --bg-soft: #fdf6f9;
  --bg-section: #fafbff;
  --bg-dark: #0a0e27;
  --bg-dark-2: #131838;
  --bg-dark-3: #1a2050;

  --text-dark: #1a1d3a;
  --text-muted: #5a5f7a;
  --text-light: #ffffff;
  --text-light-dim: rgba(255, 255, 255, 0.75);
  --text-light-muted: rgba(255, 255, 255, 0.55);

  --border-light: rgba(0, 0, 0, 0.06);
  --border-dark: rgba(255, 255, 255, 0.1);

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--orange) 0%, var(--magenta) 50%, var(--purple) 100%);
  --gradient-cool: linear-gradient(135deg, var(--blue) 0%, var(--deep-blue) 100%);
  --gradient-warm: linear-gradient(135deg, var(--orange) 0%, var(--magenta) 100%);
  --gradient-full: linear-gradient(135deg, var(--blue) 0%, var(--purple) 40%, var(--magenta) 70%, var(--orange) 100%);
  --gradient-hero: linear-gradient(135deg, #0a0e27 0%, #1a1f4d 50%, #2a1a4d 100%);

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(233, 30, 128, 0.3);
  --shadow-glow-blue: 0 0 40px rgba(74, 155, 216, 0.3);

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;

  /* Espaciado */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transiciones */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset / Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ============================================
   Layout helpers
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-sm {
  padding: 60px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-soft {
  background: linear-gradient(180deg, #fdf6f9 0%, #fbf2f6 100%);
}

/* Section tints sutiles (pasteles, no agresivos) */
.section-warm {
  background: linear-gradient(180deg, #fef7f3 0%, #fdf3f0 100%);
  position: relative;
  overflow: hidden;
}

.section-cool {
  background: linear-gradient(180deg, #f4f8fd 0%, #f8f5fd 100%);
  position: relative;
  overflow: hidden;
}

.section-violet {
  background: linear-gradient(180deg, #faf3fc 0%, #f4f7fd 100%);
  position: relative;
  overflow: hidden;
}

.section-mint {
  background: linear-gradient(180deg, #f3faf6 0%, #f4f8fd 100%);
  position: relative;
  overflow: hidden;
}

/* Blob decorativo flotante para cada tinte */
.section-warm::before,
.section-cool::before,
.section-violet::before,
.section-mint::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.20;
  pointer-events: none;
  z-index: 0;
  top: 10%;
  right: -120px;
  animation: blobFloat 22s ease-in-out infinite;
}

.section-warm::before  { background: var(--orange); }
.section-cool::before  { background: var(--blue); }
.section-violet::before{ background: var(--purple); }
.section-mint::before  { background: #4ade80; }

.section-warm > *,
.section-cool > *,
.section-violet > *,
.section-mint > * {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--gradient-warm);
  color: white;
  margin-bottom: 20px;
  box-shadow: var(--shadow-glow);
}

.eyebrow-outline {
  background: white;
  color: var(--magenta);
  border: 1px solid rgba(233, 30, 128, 0.2);
  box-shadow: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-cool {
  background: var(--gradient-cool);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-muted {
  color: var(--text-muted);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================
   Botones
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-warm);
  color: white;
  box-shadow: 0 6px 20px rgba(233, 30, 128, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(233, 30, 128, 0.5);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid rgba(0, 0, 0, 0.12);
}

.btn-outline:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost {
  color: var(--text-dark);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--magenta);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* ============================================
   Header / Navegación
   ============================================ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 54px;
  width: auto;
  display: block;
}

.header.scrolled .logo img {
  height: 46px;
  transition: height var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-warm);
  transition: width var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover,
.nav a.active {
  color: var(--magenta);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO oscuro
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  background: var(--gradient-hero);
  color: var(--text-light);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}

.blob-1 {
  width: 500px; height: 500px;
  background: var(--magenta);
  top: -100px; left: -150px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px; height: 400px;
  background: var(--orange);
  bottom: -100px; right: 20%;
  animation-delay: -6s;
}

.blob-3 {
  width: 450px; height: 450px;
  background: var(--purple);
  top: 30%; right: -150px;
  animation-delay: -12s;
}

.blob-4 {
  width: 350px; height: 350px;
  background: var(--blue);
  bottom: 10%; left: 30%;
  animation-delay: -3s;
  opacity: 0.3;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -50px) scale(1.1); }
  66% { transform: translate(-50px, 30px) scale(0.95); }
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--text-light-dim);
}

.hero-eyebrow .pulse-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #FF7B47 0%, #E91E80 50%, #8E3A9E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light-dim);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

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

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--orange), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.stat-prefix {
  font-size: 0.7em;
}

.stat-center {
  text-align: center;
  align-items: center;
  justify-content: center;
}

.stat-center .stat-value {
  justify-content: center;
  margin: 0 auto;
  width: max-content;
}

.stat-center .stat-label {
  width: 100%;
  text-align: center;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light-muted);
  margin-top: 4px;
}

/* ============================================
   Demo Widget en Hero
   ============================================ */

.demo-widget {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  margin: 0 auto;
}


.demo-screen {
  position: relative;
  aspect-ratio: 7/10;
  background: linear-gradient(180deg, #1a1f4d 0%, #0a0e27 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-video,
.demo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-canvas { pointer-events: none; }

.demo-placeholder {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-light-dim);
  text-align: center;
  padding: 24px;
}

.scan-oval {
  width: 200px;
  height: 260px;
  border: 2px dashed rgba(255, 123, 71, 0.5);
  border-radius: 50%;
  position: relative;
  animation: scan-pulse 2s ease-in-out infinite;
}

@keyframes scan-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 123, 71, 0.4); }
  50% { box-shadow: 0 0 30px 10px rgba(255, 123, 71, 0.2); }
}

.scan-corners {
  position: absolute;
  inset: 16px;
  pointer-events: none;
}

.scan-corner {
  position: absolute;
  width: 28px; height: 28px;
  border: 3px solid var(--orange);
}

.scan-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.scan-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.scan-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.scan-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  box-shadow: 0 0 20px var(--orange);
  animation: scan-move 3s ease-in-out infinite;
}

@keyframes scan-move {
  0% { top: 5%; }
  50% { top: 95%; }
  100% { top: 5%; }
}

.demo-controls {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.demo-btn {
  flex: 1;
  min-width: 120px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.demo-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.demo-btn.active {
  background: var(--gradient-warm);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(233, 30, 128, 0.35);
}

/* ============================================
   Demo basada en código (nueva)
   ============================================ */

.demo-state {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: white;
  animation: demoFadeIn 0.4s ease;
}

.demo-state.hidden { display: none; }

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

.demo-state-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.demo-state-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.demo-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.demo-code-input {
  width: 100%;
  max-width: 240px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  transition: all var(--transition);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.demo-code-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
}

.demo-code-input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(255, 123, 71, 0.15);
}

.demo-submit {
  margin-top: 14px;
  padding: 12px 28px;
  background: var(--gradient-warm);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(233, 30, 128, 0.35);
}

.demo-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 30, 128, 0.5);
}

.demo-hint {
  margin-top: 18px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.demo-hint strong {
  color: var(--orange);
  font-weight: 600;
}

.demo-code-chip {
  cursor: pointer;
  color: var(--orange);
  font-weight: 600;
  transition: opacity var(--transition);
}

.demo-code-chip:hover {
  opacity: 0.7;
}

/* App icon (estado input) */
.demo-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(233, 30, 128, 0.35);
}

/* Divisor "o" */
.demo-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 240px;
  margin: 14px 0 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.demo-divider::before,
.demo-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.demo-divider span {
  padding: 0 12px;
}

/* Botón QR */
.demo-qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.demo-qr-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Área de escaneo QR */
.qr-scan-area {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-pattern {
  width: 75%;
  height: 75%;
  opacity: 0.9;
}

/* Reconocimiento facial: instrucciones DENTRO de la pantalla */
.facial-state {
  padding: 16px !important;
  justify-content: space-between !important;
}

.facial-prompt-overlay {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  max-width: 100%;
  animation: promptFade 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes promptFade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.facial-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 8px;
  background: var(--gradient-warm);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.facial-prompt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.facial-prompt-icon svg {
  width: 100%;
  height: 100%;
}

.facial-prompt-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
}

.facial-container {
  position: relative;
  width: 160px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facial-oval {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(255, 123, 71, 0.6);
}

.facial-face {
  position: relative;
  z-index: 2;
  width: 110px;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 12px rgba(233, 30, 128, 0.3));
}

.facial-face.move-center { transform: translateX(0) scale(1) rotateY(0); }
.facial-face.move-closer { transform: translateX(0) scale(1.18); }
.facial-face.move-left   { transform: translateX(-18%) rotateY(-22deg); }
.facial-face.move-right  { transform: translateX(18%) rotateY(22deg); }
.facial-face.move-up     { transform: translateY(-8%) rotateX(10deg); }

.facial-progress-overlay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

.progress-dot {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition: background var(--transition);
}

.progress-dot.active {
  background: var(--gradient-warm);
  box-shadow: 0 0 8px rgba(255, 123, 71, 0.5);
}

.progress-dot.done {
  background: #4ade80;
}

/* ============================================
   Modo simple (demo del inicio): REC + barra
   ============================================ */

.facial-rec-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: white;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.facial-rec-indicator > span:last-child {
  white-space: nowrap;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 6px white;
  animation: recBlink 1.1s infinite;
}

@keyframes recBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}

.facial-bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.facial-prompt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

.facial-prompt-pill .facial-prompt-icon {
  color: var(--orange);
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.facial-prompt-pill .facial-prompt-icon svg {
  width: 100%;
  height: 100%;
}

.facial-prompt-pill .facial-prompt-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
}

.facial-progress-bar-wrapper {
  width: 80%;
  max-width: 220px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.facial-progress-bar-fill {
  height: 100%;
  background: var(--gradient-warm);
  width: 0%;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(255, 123, 71, 0.6);
}

/* Modo simple: foto del empleado en pantalla completa, como viewfinder de cámara */
.facial-simple {
  padding: 0 !important;
  justify-content: flex-start !important;
  position: relative;
  overflow: hidden;
}

.facial-container-full {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  margin: 0 !important;
  z-index: 1;
}

.facial-container-full .facial-oval { display: none; }

.facial-container-full .facial-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
  animation: none;
}

.facial-container-full .facial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: opacity 0.5s ease;
}

.facial-container-full .facial-photo img.fading { opacity: 0; }

/* Anillo del scanner: centrado en el ROSTRO */
.facial-scan-ring {
  position: absolute;
  top: 47%;
  left: 45%;
  transform: translate(-50%, -50%);
  width: 115px;
  height: 145px;
  border: 2.5px dashed rgba(255, 200, 130, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 123, 71, 0.55), inset 0 0 18px rgba(255, 123, 71, 0.25);
  pointer-events: none;
  overflow: hidden;
  animation: scanRingPulse 1.6s ease-in-out infinite;
  z-index: 2;
}

@keyframes scanRingPulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(255, 123, 71, 0.45), inset 0 0 14px rgba(255, 123, 71, 0.2);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 123, 71, 0.8), inset 0 0 22px rgba(255, 123, 71, 0.4);
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.facial-scan-ring .scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  box-shadow: 0 0 12px var(--orange);
  animation: scan-move 2.2s ease-in-out infinite;
}

/* REC rojo arriba de la foto */
.facial-simple .facial-rec-indicator {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

/* Bottom bar centrada (sobre la foto fullscreen) */
.facial-simple .facial-bottom-bar {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  align-items: center;
  z-index: 4;
}

@keyframes faceBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ============================================
   Demo tabs (página /pages/demo.html)
   ============================================ */

.demo-tabs {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.demo-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  background: var(--bg-soft);
  scrollbar-width: thin;
  position: sticky;
  top: 76px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.demo-tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  white-space: nowrap;
  transition: color var(--transition);
  border-bottom: 3px solid transparent;
}

.demo-tab-btn:hover { color: var(--text-dark); }

.demo-tab-btn.active {
  color: var(--magenta);
  border-bottom-color: var(--magenta);
  background: white;
}

.demo-tab-btn svg { flex-shrink: 0; }

.demo-tabs-content {
  padding: 48px;
  min-height: 540px;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  overflow: hidden;
}

.demo-tab-panel {
  display: none;
  animation: panelFade 0.4s ease;
}

.demo-tab-panel.active { display: block; }

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

/* ===== Welcome screen ===== */
.welcome-screen {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.welcome-screen h2 {
  margin: 20px 0 16px;
}

.welcome-screen .lead {
  margin-bottom: 40px;
}

.welcome-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
  text-align: left;
}

.welcome-card {
  position: relative;
  padding: 28px 22px 22px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-family: inherit;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.welcome-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233, 30, 128, 0.15);
}

.welcome-card:hover::before { transform: scaleX(1); }

.welcome-card-num {
  position: absolute;
  top: 14px; right: 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: rgba(233, 30, 128, 0.2);
}

.welcome-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,123,71,0.12), rgba(233,30,128,0.12));
  color: var(--magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.welcome-card h3 {
  font-size: 1.05rem;
  margin: 0;
}

.welcome-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

.welcome-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--magenta);
  margin-top: auto;
}

/* ===== Panel grid (mock app + sidebar) ===== */
.panel-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

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

/* Mock app (estilo de pantalla de aplicación) */
.mock-app {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mock-app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
}

.mock-bar-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
}

.mock-bar-dot:nth-child(1) { background: #f87171; }
.mock-bar-dot:nth-child(2) { background: #fbbf24; }
.mock-bar-dot:nth-child(3) { background: #4ade80; }

.mock-bar-title {
  margin-left: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.mock-app-body {
  padding: 28px;
}

.mock-section-title {
  font-size: 1.1rem;
  margin-bottom: 22px;
}

/* Alta: captura de foto */
.alta-photo-cap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}

.alta-photo-preview {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,123,71,0.12), rgba(233,30,128,0.12));
  border: 2px dashed rgba(233, 30, 128, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--magenta);
  flex-shrink: 0;
  overflow: hidden;
  transition: all var(--transition);
}

.alta-photo-preview span {
  font-size: 9px;
  margin-top: 2px;
  font-weight: 600;
}

.alta-photo-preview.captured {
  border-style: solid;
  background: var(--gradient-warm);
  color: white;
}

.alta-photo-preview.photo-error {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  animation: photoShake 0.5s ease;
}

@keyframes photoShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.alta-photo-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.alta-capture-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: white;
  border: 1px solid rgba(233, 30, 128, 0.25);
  color: var(--magenta);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.alta-capture-btn:hover {
  background: var(--gradient-warm);
  color: white;
  border-color: transparent;
}

.mock-form { display: block; }

/* ===== Sidebar (lista de empleados / logs) ===== */
.panel-sidebar {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.sidebar-header h3 {
  font-size: 1rem;
  margin: 0;
}

.sidebar-count {
  background: var(--gradient-warm);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.employee-list,
.log-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.employee-item,
.log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  animation: itemSlide 0.4s ease;
}

@keyframes itemSlide {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.employee-item.new,
.log-item.new {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.05);
}

.employee-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}

.employee-info { flex: 1; min-width: 0; }
.employee-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.employee-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.employee-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Log items (registros de asistencia) */
.log-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  flex-shrink: 0;
  min-width: 44px;
}

.log-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.log-name { font-weight: 600; font-size: 0.88rem; }
.log-meta { font-size: 0.75rem; color: var(--text-muted); }

.log-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.log-badge.entrada {
  background: rgba(74, 222, 128, 0.15);
  color: #16a34a;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.log-badge.salida {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* ===== Kiosk mock (Tab 3) ===== */
.kiosk-mock {
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
}

.kiosk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.kiosk-header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.kiosk-header-time {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--orange);
}

.kiosk-screen {
  position: relative;
  background: linear-gradient(180deg, #1a1f4d 0%, #0a0e27 100%);
  color: white;
  padding: 40px 32px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kiosk-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  animation: panelFade 0.4s ease;
}

.kiosk-state.active { display: flex; }

.kiosk-app-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gradient-warm);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(233, 30, 128, 0.4);
}

.kiosk-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.kiosk-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}

.kiosk-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.kiosk-form .demo-code-input {
  margin-bottom: 12px;
}

.kiosk-spinner-wrap {
  margin: 16px 0;
}

/* ===== Puertas (Tab 4) ===== */
.puertas-intro {
  margin-bottom: 24px;
  text-align: center;
}

.puertas-intro h3 {
  margin-bottom: 6px;
}

.puertas-intro p {
  color: var(--text-muted);
}

.puertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.puerta-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}

.puerta-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.puerta-visual {
  position: relative;
  width: 80px;
  height: 100px;
  margin: 0 auto 16px;
}

.puerta-frame {
  width: 100%;
  height: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  perspective: 400px;
}

.puerta-door {
  position: absolute;
  inset: 4px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 4px 4px 0 0;
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.15);
}

.puerta-handle {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 14px;
  background: rgba(255,255,255,0.4);
  border-radius: 3px;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.puerta-card.open .puerta-door {
  transform: rotateY(-70deg);
}

.puerta-status {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  background: rgba(248, 113, 113, 0.15);
  color: #dc2626;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.puerta-status.open {
  background: rgba(74, 222, 128, 0.15);
  color: #16a34a;
  border-color: rgba(74, 222, 128, 0.3);
}

.puerta-status.scanning {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
  border-color: rgba(251, 191, 36, 0.3);
}

.puerta-card h4 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.puerta-card > p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.puerta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--gradient-warm);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(233, 30, 128, 0.3);
}

.puerta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(233, 30, 128, 0.45);
}

.puerta-btn:disabled {
  background: var(--bg-soft);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== Reportes (Tab 5) ===== */
.reports-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.report-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.report-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.report-stat-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,123,71,0.12), rgba(233,30,128,0.12));
  color: var(--magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.report-stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-dark);
}

.report-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.reports-filters {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.reports-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reports-filter label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reports-filter select {
  padding: 10px 14px;
  font-size: 14px;
  min-width: 180px;
}

.reports-export {
  margin-left: auto;
}

/* ============================================
   Toast de descarga (export Excel)
   ============================================ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
  max-width: 360px;
  padding: 14px 18px 18px 16px;
  background: white;
  border: 1px solid var(--border-light);
  border-left: 4px solid #22c55e;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  opacity: 0;
  transform: translateX(120%);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  overflow: hidden;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.toast-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
  animation: toastIconPop 0.55s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes toastIconPop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.toast-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(34, 197, 94, 0.12);
}

.toast-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-radius: 0 3px 3px 0;
}

.toast.show .toast-progress span {
  width: 100%;
  transition: width 2s linear;
}

.reports-table-wrapper {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
  position: relative;
}

.reports-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-muted);
  text-align: center;
}

.reports-empty p {
  margin: 0;
  font-size: 0.95rem;
}

.reports-empty svg { opacity: 0.5; }

.reports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.reports-table thead {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
}

.reports-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.reports-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}

.reports-table tbody tr:last-child td { border-bottom: none; }

.reports-table tbody tr:hover {
  background: rgba(255, 123, 71, 0.03);
}

.emp-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emp-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: white;
  flex-shrink: 0;
}

.report-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.report-badge.success {
  background: rgba(74, 222, 128, 0.15);
  color: #16a34a;
}

.report-badge.active {
  background: rgba(74, 155, 216, 0.15);
  color: #2563eb;
}

.report-badge.late {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
}

/* ============================================
   Producto: features en hexágono 2-3-2
   ============================================ */

.features-hex {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1050px;
  margin: 0 auto;
}

.features-hex-row {
  display: grid;
  gap: 24px;
}

.features-hex-row-2 {
  grid-template-columns: repeat(2, 1fr);
  width: 70%;
  margin: 0 auto;
}

.features-hex-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .features-hex-row-2 { width: 100%; }
}

@media (max-width: 720px) {
  .features-hex-row-2,
  .features-hex-row-3 {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .features-hex { gap: 16px; }
}

/* ============================================
   Página Nosotros: prose, bloques, tagline
   ============================================ */

.about-prose {
  max-width: 820px;
  margin: 0 auto 40px;
}

.about-prose p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-prose p:first-child {
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 500;
}

.about-block {
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 36px 40px 36px 44px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.about-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-warm);
}

.about-block:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.about-block-icon {
  position: absolute;
  top: 28px;
  left: 36px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-warm);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(233, 30, 128, 0.3);
  z-index: 2;
}

.about-block.has-icon {
  padding-top: 100px;
}

/* Variantes de color para values — fondo sutil con tinte del tema */
.about-block.theme-blue {
  background: linear-gradient(135deg, #ffffff 0%, #f3f8fd 100%);
}
.about-block.theme-blue::before { background: linear-gradient(180deg, #4A9BD8, #3B5BA5); }
.about-block.theme-blue .about-block-icon { background: linear-gradient(135deg, #4A9BD8, #3B5BA5); box-shadow: 0 6px 18px rgba(74, 155, 216, 0.3); }

.about-block.theme-purple {
  background: linear-gradient(135deg, #ffffff 0%, #faf3fc 100%);
}
.about-block.theme-purple::before { background: linear-gradient(180deg, #8E3A9E, #E91E80); }
.about-block.theme-purple .about-block-icon { background: linear-gradient(135deg, #8E3A9E, #E91E80); box-shadow: 0 6px 18px rgba(142, 58, 158, 0.3); }

.about-block.theme-magenta {
  background: linear-gradient(135deg, #ffffff 0%, #fdf3f8 100%);
}
.about-block.theme-magenta::before { background: linear-gradient(180deg, #E91E80, #FF7B47); }
.about-block.theme-magenta .about-block-icon { background: linear-gradient(135deg, #E91E80, #FF7B47); box-shadow: 0 6px 18px rgba(233, 30, 128, 0.3); }

.about-block.theme-orange {
  background: linear-gradient(135deg, #ffffff 0%, #fef6f0 100%);
}
.about-block.theme-orange::before { background: linear-gradient(180deg, #FF7B47, #E91E80); }
.about-block.theme-orange .about-block-icon { background: linear-gradient(135deg, #FF7B47, #E91E80); box-shadow: 0 6px 18px rgba(255, 123, 71, 0.3); }

.about-block.theme-green {
  background: linear-gradient(135deg, #ffffff 0%, #f1faf4 100%);
}
.about-block.theme-green::before { background: linear-gradient(180deg, #22c55e, #4A9BD8); }
.about-block.theme-green .about-block-icon { background: linear-gradient(135deg, #22c55e, #4A9BD8); box-shadow: 0 6px 18px rgba(34, 197, 94, 0.3); }

.about-block h3 {
  font-size: 1.45rem;
  margin-bottom: 18px;
  color: var(--text-dark);
}

.about-block p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.about-block p:last-child {
  margin-bottom: 0;
}

.about-highlight {
  background: linear-gradient(135deg, rgba(255,123,71,0.08), rgba(233,30,128,0.08));
  border-left: 3px solid var(--magenta);
  padding: 12px 18px !important;
  border-radius: var(--radius-sm);
  color: var(--text-dark) !important;
  font-size: 1.05rem !important;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.about-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-warm);
}

.about-tagline {
  max-width: 720px;
  margin: 50px auto 0;
  padding: 44px 36px;
  text-align: center;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(233, 30, 128, 0.3);
  position: relative;
  overflow: hidden;
}

.about-tagline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18) 0%, transparent 50%);
  pointer-events: none;
}

.about-tagline-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.about-tagline p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
  opacity: 0.96;
}

/* Decoraciones flotantes en secciones (sutiles, no agresivas) */
.about-section-deco {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfaff 0%, #fdfafa 50%, #fafbff 100%);
}

.about-section-deco.section-soft {
  background: linear-gradient(180deg, #fdf6f9 0%, #fbf5fc 50%, #f6f8fd 100%);
}

.about-section-deco::before,
.about-section-deco::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 22s ease-in-out infinite;
}

.about-section-deco::before {
  width: 440px;
  height: 440px;
  background: var(--orange);
  top: 5%;
  right: -140px;
}

.about-section-deco::after {
  width: 380px;
  height: 380px;
  background: var(--blue);
  bottom: 5%;
  left: -120px;
  animation-delay: -11s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-30px, 20px) scale(0.95); }
}

.about-section-deco > * { position: relative; z-index: 1; }

/* Timeline */
.about-timeline {
  max-width: 860px;
  margin: 50px auto;
  position: relative;
  padding: 20px 0;
}

.about-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), var(--magenta), var(--purple));
  transform: translateX(-50%);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 28px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-year {
  grid-column: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-warm);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 24px rgba(233, 30, 128, 0.35);
  z-index: 2;
  margin: 0 auto;
  text-align: center;
  line-height: 1.1;
  padding: 4px;
}

.timeline-content {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  grid-column: 1;
  text-align: right;
  margin-right: 24px;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 3;
  margin-left: 24px;
}

.timeline-content h4 {
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--text-dark);
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Callout visual destacado ("Startac ganó la licitación", "+300 clientes") */
.about-callout {
  max-width: 600px;
  margin: 30px auto;
  padding: 28px 36px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 20px 50px rgba(233, 30, 128, 0.3);
  position: relative;
  overflow: hidden;
}

.about-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.about-callout-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
  animation: calloutPulse 2.5s ease-in-out infinite;
}

@keyframes calloutPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.about-callout-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.about-callout-sub {
  font-size: 0.9rem;
  opacity: 0.92;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .about-block { padding: 30px 24px 24px; }
  .about-block.has-icon { padding-top: 88px; }
  .about-block-icon { top: 22px; left: 24px; width: 46px; height: 46px; border-radius: 12px; }
  .about-block h3 { font-size: 1.2rem; }
  .about-tagline { padding: 36px 24px; }
  .about-tagline-brand { font-size: 1.6rem; }
  .about-tagline p { font-size: 1rem; }

  .about-timeline::before { left: 24px; }
  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }
  .timeline-year {
    grid-column: 1;
    width: 48px;
    height: 48px;
    font-size: 0.75rem;
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
    text-align: left;
    margin: 0;
  }

  .about-callout { padding: 22px 24px; }
  .about-callout-text { font-size: 1.15rem; }
}

/* ============================================
   Contacto: 3 cards horizontales + form
   ============================================ */

.contact-title {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient-warm);
  margin: 14px auto 0;
  border-radius: 2px;
}

.contact-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 50px 0 40px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  box-shadow: var(--shadow-sm);
}

.contact-info-card {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border-light);
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition);
}

.contact-info-card:last-child { border-right: none; }
.contact-info-card[href]:hover { transform: translateY(-3px); }

.contact-info-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--magenta);
}

.contact-info-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
}

.contact-form-wide {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 38px;
}

.contact-form-wide .form-input,
.contact-form-wide .form-select,
.contact-form-wide .form-textarea {
  padding: 16px 18px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border-color: transparent;
}

.contact-form-wide .form-input:focus,
.contact-form-wide .form-select:focus,
.contact-form-wide .form-textarea:focus {
  background: white;
  border-color: var(--magenta);
}

.contact-form-wide .form-textarea {
  min-height: 160px;
}

.form-submit-center {
  display: block;
  width: auto;
  min-width: 220px;
  margin: 8px auto 0;
  padding: 14px 36px;
}

@media (max-width: 768px) {
  .contact-info-row {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .contact-info-card {
    padding: 22px 0;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .contact-info-card:last-child { border-bottom: none; }
  .contact-form-wide { padding: 28px 22px; }
}

/* ============================================
   Paquetes (página producto)
   ============================================ */

.trial-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: 0 20px 50px rgba(233, 30, 128, 0.3);
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.trial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.trial-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.trial-content { position: relative; z-index: 1; }

.trial-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.trial-card h3 {
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.trial-card p {
  font-size: 1rem;
  opacity: 0.95;
  margin: 0;
}

.trial-cta {
  background: white !important;
  color: var(--magenta) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.trial-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.plan-block {
  margin-bottom: 40px;
}

.plan-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--magenta);
}

.plan-block-header h3 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--text-dark);
  flex: 1;
}

.plan-block-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 12px;
  background: var(--bg-soft);
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.plan-block-note-highlight {
  background: linear-gradient(135deg, rgba(255,123,71,0.15), rgba(233,30,128,0.15));
  color: var(--magenta);
  border: 1px solid rgba(233, 30, 128, 0.25);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.plan-card {
  display: block;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233, 30, 128, 0.15);
}

.plan-card:hover::before { transform: scaleX(1); }

.plan-card-range {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.plan-card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.plan-card-cta {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--magenta);
  margin-top: 14px;
  letter-spacing: 0.2px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition), transform var(--transition);
}

/* En desktop (con hover real) lo escondemos y revelamos al pasar el mouse */
@media (hover: hover) {
  .plan-card-cta {
    opacity: 0;
    transform: translateY(-4px);
  }
  .plan-card:hover .plan-card-cta {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 30px;
  font-size: 0.95rem;
}

.plan-note a {
  color: var(--magenta);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 720px) {
  .trial-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 24px;
    gap: 16px;
  }
  .trial-icon { margin: 0 auto; }
  .trial-cta { width: 100%; justify-content: center; }
  .plan-block-header { flex-wrap: wrap; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
}

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

/* ============================================
   Integración API con ERP (sección del inicio)
   ============================================ */

.api-flow {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(260px, 1.6fr) minmax(190px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 40px 0;
  position: relative;
}

.api-box {
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}

.api-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.api-box:hover { transform: translateY(-4px); }

.api-startac {
  background: linear-gradient(135deg, #FF7B47 0%, #E91E80 60%, #8E3A9E 100%);
  color: white;
}

.api-erp {
  background: linear-gradient(135deg, #4A9BD8 0%, #3B5BA5 100%);
  color: white;
}

.api-box-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: white;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.api-box-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative; z-index: 1;
}

.api-box-sub {
  font-size: 0.82rem;
  opacity: 0.88;
  position: relative; z-index: 1;
}

.api-curves {
  position: relative;
  height: 220px;
}

.api-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.api-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  background: white;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
}

.api-label-top { top: -2px; }
.api-label-bot { bottom: -2px; }

.api-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 3;
}

.api-pulse {
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 14px #22c55e;
  animation: apiPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

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

/* Responsive: en mobile apilamos verticalmente */
@media (max-width: 820px) {
  .api-flow {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .api-curves {
    height: 140px;
    order: 1;
  }
  .api-startac { order: 0; }
  .api-erp { order: 2; }
  .api-label { font-size: 11px; padding: 4px 12px; }
  .api-center-badge { font-size: 11px; padding: 6px 14px; }
}

/* ============================================
   Tab 3: Aplicación móvil Android + Portal web
   ============================================ */

.phone-app-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Alinear Portal web con el inicio del marco del celular (compensar la altura del label "Android") */
.phone-app-side + .panel-sidebar {
  margin-top: 42px;
}

@media (max-width: 900px) {
  .phone-app-side + .panel-sidebar { margin-top: 0; }
}

.phone-app-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.35);
  border-radius: var(--radius-full);
  color: #16a34a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.asis-phone {
  max-width: 320px !important;
  width: 100%;
  padding: 12px;
}

.asis-phone .demo-screen {
  aspect-ratio: 7/11;
}

/* Estado: apertura de puerta */
.door-open-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
  box-shadow: 0 0 50px rgba(74, 222, 128, 0.45);
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.door-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(74, 222, 128, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: var(--radius-full);
  color: #4ade80;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.sidebar-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: -8px 0 14px;
  line-height: 1.4;
}

/* ============================================
   Modal de registro con animación cloud → globo → terminales
   ============================================ */

.demo-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 39, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.demo-modal.open {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

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

.demo-modal-card {
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  max-width: 400px;
  width: 100%;
  animation: modalCardIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalCardIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.cloud-globe-anim {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
}

/* Nube arriba */
.anim-cloud {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  z-index: 3;
  animation: cloudFloat 3.2s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(74, 155, 216, 0.3));
}

@keyframes cloudFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-5px); }
}

/* Stream de datos descendentes */
.data-stream {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 50px;
}

.data-dot {
  position: absolute;
  left: 0;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, var(--orange) 0%, rgba(255,123,71,0) 70%);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 123, 71, 0.9);
  opacity: 0;
  animation: dataStream 1.6s linear infinite;
}

.data-dot:nth-child(1) { animation-delay: 0s; }
.data-dot:nth-child(2) { animation-delay: 0.4s; }
.data-dot:nth-child(3) { animation-delay: 0.8s; }
.data-dot:nth-child(4) { animation-delay: 1.2s; }

@keyframes dataStream {
  0%   { top: -8px;  opacity: 0; }
  15%  {              opacity: 1; }
  85%  {              opacity: 1; }
  100% { top: 52px;  opacity: 0; }
}

/* Globo */
.globe-wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
}

.globe-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 18px rgba(74, 155, 216, 0.35));
  animation: globeBreathe 3s ease-in-out infinite;
}

@keyframes globeBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* Tabletas biométricas alrededor del globo */
.terminal {
  position: absolute;
  width: 17px;
  height: 24px;
  background: linear-gradient(180deg, #2a3045 0%, #14182a 100%);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 3.5px;
  box-shadow: 0 3px 10px rgba(233, 30, 128, 0.5), inset 0 0 0 0.5px rgba(0,0,0,0.4);
  animation: terminalBlink 2s ease-in-out infinite;
  overflow: visible;
}

/* Pantalla del tablet (área del display con gradiente brillante) */
.terminal::after {
  content: '';
  position: absolute;
  top: 3.5px;
  left: 1.5px;
  right: 1.5px;
  bottom: 4px;
  background: linear-gradient(135deg, #FF7B47 0%, #E91E80 100%);
  border-radius: 1.5px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.35);
}

/* Cámara frontal pequeñísima arriba del tablet */
.terminal::before {
  content: '';
  position: absolute;
  top: 1.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2px;
  background: radial-gradient(circle at 30% 30%, #6aa9d8 0%, #1a2a4d 100%);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 2px rgba(74,155,216,0.6);
}

.terminal.t1 { top: 15%;  left: 8%;  animation-delay: 0s;    }
.terminal.t2 { top: 38%;  right: 4%; animation-delay: 0.5s;  }
.terminal.t3 { bottom: 22%; left: 30%; animation-delay: 1s;  }
.terminal.t4 { top: 55%;  left: 12%; animation-delay: 1.5s;  }

@keyframes terminalBlink {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 3px 10px rgba(233, 30, 128, 0.5);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 4px 18px rgba(233, 30, 128, 1), 0 0 20px rgba(255, 123, 71, 0.6);
    opacity: 1;
  }
}

.demo-modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.demo-modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Mobile adjustments para demo tabs */
@media (max-width: 720px) {
  .demo-tabs-content { padding: 24px 18px; }
  .demo-tab-btn { padding: 14px 14px; font-size: 13px; }
  .demo-tab-btn svg { width: 14px; height: 14px; }
  .welcome-cards { grid-template-columns: 1fr; }
  .puertas-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .reports-table { font-size: 0.78rem; }
  .reports-table th,
  .reports-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .puertas-grid { grid-template-columns: 1fr; }
  .reports-filters { flex-direction: column; align-items: stretch; }
  .reports-export { margin-left: 0; }
  .reports-filter select { min-width: 0; width: 100%; }
}

/* Estado: verificando (loading) */
.demo-spinner {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--orange);
  border-right-color: var(--magenta);
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.demo-progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
}

.demo-progress-fill {
  height: 100%;
  background: var(--gradient-warm);
  width: 0%;
  animation: progressFill 1.6s ease-out forwards;
}

@keyframes progressFill {
  to { width: 100%; }
}

/* Estado: éxito */
.demo-success-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.4);
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.demo-user-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.demo-user-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.demo-user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.demo-user-role {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.demo-confirm-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 280px;
  padding: 10px 16px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.demo-confirm-row strong { color: #4ade80; }
.demo-confirm-row span:last-child { color: rgba(255, 255, 255, 0.85); }

/* Estado: error */
.demo-error-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f87171, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
  box-shadow: 0 0 40px rgba(248, 113, 113, 0.4);
  animation: shake 0.5s ease;
}

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

.demo-reset-btn {
  margin-top: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.demo-reset-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.demo-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px; height: 8px;
  background: #fbbf24;
  border-radius: 50%;
}

.status-dot.live {
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse 2s infinite;
}

.status-dot.error { background: #f87171; }

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: #4ade80;
  font-weight: 600;
}

.demo-badge.mask {
  background: rgba(74, 155, 216, 0.15);
  border-color: rgba(74, 155, 216, 0.3);
  color: var(--blue);
}

.demo-badge.hidden { display: none; }

/* ============================================
   Cards / Servicios
   ============================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233, 30, 128, 0.1);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 123, 71, 0.1), rgba(233, 30, 128, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--magenta);
  font-size: 24px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-list {
  list-style: none;
}

.card-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-list li::before {
  content: '✓';
  color: var(--magenta);
  font-weight: bold;
}

.card-badge {
  position: absolute;
  top: 20px; right: 20px;
  padding: 4px 10px;
  background: var(--gradient-warm);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
}

/* ============================================
   Pasos (Cómo funciona)
   ============================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
}

.step {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

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

/* ============================================
   Features grid
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  padding: 28px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.feature:hover {
  border-color: rgba(233, 30, 128, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(74, 155, 216, 0.1), rgba(233, 30, 128, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--magenta);
}

.feature-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   Tabs (información dinámica)
   ============================================ */

.tabs-container {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 20px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  white-space: nowrap;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-warm);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.tab-btn.active {
  color: var(--magenta);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px;
  align-items: center;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-panel.active {
  display: contents;
}

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

.tab-text h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.tab-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.tab-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.tab-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.tab-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 123, 71, 0.1), rgba(233, 30, 128, 0.15));
  mix-blend-mode: multiply;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item.open {
  border-color: rgba(233, 30, 128, 0.2);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-dark);
}

.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  color: var(--magenta);
  font-size: 18px;
  margin-left: 16px;
}

.faq-item.open .faq-icon {
  background: var(--gradient-warm);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 28px 24px;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   CTA Banner
   ============================================ */

.cta-banner {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(233, 30, 128, 0.3);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

.cta-banner > * { position: relative; z-index: 1; }

.cta-banner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  background: white;
  color: var(--magenta);
  padding: 16px 36px;
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* ============================================
   Formularios
   ============================================ */

.form-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: var(--text-dark);
  transition: all var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(233, 30, 128, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(233, 30, 128, 0.3);
}

.form-submit:disabled,
.form-submit.is-loading {
  cursor: not-allowed;
  opacity: 0.85;
  transform: none;
}

.form-input.input-error,
.form-textarea.input-error {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-input.input-error:focus,
.form-textarea.input-error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

/* Tarjeta de exito (reemplaza al formulario al enviar) */
.form-success {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
  animation: successCardIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.form-success-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto 22px;
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.4);
  animation: successIconPop 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes successIconPop {
  0%   { transform: scale(0) rotate(-30deg); }
  60%  { transform: scale(1.15) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.form-success p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: rgba(233, 30, 128, 0.2);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 123, 71, 0.15), rgba(233, 30, 128, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--magenta);
  flex-shrink: 0;
}

.contact-card-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-card-value {
  font-weight: 600;
  color: var(--text-dark);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--bg-dark);
  color: var(--text-light-dim);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand img {
  height: 56px;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
  margin-top: 12px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { padding: 4px 0; }
.footer-col a {
  font-size: 14px;
  color: var(--text-light-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: white; }

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--gradient-warm);
  transform: translateY(-2px);
}

/* ============================================
   Reveal animations (para scroll)
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-left.visible {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-right.visible {
  transform: translateX(0);
}

.reveal-scale {
  transform: scale(0.9);
}

.reveal-scale.visible {
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   Subpage hero (más pequeño)
   ============================================ */

.page-hero {
  padding: 160px 0 80px;
  background: var(--gradient-hero);
  color: white;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.125rem;
  color: var(--text-light-dim);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 968px) {
  .hero-grid,
  .tab-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .demo-widget {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-content { margin: 0 auto; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-eyebrow { margin-left: auto; margin-right: auto; }
}

@media (max-width: 820px) {
  .btn-header { display: none; }
  .header-inner { gap: 12px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }

  .nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: white;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    gap: 20px;
    transform: translateY(-200%);
    transition: transform var(--transition);
    align-items: flex-start;
  }
  .nav a { width: 100%; padding: 8px 0; }

  .nav.open { transform: translateY(0); }
  .menu-toggle { display: flex; }

  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 70px 0; }
  .section-header { margin-bottom: 40px; }
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero h1 { font-size: clamp(1.85rem, 7vw, 2.5rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { gap: 20px; }
  .stat-value { font-size: 1.4rem; }

  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  h2 { font-size: clamp(1.6rem, 6vw, 2rem); }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-banner { padding: 40px 20px; }
  .tab-content { padding: 28px 20px; }
  .tab-btn { padding: 16px 18px; font-size: 13px; }
  .tabs-nav { -webkit-overflow-scrolling: touch; }

  .demo-widget { padding: 16px; }
  .demo-screen { aspect-ratio: 4/5; }
  .facial-container { width: 130px; height: 195px; }
  .facial-face { width: 92px; }
  .facial-scan-ring { width: 100px; height: 125px; top: 47%; left: 45%; }
  .facial-prompt-text { font-size: 0.78rem; }
  .facial-prompt-overlay { padding: 8px 14px 8px 8px; }

  .card { padding: 24px; }
  .step { padding: 28px 22px; }
  .feature { padding: 22px; }

  .logo img { height: 44px; }
  .header.scrolled .logo img { height: 40px; }

  .page-hero { padding: 130px 0 60px; }
  .page-hero h1 { font-size: clamp(1.85rem, 6vw, 2.5rem); }
  .page-hero p { font-size: 1rem; }

  .form-card { padding: 28px 22px; }
  .contact-card { padding: 16px 20px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.7rem; }
  .stat-value { font-size: 1.25rem; }
  .hero-stats { gap: 16px; }
  .demo-code-input { letter-spacing: 1px; font-size: 0.95rem; padding: 12px 14px; }
  .demo-state-title { font-size: 1rem; }
  .demo-state-subtitle { font-size: 0.8rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
