/* ========================================= */
/* ESTILOS BLOG (DISEÑO PREMIUM)             */
/* ========================================= */

/* --- Estilos para la página de Índice del Blog (blog/index.html) --- */

.blog-container {
    padding: 80px 20px;
    background-color: #f4f7f6;
}
.featured-post-link {
    display: block;
    color: inherit;
    text-decoration: none;
    margin-bottom: 60px;
}
.featured-post {
    position: relative;
    min-height: 450px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.featured-post-link:hover .featured-post {
    transform: scale(1.02);
}
.featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}
.featured-post-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 60%;
}
.post-category {
    background-color: #ff6f61;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}
.featured-post-content h2 {
    font-size: 2.5rem;
    margin: 15px 0;
    line-height: 1.3;
}
.featured-post-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.post-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.post-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card-link:hover .post-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.post-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.post-card-content {
    padding: 25px;
}
.post-card-content h3 {
    font-size: 1.5rem;
    color: #0d2c4b;
    margin: 10px 0;
}
.post-card-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}
.sidebar .widget {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.widget-title {
    font-size: 1.2rem;
    color: #0d2c4b;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #f4f7f6;
    padding-bottom: 10px;
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li {
    margin-bottom: 10px;
}
.category-list a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.category-list a:hover {
    color: #ff6f61;
}
.widget.cta-widget {
    background-color: #0d2c4b;
    color: #ffffff;
    text-align: center;
}
.widget.cta-widget h4 {
    color: #ffffff;
    font-size: 1.3rem;
}
.widget.cta-widget .cta-button {
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* --- Estilos para la Página del Artículo Individual (NUEVO DISEÑO) --- */

.blog-post-layout {
    background-color: #ffffff;
    padding-bottom: 60px;
}
.post-header {
    max-width: 850px; /* Ancho máximo para el encabezado */
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}
.post-header h1 {
    font-size: 3.2rem;
    color: #0d2c4b;
    line-height: 1.2;
    margin: 15px 0;
}
.post-meta {
    font-weight: 600;
    color: #555;
    margin-bottom: 30px;
}
.post-full-width-image {
    margin: 0 0 50px 0;
}
.post-full-width-image img {
    width: 100%;
    height: 500px;
    object-fit: contain;
}
.post-body {
    max-width: 720px; /* Ancho de columna óptimo para la lectura */
    margin: 0 auto;
    padding: 0 20px;
}
.post-body .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #333;
    line-height: 1.7;
    margin-bottom: 30px;
}
.post-body h2 {
    font-size: 2rem;
    color: #0d2c4b;
    margin-top: 50px;
    margin-bottom: 20px;
    line-height: 1.3;
}
.post-body p, .post-body li {
    line-height: 1.9;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}
.post-body ul {
    padding-left: 20px;
}
.post-body figure {
    margin: 40px 0;
}
.post-body figure img {
    max-width: 100%;
    border-radius: 10px;
}
.post-body figcaption {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}
.post-body blockquote {
    border-left: 4px solid #ff6f61;
    margin: 40px 0;
    padding: 20px 30px;
    background-color: #f4f7f6;
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 500;
    color: #0d2c4b;
    line-height: 1.6;
}
.post-cta {
    background-color: #0d2c4b;
    color: #ffffff;
    padding: 50px;
    border-radius: 15px;
    margin-top: 60px;
    text-align: center;
}
.post-cta h3 {
    font-size: 2.2rem;
    margin-top: 0;
    color: #ffffff;
}
.post-cta p {
    color: #ffffff;
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 25px;
}
.post-cta .cta-button.large {
    font-size: 1.1rem;
    padding: 18px 35px;
}

/* Responsive para el blog y post */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .post-header h1 {
        font-size: 2.5rem;
    }
    .post-full-width-image img {
        height: 350px;
    }
}