#list_cursos {
    display: flex;
    flex-wrap: wrap;
}

.x_title {
    border-bottom: none !important;
}

#list_cursos>div {
    display: flex;
    margin-bottom: 20px;
}

.card2 {
    width: 100%;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 320px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card2:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 123, 255, 0.25);
    border-color: #007bff;
}

.card2:hover img {
    transform: scale(1.1);
}

.card2 img {
    transition: transform 0.3s ease;
}

.card2-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card2-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    min-height: 40px;
    transition: color 0.3s ease;
}

.card2:hover .card2-title {
    color: #007bff !important;
}

.card2-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
    text-align: justify;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.btn-primary {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border-radius: 20px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    border-radius: 20px;
    padding: 8px 20px;
}

.td_pointer {
    padding: 10px;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* Estilos responsive mejorados */
@media (max-width: 768px) {
    .card2 {
        min-height: 280px;
    }

    .card2-text {
        font-size: 0.9rem;
    }

    .logo-cursos {
        width: 40% !important;
    }
}

@media (max-width: 480px) {
    .card2 {
        min-height: auto;
    }

    .card2-body {
        padding: 10px;
    }
}