/* =========================================================
   Hero: título, palabra rotativa, esfera, estadísticas, notificaciones
   ========================================================= */

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at 50% 20%, var(--bg-3) 0%, var(--bg-2) 60%, var(--bg) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  animation: grid-pan 30s linear infinite;
}

@keyframes grid-pan {
  to {
    background-position: 64px 64px;
  }
}

.hero__glow {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(12, 81, 110, 0) 70%);
  pointer-events: none;
}

.hero__sphere {
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 640px;
  height: 640px;
  opacity: 0.5;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.pill {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(6, 40, 49, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

.hero__title {
  margin-top: 1.75rem;
  max-width: 15ch;
  font-size: clamp(2.8rem, 8vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__title .gradient-text {
  display: block;
}

.hero__rotator {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: white;
}

.rotator {
  color: var(--cyan);
  display: inline-flex;
  min-width: 9ch;
  position: relative;
}

.rotator::after {
  content: "";
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  margin-left: 3px;
  align-self: center;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.rotator .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%);
  filter: blur(8px);
  animation: char-in 0.5s var(--ease) forwards;
}

@keyframes char-in {
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.hero__lead {
  margin-top: 1rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.8vw, 1rem);
  color: var(--text-soft);
}

.hero__ctas {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stats {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 660px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(6, 40, 49, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

.stat {
  padding: 1.25rem 1rem;
  text-align: center;
}

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

.stat__value {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat__value small {
  font-size: 0.5em;
  color: var(--sky);
  margin-left: 2px;
  font-weight: 700;
}

.stat__label {
  margin-top: 0.25rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.live-feed {
  position: absolute;
  right: 2rem;
  bottom: 2.5rem;
  z-index: 3;
  display: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 280px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.toast.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
}

.toast__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #02161b;
  font-weight: 800;
}

.toast strong {
  display: block;
  font-size: 0.88rem;
}

.toast div span {
  font-size: 0.8rem;
  color: #475569;
}

.toast__time {
  margin-left: auto;
  font-size: 0.7rem;
  color: #64748b;
  align-self: flex-start;
}

@media (min-width: 1100px) {
  .live-feed {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero__sphere {
    width: 420px;
    height: 420px;
    right: -200px;
    top: 30%;
    opacity: 0.35;
  }

  .stat__label {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }
}