.section_history {
  position: relative;
  padding: 3rem ;
  margin: 3rem 0;

  /* Grid responsivo para las dos columnas principales */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2.5rem;

  align-items: start;
  overflow: hidden;


}

/* Título general de cada contenedor */
.section_history h1 {
  position: relative;
  font-size: clamp(24px, 2.4vw, 42px);
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  color: #AF854F;
  padding: 2rem;
  text-transform: uppercase;
  margin: 0 auto 2rem;
}

/* Contenedor interno */
.container_history{
  width: 100%;
  min-width: 300px;
  box-sizing: border-box;
  margin: 1rem auto;
}


/* Lista de tarjetas (datos / historia) */
.box_history {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  background-color: black;
  padding: 1rem;
  border-radius: 10px;
}

/* Tarjeta */
.history {
  position: relative;
  padding: 1.25rem 1.25rem;
  border-radius: 12px;

  background: linear-gradient(
  to bottom,
  rgba(235, 255, 235, 0.4) 0%,
  rgba(0, 85, 72, 1) 100%
);
  color: #fffd;

  display: flex;
  flex-direction: column;
  gap: 12px;

  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}

.history:hover{
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  transform: translateY(-2px);
  cursor: pointer;
}

.history:active { transform: translateY(0) scale(1.01); }

/* Texto dentro de la tarjeta */
.history p {
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* Imagen (si la hay) */
.history img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

/* Ajustes tipográficos del primer bloque si solo tiene una tarjeta */
.container_history > .history { margin-top: .5rem; }

/* Pequeño separador visual entre secciones (opcional) */
.container_history:not(:first-child)::before{
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 0.25rem auto 0.75rem;
  border-radius: 2px;
  background: #AF854F;
  opacity: .25;
}
.container_history:not(:last-child)::before{
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 0.25rem auto 0.75rem;
  border-radius: 2px;
  background: #AF854F;
  opacity: .25;
}
