/* Hub comensal / QR — White-Hot 2.0 mobile */
@import url("axions-tokens.css");

:root {
  --go-bg: var(--bg-base);
  --go-surface: var(--bg-surface);
  --go-border: var(--border-light);
  --go-text: var(--text-main);
  --go-text-muted: var(--text-muted);
  --go-accent: var(--axions-gold);
  --go-accent-hot: var(--axions-gold);
  --go-danger: var(--fire-red);
  --go-font: "DM Sans", system-ui, sans-serif;
  --go-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --go-radius: 1rem;
  --go-radius-lg: 1.25rem;
}

.go-body {
  box-sizing: border-box;
  margin: 0;
  min-height: 100dvh;
  padding: 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  font-family: var(--go-font);
  color: var(--go-text);
  background: var(--bg-beige, #faf6f1);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

.go-body *,
.go-body *::before,
.go-body *::after {
  box-sizing: border-box;
}

.go-body.go-premium--light {
  background: var(--go-bg, #faf6f1);
  color: var(--go-text, #0b1220);
}

.go-body.go-premium--inmersa {
  background: var(--go-bg, #0d0d0f);
  color: var(--go-text, #f4f2ef);
}

.go-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(420px, 100%);
  margin-inline: auto;
}

.go-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--go-text-muted, var(--text-muted));
  margin-bottom: 1rem;
  transition: var(--axions-transition);
}

.go-brand::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--axions-gold);
}

.go-title {
  font-family: var(--go-font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--go-text, #0b1220);
}

.go-title::after {
  content: "";
  display: block;
  height: 2px;
  width: 1.75rem;
  margin-top: 0.5rem;
  border-radius: var(--ax-radius-btn, 0.35rem);
  background: var(--axions-gold);
}

.go-sub {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--go-text-muted);
}

.go-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--go-surface);
  border: 1px solid var(--go-border);
  border-radius: var(--go-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--axions-transition);
}

.go-qr-glow {
  box-shadow: var(--shadow-md);
}

.go-reward {
  text-align: center;
  padding: 0.875rem;
  margin-bottom: 1rem;
  border-radius: var(--go-radius);
  background: var(--gold-light);
  border: 1px solid rgba(184, 155, 106, 0.2);
  transition: var(--axions-transition);
}

.go-reward--premium {
  background: var(--fire-gradient);
  border: none;
  color: #fff;
}

.go-reward--premium .go-reward-label,
.go-reward--premium .go-reward-value {
  color: #fff;
}

.go-reward-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--axions-gold);
}

.go-reward-value {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--go-text);
}

.go-progress {
  text-align: center;
  font-size: 0.875rem;
  color: var(--go-text-muted);
  margin-bottom: 1rem;
}

.go-progress strong {
  color: var(--axions-gold);
  font-weight: 800;
}

.go-stamp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.go-stamp {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px dashed var(--border-input);
  background: var(--bg-base);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.go-stamp-ink {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 55%),
    color-mix(in srgb, var(--go-accent, var(--axions-gold, #c4a35a)) 55%, #1a1a1a);
  opacity: 0;
  transform: scale(0.35) rotate(-18deg);
  pointer-events: none;
}

.go-stamp-logo {
  position: absolute;
  inset: 16%;
  width: auto;
  height: auto;
  max-width: 68%;
  max-height: 68%;
  margin: auto;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.4) rotate(-22deg);
  filter: grayscale(0.15) contrast(1.05);
  pointer-events: none;
  z-index: 1;
}

.go-stamp-num {
  position: relative;
  z-index: 2;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: opacity 0.25s ease;
}

.go-stamp.is-filled {
  border-style: solid;
  border-color: color-mix(in srgb, var(--go-accent, var(--axions-gold)) 70%, #222);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18), transparent 50%),
    color-mix(in srgb, var(--go-accent, var(--axions-gold)) 18%, #0f0f10);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 16px rgba(0, 0, 0, 0.18);
}

.go-stamp.is-filled .go-stamp-ink {
  opacity: 0.55;
  transform: scale(1) rotate(-8deg);
}

.go-stamp.is-filled .go-stamp-logo {
  opacity: 0.95;
  transform: scale(1) rotate(-6deg);
}

.go-stamp.is-filled .go-stamp-num {
  opacity: 0;
}

.go-stamp.is-stamping {
  animation: go-stamp-press 0.75s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}

.go-stamp.is-stamping .go-stamp-logo {
  animation: go-stamp-logo-ink 0.75s cubic-bezier(0.15, 0.85, 0.25, 1) both;
}

.go-stamp.is-stamping .go-stamp-ink {
  animation: go-stamp-ink 0.75s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

@keyframes go-stamp-press {
  0% { transform: scale(1); }
  40% { transform: scale(0.78); }
  65% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes go-stamp-logo-ink {
  0% {
    opacity: 0;
    transform: scale(1.6) rotate(-36deg) translateY(-12px);
    filter: blur(1px);
  }
  55% {
    opacity: 1;
    transform: scale(0.92) rotate(-4deg) translateY(1px);
    filter: blur(0);
  }
  100% {
    opacity: 0.95;
    transform: scale(1) rotate(-6deg);
  }
}

@keyframes go-stamp-ink {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-28deg);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05) rotate(-6deg);
  }
  100% {
    opacity: 0.55;
    transform: scale(1) rotate(-8deg);
  }
}

/* Ritual overlay: countdown + press */
.go-fidel-ritual {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.go-fidel-ritual[hidden] {
  display: none !important;
}

.go-fidel-ritual.is-open {
  pointer-events: auto;
}

.go-fidel-ritual__veil {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.go-fidel-ritual.is-open .go-fidel-ritual__veil {
  opacity: 1;
}

.go-fidel-ritual__stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem;
}

.go-fidel-ritual__label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.go-fidel-ritual__count {
  font-family: var(--go-font-display);
  font-size: clamp(4.5rem, 22vw, 7rem);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  min-height: 1.1em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.go-fidel-ritual__count.is-tick {
  animation: go-fidel-count-tick 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes go-fidel-count-tick {
  0% { transform: scale(0.55); opacity: 0.2; }
  45% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.go-fidel-ritual__press {
  width: min(42vw, 9.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), transparent 50%),
    color-mix(in srgb, var(--go-accent, #b89b6a) 35%, #111);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(-28vh) scale(1.35) rotate(-18deg);
  pointer-events: none;
}

.go-fidel-ritual.is-pressing .go-fidel-ritual__count,
.go-fidel-ritual.is-pressing .go-fidel-ritual__label {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.go-fidel-ritual.is-pressing .go-fidel-ritual__press {
  animation: go-fidel-press 0.95s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.go-fidel-ritual__logo {
  width: 62%;
  height: 62%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.go-fidel-ritual__mark {
  font-size: 2.5rem;
  color: #fff;
}

@keyframes go-fidel-press {
  0% {
    opacity: 0;
    transform: translateY(-32vh) scale(1.4) rotate(-22deg);
  }
  45% {
    opacity: 1;
    transform: translateY(6px) scale(0.92) rotate(-4deg);
  }
  62% {
    transform: translateY(0) scale(1.06) rotate(-8deg);
  }
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.55) rotate(-6deg);
  }
}

.go-fidel-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--go-text-muted);
}

.go-fidel-title {
  margin: 0 0 0.5rem;
  font-family: var(--go-font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--go-text);
}

.go-fidel-title--sm {
  font-size: 1.35rem;
}

.go-fidel-hello {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--go-text);
}

.go-fidel-steps {
  margin: 1rem 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--go-text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.go-fidel-steps li + li {
  margin-top: 0.35rem;
}

.go-fidel-cumple {
  margin: 0.25rem 0 0.75rem;
  padding: 0.75rem;
  border-radius: calc(var(--go-radius) - 2px);
  background: color-mix(in srgb, var(--go-accent) 8%, transparent);
}

.go-fidel-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--go-text);
}

.go-fidel-check input {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.go-label-opt {
  font-weight: 500;
  color: var(--go-text-muted);
}

.go-fidel-step[hidden] {
  display: none !important;
}

#btn-canje[hidden] {
  display: none !important;
}

.go-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--go-text-muted);
  margin-bottom: 0.35rem;
}

.go-input {
  width: 100%;
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--go-text);
  background: var(--bg-base);
  border: 1px solid var(--border-input);
  border-radius: var(--go-radius);
  outline: none;
  transition: var(--axions-transition);
}

.go-input:focus {
  border-color: var(--axions-gold);
  box-shadow: 0 0 0 1px var(--axions-gold);
}

.go-input.is-error {
  border-color: var(--fire-red) !important;
  box-shadow: 0 0 0 1px var(--fire-red) !important;
}

.go-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.95rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  border: none;
  border-radius: var(--go-radius);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: var(--axions-transition);
}

.go-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.go-btn-primary {
  color: #fff;
  background: var(--fire-gradient);
  box-shadow: var(--shadow-btn);
}

.go-btn-primary:not(:disabled):hover,
.go-btn-primary:not(:disabled):focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 10px 28px var(--shadow-btn);
}

.go-btn-primary:not(:disabled):active {
  transform: scale(0.98);
}

.go-btn-secondary {
  margin-top: 0.5rem;
  color: var(--axions-gold);
  background: var(--bg-base);
  border: 1px solid var(--border-input);
}

.go-btn-secondary:disabled {
  display: none;
}

.go-btn-ghost {
  color: var(--go-text-muted);
  background: transparent;
  border: 1px solid var(--go-border);
}

.go-btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.go-btn-gradient {
  color: #fff;
  background: var(--fire-gradient);
  box-shadow: var(--shadow-btn);
}

.go-btn-success {
  color: #fff;
  background: var(--fire-gradient-success);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.go-btn-warn {
  color: #fff;
  background: var(--fire-gradient-warn);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.go-clock {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: var(--fire-gradient-alt);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 1rem 0;
}

.go-toast {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: 360px;
  width: calc(100% - 2rem);
  padding: 1rem 1.25rem;
  background: #111827;
  color: #fff;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
  z-index: 100;
  text-align: center;
}

.go-toast[hidden] {
  display: none !important;
}

.go-feedback {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--go-radius);
  text-align: center;
  transition: var(--axions-transition);
}

.go-feedback.is-visible {
  display: block;
}

.go-feedback--ok {
  color: #9a3412;
  background: var(--gold-light);
  border: 1px solid rgba(184, 155, 106, 0.25);
}

.go-feedback--err {
  color: #b91c1c;
  background: var(--fire-red-soft);
  border: 1px solid rgba(224, 26, 0, 0.2);
}

.go-footnote {
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  text-align: center;
  color: var(--go-text-muted);
}

.go-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--go-text-muted);
}

.go-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.go-modal.is-open {
  display: flex;
}

.go-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 16, 0.35);
  backdrop-filter: blur(4px);
}

.go-modal-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 1.5rem;
  background: var(--bg-base);
  border: 1px solid var(--go-border);
  border-radius: var(--go-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--axions-transition);
}

.go-modal-card.is-error-state {
  border-color: rgba(224, 26, 0, 0.35);
}

.go-modal-title {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--go-text);
}

.go-modal-hint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--go-text-muted);
}

.go-pin-input {
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  padding: 0.875rem;
  text-align: center;
  letter-spacing: 0.45em;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--go-text);
  background: var(--bg-base);
  border: 1px solid var(--border-input);
  border-radius: var(--go-radius);
  outline: none;
  transition: var(--axions-transition);
}

.go-pin-input:focus {
  border-color: var(--axions-gold);
  box-shadow: 0 0 0 1px var(--axions-gold);
}

.go-pin-error {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  color: var(--fire-red);
}

.go-pin-error.is-visible {
  display: block;
}

.go-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.go-stars {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin: 1rem 0;
}

.go-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--axions-transition);
}

.go-star-icon {
  font-size: 2.75rem;
  color: #e4dfd4;
  transition: var(--axions-transition);
}

.go-star-btn:hover .go-star-icon,
.go-star-btn.is-lit .go-star-icon {
  background: linear-gradient(145deg, var(--axions-gold), var(--axions-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.go-panel {
  display: none;
  margin-top: 1rem;
}

.go-panel.is-visible {
  display: block;
}

.go-panel p {
  font-size: 0.9rem;
  color: var(--go-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.go-link-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.95rem;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--go-radius);
  color: #fff;
  background: var(--axions-gold);
  box-shadow: var(--shadow-btn);
  transition: var(--axions-transition);
}

.go-link-btn:hover {
  background: var(--axions-gold);
  color: var(--text-main);
}

.go-link-btn:active {
  transform: scale(0.98);
}

.go-vcard-preview {
  text-align: center;
  padding: 1rem 0;
}

.go-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--go-radius);
  background: var(--bg-base);
  border: 1px solid var(--go-border);
  transition: var(--axions-transition);
}

.go-rows {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.go-row-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--go-text-muted);
}

.go-row-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--go-text);
  text-align: right;
  overflow-wrap: anywhere;
}

.go-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.go-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.875rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--go-text);
  background: var(--bg-base);
  border: 1px solid var(--border-input);
  border-radius: var(--go-radius);
  resize: vertical;
  outline: none;
  transition: var(--axions-transition);
}

.go-textarea:focus {
  border-color: var(--axions-gold);
  box-shadow: 0 0 0 1px var(--axions-gold);
}

.go-inline-err {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fire-red);
  text-align: center;
}

.go-inline-err.is-visible {
  display: block;
}

.go-step-hidden {
  display: none !important;
}

.go-pre {
  text-align: left;
  margin-top: 1rem;
  padding: 1rem;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--go-text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--go-border);
  border-radius: var(--go-radius);
  overflow-x: auto;
}

.go-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--axions-gold);
  background: var(--gold-light);
  border: 1px solid rgba(184, 155, 106, 0.2);
  flex-shrink: 0;
}

.go-hero .go-avatar {
  margin: 0;
}

.go-avatar--photo {
  object-fit: cover;
  padding: 0;
  background: #fff;
}

.go-link-btn--secondary {
  background: transparent;
  color: var(--go-text);
  border: 1px solid var(--go-border);
}
