/* =========================================
   BLOG STYLES
   ========================================= */

/* --- Configuración Base y Variables (Heredadas de styles.css, redefinidas aquí por si acaso o específicas) --- */
:root {
    --color-blog-bg: #f4f4f4;
    --color-text-main: #333;
    --color-text-meta: #666;
    --color-primary: #250456;
    /* Violeta Oscuro */
    --color-accent: #FE2552;
    /* Fucsia */
}

/* --- Layout General del Blog --- */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-hero {
    background-color: var(--color-primary);
    background-image: url('../img/fondos/fondo-portfolio.png');
    /* Reusing portfolio bg for consistency */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.blog-hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.blog-hero p {
    font-size: 1.2em;
    color: #ddd;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Grid de Artículos (Blog List) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--color-primary);
}

.blog-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--color-accent);
}

.blog-card-meta {
    font-size: 0.85em;
    color: var(--color-text-meta);
    margin-bottom: 15px;
}

.blog-card-excerpt {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.blog-read-more {
    display: inline-block;
    color: var(--color-accent);
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9em;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    align-self: flex-start;
}

.blog-read-more:hover {
    border-bottom-color: var(--color-accent);
}

/* --- Vista de Artículo Individual (Single Post) --- */
.article-container {
    max-width: 800px;
    margin: 150px auto;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    /* O transparente si prefieres sobre el fondo general */
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-meta {
    width: auto;
    color: var(--color-text-meta);
    font-size: 1.5em;
    background: var(--naranja);
    border-radius: 10px;
    color: var(--background);
    padding: 5px;
    margin: 10px;
}

.article-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-content {
    font-size: 1.15em;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    color: var(--color-primary);
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h3 {
    color: var(--color-primary);
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-back:hover {
    background-color: var(--color-primary);
    color: white;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2em;
    }

    .article-title {
        font-size: 2em;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Botones de Compartir --- */
.share-buttons {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.share-buttons h3 {
    font-size: 1.2em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.share-icon {
    display: inline-block;
    margin: 0 10px;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}

.share-icon img {
    width: 100%;
    height: 100%;
}


.share-icon:hover {
    transform: scale(1.1);
    background: var(--naranja);
    border-radius: 50%;
}

/* --- Sección de Comentarios --- */
.article-comments {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-bottom: 25px;
    text-align: left;
}

/* Estilo para que el plugin de Facebook se integre mejor */
.fb-comments {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    width: 100% !important;
}