/* --- Estilos específicos del blog --- */
.blog-page {
    padding: 60px 0;
    background-color: var(--color-light);
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.blog-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #777;
}

.blog-category {
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 10px;
}

.blog-date i {
    margin-right: 5px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-dark);
    line-height: 1.4;
}

.blog-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--color-alt);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.blog-read-more:hover {
    color: var(--color-primary);
}

.blog-read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.blog-read-more:hover i {
    transform: translateX(3px);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--color-dark);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pagination-btn.active,
.pagination-btn:hover {
    background: var(--color-alt);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* --- ESTILOS PROFESIONALES PARA LA SIDEBAR --- */
.blog-sidebar {
    margin-top: 50px;
}

.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-accent);
    position: relative;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-alt);
    border-radius: 2px;
}

/* Estilos para lista de categorías */
.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.categories-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-list li:hover {
    transform: translateX(5px);
    border-bottom-color: var(--color-accent);
}

.categories-list li::before {
    content: '▸';
    color: var(--color-accent);
    margin-right: 10px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.categories-list li:hover::before {
    transform: translateX(3px);
    color: var(--color-alt);
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.categories-list a:hover {
    color: var(--color-primary);
}

.categories-list span {
    background: linear-gradient(135deg, var(--color-accent), var(--color-alt));
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(39, 230, 246, 0.3);
    transition: all 0.3s ease;
}

.categories-list a:hover span {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(39, 230, 246, 0.4);
}

/* Estilos para posts recientes */
.recent-posts .post-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.recent-posts .post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts .post-item:hover {
    transform: translateX(5px);
}

.post-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.post-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(39, 230, 246, 0.1), rgba(10, 5, 72, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.post-item:hover .post-thumb::before {
    opacity: 1;
}

.post-item:hover .post-thumb {
    border-color: var(--color-accent);
    transform: scale(1.05);
}

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

.post-item:hover .post-thumb img {
    transform: scale(1.1);
}

.post-content {
    flex: 1;
}

.post-content h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 600;
}

.post-content h4 a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-content h4 a:hover {
    color: var(--color-alt);
}

.post-content .post-date {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-content .post-date i {
    color: var(--color-accent);
    font-size: 0.7rem;
}

/* Widget de etiquetas/nube de tags */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #555;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.tag:hover::before {
    left: 100%;
}

.tag:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-alt));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 230, 246, 0.3);
    border-color: var(--color-accent);
}

/* Widget de búsqueda */
.search-widget {
    position: relative;
}

.search-form {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 25px 0 0 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(39, 230, 246, 0.1);
}

.search-button {
    background: linear-gradient(135deg, var(--color-accent), var(--color-alt));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-button:hover {
    background: linear-gradient(135deg, var(--color-alt), var(--color-primary));
    transform: translateX(2px);
}

/* Widget de newsletter */
.newsletter-widget {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(39, 230, 246, 0.1) 0%, transparent 70%);
}

.newsletter-widget h3 {
    color: white;
    border-bottom-color: var(--color-accent);
}

.newsletter-form {
    position: relative;
    z-index: 2;
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(39, 230, 246, 0.2);
}

.newsletter-button {
    width: 100%;
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (min-width: 992px) {
    .blog-container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }

    .blog-sidebar {
        margin-top: 0;
    }
}

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

    .blog-header h1 {
        font-size: 2rem;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .post-thumb {
        width: 60px;
        height: 60px;
    }
}

/* Mensaje cuando no hay artículos */
.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

.no-articles i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}