/* /silk — Silk gratis de la kapalı beta en pandoraworld.net. Mismos tokens que
   site.css (oscuro primero, variante clara); hoja propia para que la página
   no dependa del nombre con hash de la hoja del sitio. */
:root {
  --bg: #0c0a07; --surface: #17130d; --surface-2: #1f1a12; --line: #3a3122; --text: #ece5d3; --muted: #a89f8a;
  --gold: #d9b765; --gold-strong: #f1d68f; --gold-ink: #1a1305; --cta-top: #f0d27f; --cta-bottom: #b98d34;
  --ok: #9fe07a; --bad: #ff7a6a; --focus: #f6dc93; --radius: 12px;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f2ed; --surface: #fffdf8; --surface-2: #f1ece1; --line: #d6ccb6; --text: #1c170e; --muted: #5f5645;
    --gold: #85641b; --gold-strong: #5e4510; --ok: #2f7d1f; --bad: #b3261e; --focus: #6b4e12; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f2ed; --surface: #fffdf8; --surface-2: #f1ece1; --line: #d6ccb6; --text: #1c170e; --muted: #5f5645;
  --gold: #85641b; --gold-strong: #5e4510; --ok: #2f7d1f; --bad: #b3261e; --focus: #6b4e12; color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.55 var(--font-body); }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.silk-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px clamp(16px, 4vw, 32px); border-bottom: 1px solid var(--line); }
.silk-head img { height: 36px; width: auto; display: block; }
.silk-head nav { display: flex; gap: 14px; align-items: center; font-size: .9rem; }
main { max-width: 760px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 32px) 64px; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); margin: 8px 0 4px; }
.lede { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.card h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 10px; }
.who { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.who b { color: var(--gold-strong); }
.field { display: grid; gap: 6px; margin: 12px 0; }
.field label { font-size: .9rem; color: var(--muted); }
input[type="text"], input[type="password"], input[type="email"], input[type="tel"] { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn--cta { background: linear-gradient(var(--cta-top), var(--cta-bottom)); color: var(--gold-ink); border-color: transparent; }
.btn[disabled] { opacity: .55; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.packages { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pkg { display: grid; gap: 4px; text-align: left; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; position: relative; min-height: 120px; }
.pkg:hover, .pkg[aria-pressed="true"] { border-color: var(--gold); }
.pkg__name { font-family: var(--font-display); font-size: 1.1rem; }
.pkg__silk { color: var(--gold-strong); font-weight: 600; }
.pkg__price { font-size: 1.3rem; font-weight: 700; margin-top: auto; }
.badge { position: absolute; top: 10px; right: 10px; padding: 1px 8px; border-radius: 999px; background: #b8322a; color: #fff; font-size: .75rem; font-weight: 700; }
.pkg--beta { cursor: default; }
.pkg--beta:hover { border-color: var(--line); }
.pkg--beta .btn { margin-top: 8px; }
.beta { border-color: var(--ok); color: var(--text); font-weight: 600; }
.quota { color: var(--gold-strong); font-weight: 600; margin: 0 0 10px; }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.summary b { text-align: right; }
.note { color: var(--muted); font-size: .9rem; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: .92rem; }
.consent input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; }
.error { color: var(--bad); min-height: 1.4em; margin: 6px 0; }
.ok { color: var(--ok); font-size: 1.2rem; font-weight: 600; }
.muted { color: var(--muted); }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px; border-top: 1px solid var(--line); }
footer a { margin: 0 8px; }
[hidden] { display: none !important; }
.hint { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.small { font-size: 13px; }

/* Phone with a country code selector (owner 2026-11-04) */
.phone-row { display: flex; gap: 8px; }
.phone-row select { flex: 0 0 auto; max-width: 46%; min-height: 44px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.phone-row input { flex: 1 1 auto; min-width: 0; }
/* Item Mall preview (owner 2026-11-04): mall-preview.js */
.mall { max-width: 1040px; }
.mall h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 6px; }
.mall-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; }
.chip { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; white-space: nowrap; }
.mall-tabs--sub .chip { min-height: 34px; padding: 5px 12px; font-size: .875rem; }
.chip[aria-selected="true"] { background: linear-gradient(var(--cta-top), var(--cta-bottom)); color: var(--gold-ink); border-color: transparent; font-weight: 600; }
.mall-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.mall-tools input { flex: 1 1 200px; min-height: 42px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.mall-tools select { min-height: 42px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.mall-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.mall-item { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; text-align: center; cursor: pointer; }
.mall-item:hover { border-color: var(--gold); }
.mall-item img, .mall-detail__head img { width: 48px; height: 48px; border-radius: 6px; border: 1px solid #4a3f28; background: #000; image-rendering: auto; }
.mall-item__name { font-size: .85rem; line-height: 1.3; overflow-wrap: anywhere; }
.mall-price { display: inline-flex; gap: 5px; align-items: center; color: var(--gold-strong); font-weight: 600; }
.mall-price::before { content: ""; width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; background: linear-gradient(var(--cta-top), var(--cta-bottom)); }
.mall-detail { max-width: 420px; width: calc(100% - 32px); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.mall-detail::backdrop { background: rgba(0, 0, 0, .6); }
.mall-detail__head { display: flex; gap: 12px; align-items: center; }
.mall-detail__head img { width: 64px; height: 64px; }
.mall-detail h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 4px; }
.mall-detail__desc { white-space: pre-line; color: var(--muted); font-size: .9rem; }
.mall-detail h4 { margin: 12px 0 6px; }
.mall-detail ul { margin: 0 0 14px; padding-left: 18px; }
/* Language links (owner 2026-11-04: /silk in every site language) */
.silk-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 12px; }
.silk-langs a[aria-current="true"] { color: var(--text); font-weight: 600; text-decoration: none; }
