/* ========================================
   ESTILOS PARA EL BLOG
   ======================================== */

/* Portada del blog en single */
/* Filtro oscuro en la imagen para mejorar legibilidad del texto */
.portada--blog .portada__slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.portada--blog .portada__meta {
    opacity: 0.9;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.portada--blog .portada__separator {
    margin: 0 10px;
}

/* Contenido del blog */
.blog-entry__content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

.blog-entry__content p {
    margin-bottom: 1.5em;
}

.blog-entry__content h2 {
    margin-top: 2em;
    margin-bottom: 1em;
}

.blog-entry__content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.blog-entry__content img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}

.blog-entry__tags {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* Navegación entre posts */
.blog-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.blog-nav__prev,
.blog-nav__next {
    padding: 30px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.blog-nav__prev:hover,
.blog-nav__next:hover {
    border-color: #000;
    transform: translateY(-5px);
}

.blog-nav__prev a,
.blog-nav__next a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-nav__label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.blog-nav__title {
    font-size: 18px;
    font-weight: 600;
}

.blog-nav__next {
    text-align: right;
}

/* Grid de blog para archive */
.grid-blog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.grid-blog__item {
    list-style: none;
}

/* Tarjetas de blog */
.blog-card {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card__image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-bottom: 20px;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #999;
}

.blog-card__title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
}

.blog-card__meta {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.blog-card__separator {
    margin: 0 8px;
}

.blog-card__excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

.blog-card__link {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Paginación */
.pagination {
    text-align: center;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    list-style: none;
}

.pagination a,
.pagination span {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: #000;
    background-color: #000;
    color: #fff;
}

.pagination .current {
    border-color: #000;
    background-color: #000;
    color: #fff;
}

/* Sin imagen de portada */
.section--header .entry-meta {
    font-size: 14px;
    opacity: 0.7;
}

.section--header .entry-separator {
    margin: 0 10px;
}

/* Sin resultados */
.no-results {
    text-align: center;
    padding: 60px 0;
    font-size: 18px;
    color: #999;
}

/* Responsivo */
@media (max-width: 768px) {
    .grid-blog {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .blog-nav__next {
        text-align: left;
    }

    .blog-entry__content {
        font-size: 16px;
    }

    .blog-card__title {
        font-size: 20px;
    }
}
