/* ===================================================================
   And The Winner Is — tema claro (blanco · amarillo · negro)
   Layout tipo asistente: una pantalla por paso.
   =================================================================== */
:root {
  --bg: #faf9f6;
  --bg-2: #ffffff;
  --ink: #14130f;          /* negro cálido */
  --ink-soft: #3c3a33;
  --muted: #7c7a72;
  --line: #e8e5dc;
  --line-2: #d9d5c8;
  --card: #ffffff;
  --card-soft: #fbfaf4;
  --yellow: #ffcb05;
  --yellow-2: #ffb300;
  --yellow-ink: #1d1700;   /* texto sobre amarillo */
  --yellow-tint: #fff6d6;
  --yellow-tint-2: #fffae9;
  --ok: #1f9d57;
  --shadow-sm: 0 2px 8px rgba(20,19,15,.06);
  --shadow: 0 14px 40px rgba(20,19,15,.10);
  --shadow-lg: 0 24px 70px rgba(20,19,15,.16);
  --r: 18px;
  --r-sm: 12px;
  --maxw: 880px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-name { font-family: "Sora", system-ui, sans-serif; letter-spacing: -.01em; }

/* fondo decorativo */
.bg-blobs { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg-blobs span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
}
.bg-blobs span:nth-child(1) { width: 480px; height: 480px; background: #ffe27a; top: -160px; right: -120px; }
.bg-blobs span:nth-child(2) { width: 420px; height: 420px; background: #fff2bf; bottom: -180px; left: -140px; opacity: .7; }
.bg-blobs span:nth-child(3) { width: 300px; height: 300px; background: #ffd84d; top: 42%; left: 58%; opacity: .22; }

.app { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2rem) 3rem; }

/* ───────────────────────── topbar ───────────────────────── */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .4rem 0 1.2rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.logo {
  font-size: 1.6rem; width: 2.7rem; height: 2.7rem; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
  border-radius: 14px; box-shadow: var(--shadow-sm);
}
.brand-name { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.brand-sub { display: block; font-size: .76rem; color: var(--muted); }
.auth-box { display: flex; align-items: center; gap: .6rem; }
.pill { font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: .25rem .6rem; border-radius: 999px; }
.pill-demo { background: var(--yellow-tint); color: #8a6d00; border: 1px solid var(--yellow); }

/* ───────────────────────── stepper ───────────────────────── */
.stepper { margin: 0 0 1.6rem; }
.stepper ol { list-style: none; display: flex; padding: 0; margin: 0; gap: 0; }
.stepper li {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem;
  position: relative; font-size: .76rem; color: var(--muted); font-weight: 600;
  cursor: default;
}
.stepper li::before, .stepper li::after {
  content: ""; position: absolute; top: 15px; height: 3px; background: var(--line-2); z-index: 0;
}
.stepper li::before { left: 0; right: 50%; }
.stepper li::after  { left: 50%; right: 0; }
.stepper li:first-child::before { display: none; }
.stepper li:last-child::after { display: none; }
.stepper .dot {
  position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
  background: #fff; border: 3px solid var(--line-2); color: var(--muted);
  transition: .2s;
}
.stepper li.is-done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper li.is-done::before, .stepper li.is-done::after { background: var(--ink); }
.stepper li.is-current .dot { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); box-shadow: 0 0 0 6px var(--yellow-tint); }
.stepper li.is-current::before { background: var(--ink); }
.stepper li.is-current .lbl, .stepper li.is-done .lbl { color: var(--ink); }
.stepper li.is-clickable { cursor: pointer; }
.stepper li.is-clickable:hover .dot { transform: translateY(-1px); }

/* ───────────────────────── pantallas ───────────────────────── */
.screens { position: relative; }
.screen { display: none; animation: screenIn .35s cubic-bezier(.2,.7,.3,1) both; }
.screen.active { display: block; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.6rem);
}
.card-soft { background: var(--card-soft); border: 1px solid var(--line); border-radius: var(--r-sm); }
.screen-inner { display: flex; flex-direction: column; gap: 1.3rem; }
.screen-head h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0 0 .3rem; }
.screen-head p { margin: 0; }

/* ───────────────────────── hero (paso 1) ───────────────────────── */
.hero { align-items: center; text-align: center; gap: 1.1rem; }
.hero-emoji { font-size: 3rem; line-height: 1; filter: drop-shadow(0 8px 16px rgba(255,179,0,.35)); }
.hero h1 { font-size: clamp(1.7rem, 5.2vw, 2.6rem); margin: 0; line-height: 1.15; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--yellow-2), var(--yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.hero .lead { max-width: 56ch; color: var(--ink-soft); font-size: 1.02rem; }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }

.demo-toggle {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  padding: 1rem 1.1rem; width: min(100%, 540px); text-align: left;
}
.demo-toggle p { margin: .2rem 0 0; }

/* switch */
.switch { position: relative; display: inline-block; width: 50px; height: 28px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0; background: var(--line-2); border-radius: 999px; transition: .2s;
}
.switch .slider::before {
  content: ""; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm);
}
.switch input:checked + .slider { background: var(--yellow); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 4px var(--yellow-tint); }

/* ───────────────────────── campos / botones ───────────────────────── */
.field { display: flex; flex-direction: column; gap: .4rem; }
label { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
input[type="url"], input[type="number"], input[type="email"], input[type="password"], textarea {
  background: #fff; border: 1.5px solid var(--line-2); color: var(--ink);
  border-radius: var(--r-sm); padding: .7rem .9rem; font: inherit; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--yellow-2); box-shadow: 0 0 0 4px var(--yellow-tint); }
input[type="number"] { width: 5rem; }
textarea { resize: vertical; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; }
.row > input { flex: 1 1 240px; }

.btn {
  appearance: none; border: 1.5px solid transparent; border-radius: 999px;
  padding: .62rem 1.25rem; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .07s, box-shadow .15s, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--yellow), var(--yellow-2)); color: var(--yellow-ink); box-shadow: 0 8px 22px rgba(255,179,0,.32); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.04); box-shadow: 0 10px 28px rgba(255,179,0,.4); }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn-sm { padding: .35rem .8rem; font-size: .8rem; }
.btn-lg { padding: .8rem 1.7rem; font-size: 1.02rem; }
.btn-xl { padding: 1rem 2.2rem; font-size: 1.15rem; box-shadow: 0 12px 34px rgba(255,179,0,.42); }

.muted { color: var(--muted); }
.small { font-size: .82rem; }
.hint {
  font-size: .85rem; background: var(--yellow-tint-2); border: 1px solid var(--yellow);
  color: #6e5800; padding: .6rem .8rem; border-radius: var(--r-sm);
}
.hint.err { background: #fff4f2; border-color: #f3b8ac; color: #8a2e1c; }

/* navegación entre pantallas */
.screen-nav { display: flex; justify-content: space-between; gap: .8rem; padding-top: .3rem; border-top: 1px solid var(--line); margin-top: .3rem; }

/* ───────────────────────── media card ───────────────────────── */
.media-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--card-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1rem 1.1rem;
  transition: opacity .2s;
}
.media-card.is-loading { opacity: .5; pointer-events: none; }
.mc-thumb, .mg-thumb {
  position: relative; overflow: hidden; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--yellow-tint), #ffe27a);
  display: grid; place-items: center;
}
.mc-thumb { width: 132px; aspect-ratio: 1; }
.mc-thumb img, .mg-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.mc-thumb .ph, .mg-thumb .ph { font-size: 2rem; opacity: .75; }
.mc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .45rem; }
.mc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.pill-type { background: var(--ink); color: #fff; }
.pill-ok { background: #e7f6ed; color: #16713f; border: 1px solid #bfe6cd; }
.pill-muted { background: #f1efe8; color: var(--muted); border: 1px solid var(--line); }
.mc-caption { margin: 0; font-size: .92rem; white-space: pre-line; overflow-wrap: anywhere; }
.mc-caption.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; font-weight: 600; color: #b07d00; cursor: pointer; align-self: flex-start; }
.mc-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; }
.mc-foot a { color: #b07d00; font-weight: 600; }
.media-card .mc-stats { display: flex; gap: 1rem; font-size: .9rem; color: var(--ink-soft); font-weight: 600; }

/* publicaciones recientes */
.recent-box { display: flex; flex-direction: column; gap: .7rem; }
.recent-head { display: flex; justify-content: space-between; align-items: center; }
.recent-head h3, .rp-head h3 { margin: 0; font-size: 1rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.mg-item {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; font: inherit; color: inherit;
  transition: border-color .15s, transform .1s, box-shadow .15s;
}
.mg-item:hover { border-color: var(--yellow-2); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.mg-item:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--yellow-tint); border-color: var(--yellow-2); }
.mg-item.is-selected { border-color: var(--yellow-2); box-shadow: 0 0 0 3px var(--yellow); }
.mg-item.is-selected::after {
  content: "✓"; position: absolute; top: .4rem; right: .4rem; z-index: 2; width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); font-weight: 800;
}
.mg-thumb { width: 100%; aspect-ratio: 1; border-radius: 0; }
.mg-flag {
  position: absolute; top: .4rem; left: .4rem; z-index: 2; font-size: .68rem; font-weight: 700;
  background: rgba(20,19,15,.82); color: #fff; padding: .15rem .45rem; border-radius: 999px;
}
.mg-info { display: flex; flex-direction: column; gap: .2rem; padding: .5rem .6rem .6rem; }
.mg-cap { font-size: .78rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-stats { font-size: .7rem; color: var(--muted); }
.mg-item.is-skel { cursor: default; pointer-events: none; }
.mg-item.is-skel .mg-thumb { background: linear-gradient(90deg, #f1efe8, #faf8f2, #f1efe8); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* panel de reglas detectadas */
.rules-panel { border: 1.5px dashed var(--yellow-2); border-radius: var(--r-sm); padding: 1rem 1.1rem; background: var(--yellow-tint-2); display: flex; flex-direction: column; gap: .6rem; }
.rp-head { display: flex; align-items: center; gap: .6rem; }
.rules-panel > p { margin: 0; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; }
.rp-item {
  display: flex; flex-direction: column; gap: .35rem; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: .6rem .7rem; font-weight: 600; cursor: pointer;
}
.rp-item.is-detected { border-color: #bfe6cd; }
.rp-check { flex-direction: row; flex-wrap: wrap; align-items: center; }
.rp-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--yellow-2); }
.rp-check .rp-ev { flex-basis: 100%; }
.rp-item input[type="datetime-local"] {
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 8px; padding: .4rem .5rem; font: inherit; font-size: .85rem; width: 100%;
}
.rp-ev { font-weight: 400; font-size: .72rem; color: var(--ok); overflow-wrap: anywhere; }
.rp-ev:empty { display: none; }
.rules-panel .hint { margin: 0; }
.rules-panel .hint a { color: #8a6d00; font-weight: 700; }

/* ───────────────────────── condiciones ───────────────────────── */
.det-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ok); vertical-align: middle; }
.presets { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.chip {
  appearance: none; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--yellow-2); background: var(--yellow-tint-2); }
.rules-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .9rem; }
.rule-group {
  margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card-soft);
  padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .55rem;
}
.rule-group legend { font-family: "Sora", sans-serif; font-weight: 700; font-size: .95rem; padding: 0 .35rem; }
.rule-group.is-detected, .opt.is-detected { box-shadow: inset 3px 0 0 var(--ok); }
.rule-group p { margin: 0; }
.opt { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; font-weight: 500; color: var(--ink); cursor: pointer; padding-left: .2rem; }
.opt > input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--yellow-2); flex: 0 0 auto; }
.opt > span { flex: 1; min-width: 0; }
.opt .ev { flex-basis: 100%; padding-left: 1.6rem; }
.opt.is-locked { opacity: .7; cursor: default; }
.inline { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .9rem; }
.stack { display: flex; flex-direction: column; gap: .3rem; font-weight: 500; color: var(--ink); }
.sub { display: flex; flex-direction: column; gap: .5rem; padding: .6rem .7rem; border-left: 3px solid var(--yellow); background: #fff; border-radius: 0 8px 8px 0; }
.rules-form select, .rules-form input[type="text"], .rules-form input[type="datetime-local"] {
  background: #fff; border: 1.5px solid var(--line-2); color: var(--ink); border-radius: 10px;
  padding: .5rem .65rem; font: inherit; font-size: .9rem; min-width: 0;
}
.rules-form input[type="text"], .rules-form input[type="datetime-local"] { width: 100%; }
.rules-form textarea { font-size: .9rem; padding: .5rem .65rem; }
.rules-form select:focus, .rules-form input[type="text"]:focus, .rules-form input[type="datetime-local"]:focus {
  outline: none; border-color: var(--yellow-2); box-shadow: 0 0 0 4px var(--yellow-tint);
}
.rules-form select:disabled { opacity: .5; }
.ev { font-size: .74rem; color: var(--ok); font-weight: 500; overflow-wrap: anywhere; }
.ev:empty { display: none; }
.rules-summary { background: var(--yellow-tint-2); border: 1.5px dashed var(--yellow-2); border-radius: var(--r-sm); padding: .9rem 1.1rem; }
.rules-summary h3 { margin: 0 0 .4rem; font-size: 1rem; }
.rules-summary ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }

/* ───────────────────────── recolección ───────────────────────── */
.collect-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.collect-item {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--card-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .9rem 1rem;
  transition: border-color .2s, background .2s;
}
.collect-item .ci-icon { font-size: 1.4rem; line-height: 1; margin-top: .15rem; }
.collect-item .ci-body { flex: 1; min-width: 0; }
.ci-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .45rem; }
.ci-title { font-weight: 700; }
.ci-count { font-variant-numeric: tabular-nums; font-weight: 800; }
.bar { height: 9px; background: #efece1; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--yellow-2), var(--yellow)); border-radius: 999px; transition: width .3s ease; }
.collect-item.is-running { border-color: var(--yellow); background: var(--yellow-tint-2); }
.collect-item.is-running .ci-status { color: #8a6d00; font-weight: 600; }
.collect-item.is-done { border-color: #bfe6cd; background: #f3fbf6; }
.collect-item.is-done .bar-fill { background: var(--ok); width: 100% !important; }
.collect-item.is-done .ci-status { color: var(--ok); font-weight: 600; }
.collect-item.is-unsupported { border-color: var(--yellow); }
.collect-item.is-unsupported .bar-fill { background: repeating-linear-gradient(45deg, var(--yellow) 0 7px, #efece1 7px 14px); width: 100%; }
.ci-status { font-size: .8rem; margin-top: .35rem; }
.import-box { margin-top: .7rem; display: flex; flex-direction: column; gap: .5rem; }

/* ───────────────────────── stats / listas ───────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; }
.stat { background: var(--card-soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8rem .9rem; }
.stat .s-val { font-family: "Sora", sans-serif; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.stat .s-lab { font-size: .74rem; color: var(--muted); margin-top: .25rem; }
.stat.good { background: var(--yellow-tint-2); border-color: var(--yellow); }
.stat.good .s-val { color: #8a6d00; }
.stat.bad .s-val { color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.1rem; }
.two-col h3 { font-size: .98rem; display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; }
.count-chip { background: var(--yellow); color: var(--yellow-ink); border-radius: 999px; font-size: .75rem; font-weight: 800; padding: .12rem .55rem; }
.list { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.list li { padding: .5rem .75rem; border-bottom: 1px solid var(--line); font-size: .86rem; }
.list li:last-child { border-bottom: none; }
.list li .u { font-weight: 700; }
.list li .c { color: var(--muted); display: block; font-size: .78rem; }
.list-excluded li .r { color: #b06a4a; font-size: .78rem; }

/* ───────────────────────── sorteo / ganador ───────────────────────── */
.draw-card { align-items: stretch; }
.draw-controls { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.draw-controls label { display: flex; align-items: center; color: var(--ink); font-weight: 600; }

.roulette { display: grid; place-items: center; margin-top: .4rem; }
.roulette-window {
  font-family: "Sora", sans-serif; font-size: clamp(1.5rem, 5.5vw, 2.6rem); font-weight: 800;
  padding: 1.1rem 2rem; border-radius: var(--r); min-width: min(100%, 420px); text-align: center;
  background: #fff; border: 2.5px dashed var(--yellow-2); color: var(--ink);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,179,0,.35);} 50% { box-shadow: 0 0 0 16px rgba(255,179,0,0);} }

.winner-box {
  text-align: center; padding: 2.2rem 1.2rem; border-radius: var(--r);
  background:
    radial-gradient(520px 240px at 50% -10%, var(--yellow-tint) 0%, transparent 70%),
    linear-gradient(180deg, var(--yellow-tint-2), #fff);
  border: 2px solid var(--yellow);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
  animation: winnerIn .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes winnerIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.winner-box .confetti { font-size: 2.6rem; animation: pop .6s ease both; }
@keyframes pop { from { transform: scale(0) rotate(-25deg); } to { transform: scale(1) rotate(0); } }
.winner-label { color: var(--muted); margin: .3rem 0 0; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 700; }
.winner-name {
  font-family: "Sora", sans-serif; font-size: clamp(2rem, 8vw, 3.4rem); font-weight: 800; margin: .15rem 0 1rem;
  color: var(--ink); word-break: break-word;
}
.winner-name::after { content: ""; display: block; width: 64px; height: 5px; background: var(--yellow); border-radius: 999px; margin: .5rem auto 0; }
.winner-comment { color: var(--ink-soft); font-style: italic; margin-top: 1.1rem; }
.alt-box { margin-top: 1.5rem; text-align: left; display: inline-block; }
.alt-list { margin: .3rem 0 0; padding-left: 1.2rem; }
.alt-list a { color: #b07d00; font-weight: 600; }

/* ───────────────────────── confeti ───────────────────────── */
.fx-confetti {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 80; display: none;
}
.fx-confetti.is-active { display: block; }

/* ───────────────────────── toast ───────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .75rem 1.15rem; border-radius: 999px;
  box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500; z-index: 60; max-width: min(92vw, 480px);
  animation: toastIn .25s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translateX(-50%); } }
.toast.ok   { background: #16713f; }
.toast.err  { background: #8a2e1c; }
.toast.warn { background: #7a5c00; }

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
  .media-card { flex-direction: column; }
  .mc-thumb { width: 100%; max-width: 260px; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .stepper .lbl { display: none; }
  .stepper li::before, .stepper li::after { top: 15px; }
  .topbar { align-items: flex-start; }
  .brand-sub { display: none; }
  .screen-nav { flex-direction: column-reverse; }
  .screen-nav .btn { width: 100%; }
}

/* ───────────────────────── acceso privado ───────────────────────── */
[hidden] { display: none !important; }
.login-gate {
  position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center;
  padding: 1.5rem 16px;
}
.login-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 1rem; }
.login-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.login-head h1 { font-size: 1.5rem; margin: .2rem 0 0; }
.login-head p { margin: 0; }
.login-card .btn { width: 100%; }
.auth-box { flex-wrap: wrap; justify-content: flex-end; }
