/* Estilos específicos para el blog que complementan Tailwind */

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937; /* gray-800 */
}

/* Ajuste para el contenido principal para que no quede oculto por header si fuera fixed (no lo es aqui) */
.blog-wrapper {
    min-height: 80vh;
    padding-bottom: 4rem;
}

/* Estilos para el Indice del Blog */
.blog-index-hero {
    background-color: #f3f4f6; /* gray-100 */
    padding: 4rem 1rem;
    text-align: center;
    border-radius: 0.5rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.blog-index-hero h1 {
    color: #0D47A1; /* primary */
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-index-hero p {
    font-size: 1.125rem;
    color: #4b5563; /* gray-600 */
    max-width: 42rem;
    margin: 0 auto;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.post-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #0D47A1;
}

.post-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-link {
    color: #0D47A1;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.read-link:hover {
    text-decoration: underline;
}

.read-link span {
    margin-left: 0.25rem;
}

/* Estilos para Artículos Individuales */
article.container {
    max-width: 65ch; /* Ancho de lectura óptimo */
    margin: 3rem auto;
    padding: 0 1rem;
}

article h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

article p {
    font-size: 1rem; /* antes 1.125rem */
    line-height: 1.75;
    color: #374151;
    margin-bottom: 1.25rem;
}

article ul, article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

article li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

article a {
    color: #0D47A1;
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
}

.back-link:hover {
    color: #0D47A1;
}

.cta-box {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.cta-box h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-box .btn {
    display: inline-block;
    background-color: #0D47A1;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
}

.cta-box .btn:hover {
    background-color: #1e40af;
}