/* ============================================================
   CAFÉ DE LA CABAÑA — Historia (history.html)
   styleHistory.css · Secciones exclusivas de Historia
   ============================================================ */

/* ============================================================
   LAYOUT BASE
   ============================================================ */
.nosotros {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--gradient-bg);
  overflow-x: hidden;
}

.nosotros__main {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 100px;
  padding-top: var(--nav-height);
  padding-bottom: 120px;
}

.nosotros__main::-webkit-scrollbar { display: none; }

/* ============================================================
   HERO HISTORIA
   ============================================================ */
.history-hero {
  position: relative;
  width: 100%;
  height: 870px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-hero__bg {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  background-image: url('../assets/img/Nosotros/HeroNosotros.webp');
  background-size: cover;
  background-position: 50% 50%;
}

.history-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  padding: 0 var(--space-5);
}

.history-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 400;
  color: var(--color-text-white);
  letter-spacing: var(--ls-tight);
  line-height: 1.1;
  text-align: center;
  max-width: 900px;
}

.history-hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--color-text-white-80);
  letter-spacing: var(--ls-widest);
  line-height: 1.6;
  text-transform: uppercase;
}

/* ============================================================
   NARRATIVE SECTION
   ============================================================ */
.narrative-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
  width: 100%;
  max-width: 1152px;
  padding: 0 var(--space-5);
  align-items: center;
}

.narrative-section__text {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.narrative-section__paragraphs {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-top: var(--space-5);
}

.narrative-section__image-col {
  grid-column: 7 / 13;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 0.8;
}

.narrative-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-image: url('../assets/img/Nosotros/ManosCafeNosotros.webp');
  background-size: cover;
  background-position: 50% 50%;
  min-height: 600px;
}

/* ============================================================
   VALUES BENTO
   ============================================================ */
.values-section {
  width: 100%;
  padding: var(--space-10) var(--space-8);
  background-color: var(--color-cream-alt);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.values-section__inner {
  display: flex;
  flex-direction: column;
  max-width: var(--container-max);
  width: 100%;
  gap: var(--space-8);
  margin: 0 auto;
}

.values-section__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.values-section__divider {
  width: 96px;
  height: 1px;
  background-color: var(--color-red);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.value-card {
  position: relative;
  background-color: var(--color-cream);
  border: 1px solid var(--color-border-light);
  padding: 0 0 var(--space-5);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-card__icon-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 0 24px;
}

.value-card__icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.value-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-green-dark);
  text-align: center;
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

.value-card__desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-body);
  text-align: center;
  line-height: var(--lh-normal);
  padding: 0 var(--space-5);
}

/* ============================================================
   PROCESS OVERVIEW
   ============================================================ */
.process-overview {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
  width: 100%;
  max-width: 1152px;
  padding: 0 var(--space-5);
  align-items: center;
}

.process-overview__images {
  grid-column: 1 / 8;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.process-overview__images img {
  width: 100%;
  height: 371px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.process-overview__content {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.process-overview__paragraphs {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-4) 0 var(--space-5);
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-section {
  position: relative;
  width: 100%;
  max-width: 1152px;
  padding: var(--space-9) var(--space-7);
  background-color: var(--color-green-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 var(--space-5);
}

.cta-section__texture {
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 50%);
  opacity: 0.1;
  pointer-events: none;
}

.cta-section__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 23px;
  text-align: center;
}

.cta-section__desc {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  line-height: var(--lh-normal);
  max-width: 576px;
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding-top: 17px;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE — HISTORIA
   ============================================================ */
@media (max-width: 1024px) {
  .nosotros__main {
    gap: var(--space-9);
  }

  .history-hero {
    height: 600px;
  }

  .history-hero__title {
    font-size: var(--text-4xl);
  }

  .narrative-section {
    grid-template-columns: 1fr;
  }

  .narrative-section__text {
    grid-column: 1 / -1;
    order: 2;
  }

  .narrative-section__image-col {
    grid-column: 1 / -1;
    order: 1;
    aspect-ratio: 16/9;
  }

  .narrative-section__image {
    min-height: 350px;
  }

  .values-section {
    padding: var(--space-9) var(--space-6);
  }

  .values-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .process-overview {
    grid-template-columns: 1fr;
  }

  .process-overview__images {
    grid-column: 1 / -1;
  }

  .process-overview__content {
    grid-column: 1 / -1;
  }

  .cta-section {
    margin: 0 var(--space-4);
    padding: var(--space-8) var(--space-5);
  }
}

@media (max-width: 640px) {
  .nosotros__main {
    gap: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .history-hero {
    height: 70vh;
    min-height: 400px;
  }

  .history-hero__title {
    font-size: var(--text-3xl);
  }

  .history-hero__subtitle {
    font-size: var(--text-sm);
    letter-spacing: var(--ls-wider);
  }

  .narrative-section {
    padding: 0 var(--space-4);
  }

  .narrative-section__image {
    min-height: 260px;
  }

  .values-section {
    padding: var(--space-8) var(--space-4);
  }

  .values-grid {
    max-width: 100%;
  }

  .process-overview {
    padding: 0 var(--space-4);
  }

  .process-overview__images {
    grid-template-columns: 1fr;
  }

  .process-overview__images img {
    height: 220px;
  }

  .cta-section {
    margin: 0 var(--space-4);
    padding: var(--space-7) var(--space-4);
  }

  .cta-section__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-section__actions .btn {
    text-align: center;
  }
}
