/* ======================================================
   SISCORPIO – MÓDULO CLIENTES
====================================================== */

.siscorpio-clientes {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.siscorpio-clientes h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
}

.siscorpio-clientes p {
    text-align: center;
    font-size: 15px;
    color: #64748b;
    margin-bottom: 28px;
}

.siscorpio-clientes-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.sc-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.sc-btn-primary:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.siscorpio-clientes-search {
    text-align: center;
    margin-bottom: 20px;
}

#sc-clientes-search {
    width: 320px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

/* ========================
   TABLA DESKTOP
======================== */

.sc-table-clientes {
    width: 100%;
    border-collapse: collapse;
    background: #f8fafc;
    border-radius: 14px;
    overflow: hidden;
}

.sc-table-clientes thead {
    background: #e2e8f0;
}

.sc-table-clientes th,
.sc-table-clientes td {
    padding: 14px 12px;
    text-align: left;
    font-size: 14px;
}

.sc-table-clientes tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.sc-table-clientes tbody tr:hover {
    background: #f1f5f9;
}

.sc-table-clientes th {
    font-weight: 600;
    color: #334155;
}

.sc-table-clientes td {
    color: #475569;
}

/* ========================
   BOTONES ACCIONES
======================== */

.sc-table-clientes td:last-child {
    white-space: nowrap;
}

.sc-btn-edit-cliente {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.sc-btn-delete-cliente {
    background: transparent;
    color: #dc2626;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    font-weight: 500;
}

/* ========================
   PAGINACIÓN
======================== */

.sc-pagination {
    margin-top: 20px;
    text-align: center;
}

.sc-page-btn {
    padding: 6px 12px;
    margin: 0 4px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
}

.sc-page-btn.active {
    background: #2563eb;
    color: #fff;
    border: none;
}

/* ======================================================
   RESPONSIVE – CARD MODE
====================================================== */

@media (max-width: 768px) {

    .sc-table-clientes thead {
        display: none;
    }

    .sc-table-clientes,
    .sc-table-clientes tbody,
    .sc-table-clientes tr,
    .sc-table-clientes td {
        display: block;
        width: 100%;
    }

    .sc-table-clientes tr {
        background: #ffffff;
        margin-bottom: 15px;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }

    .sc-table-clientes td {
        padding: 8px 0;
        border: none;
        display: flex;
        justify-content: space-between;
    }

    .sc-table-clientes td::before {
        font-weight: 600;
        color: #334155;
    }

    .sc-table-clientes td:nth-child(1)::before { content: "ID"; }
    .sc-table-clientes td:nth-child(2)::before { content: "Tipo"; }
    .sc-table-clientes td:nth-child(3)::before { content: "Identificación"; }
    .sc-table-clientes td:nth-child(4)::before { content: "Nombres"; }
    .sc-table-clientes td:nth-child(5)::before { content: "Apellidos"; }
    .sc-table-clientes td:nth-child(6)::before { content: "Correo"; }
    .sc-table-clientes td:nth-child(7)::before { content: "Teléfono"; }

    /* Acciones centradas */

    .sc-table-clientes td:last-child {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }
}
