:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #0ea5e9;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.listado-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
}

.listado-header h1 {
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.listado-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.listado-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.diplomado-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 380px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.diplomado-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.diplomado-image-container {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.diplomado-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.diplomado-card:hover .diplomado-image {
    transform: scale(1.05);
}

.diplomado-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(21, 184, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.diplomado-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.diplomado-title {
    font-size: 2.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.diplomado-description {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.diplomado-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.diplomado-stats {
    display: flex;
    gap: 1rem;
    font-size: 1.3rem;
    color: var(--text-light);
}

.diplomado-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.diplomado-button {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.diplomado-button:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    transform: translateX(3px);
    color: white;
    text-decoration: none;
}

.diplomado-button i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.diplomado-button:hover i {
    transform: translateX(3px);
}

.no-diplomados {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Loader y efectos visuales */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.2s ease;
    z-index: 1000;
}

@media (max-width: 768px) {
    .listado-header h1 {
        font-size: 2rem;
    }

    .listado-grid {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .diplomado-card {
        height: auto;
        min-height: 380px;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
    transform: skewX(-20deg);
}