/* ─── pagos-fonotrip — Página de pago pública ─── */
:root {
    --primary: #0066ff;
    --success: #00b67a;
    --danger: #e53935;
    --bg: #f0f2f5;
    --text: #1a1a2e;
    --muted: #6b7280;
    --border: #e5e7eb;
    --card-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* ─── Cards ─── */
.pay-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 24px;
    margin-bottom: 16px;
}

.success-card, .error-card {
    text-align: center;
    padding: 48px 24px;
}

.pay-icon-success {
    width: 72px; height: 72px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; font-weight: bold;
    margin: 0 auto 16px;
}

.pay-icon-error {
    width: 72px; height: 72px;
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; font-weight: bold;
    margin: 0 auto 16px;
}

.success-card h2 { margin-bottom: 8px; }
.success-card .amount { font-size: 28px; font-weight: 700; color: var(--primary); }

/* ─── Details card ─── */
.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.brand-logo {
    height: 36px;
    width: auto;
}

.brand-row h2 {
    font-size: 20px;
    font-weight: 700;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.info-row span {
    color: var(--muted);
}

.total-row {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.total-amount {
    font-size: 24px;
    color: var(--primary);
}

/* ─── Payment methods ─── */
.methods-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: var(--text);
}

.pay-btn:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(0,102,255,0.15);
}

.pay-btn:active {
    transform: translateY(0);
}

.pay-icon {
    height: 22px;
    width: auto;
}

.stripe-btn { color: #635bff; }
.stripe-btn:hover { border-color: #635bff; background: #f8f8ff; }

.paypal-btn { color: #003087; }
.paypal-btn:hover { border-color: #0070ba; background: #f0f6ff; }

.mp-btn { color: #009ee3; }
.mp-btn:hover { border-color: #009ee3; background: #f0f9ff; }

/* ─── Badges ─── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge-paid {
    background: #e6f9f0;
    color: var(--success);
}

/* ─── Overlay ─── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.overlay.hidden { display: none; }

.overlay-content {
    background: #fff;
    padding: 32px 48px;
    border-radius: 16px;
    text-align: center;
}

.spinner {
    width: 40px; height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Misc ─── */
.muted { color: var(--muted); font-size: 14px; }
.secure-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 16px; }
.pay-error { text-align: center; padding: 48px 24px; }
.pay-error h3 { margin: 16px 0 8px; }
.no-methods { text-align: center; padding: 24px; color: var(--muted); }

@media (max-width: 520px) {
    .container { padding: 16px 12px; }
    .pay-card { padding: 20px; }
    .total-amount { font-size: 20px; }
}
