* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* HEADER */
header {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5f8a 100%);
    color: white;
    padding: 2.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

header h1 { font-size: 2rem; font-weight: 700; }
header h1 span { color: #e67e22; }
.subtitle { font-size: 1rem; opacity: 0.85; margin-top: 0.3rem; }

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem 0;
}

/* CARD */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #2c5f8a;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.card-num {
    font-weight: 700;
    color: #2c5f8a;
    font-size: 0.85rem;
}

.card-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pendiente { background: #fff3cd; color: #856404; }
.status-curso { background: #cce5ff; color: #004085; }
.status-completado { background: #d4edda; color: #155724; }
.status-pausado { background: #f8d7da; color: #721c24; }

.card h2 {
    padding: 1rem 1rem 0.3rem;
    font-size: 1.15rem;
    color: #1a3a5c;
}

.card p {
    padding: 0 1rem 0.8rem;
    font-size: 0.9rem;
    color: #666;
    flex: 1;
    line-height: 1.4;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
}

.card-fecha { color: #999; }
.card-entrar { color: #2c5f8a; font-weight: 600; }

/* VACÍO */
.empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin: 2rem 0;
    color: #888;
}

/* FOOTER */
footer {
    margin-top: auto;
    background: #1a1a2e;
    color: #aaa;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

footer a { color: #e67e22; text-decoration: none; }
