/* Páginas estáticas para buscadores (/carta, /coleccion, /colecciones).
   Se cargan después del CSS de la app: comparten colores, tipografía, cabecera y botones.
   Las clases propias llevan el prefijo sx- para no chocar con las de la app. */
body { color: var(--text); }
.top { height: var(--header); }
a.brand { color: var(--text); text-decoration: none; }
.seg a { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.seg a[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tab { text-decoration: none; }
.sx-crumbs { max-width: 1180px; margin: 18px auto 0; padding: 0 20px; font-size: 13px; color: var(--muted); }
.sx-crumbs a { color: var(--muted); }
.sx-main { max-width: 1180px; margin: 0 auto; padding: 8px 20px 40px; font-size: 15px; line-height: 1.6; }
.sx-main a { color: var(--accent); }
.sx-main a.btn { color: var(--text); text-decoration: none; }
.sx-main a.btn.primary { color: var(--accent-ink); }
.sx-main h1 { margin: 8px 0 4px; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; letter-spacing: -0.02em; }
.sx-main h2 { margin: 32px 0 14px; font-size: 20px; letter-spacing: -0.01em; }
.sx-main h3 { margin: 16px 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.sx-card { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 32px; margin-top: 16px; }
.sx-art img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow-lift); }
.sx-alt { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--muted); font-size: 14px; }
.sx-alt b { color: var(--accent); font-size: 11px; margin-right: 3px; }
.sx-origin { margin: 8px 0; font-size: 14px; }
.sx-tag { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; }
.sx-type { font-weight: 600; margin: 12px 0 6px; }
.sx-facts, .sx-bans { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.sx-facts li, .sx-bans li { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.sx-text { margin-top: 12px; padding: 4px 18px 10px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); }
.sx-text p { margin: 6px 0; }
.sx-note { color: var(--muted); font-style: italic; }
.sx-prices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.sx-prices div { display: flex; flex-direction: column; padding: 10px 16px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); }
.sx-prices span, .sx-prices small { color: var(--muted); font-size: 12px; }
.sx-prices strong { font-size: 20px; }
.sx-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.sx-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.sx-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sx-table th, .sx-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sx-table td:nth-child(2) { white-space: normal; min-width: 220px; }
.sx-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.sx-table tr:last-child td { border-bottom: 0; }
.sx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.sx-main a.sx-mini { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; font-size: 12px; line-height: 1.3; }
.sx-mini img { border-radius: 4px; height: auto; }
.sx-set { display: flex; gap: 24px; align-items: center; margin-top: 16px; }
.sx-pack { width: 150px; height: auto; }
.sx-filters { position: sticky; top: var(--header); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 -20px 18px; padding: 12px 20px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.sx-find { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); outline: none; min-width: 220px; }
.sx-find:focus { border-color: var(--accent); }
.sx-count { margin-left: auto; font-weight: 600; font-size: 14px; }
.sx-empty { color: var(--muted); }
.sx-tiles, .sx-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 14px; }
.sx-main a.sx-tile, .sx-main a.sx-pack-tile { display: flex; flex-direction: column; gap: 3px; color: var(--text); text-decoration: none; }
.sx-main a.sx-tile[hidden] { display: none; }
.sx-tile img { width: 100%; height: auto; aspect-ratio: 421 / 614; object-fit: cover; border-radius: 6px; background: var(--surface-2); box-shadow: var(--shadow); transition: transform 0.2s var(--ease); }
.sx-tile:hover img, .sx-pack-tile:hover img { transform: translateY(-3px); }
.sx-tile-name { margin-top: 6px; font-weight: 600; font-size: 14px; line-height: 1.3; }
.sx-tile-meta { color: var(--muted); font-size: 12px; }
.sx-tile-price { font-weight: 700; font-size: 13px; }
.sx-pack-tile img, .sx-pack-empty { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: 6px; background: var(--surface-2); transition: transform 0.2s var(--ease); }
.sx-print-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 14px; }
.sx-print-head h2 { margin: 0 !important; }
.sx-prints { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px 12px; }
.sx-prints[hidden] { display: none; }
.sx-prints:not([hidden]) + .sx-table { display: none; }
.sx-main a.sx-print { display: flex; flex-direction: column; gap: 3px; color: var(--text); text-decoration: none; }
.sx-print-cover { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--surface-2); overflow: hidden; margin-bottom: 4px; }
.sx-print-cover img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.2s var(--ease); }
.sx-print-cover.is-card img { width: 72%; height: auto; border-radius: 4px; }
.sx-print:hover .sx-print-cover img { transform: translateY(-3px); }
.sx-footer { max-width: 1180px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .sx-card { grid-template-columns: 1fr; }
  .sx-art { max-width: 300px; margin: 0 auto; }
  .sx-set { flex-direction: column; align-items: flex-start; }
  .sx-tiles, .sx-packs { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .sx-filters { margin: 0 -16px 16px; padding: 10px 16px; }
  .sx-find { flex: 1 1 100%; }
  .sx-crumbs, .sx-main, .sx-footer { padding-left: 16px; padding-right: 16px; }
}
