.history-hero {
  padding: 56px 0 82px;
}

.history-hero__grid,
.history-origin__grid,
.history-people__grid,
.history-local__grid {
  display: grid;
  align-items: center;
}

.history-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 56px;
}

.history-hero__content h1 {
  max-width: 13ch;
  font-size: clamp(2.85rem, 4.45vw, 4.3rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
}

.history-hero__lead {
  max-width: 44ch;
  font-size: 1.02rem;
  color: var(--color-text-soft);
  line-height: 1.72;
  margin-bottom: 22px;
}

.history-hero__actions,
.history-hero__trust,
.history-origin__points,
.history-local__points,
.history-cta__actions,
.history-cta__meta {
  display: flex;
  flex-wrap: wrap;
}

.history-hero__actions {
  gap: 12px;
  margin-bottom: 18px;
}

.history-hero__trust {
  gap: 8px;
}

.history-hero__trust span,
.history-origin__points span,
.history-local__points span,
.history-cta__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 36, 48, 0.1);
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.history-hero__media {
  position: relative;
  max-width: 560px;
  margin-left: auto;
}

.history-hero__image-wrap {
  overflow: hidden;
  border-radius: 32px;
  background: #ddd8cf;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.history-hero__image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
  object-position: center;
}

.history-hero__card {
  position: absolute;
  min-width: 205px;
  max-width: 238px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 36, 48, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.history-hero__card--top {
  top: 16px;
  left: -60px;
}

.history-hero__card--bottom {
  right: -60px;
  bottom: 16px;
}

.history-hero__card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.history-hero__card span {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.96rem;
  line-height: 1.45;
}

.history-origin,
.history-growth,
.history-people,
.history-present,
.history-local,
.history-cta {
  padding: 0 0 96px;
}

.history-origin__grid {
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1fr);
  gap: 52px;
}

.history-origin__media img,
.history-people__media img,
.history-local__media img,
.history-cta__media img {
  display: block;
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.history-origin__media img {
  aspect-ratio: 1.18 / 0.82;
  border: 1px solid rgba(31, 36, 48, 0.08);
  background: #ddd8cf;
}

.history-origin__content {
  max-width: 580px;
}

.history-origin__content h2,
.history-people__content h2,
.history-local__content h2,
.history-present__intro h2,
.history-cta__content h2 {
  font-size: clamp(2.05rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.history-origin__content h2,
.history-local__content h2,
.history-present__intro h2 {
  max-width: 11ch;
}

.history-origin__lead,
.history-people__lead,
.history-local__lead,
.history-cta__lead {
  font-size: 1.04rem;
  line-height: 1.74;
  color: var(--color-text);
  margin-bottom: 18px;
}

.history-origin__content p:not(.eyebrow):not(.history-origin__lead),
.history-people__content p:not(.eyebrow):not(.history-people__lead),
.history-local__content p:not(.eyebrow):not(.history-local__lead),
.history-present__intro p,
.present-card p,
.history-note span {
  color: var(--color-text-soft);
  line-height: 1.76;
}

.history-origin__content p:not(.eyebrow):not(.history-origin__lead),
.history-people__content p:not(.eyebrow):not(.history-people__lead),
.history-local__content p:not(.eyebrow):not(.history-local__lead) {
  margin-bottom: 14px;
}

.history-origin__points,
.history-local__points {
  gap: 10px;
  margin-top: 22px;
}

.history-growth__intro {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.history-growth__intro h2 {
  max-width: none;
  font-size: clamp(2rem, 3.65vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.history-growth__intro p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--color-text-soft);
  line-height: 1.7;
  font-size: 1rem;
}

.history-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.history-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 48px;
  width: 1px;
  background: rgba(31, 36, 48, 0.12);
}

.history-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.history-timeline__year {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 999px;
  background: #e7dfd4;
  border: 1px solid rgba(31, 36, 48, 0.06);
  color: #8b5a14;
  font-size: 0.84rem;
  font-weight: 700;
}

.history-timeline__card {
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
}

.history-timeline__card h3 {
  font-size: 1.05rem;
  line-height: 1.24;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.history-timeline__card p {
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.65;
  font-size: 0.95rem;
}

.history-timeline__item--current .history-timeline__year {
  background: #1f2430;
  border-color: #1f2430;
  color: #fff;
}

.history-timeline__item--current .history-timeline__card {
  border-color: rgba(181, 127, 52, 0.28);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.06);
}

.history-local__grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 42px;
}

.history-present__intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.history-present__intro p {
  max-width: 58ch;
  font-size: 1.02rem;
}

.history-present__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.present-card {
  min-height: 100%;
  padding: 24px 24px 22px;
  border-radius: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
}

.present-card h3 {
  font-size: 1.02rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.present-card p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.68;
}

.present-card--accent {
  border-color: rgba(181, 127, 52, 0.28);
}

.history-local__content {
  max-width: 620px;
}

.history-origin__media img,
.history-local__media img,
.history-cta__media img {
  object-fit: cover;
  object-position: center;
}

.history-local__media img {
  aspect-ratio: 1.08 / 0.82;
}

.history-cta__box {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.85fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 24px 60px rgba(12, 18, 32, 0.16);
}

.history-cta__content .eyebrow {
  color: var(--color-accent-on-dark);
}

.history-cta__content h2 {
  max-width: 13ch;
  color: #fff;
}

.history-cta__lead {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 20px;
}

.history-cta__meta {
  gap: 12px;
  margin-bottom: 22px;
}

.history-cta__meta span {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.history-cta__actions {
  gap: 14px;
}

.history-cta__actions .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.history-cta__actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.history-cta__media img {
  aspect-ratio: 1.16 / 1;
}

@media (max-width: 1100px) {
  .history-hero {
    padding: 48px 0 72px;
  }

  .history-hero__grid,
  .history-origin__grid,
  .history-people__grid,
  .history-local__grid,
  .history-cta__box {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .history-hero__media,
  .history-origin__media,
  .history-people__media,
  .history-local__media,
  .history-cta__media {
    max-width: 100%;
    margin-left: 0;
  }

  .history-hero__card--top {
    left: 14px;
  }

  .history-hero__card--bottom {
    right: 14px;
  }

  .history-cta__content h2,
  .history-origin__content h2,
  .history-people__content h2,
  .history-local__content h2 {
    max-width: 100%;
  }
}

@media (max-width: 980px) {
  .history-present__grid {
    grid-template-columns: 1fr;
  }

  .history-present__intro h2,
  .history-present__intro p {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .history-hero,
  .history-origin,
  .history-growth,
  .history-people,
  .history-present,
  .history-local,
  .history-cta {
    padding-bottom: 76px;
  }

  .history-hero {
    padding-top: 40px;
  }

  .history-hero__content h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 11vw, 3.55rem);
    margin-bottom: 16px;
  }

  .history-hero__lead,
  .history-origin__lead,
  .history-people__lead,
  .history-local__lead,
  .history-cta__lead,
  .history-present__intro p {
    font-size: 1rem;
  }

  .history-hero__actions,
  .history-cta__actions {
    gap: 10px;
  }

  .history-hero__trust,
  .history-origin__points,
  .history-local__points,
  .history-cta__meta {
    gap: 8px;
  }

  .history-hero__trust span,
  .history-origin__points span,
  .history-local__points span,
  .history-cta__meta span {
    min-height: 38px;
    font-size: 0.88rem;
    padding: 0 12px;
  }

  .history-hero__image-wrap,
  .history-origin__media img,
  .history-people__media img,
  .history-local__media img,
  .history-cta__media img {
    border-radius: 24px;
  }

  .history-hero__image-wrap img {
    aspect-ratio: 1 / 1;
  }

  .history-hero__card {
    position: static;
    min-width: auto;
    max-width: none;
    margin-top: 12px;
  }

  .history-timeline {
    gap: 16px;
  }

  .history-timeline::before {
    left: 20px;
  }

  .history-timeline__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 46px;
  }

  .history-timeline__year {
    min-height: 32px;
    margin-left: -46px;
    font-size: 0.8rem;
  }

  .history-timeline__card {
    padding: 18px 18px;
    border-radius: 18px;
  }

  .history-timeline__card h3 {
    font-size: 1rem;
  }

  .history-timeline__card p,
  .present-card p,
  .history-note span {
    font-size: 0.92rem;
  }

  .history-note,
  .present-card {
    padding: 20px 20px 18px;
  }

  .history-cta__box {
    padding: 28px 22px;
    border-radius: 26px;
  }
}

@media (max-width: 640px) {
  .history-hero__actions,
  .history-cta__actions {
    flex-direction: column;
  }

  .history-hero__actions .btn,
  .history-cta__actions .btn {
    width: 100%;
  }

  .history-hero__trust span,
  .history-origin__points span,
  .history-local__points span,
  .history-cta__meta span {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   AJUSTE FINO · BLOQUE PERSONAS
========================= */


/* =========================
   PERSONAS / HISTORIA FAMILIAR
========================= */

.history-people__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.history-people__content {
  max-width: 560px;
}

.history-people__content h2 {
  max-width: 11ch;
  font-size: clamp(2.2rem, 3.2vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.history-people__lead {
  max-width: 46ch;
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--color-text);
  margin-bottom: 16px;
}

.history-people__content p:not(.eyebrow):not(.history-people__lead) {
  max-width: 52ch;
  color: var(--color-text-soft);
  line-height: 1.8;
  margin-bottom: 14px;
}

.history-people__aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.history-people__media img {
  width: 100%;
  display: block;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
  object-position: center;
}

.history-note {
  max-width: 500px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(31, 36, 48, 0.04);
  border: 1px solid rgba(31, 36, 48, 0.08);
}

.history-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--color-text);
}

.history-note span {
  display: block;
  color: var(--color-text-soft);
  line-height: 1.72;
}

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

@media (max-width: 1080px) {
  .history-people__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .history-people__content,
  .history-people__aside,
  .history-note {
    max-width: 100%;
  }

  .history-people__content h2,
  .history-people__lead,
  .history-people__content p:not(.eyebrow):not(.history-people__lead) {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .history-people {
    padding: 0 0 76px;
  }

  .history-people__content h2 {
    font-size: clamp(2rem, 8vw, 2.9rem);
  }

  .history-people__media img {
    border-radius: 22px;
  }

  .history-note {
    padding: 16px 18px;
    border-radius: 18px;
  }
}
