/* ================================= */
/* HEADER DE ARCHIVO                 */
/* ================================= */

.archive-main-wrapper {
    background-color: #faf9f6;
    min-height: 80vh; /* Asegura que ocupe buen alto */
}

.archive-header {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.archive-subtitle {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 10px;
}

.archive-title {
    font-size: 2.5rem;
    color: #947e1e; /* Color mostaza */
    margin: 0;
    font-weight: 700;
    text-transform: capitalize;
}

/* El prefijo que pone WP (Categoría: ...) lo hacemos mas sutil */
.archive-title span {
    font-weight: 300;
    color: #444;
}

.archive-description {
    max-width: 600px;
    margin: 15px auto 0;
    color: #666;
    font-size: 1rem;
}

/* ================================= */
/* CONTENEDOR Y LOOP                 */
/* ================================= */

.archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Ajustes a la tarjeta para este view */
.post-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.posts-loop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: #947e1e;
}

.post-card .thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mini-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #947e1e;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.post-content h2 {
    font-size: 1.3rem;
    margin: 0 0 10px;
    line-height: 1.3;
}

.post-content h2 a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.post-content h2 a:hover {
    color: #947e1e;
}

.post-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-link {
    font-size: 0.9rem;
    color: #947e1e;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* ================================= */
/* PAGINACIÓN                        */
/* ================================= */

.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover, .pagination span.current {
    background: #947e1e;
    color: white;
    border-color: #947e1e;
}