/* ==========================================================
   images-styles.css — estilos de imágenes del pillar
   ========================================================== */

/* --- Hero figure (inside .hero-inner) --- */
.hero-figure {
  margin: 1.75rem 0 0 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 48px -20px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0d12;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

/* --- Article figures (inside data-content sections) --- */
.article-figure {
  margin: 2rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 36px -18px rgba(15, 23, 42, 0.35);
  background: #f1f5f9;
}

.article-figure figcaption {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #475569;
  font-style: italic;
  padding: 0 0.35rem;
  text-align: left;
  border-left: 3px solid #c8102e;
  padding-left: 0.85rem;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
  .hero-figure {
    margin-top: 1.25rem;
    border-radius: 10px;
  }
  .article-figure {
    margin: 1.5rem 0;
  }
  .article-figure img {
    border-radius: 10px;
    max-height: 360px;
  }
  .article-figure figcaption {
    font-size: 0.8rem;
    padding-left: 0.7rem;
  }
}

@media (max-width: 480px) {
  .article-figure img {
    max-height: 280px;
  }
}
