@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --background: #081c15;
  --foreground: #f8fafc;
  --primary: #2d6a4f;
  --primary-hover: #1b4332;
  --secondary: #271c19;
  --accent: #d4a373;
  --success: #10b981;
  --danger: #ef4444;
  --border: rgba(212, 163, 115, 0.2);
  --glass: rgba(8, 28, 21, 0.45);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('../../fondo.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-color: #000;
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  animation: slideUp 0.5s ease-out;
}

.title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.input-group {
  margin-bottom: 1.2rem;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.3);
}

.btn {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.4);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--foreground);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.status-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.status-verified { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.status-rejected { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.error-message {
  color: var(--danger);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
}

.qr-container {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  margin: 1.5rem auto;
  width: max-content;
}

.file-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ---- Selección de entradas ---- */
.step-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.step-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.step-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.3rem;
}

.step-sub {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.ticket-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  color: var(--foreground);
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ticket-option::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: rgba(212, 163, 115, 0.35);
  transition: background 0.25s ease;
}

.ticket-option:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 163, 115, 0.5);
}

.ticket-option.selected {
  border-color: var(--accent);
  background: rgba(212, 163, 115, 0.08);
  box-shadow: 0 0 0 2px rgba(212, 163, 115, 0.3), 0 10px 24px rgba(0, 0, 0, 0.45);
}

.ticket-option.selected::after {
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.ticket-option--vip {
  background: linear-gradient(140deg, rgba(212, 163, 115, 0.12), rgba(0, 0, 0, 0.55) 60%);
}

.ticket-radio {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(212, 163, 115, 0.5);
  position: relative;
  transition: all 0.25s ease;
}

.ticket-option.selected .ticket-radio {
  border-color: var(--accent);
  background: var(--accent);
}

.ticket-option.selected .ticket-radio::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 7px;
  width: 4px;
  height: 9px;
  border: solid #1b1b1b;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ticket-body {
  flex: 1;
  min-width: 0;
}

.ticket-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.ticket-perks {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #cbd5e1;
  white-space: pre-wrap;
}

.ticket-price {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.ticket-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.22rem 0.6rem;
  border-bottom-left-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #b9834f);
  color: #1b1b1b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--accent);
  background: rgba(212, 163, 115, 0.08);
}

.ts-info { display: flex; flex-direction: column; min-width: 0; }

.ts-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.ts-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.ts-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.ts-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.ts-change {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 0.3rem 0.7rem;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ts-change:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ticket-chip {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 20px;
  border: 1px solid var(--accent);
  background: rgba(212, 163, 115, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Distintivo VIP / General sobre la entrada ---- */
.ticket-badge {
  position: absolute;
  top: 3.2%;
  right: 5%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  background: rgba(8, 20, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #e8e8e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.ticket-badge .tb-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.ticket-badge--free {
  background: rgba(6, 78, 59, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.7);
  color: #6ee7b7;
}

.ticket-badge--vip {
  background: linear-gradient(135deg, #f4d9a5, #d4a373 55%, #b9834f);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #24180d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ---- Marco del nombre en la entrada, con cinta FREE / VIP ---- */
/* Medidas tomadas de QR.jpeg: la franja blanca del nombre ocupa
   left 8.47%, ancho 84.46%, top 89.7%, alto 4.91%. El marco va 1% por fuera. */
.name-frame {
  position: absolute;
  bottom: 4.3%;
  left: 7.2%;
  width: 87.1%;
  height: 7.1%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  z-index: 2;
}

.name-frame--free {
  border-color: #10b981;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35), 0 6px 16px rgba(0, 0, 0, 0.5);
}

.name-frame--vip {
  border-color: #d4a373;
  box-shadow: 0 0 0 1px rgba(212, 163, 115, 0.4), 0 6px 16px rgba(0, 0, 0, 0.5);
}

.name-ribbon {
  position: absolute;
  top: -1.55em;
  right: -0.55em;
  padding: 0.18em 0.7em;
  border-radius: 4px;
  transform: rotate(-16deg);
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.name-ribbon--free {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.name-ribbon--vip {
  background: linear-gradient(135deg, #f4d9a5, #d4a373 55%, #b9834f);
  color: #24180d;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ---- Mejora de pase a VIP ---- */
.upgrade-card {
  margin-top: 1.5rem;
  padding: 1.3rem 1.2rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(212, 163, 115, 0.45);
  background: linear-gradient(150deg, rgba(212, 163, 115, 0.14), rgba(0, 0, 0, 0.5) 65%);
}

.up-eyebrow {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.up-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.up-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.up-diff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

.up-diff span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.up-diff strong {
  font-size: 1.25rem;
  color: var(--accent);
  white-space: nowrap;
}

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

@media (max-width: 480px) {
  .hide-mobile { display: none; }
  .container { max-width: 100% !important; }
}

.d-none { display: none !important; }
