:root {
  --bg:        #090909;
  --surface:   #111111;
  --surface-2: #161616;
  --orange:    #FF972E;
  --orange-dim:rgba(255,151,46,0.1);
  --white:     #ffffff;
  --white-70:  rgba(255,255,255,0.7);
  --white-40:  rgba(255,255,255,0.4);
  --white-35:  rgba(255,255,255,0.35);
  --white-15:  rgba(255,255,255,0.15);
  --white-08:  rgba(255,255,255,0.08);
  --font:      'Inter', sans-serif;
  --ease:      cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font-family: var(--font); }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(9,9,9,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--white-08);
}
.nav-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--white);
}
.nav-back {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-40);
  transition: color 0.2s;
}
.nav-back:hover { color: var(--orange); }

.label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

/* GATE */
.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 40px;
}
.gate-inner {
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.gate-inner h1 {
  font-size: clamp(40px,10vw,68px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 16px;
}
.gate-inner p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gate-form input {
  background: var(--surface);
  border: 1px solid var(--white-15);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
  width: 100%;
}
.gate-form input:focus { border-color: var(--orange); }
.gate-form input::placeholder { color: var(--white-40); }
.gate-form button {
  background: var(--orange);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px;
  transition: opacity 0.2s;
}
.gate-form button:hover { opacity: 0.85; }
.gate-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--white-35);
}

/* WIZARD */
.wizard {
  min-height: 100vh;
  padding-top: 52px;
}
.hidden { display: none !important; }

/* STEPS */
.steps-wrap {
  min-height: calc(100vh - 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.step {
  display: none;
  max-width: 560px;
  width: 100%;
  text-align: center;
  animation: fadeUp 0.4s var(--ease);
}
.step.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step h2 {
  font-size: clamp(26px,5vw,42px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.step-sub {
  color: var(--white-40);
  font-size: 13px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* OPTIONS */
.options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}
.opt {
  background: var(--surface);
  border: 1px solid var(--white-08);
  padding: 16px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  max-width: 420px;
  position: relative;
}
.opt:hover {
  border-color: var(--white-15);
  background: var(--surface-2);
}
.opt.selected {
  border-color: var(--orange);
  background: var(--orange-dim);
}
.opt-icon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 2px;
}
.opt-title {
  font-size: 15px;
  font-weight: 700;
}
.opt-sub {
  font-size: 12px;
  color: var(--white-40);
  line-height: 1.4;
}
.options.multi .opt.selected::after {
  content: '✓';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 14px;
}

.text-input-wrap {
  max-width: 420px;
  margin: 24px auto 0;
}
.text-input-wrap textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--white-15);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  padding: 14px 16px;
  resize: none;
  outline: none;
  line-height: 1.6;
  transition: border-color 0.2s;
}
.text-input-wrap textarea:focus { border-color: var(--orange); }
.text-input-wrap textarea::placeholder { color: var(--white-35); }

.btn-back {
  display: block;
  margin: 0 auto 20px;
  background: transparent;
  border: none;
  color: var(--white-35);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 0;
  transition: color 0.2s;
}
.btn-back:hover { color: var(--white-70); }

.bonus-table {
  max-width: 320px;
  margin: 24px auto 0;
  border: 1px solid var(--white-08);
}
.bonus-table-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--white-08);
}
.bonus-table-row:last-child { border-bottom: none; }
.bonus-table-row.header {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-35);
  background: var(--surface);
}
.bonus-table-row.highlight {
  color: var(--orange);
  font-weight: 700;
}
.step-warn {
  margin-top: 12px;
  font-size: 12px;
  color: var(--orange);
  animation: fadeUp 0.3s var(--ease);
}
.btn-next {
  margin-top: 20px;
  background: transparent;
  border: 1px solid var(--white-15);
  color: var(--white-40);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 28px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-next:hover { border-color: var(--orange); color: var(--orange); }

/* Song grid */
.song-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  max-width: 520px;
  margin: 20px auto 0;
}
.song-opt {
  text-align: center;
  padding: 22px 12px;
  align-items: center;
}
.song-opt .opt-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}
.song-opt .opt-sub {
  font-size: 11px;
  color: var(--white-40);
}
.bonus-tag {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--orange);
}

/* Custom song input (10+) */
.song-custom {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  animation: fadeUp 0.3s var(--ease);
}
.song-custom-input {
  background: var(--surface);
  border: 1px solid var(--white-15);
  color: var(--white);
  font-family: var(--font);
  font-size: 24px;
  font-weight: 900;
  padding: 12px 16px;
  width: 180px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}
.song-custom-input::-webkit-outer-spin-button,
.song-custom-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.song-custom-input:focus { border-color: var(--orange); }

/* Bundle tag en carrito */
.cart-bundle-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--orange);
  padding: 4px 16px 6px;
  background: var(--orange-dim);
}

.cart-qty-btn {
  touch-action: manipulation;
  width: 26px;
  height: 26px;
  border: 1px solid var(--white-15);
  color: var(--white-40);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.cart-qty-btn:hover { border-color: var(--orange); color: var(--orange); }
.cart-qty-val {
  min-width: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--white-40);
  font-variant-numeric: tabular-nums;
}

/* Grab qty inline */
.grab-qty-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.grab-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.grab-qty-label {
  color: var(--white-40);
  font-size: 0.85rem;
  min-width: 80px;
}
.grab-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--white-15);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  transition: border-color 0.2s, color 0.2s;
}
.grab-qty-btn:hover { border-color: var(--orange); color: var(--orange); }
.grab-qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.grab-qty-input {
  width: 64px;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--white-15);
  color: var(--white);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 1rem;
  -moz-appearance: textfield;
}
.grab-qty-input::-webkit-outer-spin-button,
.grab-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.grab-qty-input:focus { outline: none; border-color: var(--orange); }

/* Cart "Añadir" panel */
.cart-add-panel {
  margin-top: 20px;
  border: 1px solid var(--white-08);
}
.cart-add-summary {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-40);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  transition: color 0.2s;
  user-select: none;
}
.cart-add-summary::-webkit-details-marker { display: none; }
.cart-add-summary::before { content: '+'; color: var(--orange); font-size: 16px; font-weight: 900; }
details[open] .cart-add-summary::before { content: '−'; }
.cart-add-summary:hover { color: var(--white); }
.cart-add-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-35);
  padding: 10px 16px 4px;
  border-top: 1px solid var(--white-08);
}
.cart-add-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--white-70);
  border-top: 1px solid var(--white-08);
  gap: 10px;
}
.cart-add-item:hover { background: var(--surface-2); }

/* CART */
.cart {
  min-height: calc(100vh - 52px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px 80px;
}
.cart-inner {
  max-width: 560px;
  width: 100%;
  animation: fadeUp 0.4s var(--ease);
}
.cart-inner h2 {
  font-size: clamp(26px,5vw,42px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 8px;
}

.cart-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--white-35);
  padding: 16px 0 6px;
  text-transform: uppercase;
}
.cart-item {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--white-08);
  gap: 10px;
}
.cart-item-name {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 80px;
  justify-content: center;
}
.cart-item-qty--ro {
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-price {
  font-size: 13px;
  color: var(--white-40);
  white-space: nowrap;
  text-align: right;
  min-width: 48px;
  flex-shrink: 0;
}
.cart-item--off {
  opacity: 0.35;
}
.cart-item--off .cart-item-name {
  text-decoration: line-through;
}
.cart-item-add {
  width: 24px;
  height: 24px;
  border: 1px solid var(--white-15);
  color: var(--orange);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.cart-item-add:hover { border-color: var(--orange); opacity: 1; }
.cart-item--off:hover { opacity: 0.6; }

.cart-item-remove {
  width: 24px;
  height: 24px;
  border: 1px solid var(--white-15);
  color: var(--white-40);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.cart-item-remove:hover { border-color: #e55; color: #e55; }

.cart-totals {
  margin-top: 20px;
  border-top: 1px solid var(--white-08);
  padding-top: 16px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  color: var(--white-40);
}
.cart-total-row.bonus { color: var(--orange); }
.cart-total-row.final {
  border-top: 1px solid var(--white-08);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
}
.cart-total-row.iva { font-size: 11px; color: var(--white-35); }

.cart-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  background: var(--orange);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--white-15);
  color: var(--white-40);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--white-40); color: var(--white); }
.cart-time {
  margin-top: 20px;
  border-top: 1px solid var(--white-08);
  padding-top: 14px;
}
.cart-time-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  color: var(--white-40);
}
.cart-time-row.delivery {
  color: var(--orange);
  font-size: 12px;
}
.cart-time-row--post {
  color: var(--white-15);
}
.cart-note {
  margin-top: 14px;
  font-size: 11px;
  color: var(--white-35);
  text-align: center;
}

/* THANKS */
.thanks {
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 80px;
  gap: 48px;
}
.thanks-inner {
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: fadeUp 0.4s var(--ease);
}
.thanks-check {
  width: 56px;
  height: 56px;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.thanks-inner h2 {
  font-size: clamp(26px,7vw,48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.thanks-inner p { color: var(--white-40); font-size: 14px; margin-bottom: 24px; }
.thanks-inner strong { color: var(--white); }
.thanks-pdf-btn { margin-top: 4px; }
.thanks-summary {
  width: 100%;
  max-width: 560px;
}
.thanks-summary .cart-section-title {
  margin-top: 20px;
}
.thanks-summary-header {
  text-align: center;
  margin-bottom: 28px;
}
.thanks-summary-logo {
  width: 160px;
  filter: invert(1);
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.thanks-summary-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.thanks-summary-date {
  font-size: 12px;
  color: var(--white-40);
}

/* PRINT */
@media print {
  body { background: #fff; color: #000; }
  .nav, .thanks-inner { display: none !important; }
  .thanks { padding: 0; gap: 0; }
  .thanks-summary { max-width: 100%; }
  .cart-section-title { color: #000; border-color: #ccc; }
  .cart-item { background: #fff; border-color: #ddd; color: #000; }
  .cart-item-name { color: #000; }
  .cart-item-price, .cart-qty-val { color: #555; }
  .cart-bundle-tag { background: #fff3e0; color: #e65100; }
  .cart-total-row { color: #000; border-color: #ddd; }
  .cart-total-row.iva { color: #000; }
  .cart-total-row.final { color: #000; }
  .cart-time { border-color: #ddd; }
  .cart-time-row { color: #555; }
  .thanks-summary-logo { filter: none; }
  .thanks-summary-title { color: #000; }
  .thanks-summary-date { color: #555; }
}

@media (max-width: 480px) {
  .song-grid { grid-template-columns: repeat(2,1fr); }
  .cart-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}
