.sp-main { width: min(900px, calc(100% - 28px)); margin: 0 auto; padding: 26px 0 56px; color: var(--claro); }
.sp-main a { color: #9fd8f7; }
.sp-main h1 { margin: 0 0 8px; font: 700 clamp(1.7rem, 3.6vw, 2.3rem)/1.12 var(--f-display); color: var(--oro); text-shadow: 0 2px 0 var(--oro-borde); }
.sp-main h2 { margin: 0 0 10px; font: 700 1.35rem/1.2 var(--f-display); color: var(--claro); }
.sp-main h3 { margin: 16px 0 6px; font-size: 1rem; color: var(--oro-claro); }
.sp-main p { margin: 6px 0 12px; }
.sp-main ul, .sp-main ol { padding-left: 1.3em; }
.bell { display: none; }

.card {
  margin-bottom: 18px; padding: 22px 24px; border: 1px solid var(--linea); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); box-shadow: 0 10px 26px rgba(10, 4, 0, 0.25);
}
.card.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.muted { color: var(--apagado); font-size: 0.93rem; }
.hint { margin: 6px 0 0; color: var(--apagado); font-size: 0.82rem; }
.sp-main label { display: block; margin: 14px 0 6px; font-weight: 700; font-size: 0.88rem; color: var(--claro); }
.sp-main input[type=text], .sp-main input[type=email], .sp-main input[type=password], .sp-main select, .sp-main textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.22);
  background: var(--campo); color: var(--claro); font: inherit; font-size: 1rem;
}
.sp-main textarea { min-height: 150px; resize: vertical; }
.sp-main input:focus, .sp-main select:focus, .sp-main textarea:focus { border-color: var(--oro); outline: none; box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.25); }
.sp-main input[type=file] { color: var(--apagado); max-width: 100%; }
.sp-main button:focus-visible, .sp-main a:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }

.sp-main button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 12px; border: 2px solid var(--oro-borde);
  background: linear-gradient(180deg, var(--oro-claro) 0%, var(--oro) 45%, #f0a800 100%); color: #3b2300 !important; font-weight: 800; font-size: 0.97rem;
  text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--oro-borde), 0 8px 16px rgba(0, 0, 0, 0.22); transition: transform 0.08s ease, filter 0.15s ease;
}
.sp-main button:hover, .btn:hover { filter: brightness(1.06); }
.sp-main button:active:not(:disabled), .btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--oro-borde); }
.sp-main button.alt, .btn.alt { background: rgba(255, 255, 255, 0.09); color: var(--claro) !important; border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }
.sp-main button.alt:hover, .btn.alt:hover { background: rgba(255, 255, 255, 0.18); }
.sp-main button.danger { background: #a3241d; color: #fff !important; border-color: #6d1510; box-shadow: 0 3px 0 #6d1510; }
.sp-main button:disabled { opacity: 0.55; cursor: not-allowed; }
.sp-main .tabs button, .sp-main .files button { min-height: 0; box-shadow: none; }

.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.msg { min-height: 20px; margin: 10px 0 0; font-size: 0.92rem; }
.msg.err { color: #ffb4ac; }
.msg.ok { color: #b6eb9f; }
.notice {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: rgba(58, 159, 224, 0.18); border: 1px solid rgba(58, 159, 224, 0.55);
  border-left-width: 4px; font-size: 0.92rem;
}
.notice.warn { background: rgba(240, 169, 26, 0.16); border-color: rgba(240, 169, 26, 0.55); color: #ffe6a8; }
.notice.bad { background: rgba(239, 106, 92, 0.16); border-color: rgba(239, 106, 92, 0.6); color: #ffd6d0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 5px; background: #1a0e06; border-radius: 12px; width: fit-content; max-width: 100%; }
.tabs button { padding: 0 14px; min-height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--apagado) !important; font-size: 0.9rem; }
.tabs button:hover { background: rgba(255, 255, 255, 0.08); color: var(--claro) !important; filter: none; }
.tabs button[aria-pressed=true] { background: var(--oro); color: #3b2300 !important; box-shadow: 0 2px 0 var(--oro-borde); }

.tickets { list-style: none; margin: 0; padding: 0 !important; }
.tickets li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 13px 8px; border-bottom: 1px solid var(--linea); cursor: pointer; border-radius: 8px; }
.tickets li:hover { background: rgba(255, 194, 26, 0.07); }
.tickets .subj { flex: 1; min-width: 180px; font-weight: 700; overflow-wrap: anywhere; }
.tickets .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rojo); flex: none; box-shadow: 0 0 0 3px rgba(211, 24, 55, 0.28); }
.badge {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 9999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--linea); background: rgba(255, 255, 255, 0.1); color: var(--apagado);
}
.badge.open { background: rgba(240, 169, 26, 0.18); color: #ffd478; border-color: rgba(240, 169, 26, 0.5); }
.badge.in_progress { background: rgba(58, 159, 224, 0.22); color: #a9dcf8; border-color: rgba(58, 159, 224, 0.6); }
.badge.waiting_player { background: rgba(238, 102, 166, 0.2); color: #ffc2de; border-color: rgba(238, 102, 166, 0.55); }
.badge.resolved { background: rgba(111, 194, 74, 0.18); color: #b6eb9f; border-color: rgba(111, 194, 74, 0.5); }
.badge.closed { background: rgba(255, 255, 255, 0.08); color: var(--apagado); }
.thread { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; border: 1px solid transparent; overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble.mine { align-self: flex-end; background: rgba(58, 159, 224, 0.22); border-color: rgba(58, 159, 224, 0.5); }
.bubble.staff { align-self: flex-start; background: rgba(255, 194, 26, 0.14); border-color: rgba(255, 194, 26, 0.45); }
.bubble .who { display: block; margin-bottom: 3px; font-size: 0.78rem; color: var(--apagado); font-weight: 700; }
.shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.shots img { display: block; max-width: 180px; max-height: 140px; border-radius: 8px; border: 2px solid var(--madera); background: #000; }
.files { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.files span { padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); font-size: 0.8rem; }
.files button { margin-left: 6px; padding: 0 6px; font-size: 0.8rem; background: rgba(255, 255, 255, 0.18); color: var(--claro) !important; border-radius: 6px; border-width: 1px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.plain th, table.plain td { padding: 10px 12px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
table.plain th { color: var(--apagado); font-weight: 700; background: rgba(0, 0, 0, 0.22); white-space: nowrap; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: rgba(240, 169, 26, 0.18); color: #ffd478; font-size: 0.78rem; font-weight: 800; }
.sessions { list-style: none; margin: 0; padding: 0 !important; }
.sessions li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--linea); }
.sessions .info { flex: 1; min-width: 200px; font-size: 0.92rem; overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.packs td.num, .packs th.num { text-align: right; }
.pay-box { margin-top: 10px; }
.pay-box .row { margin: 8px 0; }
.pay-box select, .pay-box input[type=text] { max-width: 320px; }
.result { margin: 12px 0; }
.embed-bar { display: none; }

body.embed { background: var(--tinta); }
body.embed .sp-main { width: 100%; margin: 0; padding: 10px 14px 18px; }
body.embed .card { box-shadow: none; padding: 16px 18px; }
body.embed .embed-bar { display: flex; justify-content: flex-end; margin: 0 0 8px; }

@media (max-width: 560px) {
  .card { padding: 16px; }
  .bubble { max-width: 100%; }
  .sp-main { padding-top: 18px; }
  table.plain.packs th, table.plain.packs td { padding: 8px 5px; font-size: 0.82rem; }
  table.plain.packs th { white-space: normal; }
  table.plain.packs th:last-child, table.plain.packs td:last-child { overflow-wrap: anywhere; }
}
.sp-steps { margin: 10px 0 14px; padding-left: 1.4em; }
.sp-steps li { margin: 6px 0; line-height: 1.55; }
.sp-main .se-pw { position: relative; }
.sp-main .se-pw input[type=password], .sp-main .se-pw input[type=text] { padding-right: 92px; }
.sp-main .se-pw button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 32px; min-height: 32px; padding: 0 10px; border-radius: 8px; border: 0;
  box-shadow: none; font-size: 0.78rem; background: rgba(255, 255, 255, 0.12); color: var(--apagado) !important;
}
.sp-main .se-pw button:hover { background: rgba(255, 255, 255, 0.2); color: var(--claro) !important; filter: none; }
.sp-main .se-pw button:active:not(:disabled) { transform: translateY(-50%); box-shadow: none; }
.sp-main input[aria-invalid="true"] { border-color: var(--error); }
.card:target { border-color: var(--oro); box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.25), 0 10px 26px rgba(10, 4, 0, 0.25); }
.sp-main .hint a { color: #9fd8f7; }
