
html,
body {
    min-height: 100%;
}

body {
    background: #f5f7fb;
    color: #243b71;
    font-size: 16px;
}

.header {
    height: 130px;
    border-bottom: 18px solid #243b71;
    border-top: 18px solid #243b71;
    background: #fff;
}

.header div {
    background-image: url('../images/pruebas-logo.jpg');
    background-size: contain;
    background-position: center left;
    height: 100%;
    background-repeat: no-repeat;
}

.body {
    min-height: calc(100vh - 180px);
    padding-bottom: 45px;
}

.footer {
    min-height: 50px;
    background-color: #243b71;
    color: #fff;
}

.footer div {
    text-align: center;
    padding: 15px 0;
}

.formulario,
.margin-top {
    margin-top: 45px;
}

.payment-box {
    background: #fff;
    border: 1px solid #dfe5f0;
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(36, 59, 113, 0.12);
    padding: 35px 30px;
    animation: fixedPaymentIn 0.35s ease both;
}

.payment-box h3 {
    margin-top: 0;
    margin-bottom: 22px;
    color: #243b71;
    font-weight: 600;
}

.form-control {
    border-radius: 3px;
    box-shadow: none;
    font-size: 16px;
    min-height: 44px;
}

textarea.form-control {
    min-height: 105px;
    resize: vertical;
}

.form-group {
    margin-bottom: 18px;
}

.input-group-addon {
    background: #243b71;
    border-color: #243b71;
    color: #fff;
    min-width: 48px;
}

.btn-primary {
    background-color: #243b71;
    background-image: none;
    border-color: #243b71;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1b2f5f;
    border-color: #1b2f5f;
}

.boton_enviar {
    width: 100%;
    min-height: 44px;
    font-weight: 600;
}

.boton_enviar[disabled] {
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-default {
    background: #f8faff;
    border-color: #dfe5f0;
    color: #243b71;
}

.btn-default:hover,
.btn-default:focus {
    background: #eef3fb;
    border-color: #cbd5e8;
    color: #243b71;
}

.template-download-button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.alert {
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(36, 59, 113, 0.08);
}

.error,
label.error {
    color: #b94a48;
    font-size: 13px;
    font-weight: 500;
}

div.error {
    background: #fff4f4;
    border: 1px solid #f0c6c6;
    border-radius: 4px;
    margin-top: 14px;
    padding: 9px 12px;
    text-align: left;
}

label.error {
    display: block;
    margin-top: 7px;
    padding-left: 2px;
}

.panel {
    border-color: #dfe5f0;
    box-shadow: 0 8px 18px rgba(36, 59, 113, 0.08);
}

.panel-body {
    padding: 22px;
}

.link-title {
    color: #243b71;
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.link-amount {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.link-url {
    word-break: break-all;
}

.link-actions {
    margin-top: 15px;
}

.link-actions form {
    display: inline-block;
}

.link-import-separator {
    margin: 28px 0;
}

.link-import-box {
    margin-top: 24px;
}

.excel-import-form {
    margin-top: 16px;
}

.import-errors {
    margin-top: 16px;
    font-size: 13px;
}

.import-errors-table {
    margin-top: 8px;
    margin-bottom: 0;
}

.import-errors-table thead th {
    background: #243b71;
    color: #fff;
    border-bottom: 0;
}

.generator-field-error {
    color: #b94a48;
    font-size: 13px;
    margin-top: 7px;
    min-height: 18px;
}

.form-control.generator-invalid {
    border-color: #d99;
    box-shadow: 0 0 0 2px rgba(185, 74, 72, 0.08);
}

.amount-display {
    margin: 0;
}

.fixed-payment-summary {
    margin-bottom: 24px;
}

.fixed-payment-data {
    --payment-offset: 0;
    background: #f8faff;
    border: 1px solid #dfe5f0;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(36, 59, 113, 0.08);
    margin-bottom: 14px;
    padding: 16px 18px;
    animation: fixedPaymentIn 0.35s ease both;
    transform: translateX(var(--payment-offset));
}

.fixed-payment-data-title {
    --payment-offset: 0;
}

.fixed-payment-data-concept {
    --payment-offset: 0;
    animation-delay: 0.06s;
}

.fixed-payment-data-amount {
    --payment-offset: 0;
    animation-delay: 0.12s;
}

.fixed-payment-data h3,
.fixed-payment-data p {
    margin-bottom: 0;
}

.fixed-payment-data h3 {
    margin-top: 0;
}

.fixed-payment-data p {
    color: #4a5c82;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
}

.fixed-payment-label {
    color: #243b71;
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1px;
    margin-bottom: 6px;
}

.form-group .fixed-payment-label {
    margin-bottom: 7px;
}

.fixed-payment-data .form-control {
    background: #fff;
    border-color: #dfe5f0;
    color: #243b71;
    font-size: 20px;
    font-weight: 600;
}

.terms-box {
    background: #f8faff;
    border: 1px solid #dfe5f0;
    border-radius: 4px;
    margin: 20px 0;
    padding: 14px;
}

.terms-check {
    align-items: center;
    color: #243b71;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.terms-check input {
    flex: 0 0 auto;
    margin: 0;
}

.terms-check span {
    flex: 1;
}

.terms-content {
    background: #fff;
    border: 1px solid #e7edf6;
    border-radius: 3px;
    color: #4a5c82;
    font-size: 12px;
    line-height: 1.45;
    max-height: 150px;
    overflow-y: auto;
    padding: 10px;
}

.terms-content p {
    margin-bottom: 8px;
}

.terms-error {
    background: transparent;
    border: 0;
    display: block;
    margin: -8px 0 16px 2px;
    padding: 0;
}

@keyframes fixedPaymentIn {
    from {
        opacity: 0;
        transform: translate(var(--payment-offset, 0), 10px);
    }
    to {
        opacity: 1;
        transform: translate(var(--payment-offset, 0), 0);
    }
}

.clear-payment-button {
    margin-top: 16px;
}

.clear-alert-wrapper {
    margin-top: 22px;
}

.clear-alert {
    padding: 15px 20px;
}

.clear-fix {
    clear: both;
}

@media (max-width: 767px) {
    .header {
        height: 105px;
        border-bottom-width: 14px;
        border-top-width: 14px;
    }

    .header div {
        background-position: center;
    }

    .formulario,
    .margin-top {
        margin-top: 25px;
    }

    .payment-box {
        padding: 25px 18px;
    }
}
