/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 40px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: #000 url("../assets/portada.jpg") center/cover no-repeat;
  transform: scale(1.05);
  z-index: 0;
}

/* Overlay oscuro fuerte — imágenes casi silhouette */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0.70) 55%, rgba(8,8,8,0.96) 100%),
    radial-gradient(circle at 50% 40%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.75) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

/* Logo estático con glow rojo pulsante muy sutil — sin float */
.hero__logo {
  height: 130px;
  width: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 0 rgba(204,0,0,0));
  animation: heroGlow 3.4s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6)) drop-shadow(0 0 6px rgba(204,0,0,0.15)); }
  50%      { filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6)) drop-shadow(0 0 22px rgba(204,0,0,0.45)); }
}

.hero__title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: 0.15em;
  padding-left: 0.15em; /* compensa el letter-spacing para centrar */
  color: var(--text);
  text-shadow: 0 6px 40px rgba(0,0,0,0.7);
  overflow-wrap: break-word;
}

/* Línea roja gruesa tipo military bajo el título */
.hero__title::after {
  content: "";
  display: block;
  width: clamp(120px, 24vw, 260px);
  height: 4px;
  margin: 22px auto 0;
  background: var(--red);
  box-shadow: 0 0 16px rgba(204,0,0,0.45);
}

.hero__subtitle {
  margin-top: 12px;
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__cta {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Entrada del hero: fade-in desde abajo, recto, sin bounce */
.hero__in {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.6s ease-out forwards;
}
.hero__in--delay { animation-delay: 0.18s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Stats — estilo marcador deportivo: negro, borde rojo fino,
   divisores verticales, sin burbujas ni esquinas redondeadas */
.hero__stats {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(8,8,8,0.72);
  border: 1px solid var(--red-dark);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 22px 28px;
  border-left: 1px solid rgba(204,0,0,0.28);
}

.stat:first-child { border-left: none; }

.stat__num {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--text);
}

.stat:first-child .stat__num { color: var(--gold); }

.stat__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

@media (max-width: 600px) {
  .hero__logo { height: 96px; }
  .hero__stats {
    margin-top: 40px;
    width: 100%;
    max-width: 360px;
  }
  .stat {
    flex: 1 1 50%;
    min-width: 0;
    padding: 16px 10px;
    border-top: 1px solid rgba(204,0,0,0.28);
  }
  /* Rehacer bordes en cuadrícula 2x2 */
  .stat:nth-child(1), .stat:nth-child(2) { border-top: none; }
  .stat:nth-child(odd) { border-left: none; }
}
