/* ============================================
   ARCHIVE - Listado de entradas (blog)
   ============================================ */

.page-blog {
    padding-top: 0;
    position: relative;
    z-index: 1;
    font-family: 'Roboto', sans-serif;
}

.page-blog h1,
.page-blog h2,
.page-blog h3,
.page-blog h4,
.page-blog h5,
.page-blog h6 {
    font-family: 'Roboto', sans-serif;
}

/* ----- Hero título ----- */
.blog-hero {
    position: relative;
    padding-top: 100px !important;
    padding-bottom: 2rem !important;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--soul-dark-blue);
    background-image: url('../img/fondo-hero-blog.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 40px;
    line-height: 1.1;
    color: var(--soul-white);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.01em;
    margin-bottom: 0;
}

/* ----- Artículo destacado ----- */
.blog-featured {
    position: relative;
    z-index: 2;
    background-color: var(--soul-dark-blue);
}

.blog-featured-img-wrap {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 818 / 552;
    background: #d9d9d9;
}

.blog-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-featured-category {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--soul-text-light);
    margin-bottom: 0.5rem;
}

.blog-featured-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.2;
    color: var(--soul-white);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.5rem;
}

.blog-featured-excerpt {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: var(--soul-white);
    margin-bottom: 1.5rem;
    max-width: 687px;
}

.blog-featured-link {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: var(--soul-purple);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: var(--transition-base);
}

.blog-featured-link:hover {
    color: var(--soul-white);
}

/* ----- Grid de entradas ----- */
.blog-grid-section {
    position: relative;
    z-index: 2;
    background-color: var(--soul-dark-blue);
}

.blog-grid-section .row {
    row-gap: 2.5rem;
}

@keyframes blog-card-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-grid-section .blog-card-animate-in {
    opacity: 0;
    animation: blog-card-fade-in 0.45s ease forwards;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
}

.blog-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 461 / 332;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-card-tag,
.blog-card-date {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--soul-white);
}

.blog-card-sep {
    width: 46px;
    height: 1px;
    background: var(--soul-text-light);
    opacity: 0.6;
}

.blog-card-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--soul-white);
    margin-bottom: 0;
}

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

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

/* Botón Ver más */
.blog-btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 5px 85px;
    background: var(--soul-white);
    color: #070751;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--soul-purple);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-base);
}

.blog-btn-more:hover {
    background: var(--soul-purple);
    color: var(--soul-white);
    border-color: var(--soul-purple);
}

@media (max-width: 991.98px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }
    .blog-featured-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .blog-hero-title {
        font-size: 2rem;
    }
}
