/* ===========================
   hero.css — Sección hero homepage
   =========================== */

.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Grid de líneas CSS */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Glows radiales */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 15% 50%, rgba(0,212,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 50%, rgba(124,58,237,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* --- CONTENIDO TEXTO --- */
.hero__content { max-width: 580px; }

.hero__badge { margin-bottom: 1.5rem; }

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero__title span { display: block; }

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* --- SCROLL HINT --- */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-3);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 1;
  transition: color var(--transition);
  animation: bounce-hint 2s ease-in-out infinite;
}

.hero__scroll-hint:hover { color: var(--accent); }

.hero__scroll-hint svg {
  width: 20px;
  height: 20px;
  animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- DASHBOARD MOCKUP --- */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard {
  background: rgba(12,18,32,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.08),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(0,212,255,0.05);
}

.dashboard__chrome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.dashboard__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dashboard__dot:nth-child(1) { background: #ff5f57; }
.dashboard__dot:nth-child(2) { background: #febc2e; }
.dashboard__dot:nth-child(3) { background: #28c840; }

.dashboard__chrome-title {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-left: 0.5rem;
  font-weight: 500;
}

.dashboard__body { padding: 1.25rem; }

/* KPIs */
.dashboard__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.kpi {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.kpi__value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.kpi__label {
  font-size: 0.68rem;
  color: var(--text-3);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.kpi__delta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #10b981;
}

.kpi__delta--neutral { color: var(--text-3); }

/* Gráfico de barras */
.dashboard__chart { margin-bottom: 1.25rem; }

.chart__label {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 64px;
}

.chart__bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  height: 100%;
  justify-content: flex-end;
}

.chart__bar {
  width: 100%;
  background: linear-gradient(to top, rgba(0,212,255,0.4), rgba(0,212,255,0.15));
  border-radius: 3px 3px 0 0;
  transition: height 0.5s ease;
}

.chart__bar--active {
  background: linear-gradient(to top, #00d4ff, rgba(124,58,237,0.5));
  box-shadow: 0 0 12px rgba(0,212,255,0.3);
}

.chart__bar-lbl {
  font-size: 0.6rem;
  color: var(--text-3);
}

/* Actividades */
.dashboard__activities { display: flex; flex-direction: column; gap: 0.5rem; }

.activity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.activity__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.activity__dot--cyan  { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.activity__dot--purple{ background: #a78bfa; box-shadow: 0 0 6px #a78bfa; }
.activity__dot--green { background: var(--accent-3); box-shadow: 0 0 6px var(--accent-3); }

.activity__text {
  flex: 1;
  font-size: 0.72rem;
  color: var(--text-2);
}

.activity__time {
  font-size: 0.65rem;
  color: var(--text-3);
  white-space: nowrap;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- RESPONSIVE HERO --- */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero__content { max-width: 100%; }
  .dashboard { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .hero {
    padding: calc(var(--nav-h) + 2rem) 0 4rem;
    min-height: auto;
  }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { text-align: center; justify-content: center; }
  .dashboard { max-width: 100%; }
  .dashboard__kpis { grid-template-columns: repeat(3, 1fr); }
}
