
/* Layout: Grid para blog y sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

/* Grid de posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 2rem;
    
}

/* Cada tarjeta */
.post-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
}

.card-image-container {
    position: relative;
}
.card-image-container img {
    width: 100%;
    display: block;
}

/* Fecha sobre imagen */
.date-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #222;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}
.date-overlay .day {
    display: block;
    font-weight: bold;
    font-size: 20px;
}
.date-overlay .month {
    text-transform: uppercase;
    font-size: 12px;
}

/* Contenido */
.card-content {
    padding: 20px;
}
.card-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
}
.card-content p {
    font-size: 15px;
    color: #666;
}
.read-more-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.read-more-btn:hover {
    background-color: #0056b3;
}

/* Sidebar */
.sidebar .widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.sidebar .widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

/* Entradas recientes */
.recent-posts li {
    margin-bottom: 12px;
}
.recent-posts li a {
    font-weight: 500;
    color: #007bff;
    text-decoration: none;
}
.recent-posts li time {
    display: block;
    font-size: 12px;
    color: #888;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag-link {
    background-color: #1ebc5c;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: white;
    text-decoration: none;
}
.tag-link:hover {
    background-color: #ccc;
}

/* Paginación */
.pagination {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.page-number {
    padding: 8px 14px;
    background: #eaeaea;
    text-decoration: none;
    border-radius: 6px;
    color: #333;
}
.page-number.active,
.page-number:hover {
    background: #007bff;
    color: #fff;
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25D366;
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-weight: 500;
    z-index: 1000;
    transition: background 0.3s;
}
.whatsapp-float:hover {
    background-color: #1ebc5c;
}
.whatsapp-float i {
    font-size: 20px;
}


/* Responsive */
@media (max-width: 768px) {
     .posts-grid {
        grid-template-columns: 1fr; /* 1 por fila en móviles */
    }
}
.recent-posts time {
    display: block;
    color: #1ebc5c;
    font-size: 0.9rem;
    margin-top: 4px;
}

.recent-posts time i {
    margin-right: 6px;
    color: #1ebc5c;
}
.pagination-controls {
    text-align: center;
    margin-top: 10px;
}

.pagination-controls button {
    background-color: #343a40;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 2px;
    cursor: pointer;
    border-radius: 4px;
}

.pagination-controls button.active {
    background-color: #0d6efd;
}
