/* payment.duxels.com — the page's own layout. The header and the footer are the common ones of duxels-shared (the Worker puts them in, src/site-chrome.js) and bring their own
   stylesheet, /shared/<version>/chrome/chrome.css, which loads AFTER this one: it has the palette (:root --bg --fg --mut --ia --line), the box model, the links, the header, the language
   menu and the footer. What the page used to get from duxels.com/mundo/mundo.css and the shared sheet does not carry is here: the document's background, type and resets, the focus
   ring, and the width of the page's body (.privacy-main). This file also lays out the payments page and Clerk's user button. The classes privacy-page / account-page are the
   shell's (the header's solid bar and the labels of its buttons come from them). */
html { background: var(--bg); color-scheme: dark; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: transparent; color: var(--fg); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
main { position: relative; z-index: 1; }
.privacy-page { background: radial-gradient(ellipse at 70% 0%, var(--bg2), var(--bg) 42%) fixed; }
.privacy-main { width: min(100% - 40px, 860px); margin: 0 auto; padding: max(112px, calc(88px + env(safe-area-inset-top))) 0 max(64px, env(safe-area-inset-bottom)); }
@media (max-width: 600px) { .privacy-main { width: calc(100% - 32px); padding-top: max(94px, calc(80px + env(safe-area-inset-top))); } }
.account-main { display: flex; justify-content: center; align-items: flex-start; min-height: 60vh; }
#app { width: 100%; display: flex; justify-content: center; align-items: flex-start; }
.status { color: var(--mut); text-align: center; margin-top: 12vh; max-width: 32rem; }
/* the sections of the page */
.dx-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 28rem; }
.dx-form h2 { margin: 0 0 6px; font-size: 1.1rem; }
.dx-form label { font-weight: 600; font-size: .9rem; }
.dx-help { margin: 0; color: var(--mut); font-size: .9rem; }
.dx-btn {
  background: var(--fg);
  color: var(--bg);
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.dx-btn:disabled { opacity: .6; cursor: progress; }
.dx-btn:focus-visible { outline: 2px solid var(--ia); outline-offset: 2px; }
.dx-note { margin: 0; min-height: 1.5em; color: var(--mut); font-size: .9rem; }
/* subscriptions and payments: your plans, choose a plan, team seats, portal */
.dx-billing { display: flex; flex-direction: column; gap: 28px; width: 100%; }
/* the page (mountPayments): title, «Volver a …» and «Tu cuenta Duxels», then the sections */
.dx-payments { width: 100%; max-width: 40rem; padding: 8px 16px 32px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; }
.dx-payments > h1 { margin: 8px 0 0; font-size: 1.5rem; }
.dx-links { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; }
.dx-links a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.dx-links .dx-back::before { content: '← '; }
/* the payment history: one line per payment, the receipt link under it */
.dx-receipt { color: var(--fg); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.dx-billing .dx-form { max-width: 34rem; }
.dx-plans { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.dx-plan, .dx-team { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; width: 100%; box-sizing: border-box; }
.dx-plan-name { margin: 0; }
.dx-badge { margin-left: 8px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #f0b429; border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; }
.dx-flash { color: var(--fg); }
.dx-select {
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit;
  color-scheme: dark; max-width: 100%;
}
.dx-seats { width: 7rem; }
.dx-select:focus-visible, .dx-seg input:focus-visible + span, .dx-check input:focus-visible + span { outline: 2px solid var(--ia); outline-offset: 2px; }
.dx-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dx-seg label { cursor: pointer; }
.dx-seg input { position: absolute; opacity: 0; pointer-events: none; }
.dx-seg span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.dx-seg input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
.dx-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 6px 14px; width: 100%; }
.dx-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.dx-check input { accent-color: var(--ia); width: 16px; height: 16px; }
.dx-check input:disabled + span { opacity: .45; }
.dx-total { margin: 4px 0 0; font-size: 1.05rem; font-weight: 700; }
.dx-btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.dx-swap { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: 100%; }
/* phones and tablets: icon-only buttons, as on duxels.com (privacy-page keeps labels for its single button) */
@media (max-width: 900px) {
  .account-page .top .ico { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .account-page .top .ico .lbl { display: none; }
}
/* pesos (pago único) y plazos prepagados */
.dx-pesos { display: flex; flex-direction: column; gap: 8px; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-sizing: border-box; }
.dx-pesos h3 { margin: 0; font-size: 1rem; }
.dx-opts { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.dx-opt { display: flex; align-items: flex-start; gap: 8px; font-size: .92rem; font-weight: 400; cursor: pointer; }
.dx-opt input { accent-color: var(--ia); margin-top: 3px; }
.dx-opt small { display: block; color: var(--mut); font-size: .82rem; }
.dx-opt.is-off { opacity: .55; cursor: default; }
.dx-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: #f0b429; border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.dx-warn { margin: 0; font-size: .9rem; color: #f0b429; }
.dx-warn-strong { color: #f0392f; }
.dx-noref { margin: 0; font-size: .9rem; font-weight: 600; }
.dx-actions { display: flex; flex-wrap: wrap; gap: 8px; }
