/* ============================================================
   pagos.css — Estilos para el módulo de pagos
   ============================================================ */

/* ── Resumen de factura ──────────────────────────────────── */
.pago-resumen {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    border: none;
}

.pago-resumen-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.pago-resumen-label {
    font-size: .75rem;
    opacity: .75;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .2rem;
}

.pago-resumen-num {
    font-size: 1.1rem;
    font-weight: 700;
}

.pago-resumen-concepto {
    font-size: .85rem;
    opacity: .85;
    margin-top: .25rem;
}

.pago-monto-grande {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.pago-resumen-monto { text-align: right; }

/* ── Tabs de métodos ─────────────────────────────────────── */
.metodos-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border);
    padding-bottom: .75rem;
    margin-bottom: 1.5rem;
}

.metodo-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .6rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    font-size: .8rem;
    font-weight: 600;
    transition: all .15s;
    min-width: 80px;
}

.metodo-tab:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light);
}

.metodo-tab.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.metodo-logo {
    height: 22px;
    object-fit: contain;
}

.metodo-icon {
    font-size: 1.35rem;
    line-height: 1;
}

/* ── Contenido de tabs ───────────────────────────────────── */
.metodo-content { display: none; }
.metodo-content.active { display: block; }

/* ── Info box ────────────────────────────────────────────── */
.pago-info-box {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: var(--brand-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .875rem;
    color: #1e40af;
}

.pago-info-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }

/* ── Botones de pago ─────────────────────────────────────── */
.btn-paypal {
    background: #0070BA;
    color: #fff;
    border-color: #0070BA;
    font-size: 1rem;
    padding: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}

.btn-paypal:hover { background: #005ea6; border-color: #005ea6; }

.btn-stripe {
    background: #635BFF;
    color: #fff;
    border-color: #635BFF;
    font-size: 1rem;
    padding: .85rem;
}

.btn-stripe:hover { background: #4f49e0; border-color: #4f49e0; }
.btn-stripe:disabled { background: #a5a2ff; border-color: #a5a2ff; cursor: not-allowed; }

.btn-payone {
    background: #0050A0;
    color: #fff;
    border-color: #0050A0;
    font-size: 1rem;
    padding: .85rem;
}

.btn-payone:hover { background: #003e80; border-color: #003e80; }

/* ── Stripe card element ─────────────────────────────────── */
.stripe-card-box {
    padding: .75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .15s;
}

.stripe-card-box.StripeElement--focus {
    border-color: var(--brand);
    outline: 2px solid rgba(37, 99, 235, .15);
}

.stripe-error {
    color: var(--danger);
    font-size: .82rem;
    margin-top: .4rem;
    min-height: 1.2em;
}

.pago-spinner {
    text-align: center;
    color: var(--text-muted);
    font-size: .875rem;
    margin-top: .75rem;
}

/* ── Datos bancarios ─────────────────────────────────────── */
.banco-datos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem .75rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.banco-dato {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .4rem 0;
    border-bottom: 1px dashed var(--border);
}

.banco-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 700;
}

.banco-val {
    font-size: .9rem;
    color: var(--text);
    font-weight: 500;
}

.banco-copy:hover { color: var(--brand); }

.banco-destacado {
    color: var(--success);
    font-weight: 800;
    font-size: 1.1rem;
}

/* ── Nota de seguridad ───────────────────────────────────── */
.pago-seguridad-nota {
    text-align: center;
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ── Página de resultado ─────────────────────────────────── */
.resultado-wrap {
    max-width: 560px;
    margin: 2rem auto;
    text-align: center;
}

.resultado-icono {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.resultado-titulo {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.resultado-subtitulo {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.resultado-referencia {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: .65rem 1rem;
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: inline-block;
}

.resultado-acciones {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.resultado-exito { filter: drop-shadow(0 0 12px rgba(22,163,74,.3)); }
.resultado-warn  { filter: drop-shadow(0 0 12px rgba(217,119, 6,.3)); }
.resultado-error { filter: drop-shadow(0 0 12px rgba(220, 38,38,.3)); }

.resultado-detalles {
    text-align: left;
}

/* Responsive */
@media (max-width: 600px) {
    .pago-resumen-header { flex-direction: column; }
    .pago-resumen-monto  { text-align: left; }
    .banco-datos-grid    { grid-template-columns: 1fr; }
    .metodos-tabs        { gap: .35rem; }
    .metodo-tab          { min-width: 70px; padding: .5rem .7rem; }
}
