/* ================================================
   MUSEO ARQUEOLÓGICO REGIONAL YACUMA
   style1.css — Estilos página Historia
   Paleta y tipografía consistente con index
   ================================================ */

/* ── Hero Banner ── */
.historia-hero {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--tierra-dk), var(--carbon));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--header-h);
  overflow: hidden;
}
.historia-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(200,131,10,0.12) 0%, transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(193,68,14,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.historia-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracota-dk), var(--ocre), var(--terracota-dk));
}
.historia-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,10,3,0.35);
}
.historia-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}
.historia-hero-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ocre-lt);
  border: 1px solid rgba(230,160,48,0.35);
  padding: 0.3rem 1rem;
  margin-bottom: 1.2rem;
}
.historia-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--crema);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1rem;
}
.historia-hero-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--terracota), var(--ocre));
  margin: 0 auto 1rem;
}
.historia-hero-content p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--crema-dk);
  font-style: italic;
  opacity: 0.85;
}

/* ── Contenedor principal ── */
.historia-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* ── Bloque base ── */
.hblock { width: 100%; }

/* ── Texto solo ── */
.hblock-text-only p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 2;
  color: var(--carbon-soft);
  text-align: justify;
  hyphens: auto;
}
.hblock-text-only p strong {
  color: var(--terracota-dk);
  font-weight: 600;
}

/* ── Imagen izquierda + texto derecha ── */
.hblock-img-left {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.hblock-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hblock-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--crema-dk);
  box-shadow: 5px 5px 0 var(--crema-dk), 7px 7px 0 var(--arena);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hblock-img-wrap img:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--crema-dk), 10px 10px 0 var(--arena);
}
.hblock-caption {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--tierra-lt);
  font-style: italic;
  text-align: center;
  border-top: 1px solid var(--crema-dk);
  padding-top: 0.5rem;
  width: 100%;
}
.hblock-text p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 2;
  color: var(--carbon-soft);
  text-align: justify;
  hyphens: auto;
}
.hblock-text p strong {
  color: var(--terracota-dk);
  font-weight: 600;
}

/* ── Imagen centrada (ancho completo) ── */
.hblock-centered {
  display: flex;
  justify-content: center;
}
.hblock-img-full {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hblock-img-full img {
  width: 60%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--crema-dk);
  box-shadow: 0 8px 30px var(--sombra);
}
.hfig-centered {
  width: 100%;
  max-width: 700px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hfig-centered img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--crema-dk);
  box-shadow: 0 8px 30px var(--sombra);
}
.hfig-centered figcaption {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--tierra-lt);
  font-style: italic;
  text-align: center;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--crema-dk);
  padding-top: 0.5rem;
  width: 100%;
}

/* ── Dos imágenes lado a lado ── */
.hblock-two-imgs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: flex-start;
}
.hfig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hfig-large { width: 45%; }
.hfig-medium { width: 30%; }

.hfig img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--crema-dk);
  box-shadow: 5px 5px 0 var(--crema-dk), 7px 7px 0 var(--arena);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hfig img:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--crema-dk), 10px 10px 0 var(--arena);
}
.hfig figcaption {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--tierra-lt);
  font-style: italic;
  text-align: center;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--crema-dk);
  padding-top: 0.5rem;
  width: 100%;
}

/* ── Ornamento separador ── */
.hblock-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
}
.horn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ocre), transparent);
}
.hblock-ornament span {
  color: var(--ocre);
  font-size: 0.75rem;
}

/* ── Caption heredado ── */
.hblock-img-full .hblock-caption {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--tierra-lt);
  font-style: italic;
  text-align: center;
  border-top: 1px solid var(--crema-dk);
  padding-top: 0.5rem;
  width: 100%;
  max-width: 700px;
}



/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .historia-hero { height: 260px; }

  .historia-container { padding: 3rem 1.25rem 4rem; gap: 2.5rem; }

  .hblock-img-left {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hblock-img-wrap img { max-width: 280px; }
  .hblock-img-wrap { align-items: center; }

  .hblock-two-imgs {
    flex-direction: column;
    align-items: center;
  }
  .hfig-large,
  .hfig-medium { width: 85%; }

  .hblock-text-only p,
  .hblock-text p { font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .historia-hero-content h1 { font-size: 2.2rem; }
  .hfig-large,
  .hfig-medium { width: 100%; }
}

/* ── Mini Carrusel Responsive ── */
@media (max-width: 1024px) {
  .mini-track {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .mini-track {
    height: 180px;
  }
  .mini-prev, .mini-next {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .mini-track {
    height: 200px;
  }
  .mini-carrusel {
    margin: 1rem 0;
  }
  .mini-prev { left: 0.25rem; }
  .mini-next { right: 0.25rem; }
}