/* ========================================
   BLOG
   ======================================== */
.page-header {
    text-align: center;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.post-card {
    display: grid;
    gap: 25px;
}

.post-cover {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-bg-alt);
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-cover:hover img {
    transform: scale(1.03);
}

.post-date {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.post-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.post-card h2 a {
    color: var(--color-text);
    text-decoration: none;
}

.post-card h2 a:hover {
    opacity: 0.6;
}

.post-excerpt {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.post-more {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--color-text);
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 70px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.pagination a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-text);
}

/* Detalle de una entrada */
.post-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-detail-header h1 {
    font-size: 3rem;
}

.post-detail-cover {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 40px;
}

.post-content {
    line-height: 2;
    font-size: 1.05rem;
}

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

.post-content h2,
.post-content h3 {
    margin: 40px 0 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .post-card h2 {
        font-size: 1.6rem;
    }
    .post-detail-header h1 {
        font-size: 2.2rem;
    }
}