:root {
    --primary-color: #000;
    --text-muted: #666;
    --bg-gray: #f9f9f9;
    --accent-color: #ff4d4d;
}

@font-face {
    font-family: "Gabii";
    src: url("/media/fonts/gabii-Regular.woff2") format("woff2"),
         url("fonts/gabii-Regular.woff2") format("woff2"),
         url("/media/fonts/gabii-Regular.woff") format("woff"),
         url("fonts/gabii-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Obviously";
    src: url("/media/fonts/Obviously.woff2") format("woff2"),
         url("fonts/Obviously.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Gabii', sans-serif;
    margin: 0;
    background-color: #fff;
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    z-index: 1;
    position: relative;
}

/* HEADER IMPACTANTE */
.blog-header {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #111 0%, #333 100%);
    color: #fff;
    position: relative;
    margin-bottom: 40px;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.header-title {
    font-family: 'Obviously', 'Gabii', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 10px;
    max-width: 800px;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    font-weight: 300;
    text-align: left;
}

/* FILTROS */
.filters-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #333;
}

.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* EL GRID DE 3 COLUMNAS */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.post-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card.pinned-post {
    grid-row: span 2;
}

.pinned-post .card-image img {
    height: 100%;
}

/* .post-card:hover .card-image img {
    transform: scale(1.05);
} */

/* PINNED POST STYLES */
.post-card.pinned-post {
    grid-row: span 2;
    background-color: #212121;
    color: #fff;
    border: none;
    display: flex;
    flex-direction: column;
}

.post-card.pinned-post .card-image {
    height: 350px;
    /* Mucho más alto */
    flex-shrink: 0;
}

.post-card.pinned-post .card-image img {
    height: 100%;
    object-fit: cover;
}

.post-card.pinned-post .card-title {
    color: #fff;
    font-size: 2rem;
    /* Más grande para destacar */
}

.post-card.pinned-post .card-excerpt {
    color: rgba(255, 255, 255, 0.8);
    -webkit-line-clamp: 8;
    /* Mostrar más texto */
    font-size: 1.1rem;
}

.post-card.pinned-post .category {
    color: #fff;
    /* O mantener el acento si contrasta bien */
    background: var(--accent-color);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.post-card.pinned-post .author-name {
    color: #fff;
}

.post-card.pinned-post .post-date {
    color: rgba(255, 255, 255, 0.6);
}

.post-card.pinned-post .card-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.card-title {
    font-size: 1.35rem;
    margin: 0 0 15px;
    line-height: 1.4;
    font-weight: 700;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FOOTER DE LA CARD */
.card-footer {
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* PAGINACION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    gap: 8px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.page-link:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.page-link.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f9f9f9;
}
