
/*******************************/
/***** Consulta Clientes CSS ***/
/*******************************/

.consulta-clientes {
    position: relative;
    padding: 45px 0;
    min-height: 60vh;
}

/* Formulario de Búsqueda */
.search-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, .1);
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease;
}

.search-card .form-label {
    color: #15a950;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.search-card .form-label i {
    margin-right: 5px;
}

.search-card .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-card .form-control:focus {
    border-color: #15a950;
    box-shadow: 0 0 0 0.2rem rgba(21, 169, 80, 0.15);
}

/* Cards de Clientes */
.cliente-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .08);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
    height: 100%;
}

.cliente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .15);
}

.cliente-header {
    background: linear-gradient(135deg, #15a950 0%, #719a0a 100%);
    color: #ffffff;
    padding: 20px 25px;
    border-bottom: 3px solid #0a683d;
}

.cliente-header h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.cliente-header h3 i {
    margin-right: 10px;
    font-size: 22px;
}

.cliente-body {
    padding: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666666;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.info-label i {
    color: #15a950;
    margin-right: 8px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.info-value {
    color: #333333;
    font-weight: 600;
    font-size: 15px;
    text-align: right;
}

.info-value.highlight {
    color: #15a950;
    font-weight: 700;
    font-size: 16px;
}

.cliente-footer {
    padding: 15px 25px;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, .05);
    text-align: center;
}

.cliente-footer .btn {
    padding: 10px 25px;
    font-size: 15px;
}

/* Alertas personalizadas */
.alert {
    border-radius: 10px;
    padding: 15px 20px;
    border: none;
    box-shadow: 0 3px 15px rgba(0, 0, 0, .1);
}

.alert i {
    margin-right: 8px;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
}

.alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #333333;
}

.alert-danger .close,
.alert-warning .close {
    color: inherit;
    opacity: 0.8;
}

.alert-danger .close:hover,
.alert-warning .close:hover {
    opacity: 1;
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 169, 80, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 991px) {
    .search-card {
        padding: 20px;
    }
    
    .cliente-card {
        margin-bottom: 20px;
    }
    
    .cliente-header h3 {
        font-size: 16px;
    }
    
    .info-label,
    .info-value {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .search-card {
        padding: 15px;
    }
    
    .search-card .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .cliente-header {
        padding: 15px 20px;
    }
    
    .cliente-header h3 {
        font-size: 15px;
    }
    
    .cliente-header h3 i {
        font-size: 18px;
    }
    
    .cliente-body {
        padding: 20px;
    }
    
    .info-row {
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-value {
        text-align: left;
    }
}

@media (max-width: 575px) {
    .consulta-clientes {
        padding: 30px 0;
    }
    
    .search-card {
        padding: 15px;
    }
    
    .cliente-body {
        padding: 15px;
    }
    
    .cliente-footer {
        padding: 12px 15px;
    }
}

/* Tabs de Cliente */
.cliente-tabs {
    border-bottom: 2px solid #e0e0e0;
    background: #f8f9fa;
    padding: 0 15px;
    margin: 0;
}

.cliente-tabs .nav-item {
    margin: 0;
}

.cliente-tabs .nav-link {
    color: #666666;
    font-weight: 600;
    font-size: 14px;
    padding: 15px 20px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    transition: all 0.3s ease;
}

.cliente-tabs .nav-link i {
    margin-right: 8px;
    font-size: 16px;
}

.cliente-tabs .nav-link .badge {
    margin-left: 5px;
    font-size: 11px;
    padding: 3px 7px;
}

.cliente-tabs .nav-link:hover {
    color: #15a950;
    background: rgba(21, 169, 80, 0.05);
}

.cliente-tabs .nav-link.active {
    color: #15a950;
    border-bottom-color: #15a950;
    background: #ffffff;
}

.cliente-tab-content {
    background: #ffffff;
}

/* Tablas */
.beneficiarios-table,
.pagos-table {
    margin-bottom: 0;
    font-size: 14px;
}

.beneficiarios-table thead,
.pagos-table thead {
    background: linear-gradient(135deg, #15a950 0%, #719a0a 100%);
    color: #ffffff;
}

.beneficiarios-table thead th,
.pagos-table thead th {
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 12px 15px;
    font-size: 13px;
}

.beneficiarios-table thead th i,
.pagos-table thead th i {
    margin-right: 5px;
}

.beneficiarios-table tbody tr,
.pagos-table tbody tr {
    transition: all 0.3s ease;
}

.beneficiarios-table tbody tr:hover,
.pagos-table tbody tr:hover {
    background: rgba(21, 169, 80, 0.05);
    transform: scale(1.01);
}

.beneficiarios-table tbody td,
.pagos-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* Badges personalizados */
.badge {
    font-weight: 600;
    padding: 5px 10px;
    font-size: 12px;
}

.badge-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.badge-success {
    background: linear-gradient(135deg, #15a950 0%, #0a683d 100%);
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #333333;
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.badge-dark {
    background: linear-gradient(135deg, #343a40 0%, #23272b 100%);
}

/* Alertas dentro de tabs */
.cliente-tab-content .alert {
    border-radius: 8px;
    padding: 15px 20px;
}

.cliente-tab-content .alert i {
    margin-right: 10px;
    font-size: 18px;
}

/* Responsive para tabs */
@media (max-width: 767px) {
    .cliente-tabs {
        padding: 0;
    }
    
    .cliente-tabs .nav-link {
        font-size: 12px;
        padding: 12px 10px;
    }
    
    .cliente-tabs .nav-link i {
        display: none;
    }
    
    .beneficiarios-table,
    .pagos-table {
        font-size: 12px;
    }
    
    .beneficiarios-table thead th,
    .pagos-table thead th {
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .beneficiarios-table tbody td,
    .pagos-table tbody td {
        padding: 10px 8px;
    }
}

@media (max-width: 575px) {
    .cliente-tabs .nav-link {
        padding: 10px 5px;
        font-size: 11px;
    }
    
    .cliente-tabs .nav-link .badge {
        display: none;
    }
    
    .table-responsive {
        font-size: 11px;
    }
}
