/* =========================================================
   Listas de Clubs por Grupo – Transversal
   Shortcode: [listas_clubs_transversal]
   ========================================================= */

.lct-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c3e50;
}

/* ── Filtros ───────────────────────────────────────────── */
.lct-filtros {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    align-items: flex-end;
}

.lct-filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 180px;
}

.lct-filtro-grupo label {
    font-weight: 600;
    font-size: 0.9em;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lct-select {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 7px;
    font-size: 1em;
    color: #2c3e50;
    background-color: #fff;
    transition: border-color 0.25s ease;
    cursor: pointer;
}

.lct-select:focus {
    outline: none;
    border-color: #3498db;
}

.lct-select:disabled {
    background-color: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

/* ── Controles ─────────────────────────────────────────── */
.lct-controles {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lct-btn {
    padding: 9px 22px;
    border: none;
    border-radius: 7px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.1s ease;
}

.lct-btn:active {
    transform: scale(0.97);
}

.lct-btn-primario {
    background-color: #27ae60;
    color: #fff;
}

.lct-btn-primario:hover {
    background-color: #219a52;
}

.lct-btn-secundario {
    background-color: #3498db;
    color: #fff;
}

.lct-btn-secundario:hover {
    background-color: #2980b9;
}

/* ── Loading ───────────────────────────────────────────── */
.lct-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.lct-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #ecf0f1;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: lct-spin 0.8s linear infinite;
    margin-bottom: 14px;
}

@keyframes lct-spin {
    to { transform: rotate(360deg); }
}

/* ── Tabla container ───────────────────────────────────── */
.lct-tabla-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.lct-tabla-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #ecf0f1;
    flex-wrap: wrap;
}

.lct-tabla-header h3 {
    margin: 0;
    font-size: 1.25em;
    color: #2c3e50;
}

.lct-badge-periodo {
    background-color: #eaf4ff;
    color: #2980b9;
    border: 1px solid #bee3f8;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.82em;
    font-weight: 600;
}

/* ── Tabla ─────────────────────────────────────────────── */
.lct-tabla-responsive {
    overflow-x: auto;
}

.lct-tabla {
    width: 100%;
    border-collapse: collapse;
}

.lct-tabla thead {
    background-color: #2c3e50;
    color: #fff;
}

.lct-tabla th {
    padding: 13px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.88em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.lct-th-nl,
.lct-th-asistencia,
.lct-th-pct {
    text-align: center;
}

.lct-tabla tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.15s ease;
}

.lct-tabla tbody tr:last-child {
    border-bottom: none;
}

.lct-tabla tbody tr:hover {
    background-color: #f4f8fb;
}

.lct-tabla td {
    padding: 11px 16px;
    font-size: 0.95em;
    color: #2c3e50;
    vertical-align: middle;
}

.lct-td-nl,
.lct-td-asistencia,
.lct-td-pct {
    text-align: center;
}

.lct-td-nl {
    width: 50px;
    color: #7f8c8d;
    font-size: 0.85em;
}

.lct-td-nombre {
    font-weight: 500;
}

.lct-td-club {
    color: #555;
}

/* Sin club */
.lct-sin-club {
    color: #bdc3c7;
    font-style: italic;
}

/* ── Colores de porcentaje ─────────────────────────────── */
.lct-pct-ok {
    color: #27ae60;
    font-weight: 700;
}

.lct-pct-medio {
    color: #f39c12;
    font-weight: 700;
}

.lct-pct-bajo {
    color: #e74c3c;
    font-weight: 700;
}

/* ── Total alumnos ─────────────────────────────────────── */
.lct-total-alumnos {
    margin: 0;
    padding: 12px 22px;
    font-size: 0.85em;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
    text-align: right;
}

/* ── Sin datos ─────────────────────────────────────────── */
.lct-sin-datos {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .lct-wrapper {
        padding: 12px;
    }

    .lct-filtros {
        flex-direction: column;
        gap: 14px;
    }

    .lct-filtro-grupo {
        min-width: 100%;
    }

    .lct-controles {
        flex-direction: column;
    }

    .lct-btn {
        width: 100%;
        text-align: center;
    }

    .lct-tabla th,
    .lct-tabla td {
        padding: 9px 10px;
        font-size: 0.88em;
    }

    /* Ocultar NL en móvil */
    .lct-th-nl,
    .lct-td-nl {
        display: none;
    }
}
