/* ============================================================
   HERO.CSS — Sección Hero / Portada
   VELARY — Módulo: Hero
   ============================================================ */

/* ── Contenedor Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

/* ── Fondo: Canvas Partículas ─────────────────────────────── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}

/* ── Glow de Fondo ────────────────────────────────────────── */
.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(ellipse at center,
    rgba(82, 72, 232, 0.18) 0%,
    rgba(77, 200, 240, 0.06) 40%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

.hero__glow-bottom {
  position: absolute;
  bottom: -10%;
  left: 10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(ellipse at center,
    rgba(77, 200, 240, 0.08) 0%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

/* ── Contenido ────────────────────────────────────────────── */
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

/* ── Label ────────────────────────────────────────────────── */
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 12px var(--color-cyan);
  animation: pulse-dot 2s infinite;
}

/* ── Titular ──────────────────────────────────────────────── */
.hero__title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero__title-sub {
  display: block;
  font-size: 0.85em;
  opacity: 0.7;
  font-style: italic;
}

/* ── Descripción ──────────────────────────────────────────── */
.hero__description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 460px;
}

/* ── CTAs ─────────────────────────────────────────────────── */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ── Stats ────────────────────────────────────────────────── */
.hero__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ── Visual Lado Derecho ──────────────────────────────────── */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__orb {
  position: relative;
  width: 420px;
  height: 420px;
}

.hero__orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: orbit-spin linear infinite;
}

.hero__orb-ring:nth-child(1) {
  inset: 0;
  border-color: rgba(107, 110, 240, 0.2);
  animation-duration: 20s;
}

.hero__orb-ring:nth-child(2) {
  inset: 10%;
  border-color: rgba(77, 200, 240, 0.15);
  animation-duration: 14s;
  animation-direction: reverse;
}

.hero__orb-ring:nth-child(3) {
  inset: 22%;
  border-color: rgba(107, 158, 255, 0.25);
  animation-duration: 9s;
}

.hero__orb-ring::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan);
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--color-cyan);
}

.hero__orb-center {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0.12;
  filter: blur(20px);
}

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

.hero__orb-logo svg {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 0 20px rgba(107, 110, 240, 0.6));
}

/* ── Tarjeta flotante ─────────────────────────────────────── */
.hero__float-card {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-card);
  animation: float-card 4s ease-in-out infinite;
}

.hero__float-card:nth-child(5) {
  top: 12%;
  right: -8%;
  animation-delay: 0s;
}

.hero__float-card:nth-child(6) {
  bottom: 16%;
  left: -10%;
  animation-delay: 2s;
}

.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.float-card-text {
  display: flex;
  flex-direction: column;
}

.float-card-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.float-card-value {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ── Scroll Indicator ─────────────────────────────────────── */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  transition: opacity var(--duration-fast);
  cursor: pointer;
}

.hero__scroll:hover {
  opacity: 0.8;
}

.hero__scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gradient-brand);
  animation: scroll-drop 1.5s ease-in-out infinite;
  transform-origin: top;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
    order: 2;
  }

  .hero__visual {
    order: 1;
  }

  .hero__orb {
    width: 280px;
    height: 280px;
  }

  .hero__orb-logo svg {
    width: 70px;
    height: 70px;
  }

  .hero__description {
    max-width: 100%;
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__label {
    justify-content: center;
  }

  .hero__float-card:nth-child(5) {
    right: 0;
    top: 0;
  }

  .hero__float-card:nth-child(6) {
    left: 0;
    bottom: 0;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .hero__float-card {
    display: none;
  }
}

/* ── Trust badges (reemplaza stats) ──────────────────────── */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hero__trust-item svg { color: var(--color-cyan); flex-shrink: 0; }
