/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Formas decorativas de fondo */
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .12;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--red-500);
  top: -200px; right: -100px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--red-400);
  bottom: -100px; left: -100px;
}
.shape-3 {
  width: 300px; height: 300px;
  background: #fca5a5;
  top: 40%; left: 40%;
}

/* Container hero */
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  flex: 1;
}

/* Content */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-50);
  border: 1px solid var(--red-100);
  color: var(--red-600);
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  animation: fadeDown .8s ease both;
}
.hero-badge i { font-size: .9rem; }

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeDown .8s .1s ease both;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
  animation: fadeDown .8s .2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeDown .8s .3s ease both;
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  animation: fadeDown .8s .4s ease both;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--red-100);
  box-shadow: 0 8px 24px rgba(220,38,38,.12);
  transform: translateY(-4px);
}

.stat-icon {
  width: 40px; height: 40px;
  background: var(--red-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--red-600);
  margin-bottom: 6px;
}

.stat-num {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--dark);
  font-family: var(--font-head);
  line-height: 1;
}
.stat-plus {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--red-600);
}
.stat-label {
  font-size: .73rem;
  color: var(--gray-500);
  font-weight: 500;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
  flex-shrink: 0;
}

/* Visual / Dashboard */
.hero-visual {
  position: relative;
  animation: fadeLeft .9s .3s ease both;
  padding: 40px 40px 40px 40px;
}

.dashboard-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(220,38,38,.12), 0 4px 20px rgba(0,0,0,.08);
  border: 1px solid var(--red-100);
  position: relative;
  z-index: 1;
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}
.dash-dots span:nth-child(1) { background: #ff5f57; }
.dash-dots span:nth-child(2) { background: #febc2e; }
.dash-dots span:nth-child(3) { background: #28c840; }

.dash-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-500);
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric {
  background: var(--red-50);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-label { font-size: .72rem; color: var(--gray-500); font-weight: 500; }
.metric-val   { font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.metric-up    { font-size: .72rem; color: #16a34a; font-weight: 600; }

/* Bar chart */
.dash-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-bottom: 20px;
  padding: 0 4px;
}
.bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--red-600), var(--red-400));
  border-radius: 6px 6px 0 0;
  opacity: .85;
  transition: opacity .3s;
}
.bar:hover { opacity: 1; }

.dash-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-tags span {
  background: var(--red-100);
  color: var(--red-600);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

/* Floating badges */
.floating-badge {
  position: absolute;
  background: var(--white);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-100);
  white-space: nowrap;
}
.floating-badge i { color: var(--red-600); }

.badge-roi {
  bottom: 8px;
  left: 0px;
  animation: float 3s ease-in-out infinite;
  z-index: 2;
}
.badge-cert {
  top: 8px;
  right: 0px;
  animation: float 3s 1.5s ease-in-out infinite;
  z-index: 2;
}

/* Sectors bar */
.hero-sectors {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeDown .8s .6s ease both;
}
.sectors-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-sectors span:not(.sectors-label) {
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  transition: var(--transition);
}
.hero-sectors span:not(.sectors-label):hover {
  background: var(--red-100);
  color: var(--red-600);
}

/* ═══════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ═══════════════════════════════════════════
   HERO RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .badge-roi { left: -10px; }
  .badge-cert { right: -10px; }
}

@media (max-width: 480px) {
  .dash-metrics { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .metric-val   { font-size: .95rem; }
  .hero-stats   { grid-template-columns: repeat(2,1fr); }
  .hero-sectors { justify-content: center; }
}