/* ============================================================
   NUESTRA HISTORIA · estilos propios de la página
   Reutiliza los tokens de main.css (--cream, --forest, --gutter…)
   ============================================================ */

/* --- Hero a pantalla completa -------------------------------- */
.story-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 100vh, 900px);
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
}
.story-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--forest);
  background-image: linear-gradient(160deg, rgba(11, 23, 16, 0.72) 0%, rgba(4, 19, 9, 0.88) 100%),
    url("../assets/img/photos/historia-hero.webp");
  background-size: cover, cover;
  background-position: center, center 45%;
  background-repeat: no-repeat;
}
.story-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 22, 0.7);
}
.story-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 160px var(--gutter) 72px;
  display: grid;
  grid-template-columns: minmax(0, 608px) minmax(0, 1fr);
  align-items: end;
  gap: 48px;
}
.story-hero__lead {
  min-width: 0;
}
.story-hero__eyebrow {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.story-hero__title {
  font-family: var(--serif);
  font-size: var(--h1);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream);
}
.story-hero__intro {
  max-width: 570px;
  justify-self: end;
  font-size: 20px;
  line-height: 32px;
  color: var(--cream-soft);
}
.story-hero__intro p + p {
  margin-top: 16px;
}

/* --- Orígenes: imagen a sangre + texto en dos columnas ------- */
.story-origins {
  display: grid;
  grid-template-columns: 52.1% minmax(0, 1fr);
  gap: 56px;
  padding-right: 0;
  background: var(--forest);
  color: var(--cream);
}
.story-origins__bleed {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(72% 58% at 46% 28%, rgba(160, 182, 136, 0.38) 0%, rgba(13, 26, 16, 0) 68%),
    linear-gradient(160deg, #33452f 0%, #16241a 55%, #0d1a10 100%);
}
.story-origins__bleed img {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 56%;
  width: auto;
  transform: translate(-50%, -50%);
  opacity: 0.94;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.45));
}
.story-origins__bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #182218b8;
  pointer-events: none;
}
.story-origins__body {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 56px var(--gutter) 56px 0;
  min-width: 0;
}
.story-origins__title {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1.3;
  font-weight: 400;
  max-width: 470px;
}
.story-origins__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  min-height: 645px;
  align-items: stretch;
}
.story-origins__col {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}
.story-origins__p {
  font-size: 19.95px;
  line-height: 29px;
  color: var(--cream-soft);
}
.story-origins__media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 26%, rgba(255, 236, 214, 0.34) 0%, rgba(120, 84, 60, 0) 68%),
    linear-gradient(165deg, #3a2a1d 0%, #22150f 55%, #150c08 100%);
}
.story-origins__media img {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 68%;
  width: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}
.story-origins__media--tall {
  flex: 1 1 auto;
  min-height: 300px;
}
.story-origins__media--square {
  aspect-ratio: 1;
  margin-top: auto;
}
.story-origins__media--square img {
  height: 58%;
}

/* ============================================================
   Tabletas (≤991px)
   ============================================================ */
@media (max-width: 991px) {
  .story-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 140px 16px 40px;
  }
  .story-hero__eyebrow {
    font-size: 12px;
    line-height: 32px;
  }
  .story-hero__title {
    font-size: 40px;
    line-height: 51.2px;
  }
  .story-hero__intro {
    justify-self: start;
    max-width: none;
    font-size: 16px;
    line-height: 24px;
  }
  .story-origins {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-right: 0;
  }
  .story-origins__bleed {
    min-height: 380px;
  }
  .story-origins__body {
    gap: 32px;
    padding: 8px 16px 48px;
  }
  .story-origins__title {
    font-size: 29px;
    line-height: 1.28;
    max-width: none;
  }
  .story-origins__grid {
    min-height: 0;
    gap: 16px;
  }
  .story-origins__col {
    gap: 16px;
  }
  .story-origins__p {
    font-size: 16px;
    line-height: 24px;
  }
  .story-origins__media--tall {
    flex: 0 0 auto;
    min-height: 0;
    height: 340px;
  }
  .story-origins__media--square {
    aspect-ratio: auto;
    height: 340px;
    margin-top: auto;
  }
}

/* ============================================================
   Teléfonos (≤767px)
   ============================================================ */
@media (max-width: 767px) {
  .story-hero__inner {
    padding: 120px 16px 32px;
  }
  .story-origins__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .story-origins__media--tall {
    min-height: 0;
    height: 222px;
  }
  .story-origins__media--square {
    aspect-ratio: auto;
    height: 180px;
    margin-top: auto;
  }
  .story-origins__bleed {
    min-height: 260px;
  }
}

/* ============================================================
   Teléfonos pequeños (≤479px)
   ============================================================ */
@media (max-width: 479px) {
  .story-hero__title {
    font-size: 40px;
    line-height: 51px;
  }
  .story-origins__title {
    font-size: 32px;
    line-height: 1.24;
  }
  .story-origins__bleed {
    min-height: 240px;
  }
  .story-origins__media--tall {
    min-height: 220px;
  }
}


/* ============================================================
   FOTOGRAFÍA REAL
   ============================================================ */
.story-origins__bleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  filter: none;
  opacity: 1;
  object-fit: cover;
}
.story-origins__media img,
.story-origins__media--square img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  filter: none;
  object-fit: cover;
}
