/* Despeguía · encuesta del invitado. Reutiliza css/organizador.css (temas, cabecera, baldosas, panel lateral,
   pegatina, confeti) y aquí va solo lo nuevo: entrada, cartas, barra del bote, interruptor y comprobante. */

/* Cabecera sin número (invitación y voto enviado) */
.q-bar--brand { height: 44px; }
.q-bar--brand .logo { color: var(--text); font-size: 28px; }
.q-bar--brand .logo span { color: var(--accent); }
.pill { padding: 5px 8px; border: 2px solid var(--text); font-family: var(--f-mono); font-size: 10px; font-weight: 700; }
.q-pct { width: 44px; text-align: center; font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.segs--inv { display: flex; gap: 3px; }
.segs--inv span { flex: 1; height: 6px; border: 2px solid var(--text); box-sizing: content-box; }
.segs--inv .on { background: var(--accent); }
.quiz:has(#paso-6:target) .deco { display: none; }
.q-foot button.q-secondary { border: 0; background: none; color: var(--text); }

/* ─── 1 · Invitación ─── */
.inv-kicker { margin-bottom: 8px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.q-main .inv-hero { max-width: none; margin: 0; font-size: 56px; line-height: .9; }
.quiz--inv .q-main h1:not(.inv-hero) { font-size: 42px; }
.vinculos { gap: 6px; }
.vinculos .tile > span { min-height: 58px; padding: 8px; gap: 3px; }
.vinculos b { font-size: 18px; }
.vinculos small { font-size: 11px; line-height: 1.2; }
.invite {
  --inv-bg: #120F0E; --inv-text: #FFD3B8;
  position: relative; margin-top: 14px; padding: 18px; background: var(--inv-bg); color: var(--inv-text);
  border: 2px solid var(--text); rotate: -1.5deg; box-shadow: 0 22px 40px -20px rgba(0 0 0 / .55);
  animation: slotIn .6s cubic-bezier(.2, 1.5, .4, 1) .1s backwards;
}
.t-divorcio .invite { --inv-bg: #FF4A12; --inv-text: #141110; }
.t-cumple .invite { --inv-bg: #FFF6EF; --inv-text: #120F0E; }
.invite__head { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 2px dashed currentColor; font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.invite__data { margin: 0; padding-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.invite__data dt { font-family: var(--f-mono); font-size: 10px; font-weight: 700; opacity: .7; }
.invite__data dd { margin: 2px 0 0; font-family: var(--f-display); font-size: 26px; font-weight: 900; line-height: 1; text-transform: uppercase; }
.invite__stamp {
  position: absolute; right: -8px; top: -18px; padding: 2px 10px; border: 3px solid var(--accent); color: var(--accent); background: var(--bg);
  font-family: var(--f-display); font-size: 22px; font-weight: 900; rotate: -8deg;
}
.voters { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.voters p { font-size: 14px; font-weight: 700; line-height: 1.35; }
.voters__faces { display: flex; }
.voters__faces i {
  width: 38px; height: 38px; margin-left: -10px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--text); background: var(--surf); color: var(--ink); font: normal 700 11px var(--f-mono); rotate: 5deg;
}
.voters__faces i:nth-child(1) { margin-left: 0; background: var(--accent); rotate: -6deg; }
.voters__faces i:nth-child(2) { background: var(--sign); rotate: 4deg; }
.voters__faces i:nth-child(3) { background: var(--ink); color: var(--sign); rotate: -3deg; }
.t-divorcio .voters__faces i:nth-child(4) { color: var(--text); }
.deadline {
  display: flex; justify-content: space-between; margin-top: 14px; padding: 12px 14px; background: var(--text); color: var(--bg);
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; text-transform: uppercase;
}

/* ─── 2 · Tú ─── */
.tile--avail > span { justify-content: center; min-height: 56px; text-align: center; font-family: var(--f-display); font-size: 19px; font-weight: 900; line-height: 1; text-transform: uppercase; }
.tile--avail input[value="no"]:checked + span { background: var(--danger); color: #fff; }
.tile--day > span { flex-direction: column; justify-content: center; gap: 2px; padding: 8px; }
.tile--day small { font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.tile--day b { font-family: var(--f-display); font-size: 30px; font-weight: 900; line-height: 1; }
.quiz:has(#disp-parte:checked) .reveal--parte { grid-template-rows: 1fr; margin-top: 0; opacity: 1; visibility: visible; translate: none; rotate: none; }
.reveal--parte { margin-top: -8px; }

/* ─── 3 · Cartas ─── */
.cards__done, .cards.is-done .cards__play { display: none; }
.cards.is-done .cards__done { display: flex; }
.cdots { display: flex; gap: 5px; }
.cdots i { width: 12px; height: 12px; border: 2px solid var(--text); transition: width .3s cubic-bezier(.2, 1.4, .4, 1), background .2s; }
.cdots .is-cur { width: 22px; background: var(--accent); }
.cdots .is-si { background: var(--text); }
.cdots .is-no { background: var(--danger); }
.cdots .is-igual { background: var(--muted); }
.vdeck { position: relative; height: 310px; margin-bottom: 12px; }
[data-c="accent"] { --c-bg: #FF4A12; --c-fg: #120F0E; }
[data-c="sign"] { --c-bg: #FFD3B8; --c-fg: #120F0E; }
[data-c="ink"] { --c-bg: #120F0E; --c-fg: #FFD3B8; }
.vdeck__back { position: absolute; background: var(--c-bg); border: 3px solid var(--ink); transition: all .3s; }
.vdeck__back:nth-child(1) { inset: 8px 5px 8px 5px; rotate: 2.5deg; }
.vdeck__back:nth-child(2) { inset: 16px 0 0 10px; rotate: -2.5deg; }
.vcard {
  position: absolute; inset: 0 10px 16px 0; z-index: 2; padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--c-bg); color: var(--c-fg); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--text);
  rotate: -1deg; transition: transform .3s cubic-bezier(.5, 0, .8, .4), opacity .3s;
}
.vcard.is-fly-no { transform: translate(-440px, 60px) rotate(-22deg); opacity: .2; }
.vcard.is-fly-si { transform: translate(440px, 60px) rotate(22deg); opacity: .2; }
.vcard.is-fly-igual { transform: translate(0, -520px) rotate(-4deg); opacity: .2; }
.vcard.is-deal { transition: none; transform: translateY(14px) scale(.94) rotate(3deg); }
.vcard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.vcard__kind { padding: 4px 8px; border: 2px solid currentColor; font-family: var(--f-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.vcard__num { font-family: var(--f-display); font-size: 56px; font-weight: 900; line-height: .8; opacity: .35; }
.vcard__title { font-family: var(--f-display); font-size: 42px; font-weight: 900; line-height: .92; text-transform: uppercase; }
.vcard__desc { margin-top: 10px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.vcard__foot { display: flex; justify-content: space-between; padding-top: 12px; border-top: 2px dashed currentColor; font-family: var(--f-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.vcard__stamp {
  position: absolute; left: 50%; top: 42%; padding: 4px 12px; border: 4px solid currentColor; white-space: nowrap;
  font-family: var(--f-display); font-size: 40px; font-weight: 900; opacity: 0;
  transform: translate(-50%, -50%) rotate(-12deg) scale(1.8); transition: transform .2s cubic-bezier(.2, 1.6, .4, 1), opacity .15s;
}
.vcard[class*="is-fly"] .vcard__stamp { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); }
.vote { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vote__btn {
  height: 72px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 2px solid var(--text); box-shadow: 4px 4px 0 var(--text); background: var(--surf); color: var(--text);
  font-family: var(--f-display); font-size: 18px; font-weight: 900; text-transform: uppercase; transition: translate .1s, box-shadow .1s;
}
.vote__btn span { font-size: 22px; line-height: 1; }
.vote__btn--no { background: var(--danger); color: #fff; }
.vote__btn--si { background: var(--accent); color: var(--ink); }
.vote__btn:active { translate: 4px 4px; box-shadow: none; }
.vote__btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.cards__done { flex-direction: column; gap: 12px; }
.done-card { padding: 14px 16px; background: var(--hl-bg); color: var(--hl-text); rotate: -1deg; }
.done-card span { font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.done-card p { margin-top: 4px; font-family: var(--f-display); font-size: 28px; font-weight: 900; line-height: .95; text-transform: uppercase; }
.vrows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.vrow { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px; border: 2px solid var(--text); background: var(--surf); font-size: 15px; font-weight: 800; }
.vrow--si { background: var(--on); color: var(--on-text); }
.vrow--no { background: var(--danger); color: #fff; }
.vrow__mark { width: 22px; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 2px solid currentColor; font-size: 14px; font-weight: 900; }
.vrow__txt { flex: 1; }
.vrow__lbl { font-family: var(--f-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; opacity: .75; }
.link-btn { align-self: center; padding: 6px; border: 0; background: none; color: var(--text); font-family: var(--f-mono); font-size: 13px; font-weight: 700; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.quiz:has(.cards:not(.is-done)) #paso-3 .cta { opacity: .45; }

/* ─── 4 · Bote: tramo rayado bloqueado hasta el mínimo; solo se puede subir ─── */
.slide { --lock: .3; --p: .3; position: relative; height: 56px; }
.slide__track, .slide__lock, .slide__fill { position: absolute; top: 50%; height: 24px; translate: 0 -50%; border: 2px solid var(--text); }
.slide__track { left: 0; right: 0; background: var(--surf); }
.slide__lock { left: 0; width: calc(var(--lock) * 100%); background: repeating-linear-gradient(-45deg, var(--text) 0 3px, transparent 3px 9px); opacity: .55; }
.slide__fill { left: calc(var(--lock) * 100%); width: calc((var(--p) - var(--lock)) * 100%); background: var(--accent); transition: width .12s; }
.slide__input { position: absolute; top: 0; left: calc(var(--lock) * 100%); z-index: 1; width: calc((1 - var(--lock)) * 100%); height: 100%; margin: 0; opacity: 0; cursor: grab; }
.slide__thumb {
  position: absolute; top: 50%; left: calc(var(--p) * 100% - 26px); width: 52px; height: 52px; translate: 0 -50%; pointer-events: none;
  background: linear-gradient(currentColor, currentColor) calc(50% - 4px) 50% / 3px 20px no-repeat,
              linear-gradient(currentColor, currentColor) calc(50% + 4px) 50% / 3px 20px no-repeat, var(--surf);
  color: var(--text); border: 3px solid var(--text); box-shadow: 4px 4px 0 var(--text);
  transition: left .12s, rotate .3s cubic-bezier(.2, 1.6, .4, 1), background-color .2s;
}
.slide.is-up .slide__thumb { background-color: var(--accent); rotate: -6deg; }
.slide__input:focus-visible ~ .slide__thumb { outline: 3px solid var(--accent); outline-offset: 3px; }
.slide__legend { display: flex; justify-content: space-between; align-items: center; margin-top: -8px; }
.lock-lbl { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.lock-lbl svg { width: 12px; height: 12px; }

/* ─── 5 · Chivatazo ─── */
.tips { display: flex; flex-wrap: wrap; gap: 8px; }
.tips .tile > span { min-height: 38px; padding: 6px 10px; font-size: 13px; }
.tips .tile:nth-child(odd) input:checked + span { rotate: -2deg; scale: 1.04; }
.tips .tile:nth-child(even) input:checked + span { rotate: 2deg; scale: 1.04; }
textarea.field { height: auto; font-family: var(--f-body); padding: 12px 14px; font-size: 16px; font-weight: 600; line-height: 1.4; resize: none; }
.secret { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 2px solid var(--text); background: var(--surf); cursor: pointer; transition: background .25s, color .25s; }
.secret input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.secret:has(input:checked) { background: var(--on); color: var(--on-text); }
.secret:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.secret__sw { position: relative; flex-shrink: 0; width: 52px; height: 30px; border: 2px solid currentColor; transition: background .25s; }
.secret__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: currentColor; transition: left .3s cubic-bezier(.2, 1.5, .4, 1); }
.secret input:checked + .secret__sw { background: var(--accent); }
.secret input:checked + .secret__sw::after { left: 25px; }
.secret b { display: block; font-size: 15px; font-weight: 800; }
.secret small { font-size: 13px; font-weight: 600; opacity: .75; }

/* ─── 6 · Voto enviado ─── */
.pass--receipt .pass__data dt { margin: 0; }
.pass--receipt .pass__data dd { margin: 2px 0 0; font-size: 24px; }
.pass--receipt .logo span { color: var(--accent); }
.prog-head { display: flex; justify-content: space-between; }
.prog { --from: .5; --to: .5; position: relative; height: 18px; overflow: hidden; border: 2px solid var(--text); background: var(--surf); }
.prog::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--from) * 100%); background: var(--accent); transition: width 1.2s cubic-bezier(.2, 1.2, .4, 1) .4s; }
#paso-6:target .prog::before { width: calc(var(--to) * 100%); }
.arsenal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.arsenal a { min-height: 84px; padding: 12px; display: flex; flex-direction: column; gap: 6px; border: 2px solid var(--text); background: var(--sign); color: var(--ink); rotate: -1.5deg; }
.arsenal a + a { background: var(--surf); color: var(--text); rotate: 1deg; }
.arsenal small { font-family: var(--f-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.arsenal b { font-family: var(--f-display); font-size: 24px; font-weight: 900; line-height: 1; text-transform: uppercase; }
.arsenal a > span { font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.arsenal a:hover { translate: -2px -2px; }

/* ─── Pantallas bajas: compactar antes de dejar que haga scroll ─── */
.pass--receipt { padding-block: 12px; }
@media (max-height: 740px) {
  .q-main .inv-hero { font-size: 44px; }
  .invite, .voters, .deadline { margin-top: 10px; }
  .invite__data dd { font-size: 22px; }
  .vinculos .tile > span { min-height: 46px; padding-block: 5px; }
  .vinculos small { display: none; }
  .tile--avail > span { min-height: 44px; }
  .tile--day b { font-size: 24px; }
  .vdeck { height: 260px; }
  .vcard__title { font-size: 34px; }
  .vrow { min-height: 34px; padding-block: 4px; }
  .tips { gap: 6px; }
  .tips .tile > span { min-height: 32px; padding-block: 4px; }
  .secret small { display: none; }
  .pass--receipt .pass__data dd { font-size: 20px; }
  .prog-head + .prog + .hint { display: none; }
  .arsenal a { min-height: 0; gap: 2px; padding: 8px 10px; }
  .arsenal b { font-size: 20px; }
  .quiz--inv .stack { gap: 8px; }
}
