﻿
.credito-indicator {
    background-color: #f8f9fa;
    padding: 8px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-left: 24px;
}

.credito-indicator i {
    color: #1976d2;
}

.credito-porcentaje {
    margin-left: auto;
    color: #6c757d;
}

    .credito-porcentaje strong {
        color: #1976d2;
    }

    .credito-porcentaje.warning strong {
        color: #ffc107;
    }

    .credito-porcentaje.danger strong {
        color: #dc3545;
    }

.mensaje-error {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.error-info {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
}

.error-icon {
    margin-bottom: 20px;
}

    .error-icon i {
        font-size: 64px;
        color: #dc3545;
    }

.error-info h2 {
    color: #dc3545;
    font-size: 28px;
    margin-bottom: 20px;
}

.error-details {
    margin: 25px 0;
    padding: 20px;
    background: #f8d7da;
    border-radius: 8px;
}

    .error-details p {
        color: #721c24;
        font-size: 16px;
        line-height: 1.6;
        margin: 10px 0;
    }


.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.loader-container {
    background-color: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
}

.loader {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    border: 5px solid rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

.loader-text {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}

.loader-subtext {
    font-size: 14px;
    color: #6c757d;
}

.loader-progress {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0 10px;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #007bff;
    animation: progress 10s linear forwards;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes progress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}



.mensaje-credito {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.credito-info {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
}

.credito-icon {
    margin-bottom: 20px;
}

    .credito-icon i {
        font-size: 64px;
        color: #28a745;
    }

.credito-info h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 20px;
}

.credito-details {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

    .credito-details p {
        color: #495057;
        font-size: 16px;
        line-height: 1.6;
        margin: 10px 0;
    }

.credito-summary {
    margin: 30px 0;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: #e9ecef;
    border-radius: 6px;
}

    .info-item i {
        color: #17a2b8;
        font-size: 20px;
        margin-right: 15px;
    }

    .info-item span {
        color: #495057;
        font-size: 15px;
    }

.credito-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

    .btn-primary:hover, .btn-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.loading-container {
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.loading-spinner {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    border: 5px solid rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

.loading-container p {
    margin: 10px 0;
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.loading-subtext {
    font-size: 14px !important;
    color: #6c757d !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hide-loading {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .mensaje-credito {
        margin: 20px;
    }

    .credito-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
}


