/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(40, 178, 0, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(94, 242, 48, 0.10) 0%, transparent 50%),
    linear-gradient(135deg, #0A0F0A 0%, #111810 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Grid layout: 2 col top + full-width bottom */
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 48px;
  row-gap: 32px;
  align-items: start;
  padding-top: 100px;
  padding-bottom: 40px;
  width: 100%;
}

/* Left column: logo only */
.hero-left {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrap {
  margin-bottom: 0;
}

.hero-logo {
  height: 500px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(40, 178, 0, 0.5));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(40, 178, 0, 0.18);
  border: 1px solid rgba(40, 178, 0, 0.4);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  width: fit-content;
}

.hero-badge i { color: var(--accent); }

.hero-right h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-right p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}

.stat span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* Right column: text content */
.hero-right {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}

/* Bottom row: cert card + mini cards, full width */
.hero-bottom {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.hero-card.main-card {
  flex: 0 0 280px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(40, 178, 0, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hc-badge-ring {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 2px solid rgba(40, 178, 0, 0.4);
  background: rgba(40, 178, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(40,178,0,0.2); }
  50% { box-shadow: 0 0 0 14px rgba(40,178,0,0); }
}

.hc-badge-inner {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(40, 178, 0, 0.15);
  border: 2px solid rgba(40, 178, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.hc-grade {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hc-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
}

.hc-sub {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

.hc-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  max-width: 220px;
}

.hc-sgs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(40, 178, 0, 0.12);
  border: 1px solid rgba(40, 178, 0, 0.3);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
}

.hc-sgs i { color: var(--accent); }

.hero-mini-cards {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: stretch;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: var(--transition);
  min-height: 0;
}

.mini-card:hover {
  background: rgba(40, 178, 0, 0.08);
  border-color: rgba(40, 178, 0, 0.3);
}

.mini-card > i {
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.mini-card strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.mini-card span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}

.hero-scroll {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 18px 6px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.48);
  font-size: 0.72rem;
  z-index: 2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-scroll:hover {
  color: rgba(255,255,255,0.82);
  transform: translateY(2px);
}

.hero-scroll:focus-visible {
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 6px;
  border-radius: 999px;
}

.hero-scroll i {
  font-size: 1rem;
}

.bounce {
  animation: bounce 2s infinite;
}

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

/* ================================================
   HERO RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 110px;
    padding-bottom: 32px;
    row-gap: 24px;
  }

  /* Reorden: logo → texto → tarjetas */
  .hero-left   { grid-column: auto; grid-row: auto; order: 1; justify-content: center; }
  .hero-right  { grid-column: auto; grid-row: auto; order: 2; padding-top: 0; }
  .hero-bottom { grid-column: auto; grid-row: auto; order: 3; flex-direction: row; }

  .hero-logo  { height: 320px; }
  .hero-right h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
  .hero-right p  { max-width: 100%; }
  .hero-card.main-card { flex: none; }
  .hero-mini-cards { grid-template-columns: 1fr 1fr; }
  .hero-scroll {
    margin-top: 4px;
  }
}

@media (max-width: 600px) {
  .hero-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .hero-card.main-card {
    width: 100%;
    flex: none;
    padding: 40px 24px;
  }

  .hero-mini-cards {
    width: 100%;
    grid-template-columns: 1fr 1fr; /* Keep 2 columns until 500px */
  }
}

@media (max-width: 500px) {
  .hero-logo  { height: 220px; }
  .hero-right h1 { font-size: 1.7rem; }
  .hero-cta   { flex-direction: column; }
  .hero-cta a { justify-content: center; }
  .hero-stats { gap: 12px; }
  .stat-divider { display: none; }
  .hero-mini-cards { grid-template-columns: 1fr; }
  .hero-scroll {
    font-size: 0.68rem;
    padding: 8px 12px 2px;
  }
}
