/* ==========================================================================
   Módulo Donación — estilos fieles al tema original
   ========================================================================== */

/* ── Botón flotante "Dona" ────────────────────────────────────────────────── */
.btnDonaWrap {
    position: fixed;
    z-index: 50;
    left: 0%;
    top: 37%;
}

.btnDonaWrap a.btnDona {
    width: auto;
    font-family: "Coolvetica Rg";
    border-radius: 0 20px 20px 0;
    text-decoration: none;
    border-left: 0;
    box-shadow: 0 0 12px rgba(84, 84, 84, 0.2901960784);
    margin: 0 auto;
}

.btnDonaWrap a.btnDona img {
    width: 30px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .btnDonaWrap {
        position: fixed;
        bottom: 0;
        top: inherit;
        width: 100%;
        display: block;
        box-shadow: 0 0 12px #a4a4a4;
    }

    .btnDonaWrap a.btnDona {
        border-radius: 0;
        border: none;
        padding: 12px 0 !important;
        width: 100%;
        transition: all 0ms ease;
    }
}

@media (min-width: 768px) {
    .btnDonaWrap a.btnDona {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 24px;
        padding-bottom: 24px;
        width: 90px;
    }

    .btnDonaWrap a.btnDona img {
        width: 30px;
    }

    .btnDonaWrap a.btnDona span {
        display: block;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .btnDonaWrap {
        top: 20%;
    }

    .btnDonaWrap a.btnDona {
        width: 110px;
    }

    .btnDonaWrap a.btnDona img {
        display: block;
        width: 50px;
    }
}

@media (min-width: 1200px) {
    .btnDonaWrap a.btnDona {
        width: 150px;
        padding: 40px 0;
        transition: all 500ms ease;
        transform-origin: center;
    }

    .btnDonaWrap a.btnDona img {
        width: 72px;
    }

    .btnDonaWrap a.btnDona .fs-6 {
        font-size: 3rem !important;
    }

    .btnDonaWrap a.btnDona:hover {
        text-decoration: none;
        transform: scale(1.1);
    }
}

/* ── Hero / fondo ────────────────────────────────────────────────────────── */
.bg-donacion.d-flex.flex-column {
    background: url('../img/fotos/bg-donacion.webp') no-repeat center center;
    background-size: cover;
    position: relative;
}

.bg-donacion.d-flex.flex-column:before {
    content: "";
    background-color: rgba(255, 196, 78, 0.8784313725);
    background-size: 100% auto;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-donacion.d-flex.flex-column > div {
    z-index: 10;
}

/* ── Tarjeta del formulario ──────────────────────────────────────────────── */
.form_donacion {
    width: 96%;
    max-width: 420px;
    margin: 20px auto 50px;
    border: solid 1px #ddd;
    padding: 26px 23px;
    box-shadow: 0 0 12px rgba(192, 126, 3, 0.4941176471);
    border-radius: 25px;
    background-color: #fff;
}

.form_donacion * {
    font-size: 16px;
    font-family: "Inter-Regular";
    color: #303030;
}

.form_donacion p {
    margin-bottom: 0;
    font-size: 14px;
    margin: 0 !important;
    line-height: 100%;
}

.form_donacion input[type=text] {
    border: solid 1px #b6b6b6;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
}

.form_donacion input[type=text]:focus-visible {
    border-color: #ffc44e;
}

/* ── Tipo de donación ────────────────────────────────────────────────────── */
.f_tipo_donacion {
    border: solid 3px #ffc44e;
    border-radius: 15px;
    overflow: hidden;
}

.f_tipo {
    background-color: #ececec;
    display: inline-block;
    padding: 12px 30px;
    text-align: center;
    width: 100%;
}

.f_tipo input[type=radio] {
    width: 0;
    float: left;
}

.active.f_tipo {
    background-color: #ffc44e;
}

.f_tipo,
.f_moneda_opt label,
.f_monto label,
.f_terms_opt {
    cursor: pointer;
}

/* ── Moneda ──────────────────────────────────────────────────────────────── */
.f_moneda {
    padding: 17px 0;
}

.f_moneda div {
    display: flex;
    align-items: center;
}

.f_moneda_opt {
    display: inline-block;
    padding: 0;
    text-align: left;
    color: #000;
    width: 50%;
}

.f_moneda_opt input {
    width: 0;
    float: left;
}

.f_moneda_opt label {
    width: 100%;
    display: flex;
    align-items: center;
}

span.f_moneda_check {
    width: 24px;
    height: 24px;
    display: block;
    float: left;
    margin: 0 7px 0 0;
    background: #ffc44e;
    border-radius: 50%;
    flex-shrink: 0;
}

span.f_moneda_tx_info {
    text-align: right;
}

label.active .f_moneda_check {
    position: relative;
}

label.active .f_moneda_check:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    text-align: center;
    background: transparent url('../img/icons/icon-mini-check.png') no-repeat center center;
    background-size: 80%;
}

/* ── Tarjetas de monto ───────────────────────────────────────────────────── */
.f_montos {
    justify-content: center;
    border: solid 3px #ffc44e;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto 10px;
}

.f_monto {
    display: inline-block;
    text-align: center;
    background: #ececec;
    border: solid 1px #dbdbdb;
    border-width: 0 0 1px 1px;
}

.f_monto:last-child {
    border-right: none;
}

.f_monto:first-child {
    border-left: 0;
}

.f_monto label {
    width: 100%;
    display: block;
    padding: 11px 12px;
}

.f_monto label input {
    float: left;
    width: 0;
}

.f_monto.activo {
    background-color: #ffc44e;
}

body .form_donacion p.donacion_name {
    margin-bottom: 6px !important;
    display: block;
    font-size: 13px !important;
    line-height: 120%;
}

/* ── Monto libre ─────────────────────────────────────────────────────────── */
.f_monto_custom_wrap {
    text-align: center;
    padding: 12px 0;
    width: 200px;
    margin: 0 auto;
}

.f_monto_custom_wrap span {
    display: flex;
    align-items: center;
}

.form_donacion input[type=text].f_monto_custom {
    display: inline-block;
    border: solid 2px #b1b1b1;
    text-align: center;
    color: #313131;
    margin: 0 12px;
    font-family: "Inter-Bold";
    font-size: 23px;
    padding: 3px 0;
    border-radius: 12px;
}

.form_donacion .f_monto_custom:active {
    border-color: #ffc44e;
}

/* ── Datos del usuario ───────────────────────────────────────────────────── */
.row.f_datos {
    margin-bottom: 0;
}

.f_datos input[type=text] {
    margin-bottom: 10px;
}

/* ── Mensajes de error ───────────────────────────────────────────────────── */
.form_donacion p.p_error {
    color: red;
    margin-bottom: 10px !important;
    display: block;
    font-size: 13px;
}

/* ── Términos ────────────────────────────────────────────────────────────── */
.f_terms_opt {
    padding: 4px 0 4px 8px;
}

.f_terms_opt label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.f_terms_opt label input[type="checkbox"] {
    width: 0;
    float: left;
}

span.f_terms_check {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
    margin: 0 7px 0 0;
    background: #ececec;
    border: 2px solid #ccc;
    border-radius: 50%;
}

.f_terms_opt label.active span.f_terms_check {
    background: #ffc44e;
    border-color: #ffc44e;
    position: relative;
}

.f_terms_opt label.active span.f_terms_check::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    text-align: center;
    background: transparent url('../img/icons/icon-mini-check.png') no-repeat center center;
    background-size: 80%;
}

/* ── Botón Donar ─────────────────────────────────────────────────────────── */
input.f_send,
button.f_send {
    background-color: #ffc44e;
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 25px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-family: "Inter-Regular";
    font-size: 16px;
}

button.f_send:disabled,
button.f_send.loading {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Transferencias / tabs ───────────────────────────────────────────────── */
.img-donacion figcaption {
    font-size: 18px;
    color: gray;
    font-weight: 600;
    font-style: italic;
}

.tabs-cuentas button {
    padding: 10px 20px;
    border-radius: 10px !important;
    border: solid 1px #444 !important;
}

/* ── Overlay de carga ────────────────────────────────────────────────────── */
#pda-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: wait;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#pda-loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

#pda-loading-overlay .pda-loading-text {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    /*text-shadow: 0 2px 6px rgba(0,0,0,0.6);*/
    pointer-events: none;
}
