/* ============================================================================
   blog.css — página pública /blog/
   ----------------------------------------------------------------------------
   El hero ya tiene imagen y globos con texto; faltaban estilos del artículo
   destacado, las tarjetas de post, los placeholders de imagen y el newsletter.
   Las clases .features-grid / .feature-card (sección Categorías) ya viven en
   landing.css. Aislado: solo se carga aquí. Reutiliza variables de marca.
   ============================================================================ */

/* ── Globos del hero: 4 esquinas ───────────────────────────────────────── */
/* #282: bloque .hero-image (cards flotantes) movido a public-hero-globos.css
   (compartido). Se carga en la plantilla. */

/* ── Espaciado de secciones ────────────────────────────────────────────── */
.section-featured, .section-posts, .section-newsletter {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.section-posts .section-header { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }

/* Placeholder de imagen (degradado de marca con ícono) — compartido */
.image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary, #1B4F8A), var(--accent-dark, #0E8C8C));
    display: flex; align-items: center; justify-content: center;
}
.image-placeholder i { font-size: 2.6rem; color: #fff; opacity: 0.95; }

/* Chip de categoría + metadatos del post */
.post-category {
    display: inline-block; font-size: 0.78rem; font-weight: 700;
    color: var(--primary, #1B4F8A); background: var(--primary-light, #E8F0F9);
    padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.6rem;
}
.post-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.75rem 0; font-size: 0.82rem; color: var(--text-muted, #5A6B7D); }
.post-meta .post-author { font-weight: 600; color: var(--text-main, #0F1B2D); }

/* ── Artículo destacado ────────────────────────────────────────────────── */
.featured-post {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    background: #fff;
    border: 1px solid var(--border, #e4e9f0);
    border-radius: 20px;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    box-shadow: 0 10px 30px rgba(27, 79, 138, 0.08);
}
.featured-content h2 { margin: 0 0 0.75rem; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--text-main, #0F1B2D); }
.featured-content > p { margin: 0 0 1rem; font-size: 0.98rem; line-height: 1.65; color: var(--text-muted, #5A6B7D); }
.featured-image .image-placeholder { aspect-ratio: 4 / 3; }
.btn-read-more {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--primary, #1B4F8A); color: #fff; text-decoration: none;
    padding: 0.7rem 1.4rem; border-radius: 12px; font-weight: 600; font-size: 0.92rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-read-more:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(27, 79, 138, 0.25); }

/* ── Tarjetas de artículo (van dentro de .features-grid de landing.css) ── */
.post-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--border, #e4e9f0);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 6px 18px rgba(27, 79, 138, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27, 79, 138, 0.12); }
.post-card .post-image .image-placeholder { border-radius: 0; aspect-ratio: 16 / 9; }
.post-content { padding: clamp(1.25rem, 3vw, 1.6rem); display: flex; flex-direction: column; flex: 1; }
.post-content h3 { margin: 0 0 0.4rem; font-size: 1.08rem; font-weight: 700; color: var(--text-main, #0F1B2D); line-height: 1.35; }
.post-content > p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--text-muted, #5A6B7D); }
.read-more {
    margin-top: auto; align-self: flex-start;
    font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--primary, #1B4F8A);
}
.read-more:hover { text-decoration: underline; }

/* ── Newsletter ────────────────────────────────────────────────────────── */
.section-newsletter { background: var(--page, #f5f8fc); }
.newsletter-content {
    max-width: 620px; margin: 0 auto; text-align: center;
    background: linear-gradient(135deg, var(--primary, #1B4F8A), var(--accent-dark, #0E8C8C));
    color: #fff; border-radius: 20px; padding: clamp(2rem, 5vw, 3rem);
}
.newsletter-content h2 { margin: 0 0 0.6rem; font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; }
.newsletter-content > p { margin: 0 0 1.5rem; opacity: 0.95; line-height: 1.6; }
.newsletter-form { display: flex; gap: 0.6rem; max-width: 440px; margin: 0 auto; }
.newsletter-form input {
    flex: 1; border: none; outline: none; border-radius: 10px;
    padding: 0.75rem 1rem; font-size: 0.95rem;
}
.newsletter-form .btn-primary {
    border: none; cursor: pointer; border-radius: 10px;
    background: #fff; color: var(--primary, #1B4F8A);
    font-weight: 700; padding: 0.75rem 1.4rem; font-size: 0.92rem;
}
.newsletter-form .btn-primary:hover { background: #f0f6ff; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .featured-post { grid-template-columns: 1fr; }
    .featured-image { order: -1; }
    .newsletter-form { flex-direction: column; }
}
