/* ====================== RESET BÁSICO ====================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: 'Inter', Arial, sans-serif;
  background: #ffffff;
}


/* ====================== SECCIÓN BENEFICIOS ====================== */

.benefits-section {
  width: 100%;
  background: #ffffff;
  padding: 90px 0 45px;
}

.benefits-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.benefits-left {
  flex: 0 0 285px;
  position: relative;
}

.benefits-title {
  font-family: 'Axiforma', 'Inter', Arial, sans-serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.08;
  color: #00082a;
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.highlight-bg {
  position: relative;
  display: inline-block;
  color: #00082a;
  z-index: 1;
}

.highlight-bg::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -35px;
  bottom: 1px;
  height: 33px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #00949e 0%,
    rgba(0, 148, 158, 0.08) 100%
  );
  z-index: -1;
}

.benefits-desc {
  max-width: 245px;
  font-family: 'Axiforma', 'Inter', Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.15;
  color: #00082a;
}

.benefits-arrow {
  position: absolute;
  top: 86px;
  right: -4px;
  width: 30px;
  height: 30px;
  background: #00082a;
  color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.benefits-arrow span {
  transform: translateY(-2px);
}


/* ====================== TARJETAS BENEFICIOS ====================== */

.benefits-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 169px);
  gap: 28px;
  justify-content: center;
}

.benefit-card {
  width: 169px;
  height: 338px;
  border-radius: 9px;
  overflow: hidden;
  position: relative;
  background: #00082a;
  box-shadow: 0 12px 28px rgba(0, 8, 42, 0.12);
}

.benefit-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.benefit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 8, 42, 0.20) 0%,
    rgba(0, 8, 42, 0.55) 45%,
    rgba(0, 8, 42, 0.98) 100%
  );
  z-index: 1;
}

.benefit-card-icon {
  position: absolute;
  top: 22px;
  left: 20px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}

.benefit-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 15px 27px;
  z-index: 2;
}

.benefit-card-title {
  font-family: 'Axiforma', 'Inter', Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 28px;
}

.benefit-card-desc {
  max-width: 122px;
  font-family: 'Axiforma', 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.2;
  color: #ffffff;
}


/* ====================== SECCIÓN CATÁLOGOS ====================== */

.catalogs-section {
  width: 100%;
  background: #ffffff;
  padding: 35px 0 90px;
}

.catalogs-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 95px;
}

.catalogs-img {
  width: 390px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.catalogs-content {
  max-width: 560px;
}

.catalogs-title {
  font-family: 'Axiforma', 'Inter', Arial, sans-serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  color: #000000;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.catalogs-title-highlight {
  position: relative;
  display: inline-block;
  color: #000000;
  z-index: 1;
}

.catalogs-title-highlight::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -90px;
  bottom: 0;
  height: 35px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #00949e 0%,
    rgba(0, 148, 158, 0.08) 100%
  );
  z-index: -1;
}

.catalogs-desc {
  max-width: 540px;
  font-family: 'Axiforma', 'Inter', Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  color: #000000;
  margin-bottom: 32px;
}

.btn-catalogs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 125px;
  min-height: 30px;
  padding: 7px 18px;
  border-radius: 999px;
  background: #00949e;
  color: #ffffff;
  font-family: 'Axiforma', 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn-catalogs:hover {
  transform: translateY(-2px);
  background: #007f87;
}


/* ====================== RESPONSIVE ====================== */

@media (max-width: 1150px) {
  .benefits-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .benefits-left {
    flex: initial;
    width: 100%;
    max-width: 520px;
  }

  .benefits-desc {
    max-width: 480px;
    margin: 0 auto;
  }

  .benefits-arrow {
    position: static;
    margin: 18px auto 0;
  }

.benefits-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 20px;
    width: 100%;
    max-width: 800px; /* Centra el bloque de tarjetas */
    margin: 0 auto;
  }


  .catalogs-inner {
    flex-direction: column;
    gap: 35px;
    text-align: center;
  }

  .catalogs-content {
    max-width: 650px;
  }

  .catalogs-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ====================== MEJORA EN RESPONSIVE (Móvil < 600px) ====================== */
@media (max-width: 600px) {
  .benefits-section {
    padding: 60px 0 35px;
  }

  .benefits-inner {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .benefits-left {
    text-align: center;
    margin-bottom: 30px;
  }

  .benefits-desc {
    max-width: 100%;
  }

  .benefits-cards {
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
    width: 100%;
  }

  .benefit-card {
    width: 100%; 
    height: 280px; 
  }

  .benefit-card-title {
    font-size: 14px; 
    margin-bottom: 10px;
  }

  .benefit-card-desc {
    display: none; 
  }

  .catalogs-img {
    width: 100%;
    max-width: 370px;
  }

  .catalogs-section {
    padding: 30px 0 70px;
  }

  .catalogs-desc {
    font-size: 16px;
  }
} /* AQUÍ CIERRA EL MEDIA QUERY DE MÓVIL CORRECTAMENTE */

/* ====================== IMPACT SECTION ====================== */
/* ====================== IMPACT SECTION ====================== */
.impact-section {
    position: relative;
    padding: 80px 0;
    min-height: 250px;
    display: flex;
    align-items: center;
    background-image: url('../img/empleados.webp'); 
    background-size: cover;
    background-position: center;
    color: #ffffff;
    overflow: hidden;
    z-index: 1;
}

.impact-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 156, 166, 0.3); /* Cambiado a rgba para mejor compatibilidad */
    z-index: 1; /* El overlay en nivel 1 */
}
.impact-inner {
    position: relative;
    z-index: 2; /* Esto pone el texto y números SOBRE el turquesa */
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
/* LA CLAVE: Un solo contenedor flex para TODO */
.impact-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; /* Centramos todo el bloque horizontalmente */
    gap: 23px; /* Espacio entre el título y el bloque de números */
}

.impact-main-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    text-align: left; /* Alineado hacia el divisor para mayor cohesión */
}

/* Contenedor interno de los números */
.impact-stats {
    display: flex;
    align-items: center;
    gap: 45px; /* Espaciado entre números y divisores */
}

.stat-item {
    text-align: center;
    /* Reemplaza el min-width: fit-content por un valor fijo */
    min-width: 180px; /* Reserva el espacio para que no tiemble al animar */
}

/* Nuevo contenedor que blinda el número y su palabra */
.stat-number-wrapper {
    display: flex;
    flex-direction: row;
    align-items: baseline; /* Alinea la base del número y la letra perfectamente */
    justify-content: center;
    gap: 8px; /* El espaciado exacto entre "+25" y "años" */
    white-space: nowrap; /* ESTO EVITA EL SALTO DE LÍNEA */
}

/* El número animado por JS */
.stat-number {
    display: block;
    font-size: 3rem; 
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums; /* Evita que el div tiemble al contar */
}

/* El texto que va pegado al lado del número ("años", "líneas") */
.stat-suffix {
    display: block;
    font-size: 3rem; /* Mismo tamaño que el número */
    font-weight: 800;
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 5px;
    white-space: nowrap;
}

/* Divisor vertical único que separa todos los bloques */
.stat-divider {
    width: 1px;
    height: 70px; /* Altura suficiente para cubrir texto y número */
    background-color: rgba(255, 255, 255, 0.3);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1100px) {
    .impact-grid {
        gap: 30px;
    }
    .impact-stats {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .impact-grid {
        flex-direction: column;
        text-align: center;
    }
    .impact-main-title h2 {
        text-align: center;
        margin-bottom: 20px;
    }
    .stat-divider {
        display: none; /* Quitamos divisores en móvil para que no se vea desordenado */
    }
    .impact-stats {
        flex-direction: column;
        gap: 40px;
    }
}
