/* =========================================================================
   JERSEYPRO · Arma tu pedido
   ========================================================================= */

.builder { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: var(--section); }
.builder__form { display: grid; gap: 12px; }

.bstep { margin: 0; padding: clamp(20px, 3vw, 32px); border: 0; border-radius: var(--radius); background: var(--bg-2); min-width: 0; transition: background-color 0.3s; }
.bstep.is-done .bstep__title::after { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; margin-left: auto; animation: pop 0.5s var(--ease-out); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
.bstep__title { float: left; display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; margin-bottom: 18px; font-size: var(--step-h3); font-weight: 700; letter-spacing: -0.01em; }
.bstep__title .hint { font-size: 0.9375rem; font-weight: 500; }
.bstep__body { display: grid; gap: 16px; clear: both; }

.input--xl { min-height: 64px; font-size: 1.25rem; font-weight: 600; padding-inline: 22px; }
.team-field { position: relative; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick .chip { min-height: 38px; font-size: 0.875rem; background: var(--bg-3); }

.vgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.vcard {
  display: grid; gap: 4px; align-content: start; text-align: left;
  padding: 8px 8px 14px; border-radius: 16px; background: var(--bg-3);
  transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease-out);
}
.vcard:hover { background: var(--bg-4); }
.vcard:active { transform: scale(0.97); }
.vcard .tile { aspect-ratio: 1; border-radius: 10px; margin-bottom: 8px; }
.vcard b { font-size: 1rem; line-height: 1.2; padding-inline: 4px; }
.vcard span { font-size: 0.8125rem; color: var(--ink-2); padding-inline: 4px; line-height: 1.35; }
.vcard .price { color: var(--ink); font-weight: 700; font-size: 0.9375rem; }
.vcard[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.vcard[aria-pressed="true"] span { color: #4a4943; }
.vcard[aria-pressed="true"] .price { color: var(--bg); }

/* Resumen (ticket) */
.ticket { position: sticky; top: calc(var(--header-h) + 20px); background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }
.ticket__media { aspect-ratio: 16 / 11; border-radius: 0; }
.ticket__media img { transition: opacity 0.3s, transform 0.6s var(--ease-out); }
.ticket__media img.is-swap { opacity: 0; transform: scale(0.94); }
.ticket__body { padding: 22px; display: grid; gap: 16px; }
.ticket__title { font-variation-settings: "wdth" 150; font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.ticket__lines { display: grid; gap: 8px; font-size: 0.9375rem; }
.ticket__lines li { display: flex; justify-content: space-between; gap: 12px; }
.ticket__lines li span:first-child { color: var(--ink-2); }
.ticket__lines li span:last-child { text-align: right; font-weight: 600; }
.ticket__lines li.is-missing span:last-child { color: var(--ink-3); font-weight: 500; }
.ticket__qty { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--radius-sm); background: var(--bg-3); font-weight: 600; }
.ticket__qty .stepper { background: var(--bg-4); }
.ticket__price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ticket__price b { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ticket__missing:empty { display: none; }
.ticket__missing { text-align: center; margin-top: -6px; }

@media (max-width: 1080px) {
  .builder { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ticket {
    position: sticky; top: auto; bottom: 0; z-index: 20;
    border-radius: 20px 20px 0 0;
    margin-inline: calc(var(--gutter) * -1);
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.45);
  }
  .ticket__media, .ticket__lines, .ticket__title { display: none; }
  .ticket__body { padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); gap: 10px; grid-template-columns: 1fr auto; align-items: center; }
  .ticket__qty { grid-column: 1 / -1; padding: 6px 6px 6px 14px; font-size: 0.9375rem; }
  .ticket__price { grid-column: 1; display: grid; gap: 0; }
  .ticket__price b { font-size: 1.5rem; }
  .ticket__body > .btn--primary { grid-column: 2; grid-row: 2; width: auto; }
  .ticket__missing { grid-column: 1 / -1; margin: 0; text-align: left; }
  .ticket__body > .btn--ghost { display: none; }
}
@media (max-width: 520px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bstep { border-radius: 16px; }
}
