/* ==================== CANVAS (PARTICULAS) ==================== */

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

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

.hero {
  padding: 10rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }

/* Glows decorativos de fondo */
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(211,47,47,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(211,47,47,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Badge pulsante */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(211,47,47,0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero__badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.hero p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; }

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

@media (max-width: 640px) {
  .hero p { font-size: 1rem; }
  .hero__buttons { flex-direction: column; align-items: center; margin-bottom: 2rem; }
  .hero__buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* Stats — glassmorphism */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 500px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem 2rem;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.6);
  overflow: visible;
  perspective: 600px;
}
:root.dark .hero__stats {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.stat { text-align: center; min-width: 80px; position: relative; }
.stat__number { font-size: 1.75rem; font-weight: 700; color: var(--text); }
.stat__label  { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.4; padding-top: 0.2rem; }

/* ---- Responsive mobile ---- */
@media (max-width: 640px) {
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 1.1rem 1rem 1.4rem;
    max-width: 100%;
  }
  /* Separador vertical entre stats */
  .stat + .stat { border-left: 1px solid var(--border); }
  :root.dark .stat + .stat { border-color: rgba(255,255,255,0.08); }

  .stat { min-width: 0; padding: 0 0.5rem; }
  .stat__number { font-size: 1.35rem; }
  .stat__label  { font-size: 0.65rem; letter-spacing: 0.03em; }
}

/* ==================== TYPEWRITER ==================== */

.typewriter-container { display: inline-block; min-width: 280px; }
.typewriter-text {
  display: inline;
  background: linear-gradient(135deg, var(--primary), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.typewriter-cursor {
  display: inline-block;
  width: 3px; height: 1em;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
