/* Estilos específicos para el blog */

/* Menú de navegación */
.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.fw-bold {
    color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.1);
}

/* Blog principal */
.blog-main-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.blog-main-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Post destacado */
.blog-featured-card {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.blog-featured-card .card-img-top {
    transition: transform 0.3s ease;
}

.blog-featured-card:hover .card-img-top {
    transform: scale(1.02);
}

.blog-featured-card .card-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.blog-featured-card .card-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.blog-featured-card .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.blog-featured-card .btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.blog-featured-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Cards de blog */
.blog-card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.blog-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Sidebar */
.sidebar-card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.sidebar-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Posts recientes */
.recent-post-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

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

.recent-post-item img {
    border-radius: 4px;
}

.recent-post-item h6 {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Mejorar espaciado en posts recientes */
.card-body .d-flex.mb-3 {
    gap: 12px;
}

.card-body .d-flex.mb-3 img {
    flex-shrink: 0;
}

.card-body .d-flex.mb-3 .flex-grow-1 h6 {
    margin-bottom: 8px;
}

.card-body .d-flex.mb-3 .flex-grow-1 small {
    display: block;
    margin-top: 4px;
}

/* Mejorar espaciado de iconos en categorías */
.card-header h6 i {
    margin-right: 8px !important;
}

/* Mejorar espaciado de iconos en botón "Leer más" */
.btn-primary i {
    margin-right: 8px !important;
}

/* Categorías */
.category-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    transition: color 0.3s ease;
}

.category-item a:hover {
    color: #007bff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-main-card .row {
        flex-direction: column;
    }
    
    .blog-main-card .col-md-6:first-child {
        order: 2;
    }
    
    .blog-main-card .col-md-6:last-child {
        order: 1;
    }
    
    .blog-main-card img {
        height: 200px !important;
    }
    
    /* Post destacado responsive */
    .blog-featured-card img {
        height: 250px !important;
    }
    
    .blog-featured-card .card-title {
        font-size: 1.5rem;
    }
    
    .blog-featured-card .card-text {
        font-size: 1rem;
    }
    
    .blog-featured-card .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Menú responsive */
    .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animaciones */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Títulos */
.blog-title h1 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-title p {
    font-size: 1.1rem;
    line-height: 1.6;
}
