.lp-cursos-listado-widget {
    font-family: inherit;
    width: 100%;
    margin: 20px 0;
}


.lp-cursos-listado-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.lp-curso-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lp-curso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.lp-curso-card-thumb-container {
    position: relative;
    width: 100%;
    height: 170px;
    background: #f8fafc;
    overflow: hidden;
}

.lp-curso-card-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.lp-curso-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.lp-curso-card:hover .lp-curso-card-thumb {
    transform: scale(1.03);
}

.lp-curso-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.lp-curso-card-options-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: #ffffff;

    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569 !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.lp-curso-card-options-btn:hover {
    background: #ffffff;
    color: #0f172a;
    transform: scale(1.05);
}

.lp-curso-card-body {
    padding: 18px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lp-curso-card-title {
    margin: 0 0 14px 0;
}

/*.lp-curso-card-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lp-curso-card-title a:hover {
    color: var(--avanza-primary-color, #6366f1);
}*/

.lp-curso-card-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.lp-curso-card-status {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--avanza-primary-color, #6366f1);
}

.lp-curso-card-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.lp-curso-card-progress-bar {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.lp-curso-card-progress-fill {
    height: 100%;
    background: var(--avanza-primary-color, #6366f1);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.lp-curso-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-curso-card-lessons-text {
    font-size: 0.825rem;
    color: #94a3b8;
    font-weight: 500;
}

.lp-cursos-listado-vacio {
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
}

.lp-curso-add-icon {
    border:1px solid var(--avanza-secondary-color);
    border-radius:50%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: var(--avanza-secondary-color);
}
.lp-curso-add-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-curso-add-container {
    display: flex;
    align-items: center;    
    cursor: pointer;
    width: 100%;
    height: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
}