/* nuevarifa.com — asistente para crear rifas (RF-023). Se apoya en los tokens y componentes de home.css. */

.wz-body { min-height: 100dvh; }
body[data-auth="signed-in"] #wzPanelLink { display: none; }
.wz { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.wz-breadcrumb-wrap { width: 100%; max-width: none; padding-inline: 0; }

.wz-layout {
  width: 100%;
  max-width: none;
  padding-inline: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.9fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
.wz-main {
  min-width: 0;
  background: var(--ui-surface, #ffffff);
  border: 1px solid var(--ui-border, #e2e8f0);
  border-radius: var(--ui-radius-lg, 14px);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--ui-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.05));
}
.wz-guide-aside {
  position: sticky;
  top: calc(var(--ui-topbar-h, 60px) + 16px);
  min-width: 0;
}
.wz-guide-card {
  background: #0f172a;
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.wz-guide-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.wz-guide-card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
  color: #ffffff;
}
.wz-guide-card > p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
}
.wz-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.wz-guide-list li {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.wz-guide-list strong {
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 2px;
}
.wz-guide-list span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #94a3b8;
}

@media (max-width: 959px) {
  .wz-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
  }
  .wz-guide-aside {
    position: static;
  }
}

/* Progreso */
.wz-progress { margin-bottom: clamp(1.35rem, 3.5vw, 2rem); }
.wz-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wz-progress-label { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); margin: 0; }
.wz-progress-label span:first-child { color: var(--text); font-weight: 800; }
.wz-progress-time {
  padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
  font-size: 0.75rem; font-weight: 800; white-space: nowrap;
}
.wz-progress-bar { height: 6px; border-radius: 99px; background: var(--n-200); overflow: hidden; }
.wz-progress-bar span {
  display: block; height: 100%; border-radius: inherit; background: var(--accent);
  transform-origin: left center; transform: scaleX(0.16);
  transition: transform 360ms var(--ease-out);
}
.wz-step-pills {
  margin-top: 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px;
}
.wz-step-pills li {
  display: flex; border-radius: 10px; background: var(--n-50); border: 1px solid var(--line);
  font-size: 0.74rem; color: var(--text-muted); font-weight: 600; transition: all 140ms ease;
}
/* Cada marca es un botón: los pasos ya hechos se abren con ratón o teclado; los demás quedan desactivados. */
.wz-pill-btn {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 4px; margin: 0; border: 0; border-radius: inherit; background: none;
  color: inherit; font: inherit; cursor: default;
}
.wz-pill-btn:not(:disabled) { cursor: pointer; }
.wz-pill-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wz-step-pills li span {
  width: 18px; height: 18px; border-radius: 50%; background: var(--n-200); color: var(--text);
  display: grid; place-items: center; font-size: 0.68rem; font-weight: 800; flex: none;
}
.wz-step-pills li b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-step-pills li.is-done {
  background: var(--accent-soft); border-color: rgba(11, 110, 79, 0.28); color: var(--accent-ink);
}
.wz-step-pills li.is-done span { background: var(--accent); color: #fff; }
.wz-step-pills li.is-current {
  background: var(--n-950); border-color: var(--n-950); color: #fff;
}
.wz-step-pills li.is-current span { background: var(--accent-bright); color: var(--n-950); }
@media (max-width: 520px) {
  .wz-step-pills li b { display: none; }
}

/* Pasos */
.wz-step { animation: wz-in 260ms var(--ease-out); }
@keyframes wz-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wz-title {
  font-size: clamp(1.8rem, 4.6vw, 2.6rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 800;
  max-width: 20ch;
}
.wz-title:focus { outline: none; }
.wz-lead { margin: 0.75rem 0 1.75rem; max-width: 52ch; font-size: 1.05rem; color: var(--text-muted); }
.wz-subtitle { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.wz-help { font-size: 0.9rem; color: var(--text-muted); }
.wz-help a, .wz-lead a { color: var(--accent-ink); font-weight: 700; }

.wz-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.wz-fieldset legend { padding: 0; }
.wz-sub { display: grid; gap: 16px; padding: 18px; border-radius: var(--radius-md); background: var(--n-100); }
.input[aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Chips de cantidad */
.wz-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .wz-chips { grid-template-columns: repeat(4, 1fr); } }
.wz-chip { position: relative; cursor: pointer; }
.wz-chip input, .wz-option input, .wz-theme input, .wz-segmented input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.wz-chip span {
  display: grid; place-items: center; min-height: 52px; padding: 0 8px;
  border: 1px solid var(--line-control); border-radius: var(--radius-sm); background: var(--surface);
  font-weight: 800; font-variant-numeric: tabular-nums;
  transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
}
.wz-chip:hover span { border-color: var(--n-800); }
.wz-chip input:checked + span { background: var(--n-950); border-color: var(--n-950); color: var(--n-0); }
.wz-chip input:focus-visible + span, .wz-option input:focus-visible ~ .wz-option-body,
.wz-theme input:focus-visible ~ span:last-child, .wz-segmented input:focus-visible + span {
  outline: 2px solid var(--ring); outline-offset: 3px;
}

/* Métodos de cobro (RF-026): 2x2 para que quepa «Sin gestión de cobros» */
.wz-chips.wz-chips-2 { grid-template-columns: repeat(2, 1fr); }
.wz-chips-2 .wz-chip span { min-height: 54px; font-size: 0.92rem; text-align: center; }
.wz-chips.wz-chips-3 { grid-template-columns: repeat(3, 1fr); }
.wz-chips-3 .wz-chip span { min-height: 54px; font-size: 0.94rem; }
.wz-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.wz-fieldset legend { margin-bottom: 8px; font-weight: 700; }
.wz-bank { display: grid; gap: 14px; }

/* Ocultar flechas nativas pequeñas de input[type=number] */
.wz input[type="number"]::-webkit-inner-spin-button,
.wz input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.wz input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Botones rápidos táctiles (precio y fechas) */
.wz-price-presets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px;
}
@media (min-width: 560px) {
  .wz-price-presets { grid-template-columns: repeat(7, 1fr); }
}
.wz-date-presets {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px;
}
@media (min-width: 520px) {
  .wz-date-presets { grid-template-columns: repeat(4, 1fr); }
}
.wz-preset-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 10px;
  border: 1px solid var(--line-control); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums;
  transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out, transform 80ms ease-out;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.wz-preset-btn:hover { border-color: var(--n-800); }
.wz-preset-btn:active { transform: scale(0.97); }
.wz-preset-btn[aria-pressed="true"] {
  background: var(--n-950); border-color: var(--n-950); color: var(--n-0);
}

/* Control táctil − / + grande para precio y cantidad */
.wz-stepper {
  display: flex; align-items: stretch; gap: 8px; flex: 1; min-width: 0;
}
.wz-step-btn {
  flex: none; min-width: 54px; min-height: 52px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-control); border-radius: var(--radius-sm);
  background: var(--n-100); color: var(--text); cursor: pointer;
  font-family: inherit; font-size: 1.25rem; font-weight: 800; line-height: 1;
  transition: background-color 120ms ease-out, border-color 120ms ease-out, transform 80ms ease-out;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.wz-step-btn:hover { background: var(--n-200); border-color: var(--n-800); }
.wz-step-btn:active { transform: scale(0.95); background: var(--n-200); }
.wz-step-input {
  flex: 1; min-width: 0; min-height: 52px; text-align: center;
  font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums;
}

/* Precio con moneda */
.wz-money, .wz-phone { display: flex; gap: 8px; align-items: stretch; }
.wz-currency, .wz-dial { flex: none; width: auto; min-height: 52px; padding-right: 12px; font-weight: 700; }
.wz-phone .input:last-child { flex: 1; min-height: 52px; font-variant-numeric: tabular-nums; }

/* Segmentado 00 / 01 */
.wz-segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: var(--radius-sm); background: var(--n-100); }
.wz-segmented label { position: relative; cursor: pointer; }
.wz-segmented span {
  display: grid; place-items: center; min-height: 38px; border-radius: 6px;
  font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-muted);
}
.wz-segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Recaudación y tarifa */
.wz-fee {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius-md); background: var(--accent-soft); border: 1px solid rgba(11, 110, 79, 0.25);
}
.wz-fee-label { font-size: 0.84rem; font-weight: 700; color: var(--accent-ink); }
.wz-fee-value { margin-top: 2px; font-size: clamp(1.35rem, 3.4vw, 1.65rem); font-weight: 800; color: var(--accent-ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Opciones en tarjeta */
.wz-options { display: grid; gap: 10px; }
.wz-option {
  position: relative; display: flex; align-items: flex-start; gap: 14px; cursor: pointer;
  padding: 16px 18px; border: 1px solid var(--line-control); border-radius: var(--radius-md); background: var(--surface);
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}
.wz-option::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  border: 2px solid var(--n-500); background: var(--surface);
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}
.wz-option:hover { border-color: var(--n-800); }
.wz-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wz-option:has(input:checked)::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); background: var(--accent); }
.wz-option-body { display: grid; gap: 2px; flex: 1; }
.wz-option-body strong { font-weight: 800; }
.wz-option-body span { font-size: 0.9rem; color: var(--text-muted); }
.wz-options.is-compact .wz-option { padding: 12px 14px; }
.wz-badge {
  flex: none; align-self: center; padding: 4px 10px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 0.75rem; font-weight: 800;
}
@media (max-width: 420px) { .wz-badge { display: none; } }

/* Temas */
.wz-themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .wz-themes { grid-template-columns: repeat(4, 1fr); } }
.wz-theme {
  position: relative; display: grid; gap: 10px; cursor: pointer;
  padding: 12px; border: 1px solid var(--line-control); border-radius: var(--radius-md); background: var(--surface);
  font-weight: 700; font-size: 0.92rem;
}
.wz-theme:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wz-swatch { height: 56px; border-radius: var(--radius-sm); }
.wz-swatch.is-fatima { background: linear-gradient(135deg, #1e3a8a, #3b82f6 60%, #dbeafe); }
.wz-swatch.is-gold { background: linear-gradient(135deg, #1c1917, #a16207 55%, #fde68a); }
.wz-swatch.is-emerald { background: linear-gradient(135deg, #064e3b, #10b981 60%, #d1fae5); }
.wz-swatch.is-neon { background: linear-gradient(135deg, #0f0a1e, #7c3aed 55%, #22d3ee); }

.wz-more { border-radius: var(--radius-md); background: var(--n-100); }
.wz-more summary {
  display: flex; align-items: center; min-height: 48px; padding: 0 16px; cursor: pointer;
  font-weight: 700; list-style: none;
}
.wz-more summary::-webkit-details-marker { display: none; }
.wz-more summary::after { content: '+'; margin-left: auto; font-size: 1.2rem; color: var(--text-muted); }
.wz-more[open] summary::after { content: '−'; }
.wz-more > :not(summary) { padding: 0 16px 16px; }

/* Revisión */
/* Resumen en bloques (RF-034) */
.wz-summary { display: grid; gap: 14px; margin-bottom: 24px; }
.wz-group { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.wz-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2, rgba(0, 0, 0, 0.03));
}
.wz-group-head h3 { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.wz-facts { padding: 4px 16px; }
.wz-facts > div {
  display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 4px 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.wz-facts > div:last-child { border-bottom: 0; }
.wz-facts dt { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.wz-facts dd { font-weight: 700; overflow-wrap: anywhere; }
.wz-edit {
  min-height: 38px; padding: 0 12px; border: 1px solid var(--line-control); border-radius: 99px;
  background: var(--surface); cursor: pointer;
  color: var(--accent-ink); font-weight: 700; font-size: 0.85rem; text-decoration: none;
  transition: background-color 120ms ease-out, border-color 120ms ease-out;
}
.wz-edit:hover { background: var(--n-100); border-color: var(--n-800); }
@media (max-width: 480px) {
  .wz-facts > div { grid-template-columns: 1fr; }
}

/* Lo que cuesta publicar (RF-034): solo en «Revisar» */
.wz-offer {
  margin-bottom: 20px; padding: 22px 20px; text-align: center;
  border-radius: var(--radius-md); color: var(--text); background: var(--surface); border: 1px solid var(--line);
}
.wz-offer-kicker { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }
.wz-offer-big { margin: 2px 0; font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1; font-weight: 900; letter-spacing: -0.03em; }
.wz-offer-text { font-size: 1.05rem; font-weight: 700; }
.wz-terms { margin-top: 4px; }

/* Navegación */
.wz-error {
  margin-top: 20px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 0.92rem;
}
.wz-nav {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 28px calc(var(--gutter) * -1) 0; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: rgb(250 248 245 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-top: 1px solid var(--line);
}
.wz-nav .btn-primary { min-width: 160px; }
.is-invisible { visibility: hidden; }
@media (min-width: 760px) {
  .wz-nav { position: static; margin: 32px 0 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
}

/* Vista previa */
.wz-preview { max-width: 380px; position: relative; border-top: 4px solid var(--accent); }
.wz-preview[data-theme="fatima"] { border-top-color: #3b82f6; }
.wz-preview[data-theme="gold"] { border-top-color: #a16207; }
.wz-preview[data-theme="emerald"] { border-top-color: #10b981; }
.wz-preview[data-theme="neon"] { border-top-color: #7c3aed; }
.wz-preview-tag {
  margin-bottom: 12px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
}
.wz-preview .board-title { overflow-wrap: anywhere; }
.wz-preview .board-price { flex: none; }
.wz-pv-prize { margin: -6px 0 16px; font-size: 0.92rem; font-weight: 600; color: var(--accent-ink); overflow-wrap: anywhere; }
.wz-pv-grid .cell { font-size: 0.82rem; }
.wz-pv-grid .cell.is-more { border-style: dashed; color: var(--text-muted); }
@media (max-width: 979px) { .wz-aside { order: -1; display: none; } }

/* Activación */
/* Estado arriba, en su propia línea y del ancho de su texto; el título va debajo. El punto lleva su clase: la regla
   anterior, por descendiente «span», alcanzaba también al texto (#wzDraftPillText) y lo encogía a 8 px. */
.wz-draft-pill, .wz-live-pill {
  display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 6px 12px; border-radius: 99px; font-size: 0.82rem; font-weight: 700; line-height: 1.3;
}
.wz-draft-pill { background: var(--n-100); color: var(--n-800); }
.wz-live-pill { background: var(--accent-soft); color: var(--accent-ink); }
.wz-pill-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--n-500); }
.wz-live-pill .wz-pill-dot { background: var(--accent); animation: wz-pulse 1.6s ease-in-out infinite; }
@keyframes wz-pulse { 50% { opacity: 0.35; } }

.wz-paths { display: grid; gap: 14px; }
.wz-path {
  display: grid; gap: 12px; padding: 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.wz-path h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.wz-path.is-main { border: 2px solid var(--n-950); box-shadow: var(--shadow-md); }
/* RF-050: la primera rifa gratis, camino principal cuando le queda. */
.wz-path.is-free { border-color: #0b6e4f; background: #ecfdf5; }
.wz-path.is-free .wz-path-price { color: #064e3b; }
.wz-path-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wz-path-price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wz-path .btn-lg { width: 100%; }
.wz-inline { display: flex; gap: 8px; }
.wz-inline .input { flex: 1; min-width: 0; }
.wz-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.wz-outline { border-color: var(--n-950); }
.wz-path-msg { font-size: 0.9rem; font-weight: 700; }
.wz-path-msg[data-tone="ok"] { color: #065f46; }
.wz-path-msg[data-tone="warn"] { color: var(--accent-ink); }
.wz-pay-soon { font-weight: 700; }
.wz-later { margin-top: 20px; }

/* Volver a un borrador sin sesión */
.wz-resume .form { max-width: 420px; margin-top: 8px; }
.wz-resume .btn-lg { justify-self: start; }

/* Publicada */
.wz-share { display: flex; gap: 8px; flex-wrap: wrap; }
.wz-share .input { flex: 1 1 240px; min-width: 0; font-variant-numeric: tabular-nums; }
.wz-done-welcome { margin-top: 20px; }
.wz-done-actions { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 10px; }

/* RF-031: dirección pública de la rifa en la revisión */
.wz-address { margin-bottom: 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.wz-address-label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.wz-address-url { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 2px; font-weight: 600; overflow-wrap: anywhere; }
.wz-address-url .wz-edit { margin-left: auto; }
.wz-address .field { margin-top: 12px; }
.wz-address .wz-help:empty { display: none; }
.wz-address .wz-help.is-bad { color: #b42318; }
.wz-address .wz-help.is-ok { color: #065f46; }

/* RF-035: imagen de cabecera y encuadres. */
.wz-media { display: grid; gap: var(--space-3, 12px); padding: 0 var(--space-4, 16px) var(--space-4, 16px); }
.wz-media-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-crop { display: grid; gap: 10px; }
.wz-crop-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-crop-tabs button { border: 1px solid var(--n-300, #ccd); border-radius: 999px; background: #fff; padding: 6px 12px; font: inherit; cursor: pointer; }
.wz-crop-tabs button[aria-pressed="true"] { background: var(--accent, #0b6e4f); border-color: var(--accent, #0b6e4f); color: #fff; }
.wz-crop-canvas { width: 100%; max-width: 360px; max-height: 60vh; object-fit: contain; border-radius: var(--radius-md); background: var(--n-200, #e5e7eb); touch-action: none; cursor: grab; justify-self: center; }
.wz-crop-canvas:active { cursor: grabbing; }
.wz-crop-zoom { display: grid; gap: 4px; font-weight: 600; }

/* RF-035 parte 2: vídeo del premio. */
.wz-video-box, .wz-video-recorder { display: grid; gap: 8px; justify-items: start; }
.wz-video { width: 100%; max-width: 360px; max-height: 60vh; border-radius: var(--radius-md); background: #000; }
.wz-video-timer { font-variant-numeric: tabular-nums; font-weight: 600; margin: 0; }

/* Plantillas rápidas en Paso 1 para usuarios primerizos */
.wz-templates { margin-bottom: 18px; padding: 14px; border-radius: var(--radius-md); background: var(--n-100); border: 1px solid var(--n-200); }
.wz-templates-label { font-size: 0.85rem; font-weight: 700; color: var(--n-700); margin: 0 0 10px; }
.wz-templates-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wz-tpl-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--n-300);
  background: var(--n-0); color: var(--n-950); cursor: pointer; text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.wz-tpl-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.wz-tpl-btn.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.wz-tpl-btn strong { font-size: 0.875rem; font-weight: 700; color: var(--n-950); }
.wz-tpl-btn span { font-size: 0.78rem; color: var(--n-600); }
#wzTplStatus { margin: 8px 0 0; color: var(--accent-ink); font-weight: 700; }
@media (max-width: 540px) { .wz-templates-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .wz-step { animation: none; }
  .wz-chip span,
  .wz-preset-btn,
  .wz-step-btn,
  .wz-tpl-btn { transition: none; }
}
@media (pointer: coarse) {
  .wz-pill-btn,
  .wz-edit,
  .wz-crop-tabs button,
  .wz-segmented span {
    min-height: 44px;
  }
}
