/* MODALES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 5px;
}

.modal-title {
    color: #2c5aa0;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: #666;
    font-size: 18px;
}

.modal-content {
    margin-bottom: 15px;
    color: #333;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.text-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #2c5aa0;
}

.text-info h4 {
    color: #2c5aa0;
    margin-bottom: 10px;
}

.text-info p {
    margin: 5px 0;
    color: #555;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon {
    font-size: 48px;
    color: #28a745;
    text-align: center;
    margin-bottom: 20px;
}

.error-icon {
    font-size: 48px;
    color: #dc3545;
    text-align: center;
    margin-bottom: 20px;
}

.btn {
    background-color: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn:hover {
    background-color: #1e3f73;
    transform: translateY(-2px);
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: #8b8d8f;
}

.btn-secondary:hover {
    background-color: #d1d4d6;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #1e7e34;
}
