/* Estilo neutro: estas páginas viven dentro de los checkouts y paneles de GHL de cada negocio. */
:root {
  --bg: #ffffff;
  --surface: #f6f8f7;
  --line: #e2e7e4;
  --text: #0b0f0d;
  --muted: #5b6661;
  --accent: #009ee3; /* azul Mercado Pago */
  --ok: #0f9d58;
  --danger: #c62828;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.gf { max-width: 560px; margin: 0 auto; padding: 16px; }
.gf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gf-title { margin: 0; font-size: 16px; font-weight: 700; }
.gf-amount { margin: 0; font-size: 20px; font-weight: 800; white-space: nowrap; }
.gf-sub { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.gf-seal { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.gf-seal b { color: var(--accent); }

.gf-state { display: flex; gap: 10px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 14px; }
.gf-state[hidden], .gf-result[hidden], .gf-error[hidden], [data-brick][hidden] { display: none; }
.gf-spinner { width: 16px; height: 16px; flex: none; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: gf-spin .8s linear infinite; }
@keyframes gf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gf-spinner { animation-duration: 2.4s; } }

.gf-error { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--danger); border-radius: 10px; color: var(--danger); font-size: 14px; line-height: 1.45; }
.gf-result { padding: 24px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.gf-result h2 { margin: 0 0 6px; font-size: 18px; }
.gf-result p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.gf-result[data-tone="ok"] { border-color: var(--ok); }
.gf-result[data-tone="ok"] h2 { color: var(--ok); }

.gf-link { margin: 12px 0 0; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* Custom Page (conectar) */
.gf-card { margin: 0 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.gf-card h2 { margin: 0 0 4px; font-size: 15px; }
.gf-card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.gf-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 9999px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 600; vertical-align: middle; }
.gf-badge[data-on="true"] { background: #e7f6ee; color: var(--ok); }
.gf-btn { height: 40px; padding: 0 16px; border: 0; border-radius: 9999px; background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.gf-btn[data-variant="ghost"] { background: transparent; color: var(--danger); border: 1px solid var(--line); }
.gf-btn:disabled { opacity: .6; cursor: progress; }
.gf-steps { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
