/* ============================================================
   CineDar — C16 Donaciones: botón flotante + modal premium.
   Autocontenido (el Home usa _HomeLayout/home.css, sin las vars
   --ko-* del dashboard). Prefijo .dn-. Fiel a la referencia:
   oscuro, glow morado/azul/rosa, 2 columnas.
   ============================================================ */
.dn-float, .dn-modal {
    --dn-purple: #8b5cf6;
    --dn-blue: #3b82f6;
    --dn-cyan: #22d3ee;
    --dn-pink: #ec4899;
    --dn-red: #f43f5e;
    --dn-green: #22c55e;
    --dn-amber: #f59e0b;
    --dn-text: #ece9f7;
    --dn-muted: #9d97b5;
    --dn-line: rgba(139, 92, 246, .28);
    --dn-input: #0e0b1c;
}

/* ===================== Botón flotante ===================== */
.dn-float {
    position: fixed; right: 20px; bottom: 88px; z-index: 92;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem .95rem .55rem .6rem; border: none; cursor: pointer;
    border-radius: 999px; color: #fff; font: inherit; font-weight: 800; font-size: .9rem;
    background: linear-gradient(135deg, var(--dn-red), var(--dn-pink));
    box-shadow: 0 8px 24px rgba(244, 63, 94, .5);
    animation: dn-pulse 2.4s ease-in-out infinite;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.dn-float:hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.06); box-shadow: 0 12px 32px rgba(244, 63, 94, .62); }
.dn-float:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dn-float-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.dn-float-ic svg { width: 18px; height: 18px; }
.dn-float-txt { padding-right: .2rem; letter-spacing: .01em; }
@keyframes dn-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(244, 63, 94, .5), 0 0 0 0 rgba(244, 63, 94, .38); }
    50% { box-shadow: 0 10px 28px rgba(244, 63, 94, .58), 0 0 0 12px rgba(244, 63, 94, 0); }
}
@media (max-width: 767px) {
    .dn-float { right: 14px; bottom: 138px; padding: .5rem .8rem .5rem .55rem; font-size: .82rem; }
    .dn-float-ic { width: 26px; height: 26px; }
    .dn-float-ic svg { width: 16px; height: 16px; }
}

/* ===================== Overlay + tarjeta ===================== */
body.dn-noscroll { overflow: hidden; }
.dn-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.dn-modal[hidden] { display: none; }
.dn-back { position: absolute; inset: 0; background: rgba(4, 3, 10, .76); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.dn-card {
    position: relative; z-index: 1; width: 100%; max-width: 760px; max-height: 92vh; overflow-y: auto;
    background:
        radial-gradient(600px 240px at 12% -8%, rgba(139, 92, 246, .18), transparent 60%),
        radial-gradient(560px 240px at 108% 8%, rgba(59, 130, 246, .14), transparent 62%),
        linear-gradient(180deg, #17132b, #0f0c20);
    border: 1px solid rgba(139, 92, 246, .4); border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .62); padding: 1.25rem 1.35rem 1.35rem;
    color: var(--dn-text); font-family: "Segoe UI", system-ui, Arial, sans-serif;
    animation: dn-pop .18s ease-out;
    /* C16-G — flujo por pasos: un solo paso abierto => card corta y sin scroll innecesario. */
    display: flex; flex-direction: column; gap: .85rem;
}
@keyframes dn-pop { from { transform: translateY(12px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.dn-x { position: absolute; top: .7rem; right: .85rem; z-index: 3; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: var(--dn-muted); width: 34px; height: 34px; border-radius: 50%; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.dn-x:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* ===================== C16-G — Indicador de progreso ===================== */
.dn-steps { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.dn-stepi {
    flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .4rem .3rem; border-radius: 9px; font-size: .74rem; font-weight: 700;
    color: var(--dn-muted); background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07);
    transition: color .18s, background .18s, border-color .18s;
}
.dn-stepi-n {
    flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
    font-size: .66rem; font-weight: 800; color: var(--dn-muted);
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}
/* Activo: morado/azul. */
.dn-stepi.is-active { color: #fff; background: linear-gradient(135deg, rgba(139, 92, 246, .3), rgba(59, 130, 246, .22)); border-color: var(--dn-purple); }
.dn-stepi.is-active .dn-stepi-n { color: #fff; background: linear-gradient(135deg, var(--dn-purple), var(--dn-blue)); border-color: transparent; }
/* Completado: verde con check. */
.dn-stepi.is-done { color: #86efac; background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); cursor: pointer; }
.dn-stepi.is-done .dn-stepi-n { color: #052e16; background: var(--dn-green); border-color: transparent; font-size: 0; }
.dn-stepi.is-done .dn-stepi-n::after { content: "✓"; font-size: .66rem; font-weight: 900; }
.dn-stepi.is-done:hover { background: rgba(34, 197, 94, .18); }
/* Móvil: solo los puntos numerados + una línea de texto compacta. */
.dn-steps-m { display: none; margin: 0; text-align: center; font-size: .74rem; font-weight: 700; color: #c4b5fd; }
@media (max-width: 560px) {
    .dn-stepi-t { display: none; }
    .dn-stepi { flex: 0 0 auto; width: 34px; padding: .35rem 0; }
    .dn-steps { justify-content: center; gap: .4rem; }
    .dn-steps-m { display: block; }
}

/* ===================== C16-G — Chips de pasos completados ===================== */
.dn-done { display: flex; flex-wrap: wrap; gap: .4rem; }
.dn-done[hidden] { display: none; }
.dn-done-chip {
    display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .5rem .32rem .42rem;
    border-radius: 999px; font-size: .74rem; color: var(--dn-muted);
    background: rgba(34, 197, 94, .07); border: 1px solid rgba(34, 197, 94, .28);
}
.dn-done-chip[hidden] { display: none; }
.dn-done-chip b { color: var(--dn-text); font-weight: 800; }
.dn-done-ck { width: 12px; height: 12px; flex: none; color: var(--dn-green); }
.dn-done-edit { background: none; border: none; padding: 0 0 0 .25rem; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 700; color: #c4b5fd; text-decoration: underline; }
.dn-done-edit:hover { color: #fff; }

/* ===================== C16-G — Paneles de paso ===================== */
.dn-panel {
    display: flex; flex-direction: column; gap: .7rem;
    padding: .95rem 1rem 1.05rem; border: 1px solid var(--dn-line); border-radius: 14px;
    background: rgba(255, 255, 255, .015);
    animation: dn-step-in .22s ease-out;
}
.dn-panel[hidden] { display: none; }
@keyframes dn-step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Botón "Continuar" de paso (secundario del CTA final). */
.dn-next {
    align-self: flex-end; padding: .6rem 1.2rem; border: none; border-radius: 11px; cursor: pointer;
    font: inherit; font-weight: 700; font-size: .85rem; color: #fff;
    background: linear-gradient(135deg, var(--dn-purple), var(--dn-blue));
    transition: filter .15s, transform .12s;
}
.dn-next:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.dn-next:disabled { opacity: .5; cursor: not-allowed; }
.dn-next[hidden] { display: none; }

/* ===================== C16-G — Paso 4: 2 columnas en desktop, 1 en móvil ===================== */
.dn-final { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dn-final-l, .dn-final-r { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
@media (max-width: 640px) { .dn-final { grid-template-columns: 1fr; gap: .85rem; } }

/* ===================== Cabecera (assets del cliente) ===================== */
.dn-head { display: flex; align-items: flex-start; gap: .7rem; padding-right: 2rem; }
/* donaciones.png — corazón decorativo (neón rojo, fondo transparente). */
.dn-head-heart { flex: none; width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(244, 63, 94, .5)); }
.dn-head-txt { min-width: 0; }
/* donaciontitulo.png — wordmark "REALIZAR UNA DONACIÓN" (transparente, muy apaisado). */
.dn-title-img { display: block; width: 100%; max-width: 330px; height: auto; }
.dn-sub { margin: .35rem 0 0; color: var(--dn-muted); font-size: .84rem; }
.dn-note { margin: .3rem 0 0; color: #c4b5fd; font-size: .78rem; display: inline-flex; align-items: center; gap: .35rem; }
.dn-note svg { width: 14px; height: 14px; flex: none; color: var(--dn-amber); }

/* ===================== Secciones / pasos ===================== */
.dn-section { display: flex; flex-direction: column; gap: .7rem; padding: .95rem 1rem 1.05rem; border: 1px solid var(--dn-line); border-radius: 14px; background: rgba(255, 255, 255, .015); }
.dn-step { margin: 0; font-size: .92rem; font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; }
.dn-step-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .3rem; border-radius: 7px; font-size: .72rem; font-weight: 800; color: #c4b5fd; background: rgba(139, 92, 246, .16); border: 1px solid rgba(139, 92, 246, .4); }

/* Montos rápidos */
.dn-amounts { display: flex; flex-wrap: wrap; gap: .5rem; }
.dn-amt { flex: 1 1 auto; min-width: 62px; padding: .55rem .5rem; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem; color: var(--dn-text); background: var(--dn-input); border: 1px solid var(--dn-line); transition: border-color .12s, background .12s, transform .1s; }
.dn-amt:hover { border-color: rgba(139, 92, 246, .55); }
.dn-amt.sel { background: linear-gradient(135deg, rgba(139, 92, 246, .3), rgba(59, 130, 246, .22)); border-color: var(--dn-purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.dn-amt-otro { flex: 0 0 auto; color: var(--dn-muted); }
.dn-input-wrap { display: flex; align-items: center; gap: .1rem; background: var(--dn-input); border: 1px solid var(--dn-line); border-radius: 11px; padding: 0 .3rem 0 .8rem; }
.dn-input-wrap:focus-within { border-color: var(--dn-purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, .16); }
.dn-cur { color: var(--dn-muted); font-weight: 700; font-size: .9rem; }
.dn-input { flex: 1; background: none; border: none; outline: none; color: var(--dn-text); font: inherit; font-size: 1rem; padding: .7rem .5rem; }
.dn-input.invalid { color: #fca5a5; }
.dn-input::-webkit-outer-spin-button, .dn-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dn-hint { min-height: 1em; font-size: .76rem; color: var(--dn-muted); }
.dn-hint.err { color: #fca5a5; }
.dn-hint.ok { color: #86efac; }
.dn-info { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: #fcd34d; background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .28); border-radius: 10px; padding: .55rem .7rem; }
.dn-info svg { width: 16px; height: 16px; flex: none; }

/* Métodos de pago */
.dn-methods { display: flex; flex-direction: column; gap: .55rem; }
.dn-method { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; padding: .7rem .8rem; border-radius: 12px; cursor: pointer; font: inherit; color: var(--dn-text); background: var(--dn-input); border: 1px solid var(--dn-line); transition: border-color .12s, background .12s; }
.dn-method:hover:not(.off) { border-color: rgba(139, 92, 246, .5); }
.dn-method.is-sel { border-color: var(--dn-purple); background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(59, 130, 246, .1)); box-shadow: 0 0 0 3px rgba(139, 92, 246, .16); }
.dn-method.off { cursor: not-allowed; opacity: .6; }
.dn-radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(157, 151, 181, .6); position: relative; }
.dn-method.is-sel .dn-radio { border-color: var(--dn-purple); }
.dn-method.is-sel .dn-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--dn-purple); }
.dn-method-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; color: #fff; }
.dn-method-ic svg { width: 20px; height: 20px; }
.dn-ic-yape { background: #742384; font-family: Arial, sans-serif; }
.dn-ic-yape-m { background: #a3529f; }
.dn-ic-card { background: linear-gradient(135deg, #3b82f6, #22d3ee); }
.dn-ic-pp { background: #1d3a8a; }
.dn-method-txt { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; min-width: 0; }
.dn-method-txt b { font-size: .88rem; font-weight: 700; }
.dn-method-txt small { font-size: .74rem; color: var(--dn-muted); }
.dn-method-arrow { color: var(--dn-muted); font-size: 1.2rem; }
.dn-badge-rec { flex: none; font-size: .64rem; font-weight: 800; letter-spacing: .03em; color: #4c1d95; background: linear-gradient(135deg, #c4b5fd, #a5b4fc); padding: .22rem .45rem; border-radius: 7px; }
.dn-badge-soon { flex: none; font-size: .64rem; font-weight: 800; letter-spacing: .03em; color: var(--dn-muted); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); padding: .22rem .45rem; border-radius: 7px; }

/* Sub-panel Yape manual */
.dn-manual { display: flex; flex-direction: column; gap: .7rem; padding: .85rem; border: 1px dashed var(--dn-line); border-radius: 12px; background: rgba(255, 255, 255, .015); }
.dn-yape-qr { display: flex; align-items: center; gap: .8rem; }
.dn-yape-qr img { width: 92px; height: 92px; border-radius: 10px; background: #fff; object-fit: contain; flex: none; }
.dn-yape-info { display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; }
.dn-yape-info span { color: var(--dn-muted); display: block; font-size: .72rem; }
.dn-yape-info b { font-weight: 700; }
.dn-field { display: flex; flex-direction: column; gap: .3rem; }
.dn-field label { font-size: .78rem; color: var(--dn-muted); }
.dn-req { color: var(--dn-red); }
.dn-manual-input { background: var(--dn-input); border: 1px solid var(--dn-line); border-radius: 9px; padding: .55rem .65rem; color: var(--dn-text); font: inherit; font-size: .85rem; outline: none; }
.dn-manual-input:focus { border-color: var(--dn-purple); }
.dn-manual-hint { font-size: .72rem; color: var(--dn-muted); }

/* Seguridad */
.dn-secure { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border-radius: 12px; background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .28); }
.dn-secure svg { width: 22px; height: 22px; flex: none; color: var(--dn-green); }
.dn-secure b { font-size: .82rem; font-weight: 700; color: #86efac; display: block; }
.dn-secure small { font-size: .74rem; color: var(--dn-muted); }

/* ===================== Columna derecha ===================== */
.dn-summary { padding: 1rem 1.05rem; border: 1px solid var(--dn-line); border-radius: 14px; background: linear-gradient(180deg, rgba(139, 92, 246, .07), rgba(59, 130, 246, .04)); }
.dn-side-h { margin: 0 0 .8rem; font-size: .95rem; font-weight: 800; display: inline-flex; align-items: center; gap: .5rem; }
.dn-side-h svg { width: 18px; height: 18px; color: #c4b5fd; }
.dn-sum-row { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; color: var(--dn-muted); padding: .28rem 0; }
.dn-sum-row b { color: var(--dn-text); font-weight: 700; }
.dn-i { width: 13px; height: 13px; vertical-align: -1px; opacity: .7; }
.dn-sum-sep { height: 1px; background: var(--dn-line); margin: .5rem 0; }
.dn-sum-total { display: flex; justify-content: space-between; align-items: center; }
.dn-sum-total span { font-size: .95rem; font-weight: 700; }
.dn-sum-total b { font-size: 1.5rem; font-weight: 900; background: linear-gradient(92deg, #22d3ee, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Visibilidad */
.dn-vis { display: flex; flex-direction: column; gap: .5rem; }
.dn-vis-opt { display: flex; align-items: center; gap: .6rem; padding: .65rem .75rem; border-radius: 12px; cursor: pointer; background: var(--dn-input); border: 1px solid var(--dn-line); transition: border-color .12s, background .12s; }
.dn-vis-opt:hover { border-color: rgba(139, 92, 246, .5); }
.dn-vis-opt.is-sel { border-color: var(--dn-purple); background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(59, 130, 246, .1)); }
.dn-vis-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.dn-vis-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #c4b5fd; background: rgba(139, 92, 246, .16); border: 1px solid rgba(139, 92, 246, .32); position: relative; }
.dn-vis-ic svg { width: 17px; height: 17px; }
.dn-vis-opt.is-sel .dn-vis-ic { color: #fff; background: linear-gradient(135deg, var(--dn-purple), var(--dn-blue)); }
.dn-vis-txt { display: flex; flex-direction: column; line-height: 1.2; }
.dn-vis-txt b { font-size: .82rem; font-weight: 700; }
.dn-vis-txt small { font-size: .72rem; color: var(--dn-muted); }

/* Mensaje */
.dn-msg { display: flex; flex-direction: column; gap: .35rem; }
.dn-msg-h { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 700; }
.dn-msg-h svg { width: 16px; height: 16px; color: #c4b5fd; }
.dn-msg-h span { color: var(--dn-muted); font-weight: 500; }
.dn-msg-input { width: 100%; resize: vertical; min-height: 58px; background: var(--dn-input); border: 1px solid var(--dn-line); border-radius: 11px; padding: .6rem .7rem; color: var(--dn-text); font: inherit; font-size: .84rem; outline: none; }
.dn-msg-input:focus { border-color: var(--dn-purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, .14); }
.dn-msg-count { text-align: right; font-size: .72rem; color: var(--dn-muted); }

/* CTA */
.dn-cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .85rem 1rem; margin-top: .2rem; border: none; border-radius: 13px; cursor: pointer; font: inherit; font-weight: 800; font-size: .98rem; color: #fff; background: linear-gradient(95deg, #7c3aed, #8b5cf6 45%, #6366f1); box-shadow: 0 12px 30px rgba(124, 58, 237, .45); transition: filter .15s, transform .12s, box-shadow .15s; }
.dn-cta:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(124, 58, 237, .55); }
.dn-cta:disabled { opacity: .6; cursor: not-allowed; }
.dn-cta svg { width: 20px; height: 20px; }
.dn-cta-note { margin: 0; text-align: center; font-size: .8rem; color: var(--dn-muted); }
.dn-cta-secure { margin: 0; text-align: center; font-size: .72rem; color: var(--dn-muted); display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.dn-cta-secure svg { width: 13px; height: 13px; }
.dn-processing { display: none; align-items: center; gap: .5rem; justify-content: center; font-size: .82rem; color: #c4b5fd; padding: .3rem 0; }
.dn-processing.show { display: flex; }
.dn-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(196, 181, 253, .3); border-top-color: #c4b5fd; animation: dn-spin .7s linear infinite; }
@keyframes dn-spin { to { transform: rotate(360deg); } }
.dn-result { font-size: .84rem; border-radius: 11px; padding: .7rem .8rem; text-align: center; }
.dn-result.ok { color: #86efac; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .3); }
.dn-result.err { color: #fca5a5; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .3); }

/* ===================== C16-F — Saludo personalizado ===================== */
.dn-saludo { margin: 0; padding: .6rem .8rem; border-radius: 11px; font-size: .86rem; color: var(--dn-text); background: linear-gradient(95deg, rgba(139, 92, 246, .14), rgba(236, 72, 153, .1)); border: 1px solid rgba(139, 92, 246, .3); }
.dn-saludo[hidden] { display: none; }
.dn-saludo b { color: #f9a8d4; font-weight: 800; }

/* ===================== C16-F — Identifica tu cuenta (sin sesión) ===================== */
.dn-ident-help { margin: -.2rem 0 0; font-size: .78rem; color: var(--dn-muted); }
.dn-ident-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.dn-ident-input { flex: 1 1 190px; min-width: 0; background: var(--dn-input); border: 1px solid var(--dn-line); border-radius: 11px; padding: .65rem .75rem; color: var(--dn-text); font: inherit; font-size: .88rem; outline: none; }
.dn-ident-input:focus { border-color: var(--dn-purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, .16); }
.dn-ident-input:disabled { opacity: .6; }
.dn-ident-btn { flex: 0 0 auto; padding: .65rem 1rem; border: none; border-radius: 11px; cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--dn-purple), var(--dn-blue)); transition: filter .15s; }
.dn-ident-btn:hover:not(:disabled) { filter: brightness(1.1); }
.dn-ident-btn:disabled { opacity: .6; cursor: not-allowed; }
.dn-ident-msg { min-height: 1em; font-size: .78rem; color: var(--dn-muted); }
.dn-ident-msg.ok { color: #86efac; }
.dn-ident-msg.err { color: #fca5a5; }
.dn-ident-links { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--dn-muted); }
.dn-ident-links[hidden] { display: none; }
.dn-link { background: none; border: none; padding: 0; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 700; color: #c4b5fd; text-decoration: underline; }
.dn-link:hover { color: #fff; }
/* Identificada: el bloque se compacta (ya cumplió su función). */
.dn-ident.is-ok .dn-ident-row, .dn-ident.is-ok .dn-ident-help { display: none; }

/* ===================== C16-F — Modal de agradecimiento / pendiente ===================== */
.dn-modal-gracias { z-index: 130; }
.dn-card-gracias {
    max-width: 520px; text-align: center; padding: 1.6rem 1.5rem 1.5rem;
    background:
        radial-gradient(520px 220px at 50% -10%, rgba(236, 72, 153, .26), transparent 62%),
        radial-gradient(460px 220px at 12% 108%, rgba(139, 92, 246, .2), transparent 60%),
        linear-gradient(180deg, #1a1030, #0f0c20);
    border-color: rgba(236, 72, 153, .45);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .66), 0 0 60px rgba(236, 72, 153, .12);
    animation: dn-pop-gracias .32s cubic-bezier(.2, .9, .25, 1.15);
}
@keyframes dn-pop-gracias { from { transform: translateY(18px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
/* gracias_por_tu_donacion_sin_fondo.png — trae el corazón + "Gracias por tu donación". */
.dn-gracias-hero { display: block; width: 100%; max-width: 380px; height: auto; margin: .2rem auto .6rem; filter: drop-shadow(0 6px 26px rgba(236, 72, 153, .5)); animation: dn-hero-in .5s ease-out both; }
.dn-gracias-hero[hidden] { display: none; }
@keyframes dn-hero-in { from { transform: scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
.dn-pend-hero { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: .4rem 0 .7rem; }
.dn-pend-hero[hidden] { display: none; }
.dn-pend-ic { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; color: #fcd34d; background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .5); box-shadow: 0 0 34px rgba(245, 158, 11, .3); }
.dn-pend-ic svg { width: 32px; height: 32px; }
.dn-pend-title { margin: 0; font-size: 1.2rem; font-weight: 800; color: #fcd34d; }
.dn-gracias-msg { margin: .1rem 0 .25rem; font-size: 1rem; font-weight: 800; color: var(--dn-text); }
.dn-gracias-sub { margin: 0 0 1rem; font-size: .84rem; color: var(--dn-muted); }
.dn-gracias-card { text-align: left; padding: .9rem 1rem; border: 1px solid var(--dn-line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.dn-gracias-cardh { margin: 0 0 .6rem; font-size: .88rem; font-weight: 800; display: inline-flex; align-items: center; gap: .45rem; }
.dn-gracias-cardh svg { width: 16px; height: 16px; color: #c4b5fd; }
.dn-gr-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .3rem 0; font-size: .82rem; color: var(--dn-muted); }
.dn-gr-row b { color: var(--dn-text); font-weight: 700; }
.dn-gr-row:first-of-type b { color: #fcd34d; font-size: 1rem; font-weight: 900; }
.dn-gr-badge { font-size: .72rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; }
.dn-gr-badge.ok { color: #86efac; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .4); }
.dn-gr-badge.warn { color: #fcd34d; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .45); }
.dn-gracias-nota { margin: .8rem 0 0; font-size: .76rem; color: var(--dn-muted); display: flex; align-items: center; justify-content: center; gap: .4rem; }
.dn-gracias-nota svg { width: 14px; height: 14px; flex: none; color: #c4b5fd; }
.dn-gracias-amber { margin-top: .7rem; padding: .6rem .8rem; border-radius: 11px; font-size: .82rem; font-weight: 700; color: #fcd34d; background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .3); display: flex; align-items: center; justify-content: center; gap: .45rem; }
.dn-gracias-amber svg { width: 15px; height: 15px; color: var(--dn-red); }
.dn-gracias-acts { display: flex; gap: .6rem; margin-top: 1rem; }
.dn-gracias-cta { flex: 1 1 auto; margin-top: 0; }
.dn-gracias-alt { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.1rem; border-radius: 13px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--dn-text); background: rgba(255, 255, 255, .05); border: 1px solid var(--dn-line); transition: border-color .12s, background .12s; }
.dn-gracias-alt:hover { color: #fff; border-color: rgba(139, 92, 246, .55); background: rgba(139, 92, 246, .12); }
@media (max-width: 480px) {
    .dn-gracias-acts { flex-direction: column; }
    .dn-card-gracias { padding: 1.3rem 1.1rem 1.2rem; }
}

/* C16-G — móvil: el badge no debe estrujar la descripción del método (evitaba textos de 3 líneas).
   VA AL FINAL a propósito: misma especificidad que las reglas base, así que debe ganar por orden. */
@media (max-width: 480px) {
    .dn-method { gap: .5rem; padding: .6rem .65rem; }
    .dn-method-ic { width: 30px; height: 30px; }
    .dn-badge-rec, .dn-badge-soon { font-size: .55rem; padding: .16rem .3rem; letter-spacing: 0; }
    .dn-method-txt b { font-size: .82rem; }
    .dn-method-txt small { font-size: .68rem; }
    .dn-method-arrow { display: none; }
}

/* ===================== C16-H — Flujo bloqueado durante el pago ===================== */
/* Refuerzo VISUAL únicamente: el bloqueo real es el atributo disabled que aplica donaciones.js.
   VA AL FINAL a propósito: .dn-busy .dn-cta y .dn-cta:disabled tienen la misma especificidad (0,2,0),
   así que el orden decide (misma lección que el @media del badge en C16-G). */
.dn-busy .dn-panel,
.dn-busy .dn-steps,
.dn-busy .dn-done { pointer-events: none; }
.dn-busy .dn-panel { opacity: .78; }
/* La X nunca se bloquea: cerrar el modal siempre debe ser posible. */
.dn-busy .dn-x { pointer-events: auto; opacity: 1; }
/* El CTA sí queda legible: muestra "Esperando pago…" / "Procesando tu donación…". */
.dn-busy .dn-cta { opacity: 1; cursor: progress; }

.dn-cta-spin { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: dn-spin .7s linear infinite; }
.dn-cta-spin[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
    .dn-float { animation: none; }
    .dn-card { animation: none; }
    .dn-card-gracias { animation: none; }
    .dn-gracias-hero { animation: none; }
    .dn-panel { animation: none; }
    .dn-spin { animation-duration: 1.4s; }
    .dn-cta-spin { animation-duration: 1.4s; }
}

/* C14-D — botón "Generar nuevo QR" que aparece en dn-result cuando el QR venció. */
.dn-regen-qr {
    display: inline-block;
    margin-left: .4rem;
    padding: .35rem .8rem;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
}
.dn-regen-qr:hover { filter: brightness(1.08); }
.dn-regen-qr:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }

/* ===== C14-G — método "PLIN, YAPE QR" (celeste) en el modal de donación ===== */
.dn-method-qr { border-color: rgba(56, 189, 248, .45); background: rgba(56, 189, 248, .06); }
.dn-method-qr:hover:not(.off) { border-color: #38bdf8; background: rgba(56, 189, 248, .12); }
.dn-method-qr.is-sel { border-color: #38bdf8; background: linear-gradient(135deg, rgba(56, 189, 248, .18), rgba(2, 132, 199, .10)); box-shadow: 0 0 0 3px rgba(56, 189, 248, .16); }
.dn-method-qr.is-sel .dn-radio { border-color: #38bdf8; }
.dn-method-qr.is-sel .dn-radio::after { background: #38bdf8; }
.dn-method-qr .dn-method-txt b { color: #7dd3fc; }
.dn-method-qr .dn-ic-wallet { background: linear-gradient(135deg, #0284c7, #38bdf8); color: #fff; }
