/* ================================
   NUESTRA HISTORIA
   ================================ */

.nuestra-historia {
  background-color: #f5f5f5;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* Banner superior */
.nh-banner img {
  display: block;
  width: 100%;
}

/* Línea de tiempo */
.nh-timeline {
  background-color: #ffffff;
}

.nh-container {
  max-width: 100%;
}

/* Filas */
.nh-row {
  margin-left: 0;
  margin-right: 0;
}

.nh-row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
  padding: 120px 0; /* Desktop: aire vertical grande */
}

/* Cada bloque */
.nh-timeline-item {
  position: relative;
}

/* --- LÍNEA ENTRE SECCIONES (NUEVA) --- */
.nh-timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 90%;                 /* centrada, no full width */
    height: 1px;                /* más gruesa */
    background-color: #124f30;  /* amarillo del bloque de años */
    border-radius: 2px;
}

/* Bloque de años */
.nh-year {
  background-color: #e4b935; /* Amarillo */
  color: #0f4f2b;            /* VERDE — texto de los años */
  text-align: center;
  padding: 40px 10px;
  font-weight: 700;
  font-size: 90px;
  line-height: 1.1;
  position: relative;

  /* centrar verticalmente */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nh-year span {
  display: block;
}

/* Flecha verde */
.nh-year .nh-arrow {
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  width: 40px;
  height: auto;
  z-index: 2;
}

/* Contenido */
.nh-content {
  background-color: #ffffff;
  padding: 28px 48px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nh-list {
  list-style-type: disc;
  margin: 0;
  padding-left: 200px;
  padding-right: 200px;
}

.nh-list li {
  font-size: 25px;
  line-height: 1.7;
  color: #124f30;
  margin-bottom: 12px;
}

.nh-list li strong {
  font-weight: 700;
}

/* Icono */
.nh-icon {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  flex-direction: column;
  justify-content: center;
}

.nh-icon img {
  max-width: 200px;
  height: auto;
}

/* =======================================================
   TABLET (<= 991px)
   ======================================================= */
@media (max-width: 991.98px) {
  .nh-row > [class*="col-"] {
    padding: 60px 0;
  }

  .nh-year {
    font-size: 60px;
    padding: 30px 10px;
  }

  .nh-content {
    padding: 24px 32px;
  }

  .nh-list {
    padding-left: 60px;
    padding-right: 60px;
  }

  .nh-list li {
    font-size: 20px;
    line-height: 1.8;
  }

  .nh-icon {
    padding: 24px 0;
  }

  .nh-icon img {
    max-width: 130px;
  }
}

/* =======================================================
   MÓVIL (<= 767px)
   ======================================================= */
@media (max-width: 767.98px) {

  .nh-row {
    flex-direction: column;
    text-align: center;
  }

  .nh-row > [class*="col-"] {
    padding: 32px 16px;
  }

  .nh-year {
    font-size: 42px;
    padding: 24px 16px;
  }

  .nh-year .nh-arrow {
    display: none;
  }

  .nh-content {
    padding: 20px 20px;
    align-items: flex-start;
    text-align: left;
  }

  .nh-list {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nh-list li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 10px;
  }

  .nh-icon {
    padding: 16px 0 8px;
  }

  .nh-icon img {
    max-width: 120px;
  }
}
