/* =====================================================================
   HERO — imagen de fondo con overlay, H1, stats
   ===================================================================== */

.hero {
  position: relative;
  background-color: var(--color-primario);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  min-height: 480px;
  display: flex;
  align-items: center;
}

/* Overlay oscuro */

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Contenido centrado */

.hero-contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 56px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* H1 */

.hero-h1 {
  font-size: 26px;
  font-weight: var(--peso-bold);
  color: #fff;
  line-height: 1.2;
  max-width: 760px;
}

/* Keyword en color acento claro */

.hero-h1 em,
.hero-h1 .keyword {
  color: var(--color-acento-claro);
  font-style: normal;
}

/* Texto bajo el H1 */

.hero-texto {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 600px;
  margin: 0;
}

/* Botón hero */

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--color-primario);
  font-family: var(--fuente);
  font-size: 15px;
  font-weight: var(--peso-bold);
  padding: 14px 26px;
  border-radius: var(--radio-small);
  border: 2px solid var(--color-acento);
  box-shadow: 0 0 0 4px rgba(224, 123, 57, 0.25);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
  justify-content: center;
}

.btn-hero svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-hero:hover {
  background: var(--color-acento);
  color: #fff;
}

/* Stats */

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  width: 100%;
  justify-content: space-around;
  flex-wrap: wrap;
  row-gap: 16px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 80px;
}

.hero-stat-num {
  font-size: 22px;
  font-weight: var(--peso-bold);
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.3;
}

/* Separador vertical entre stats */

.hero-stat-sep {
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
  align-self: stretch;
  flex-shrink: 0;
}

/* ----- Desktop ----- */

@media (min-width: 768px) {

  .hero {
    min-height: 600px;
  }

  .hero-contenido {
    padding: 80px 48px 64px;
  }

  .hero-h1 {
    font-size: 38px;
  }

  .hero-texto {
    font-size: 17px;
  }

  .btn-hero {
    width: auto;
    font-size: 16px;
    padding: 15px 30px;
  }

  .hero-stats {
    justify-content: flex-start;
    gap: 0;
    width: auto;
  }

  .hero-stat {
    padding: 0 32px;
    align-items: flex-start;
    min-width: 120px;
  }

  .hero-stat:first-child {
    padding-left: 0;
  }

  .hero-stat-num {
    font-size: 28px;
  }

  .hero-stat-label {
    font-size: 12px;
    text-align: left;
  }
}
