/* ============================================================
   CONSTRUFACH — HERO-STATS
   Sección de stats inmediatamente bajo el hero
   Fondo: continuación visual con hero_bg.jpeg + overlay neutro
   ============================================================ */

.hero-stats {
  position: relative;
  padding: 3rem 1.5rem 3.5rem;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.70) 100%),
    url('../../images/hero/hero_bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}

/* Acento rojo superior — marca el inicio de la sección */
.hero-stats::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: var(--red);
  border-radius: 0 0 2px 2px;
  z-index: 1;
}

/* ── Grid ───────────────────────────────────────────────────── */
.hero-stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Stat individual ────────────────────────────────────────── */
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 11vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  display: inline-flex;
  align-items: flex-start;
}

.hero-stat-mark {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--red);
  margin-left: 0.08em;
  padding-top: 0.35em;
  line-height: 1;
}

.hero-stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
  margin: 0.65rem 0 0;
}

/* ── Stagger ────────────────────────────────────────────────── */
.hero-stats-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.hero-stats-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.hero-stats-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.25s; }
.hero-stats-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.35s; }

/* ============================================================
   CARD ESTILO RESEÑA DE GOOGLE
   ============================================================ */
.g-review {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 2.5rem auto 0;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.28);
  font-family: 'Roboto', 'Barlow', sans-serif;
  color: #202124;
  text-align: left;
}

.g-review-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.g-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Roboto', 'Barlow', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  flex-shrink: 0;
}

.g-review-meta {
  min-width: 0;
}

.g-review-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: #202124;
  line-height: 1.2;
  margin: 0;
}

.g-review-stars {
  display: inline-flex;
  gap: 1px;
  line-height: 0;
  margin-top: 0.25rem;
}

.g-review-stars svg {
  display: block;
}

.g-review-text {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #3c4043;
  font-weight: 400;
}

.g-review-footer {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e8eaed;
}

.g-review-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #1e8e3e;
  letter-spacing: 0.01em;
}

.g-review-tag svg {
  flex-shrink: 0;
}

/* ============================================================
   MOBILE — transición navy desde el hero
   El top de la sección arranca con navy sólido que matchea
   el bottom del overlay del hero → costura invisible.
   ============================================================ */
@media (max-width: 900px) {
  .hero-stats {
    background-image:
      linear-gradient(
        180deg,
        rgba(11, 53, 87, 1) 0%,
        rgba(11, 53, 87, 0.7) 4%,
        rgba(0, 0, 0, 0.55) 12%,
        rgba(0, 0, 0, 0.70) 100%
      ),
      url('../../images/hero/hero_bg.jpeg');
  }

  /* Sin acento rojo arriba — la transición es continua */
  .hero-stats::after {
    display: none;
  }
}

/* ============================================================
   DESKTOP — 4 columnas en una sola fila
   ============================================================ */
@media (min-width: 768px) {
  .hero-stats {
    padding: 5rem 2rem;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
  }

  .hero-stat-label {
    font-size: 0.85rem;
  }

  .g-review {
    margin-top: 3rem;
    padding: 1.4rem 1.5rem 1.25rem;
  }

  .g-review-text {
    font-size: 0.95rem;
  }
}
