/* ==========================================================================
   blog.css - Estilos modulares para Blog y Artículos (Código Puro CSS)
   Emaús Solidaridad Para Todos
   ========================================================================== */

/* Hero de cada artículo - Padding vertical generoso (eje Y) y fondo continuo sin gap */
.article-hero {
  position: relative;
  overflow: hidden;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background-color: #111827;
  width: 100%;
}

@media (min-width: 768px) {
  .article-hero {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.article-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.article-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
}

.article-hero-container {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .article-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.article-hero-title {
  color: #ffffff;
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .article-hero-title {
    font-size: 2.5rem;
  }
}

.article-hero-date {
  font-size: 0.875rem;
  color: #e5e7eb;
}

/* Tarjeta de Información de Contacto en Hero */
.contact-info-card {
  margin-top: 1.5rem;
  border-radius: 1.25rem;
  padding: 1.25rem;
  background-color: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-info-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon-bubble {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(239, 68, 68, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Formulario lateral de Captura en Hero */
.lead-capture-card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Tipografía de Contenido del Artículo (.prose) */
.article-body-container {
  max-width: 1100px;
  margin: 2.5rem auto 4rem auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.prose {
  color: #374151;
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 100%;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: #111827;
  font-weight: 700;
  line-height: 1.35;
}

.prose h2 {
  font-size: 1.75rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.prose ul, .prose ol {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.75rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}

.prose strong {
  color: #111827;
  font-weight: 700;
}

.prose a {
  color: #ef4444;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.prose a:hover {
  color: #b91c1c;
}

.prose blockquote {
  border-left: 4px solid #ef4444;
  padding-left: 1rem;
  font-style: italic;
  color: #4b5563;
  margin: 1.5rem 0;
}

/* Listado de Artículos (Blog Listing) */
.blog-list-hero {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background-color: #f9fafb;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1);
}

/* Paginación */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
