:root {
  --bg: #000000;
  --bg-soft: #0a0a0c;
  --card: #08080a;
  --card-2: #0e0e12;
  --line: #27272a;
  --line-soft: #1a1a1e;
  --text: #fafafa;
  --muted: #a1a1aa;
  --primary: #e30b5d;
  --primary-hi: #ff2e7e;
  --primary-soft: rgba(227,11,93,.14);
  --green: #34d399;
  --green-soft: rgba(52,211,153,.14);
  --orange: #fbbf24;
  --orange-soft: rgba(251,191,36,.14);
  --red: #f87171;
  --red-soft: rgba(248,113,113,.13);
  --radius: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body {
  background:
    radial-gradient(720px 340px at 50% -140px, rgba(227,11,93,.10), transparent 70%),
    radial-gradient(520px 300px at 100% 0%, rgba(227,11,93,.04), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
.wrap { max-width: 520px; margin: 0 auto; padding: 14px; padding-bottom: 60px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 0 rgba(255,255,255,.02) inset, 0 12px 32px rgba(0,0,0,.45); }
h1 { font-size: 21px; margin: 0 0 6px; text-align: center; letter-spacing: .2px; }
h3 { font-size: 15px; margin: 0 0 10px; }
p { margin: 6px 0; }

.btn { display: inline-block; padding: 11px 16px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card-2); color: var(--text); font-size: 14px;
  cursor: pointer; text-align: center; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: #151519; border-color: #333338; }
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.btn.primary:hover { background: var(--primary-hi); border-color: var(--primary-hi); box-shadow: 0 6px 22px rgba(227,11,93,.35); }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 11px; font-size: 12px; }
.btn.block { display: block; width: 100%; margin-top: 8px; }
.btn.apagado { opacity: 0.45; }
.btn.paypal { background: #ffc439; border-color: #ffc439; color: #1f2937; font-weight: 600; }
.link { background: none; border: none; color: var(--primary-hi); cursor: pointer; font-size: 14px; }

input, select, textarea { width: 100%; padding: 11px 12px; margin: 5px 0; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; background: var(--bg-soft); color: var(--text);
  transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #6b6b74; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(227,11,93,.15); }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
select option { background: var(--card-2); color: var(--text); }
textarea { min-height: 70px; resize: vertical; }
input[type=file] { padding: 8px; }
input[type=file]::file-selector-button { background: var(--card-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; margin-right: 10px; cursor: pointer; }
.chk { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 6px; font-size: 13px; cursor: pointer; }
.chk input[type=checkbox], .chk input[type=radio] { width: 18px; height: 18px; margin: 1px 0 0; padding: 0; flex: 0 0 auto; accent-color: var(--primary); }
.chk em { font-style: normal; }
.trim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.trim-grid label { display: flex; flex-direction: column; gap: 3px; color: var(--muted); }
.trim-grid input { margin: 0; padding: 8px 10px; }
.sel-cover { display: block; width: 100%; max-width: 220px; border-radius: 12px; margin: 10px auto 8px;
  border: 1px solid var(--line); }
#sel-audio { width: 100%; margin-top: 4px; }
.wave { display: block; width: 100%; height: 90px; border-radius: 8px; margin: 8px 0 4px; background: #0d0d11; border: 1px solid var(--line-soft); touch-action: none; cursor: ew-resize; }
.wave-player { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; }
.wave-player .play-btn { width: 40px; height: 40px; }
.wave-prog { flex: 1; height: 8px; background: #1a1a1f; border-radius: 4px; overflow: hidden; }
#up-prog-fill { height: 100%; width: 0; background: var(--primary); }
/* editor: la barra de abajo también se puede arrastrar para escuchar el tramo */
.wave-player .wave-prog { height: 12px; cursor: pointer; touch-action: none; }
#rt-prog-fill { height: 100%; width: 0; background: var(--primary); border-radius: 4px; }
#rt-tiempo { min-width: 96px; text-align: right; font-variant-numeric: tabular-nums; }
#up-tiempo { min-width: 82px; text-align: right; font-variant-numeric: tabular-nums; }
#up-preview { display: none; }
#ads-list audio { display: none; }
.ad-item .btn.small { min-width: 40px; font-size: 14px; }
.play-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 50%; border: none; background: var(--primary); color: #fff; padding: 0; cursor: pointer; flex: 0 0 auto;
  box-shadow: 0 4px 16px rgba(227,11,93,.35); }
.play-btn:active { transform: scale(0.94); }
.play-btn svg { display: block; }
.cover-box { position: relative; width: 280px; height: 280px; max-width: 100%; margin: 8px auto 6px;
  border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #000;
  touch-action: none; cursor: grab; user-select: none; }
.cover-box canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.cover-grid { position: absolute; inset: 0; pointer-events: none; }
.cover-grid i { position: absolute; background: rgba(255,255,255,0.16); }
.cover-grid i:nth-child(1) { left: 33.33%; top: 0; bottom: 0; width: 1px; }
.cover-grid i:nth-child(2) { left: 66.66%; top: 0; bottom: 0; width: 1px; }
.cover-grid i:nth-child(3) { top: 33.33%; left: 0; right: 0; height: 1px; }
.cover-grid i:nth-child(4) { top: 66.66%; left: 0; right: 0; height: 1px; }
.cover-ctrl { display: flex; gap: 6px; justify-content: center; margin: 8px 0; flex-wrap: wrap; }
.cover-ctrl button { min-width: 42px; padding: 9px 8px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card-2); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.cover-ctrl button:active { transform: scale(0.95); }
.cover-ctrl button.auto { background: var(--primary-soft); color: var(--primary-hi); border-color: var(--primary); }
#upload-overlay { position: fixed; inset: 0; z-index: 400; display: flex; align-items: flex-start;
  justify-content: center; padding-top: calc(18px + env(safe-area-inset-top, 0px));
  background: transparent; pointer-events: none; }
#upload-overlay .up-box { pointer-events: auto; }
#upload-overlay.hidden { display: none; }
.up-box { background: var(--card-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px 20px; text-align: center; min-width: 190px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6); }
.up-arrow { width: 36px; height: 36px; margin: 0 auto 8px; color: var(--primary);
  animation: subir 1.05s ease-in-out infinite; }
.up-arrow svg { display: block; width: 100%; height: 100%; }
@keyframes subir {
  0%   { transform: translateY(10px);  opacity: 0.12; }
  45%  { transform: translateY(-7px);  opacity: 1; }
  100% { transform: translateY(-17px); opacity: 0; }
}
.up-txt { font-size: 14px; font-weight: 700; margin: 0; }
.up-bar { position: relative; width: 100%; height: 6px; background: #1a1a1f; border-radius: 3px;
  overflow: hidden; margin-top: 12px; }
.up-bar i { position: absolute; top: 0; left: 0; display: block; height: 100%; width: 42%;
  background: var(--primary); border-radius: 3px; animation: correr 1.05s linear infinite; }
@keyframes correr { 0% { left: -42%; } 100% { left: 100%; } }
#sel-play { display: flex; align-items: center; justify-content: center; gap: 8px; }
#sel-play svg { display: block; }

.topbar { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; text-align: left; }
.brand-wrap { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-logo { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; flex: 0 0 auto;
  box-shadow: 0 0 0 1px var(--line), 0 4px 16px rgba(227,11,93,.25); }
.brand { font-weight: 900; font-size: 15px; letter-spacing: 2.5px; line-height: 1.15; white-space: nowrap; }
.brand .muted { font-weight: 600; font-size: 11px; letter-spacing: 1.5px; }
.live-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px;
  font-size: 9px; font-weight: 800; letter-spacing: 1.4px; color: var(--green);
  background: var(--green-soft); border: 1px solid rgba(52,211,153,.3); padding: 2px 8px; border-radius: 7px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 9px; }
.eq i { width: 2.5px; background: var(--green); border-radius: 1px; animation: eqbar 1s ease-in-out infinite; }
.eq i:nth-child(1) { animation-delay: 0s; height: 40%; }
.eq i:nth-child(2) { animation-delay: .18s; height: 90%; }
.eq i:nth-child(3) { animation-delay: .36s; height: 60%; }
.eq i:nth-child(4) { animation-delay: .5s; height: 100%; }
@keyframes eqbar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.topbar #btn-logout { position: static; flex: 0 0 auto; }
#user-line { margin-top: 2px; }

/* ---------- login con marca ---------- */
.login-card { padding-top: 26px; }
.login-logo { display: block; width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 12px;
  object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 8px 30px rgba(227,11,93,.3); }
.login-card h1 { font-size: 24px; font-weight: 900; letter-spacing: 4px; margin: 0 0 4px; }
.login-sub { width: fit-content; max-width: 100%; margin: 0 auto 4px; padding: 7px 18px; border-radius: 999px;
  white-space: nowrap; font-weight: 900; font-size: min(18px, 4.8vw); line-height: 1.25; letter-spacing: .4px;
  text-align: center; color: #fff; background: rgba(227,11,93,.2); border: 1px solid rgba(227,11,93,.5); }
.login-desc { color: var(--muted); font-size: 14px; line-height: 1.35; margin: 6px 0 16px; text-align: center; }

.credits-bar { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.credit-box { flex: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); text-align: center; padding: 10px 6px; }
.credit-num { display: block; font-size: 20px; font-weight: 700; }
.credit-label { font-size: 11px; color: var(--muted); }
#btn-more-credits { flex: 0 0 auto; align-self: stretch; }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab { flex: 1; padding: 10px; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; cursor: pointer; font-size: 13px; color: var(--muted);
  transition: background .15s, color .15s, border-color .15s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }

.region-pick { display: flex; gap: 8px; margin-bottom: 12px; }
.region-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 10px; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; cursor: pointer; font-size: 13px; color: var(--text);
  transition: background .15s, border-color .15s; }
.flag { flex: 0 0 auto; border-radius: 1px; }
.region-btn .flag[viewBox="0 0 30 20"] { box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.region-btn.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-hi); font-weight: 600; }

.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; }
.dot.free { background: var(--card-2); border: 1px solid var(--line); }
.dot.own { background: var(--green); }
.dot.other { background: var(--orange); }
.dot.outbid { background: var(--muted); }
.dot.closed { background: #3f3f46; }

.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-title { font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; position: relative; background: var(--card-2);
  transition: border-color .15s, background .15s; }
.cal-day:hover { border-color: #3f3f46; }
.cal-wd { font-size: 9px; color: var(--muted); text-transform: uppercase; line-height: 1; }
.cal-num { font-size: 15px; font-weight: 700; line-height: 1.1; }
.cal-day.today { border-color: var(--primary); }
.cal-day.selected { outline: 2px solid var(--primary); background: var(--primary-soft); }
.cal-day.past { opacity: .5; }
.cal-mini { display: flex; gap: 2px; margin-top: 3px; }
.cal-mini i { width: 5px; height: 5px; border-radius: 2px; }

.day-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; }
.est-badge { font-size: 12px; color: var(--primary-hi); }
.slot-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot { padding: 8px 4px; border-radius: 8px; text-align: center; font-size: 12px;
  cursor: pointer; border: 1px solid var(--line); background: var(--card-2);
  transition: border-color .15s, background .15s; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: #3f3f46; }
.slot .bid { font-weight: 700; font-size: 11px; color: var(--muted); }
.slot .oy { font-size: 10px; color: var(--muted); opacity: .85; }
.slot.free { background: var(--card-2); }
.slot.own { background: var(--green-soft); border-color: rgba(52,211,153,.55); }
.slot.own .bid { color: var(--green); }
.slot.other { background: var(--orange-soft); border-color: rgba(251,191,36,.5); }
.slot.other .bid { color: var(--orange); }
.slot.outbid { background: var(--card-2); border-color: #3f3f46; }
.slot.outbid .bid { color: var(--muted); }
.slot.closed, .slot.won { background: #131317; color: var(--muted); cursor: default; }
.slot.selected { outline: 2px solid var(--primary); background: var(--primary-soft); border-color: var(--primary); }
.slot.selected .bid { color: var(--primary-hi); }

.row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.row input { margin: 0; flex: 1; }
/* fila de «Mejorar con IA» / «Revertir»: los dos botones iguales y a la misma altura */
.row.ia-row { margin-top: 6px; }
.row.ia-row .btn { flex: 1 1 0; margin: 0; width: auto; text-align: center; }

.bidtype { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--bg-soft); }
.bidtype p { margin: 4px 0 8px; }

.ads-list .ad-item { display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line-soft); padding: 9px 0; font-size: 13px; gap: 10px; }
.ads-list .ad-item > div:first-child { flex: 1; min-width: 0; }
.ad-item .tag { font-size: 10px; padding: 2px 7px; border-radius: 20px; background: var(--primary-soft); color: var(--primary-hi); }
.ad-item .tag.ok { background: var(--green-soft); color: var(--green); }
.ad-item .tag.bad { background: var(--red-soft); color: var(--red); }
/* fila de botones: todo con la misma altura Y el mismo ancho, para que no se
   muevan al pasar de «Usar» a «En uso» */
.ad-item .row { margin-top: 0; gap: 4px; justify-content: flex-end; flex-wrap: nowrap; }
.ad-item .row > * { box-sizing: border-box; }
.ad-item .play-btn { width: 34px; height: 34px; flex: 0 0 34px; box-shadow: none; }
.ad-item .btn.small { font-size: 11px; height: 34px; padding: 0 6px; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ad-item .btn.small.retocar { width: 66px; }
.ad-item .btn.small.descargar { width: 34px; padding: 0; color: var(--primary-hi); }
.ad-item .btn.small.descargar svg { display: block; margin: auto; }
.ad-item .btn.small.usar { width: 62px; }
.ad-item .btn.small.borrar { width: 34px; padding: 0; }
.ad-item .tag.enuso { display: inline-flex; align-items: center; justify-content: center;
  height: 34px; width: 62px; font-size: 10px; border-radius: 8px;
  background: var(--green-soft); color: var(--green); white-space: nowrap; flex: 0 0 62px;
  border: 0; padding: 0; cursor: pointer; font-family: inherit; }

.tx-list div { border-bottom: 1px solid var(--line-soft); padding: 8px 0; font-size: 13px; }
.tx-list .neg { color: var(--red); }
.tx-list .pos { color: var(--green); }

.auto-cfg { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-top: 8px; font-size: 13px; background: var(--bg-soft); }
.auto-cfg button { margin-top: 6px; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.66); display: flex;
  align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6); }
.modal-box h3 { margin-bottom: 10px; }
.modal-box .btn { margin-top: 8px; }

.toast { position: fixed; top: calc(18px + env(safe-area-inset-top, 0px));
  left: 0; right: 0; margin: 0 auto; width: fit-content; max-width: 92vw;
  background: var(--card-2); border: 1px solid var(--line); color: var(--text); padding: 14px 22px 12px; border-radius: 18px;
  font-size: 14px; z-index: 9999; text-align: center; pointer-events: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6); min-width: 190px; }
/* mismo estilo que el cartel de «Subiendo…»: icono animado, texto y barra */
.toast-icon { width: 28px; height: 28px; margin: 0 auto 6px; color: var(--primary);
  animation: subir 1.05s ease-in-out infinite; }
.toast-icon svg { display: block; width: 100%; height: 100%; }
.toast-txt { margin: 0; font-size: 14px; font-weight: 700; }
.toast-bar { position: relative; width: 100%; height: 6px; background: #1a1a1f;
  border-radius: 3px; overflow: hidden; margin-top: 10px; }
.toast-bar i { position: absolute; top: 0; left: 0; display: block; height: 100%; width: 42%;
  background: var(--primary); border-radius: 3px; animation: correr 1.05s linear infinite; }

.or { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0; }

/* reproductor minimizado mientras se edita la portada */
#selected-preview.minimizado #sel-play,
#selected-preview.minimizado audio { display: none; }
#selected-preview.minimizado { padding-bottom: 6px; }

/* ---------- Resultados ---------- */
.res-selects { display: flex; gap: 10px; margin: 4px 0 12px; flex-wrap: wrap; }
.res-selects label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; color: var(--muted); }
.res-selects select { min-width: 130px; }
.res-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.res-card { background: var(--primary-soft); border: 1px solid rgba(227,11,93,.25); border-radius: 14px; padding: 10px 12px; text-align: center;
  display: flex; flex-direction: column; gap: 2px; }
.res-k { font-size: 11px; font-weight: 700; color: var(--primary-hi); text-transform: uppercase; letter-spacing: .3px; }
.res-v { font-size: 18px; font-weight: 800; }
.res-x { font-size: 10px; color: var(--muted); }
.res-tabla { display: flex; flex-direction: column; }
.res-row { display: grid; grid-template-columns: 1.5fr 1.1fr .8fr .8fr 110px; gap: 8px;
  align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.res-row.res-head { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase;
  border-bottom: 2px solid var(--line); }
.res-row.res-pend { opacity: .62; }
.res-row .btn.small { width: 100%; }
.res-total, .res-informe { display: flex; flex-direction: column; }
.res-total-fila { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.res-total-fila span { color: var(--muted); }
.res-bloque { margin-bottom: 14px; }
.res-bloque h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .3px;
  color: var(--primary-hi); }
#res-modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center;
  justify-content: center; background: rgba(0, 0, 0, 0.7); padding: 16px; }
#res-modal.hidden { display: none; }
.res-modal-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px 16px; width: 100%;
  max-width: 520px; max-height: 86vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6); }
.res-modal-box h3 { margin: 0 0 12px; font-size: 15px; }
@media (max-width: 560px) {
  .res-cards { grid-template-columns: repeat(2, 1fr); }
  .res-row { grid-template-columns: 1.4fr .9fr .6fr .7fr 92px; font-size: 12px; }
  .res-row.res-head { font-size: 10px; }
}

/* informe entregado automáticamente al terminar la emisión */
.res-nuevos { background: var(--green-soft); color: var(--green); border: 1px solid rgba(52,211,153,.3); border-radius: 14px; padding: 10px 14px;
  font-size: 13px; display: flex; align-items: center; gap: 10px; justify-content: space-between;
  margin-bottom: 12px; }
.res-nuevos.hidden { display: none; }
.btn.small.ok { background: var(--green-soft); color: var(--green); border-color: rgba(52,211,153,.35); }

.res-total-fila.res-cab { font-size: 11px; text-transform: uppercase; letter-spacing: .3px;
  color: var(--primary-hi); font-weight: 800; border-bottom: 2px solid var(--line); }

/* selector de anuncio para una puja */
.ad-pick-label { display: block; margin: 10px 0 4px; font-weight: 700; color: var(--muted); }
.ad-pick-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.ad-pick-row select { flex: 1 1 auto; min-width: 0; }
.ad-pick-row .play-btn { flex: 0 0 auto; }
.ad-pick { margin: 6px 0 2px; }

/* lema de cabecera, centrado */
.lema { margin: 10px auto 2px; text-align: center; font-size: 13px; font-weight: 600;
  color: var(--muted); padding: 0 16px; }

/* quitar mi puja desde el propio tramo */
.slot { position: relative; }
.slot-quitar { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 50%; border: 0; background: var(--red); color: #000;
  font-size: 11px; line-height: 1; cursor: pointer; display: flex; align-items: center;
  justify-content: center; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.slot-quitar:hover { filter: brightness(1.1); }

/* ---- ayuda de las pujas automaticas (desplegable suave) ---- */
.ayuda { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft); }
.ayuda summary { cursor: pointer; padding: 11px 14px; font-size: 13px; font-weight: 600;
  color: var(--primary-hi); list-style: none; }
.ayuda summary::-webkit-details-marker { display: none; }
.ayuda summary::before { content: "＋"; display: inline-block; width: 18px;
  color: var(--primary-hi); }
.ayuda[open] summary::before { content: "－"; }
.ayuda-body { padding: 2px 14px 12px; font-size: 13px; color: var(--text); }
.ayuda-titulo { margin: 10px 0 2px; font-weight: 600; font-size: 13px;
  color: var(--text); }
.ayuda-body ol, .ayuda-body ul { margin: 4px 0 8px; padding-left: 20px; }
.ayuda-body li { margin: 3px 0; line-height: 1.45; color: var(--muted); }
.ayuda-body li b { color: var(--text); }

/* ---- pie de pagina ---- */
.pie { max-width: 520px; margin: 4px auto 26px; padding: 0 14px; }
.pie .ayuda { background: var(--card); }
.pie-nota { text-align: center; margin-top: 12px; }

/* enlaces sueltos del acceso (olvidé la contraseña, volver) */
.link.block-link { display: block; width: 100%; text-align: center; margin-top: 10px;
  padding: 6px 0; font-size: 13px; }

/* ---- cierre de pujas: banda con cuenta atras ---- */
.cierre-banda { display: flex; align-items: center; gap: 8px;
  background: var(--primary-soft); color: var(--primary-hi);
  border: 1px solid rgba(227,11,93,.3); border-radius: 10px; padding: 8px 12px;
  font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.cierre-banda.urgente { background: var(--orange-soft); border-color: rgba(251,191,36,.4); color: var(--orange); }
.cierre-banda.cerrado { background: #131317; border-color: var(--line);
  color: var(--muted); font-weight: 500; }
.cierre-reloj { font-size: 15px; }

/* ---- detalle pro: scrollbar y audio nativo en oscuro ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }
audio { color-scheme: dark; }
input, select, textarea, button { color-scheme: dark; }

/* ---------- Modo fácil sin registro ---------- */
#btn-facil { font-weight: 800; letter-spacing: .3px; margin-top: 6px; }
.facil-card { border-color: rgba(227,11,93,.4); }
.facil-head { font-weight: 900; font-size: 18px; letter-spacing: 1.5px; text-align: center;
  text-transform: uppercase; margin-bottom: 8px;
  background: linear-gradient(120deg,#e30b5d,#ff2e7e);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.facil-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; margin: 8px 0; cursor: pointer; background: var(--bg-soft);
  transition: border-color .15s, background .15s; }
.facil-opt:hover { border-color: #3f3f46; }
.facil-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.facil-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: 0 0 auto; }
.facil-cred-info, .facil-pago-info { background: var(--primary-soft); border: 1px solid rgba(227,11,93,.28);
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }
.facil-audio { width: 100%; margin-top: 8px; }
.facil-res-fila { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.facil-res-fila span { color: var(--muted); }
.facil-res-fila b { text-align: right; }

/* CTA «créalo con nosotros» en el paso 1 del modo fácil */
.facil-crear-cta { margin-top: 14px; padding: 14px; border: 1px dashed rgba(227,11,93,.45);
  border-radius: 12px; text-align: center; display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-soft); font-size: 13px; }
.facil-crear-cta b { color: var(--primary-hi); }
.facil-crear-cta .btn { margin-top: 4px; }

/* tíquet del modo fácil: se lee como un resguardo de compra */
.facil-ticket { margin: 10px 0 14px; padding: 14px 16px; border: 1px dashed rgba(255,255,255,.28);
  border-radius: 12px; background: var(--card-2); font-variant-numeric: tabular-nums; }
.facil-ticket .tk-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin-bottom: 10px; }
.facil-ticket .tk-marca { font-weight: 900; letter-spacing: 2px; }
.facil-ticket .tk-num { font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--muted); }
.facil-ticket .tk-fila { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0;
  font-size: 13px; border-bottom: 1px dotted rgba(255,255,255,.10); }
.facil-ticket .tk-fila span { color: var(--muted); }
.facil-ticket .tk-fila b { text-align: right; }
.facil-ticket .tk-total { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--line); font-weight: 800; }
.facil-ticket .tk-pie { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.45; }
