:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    sans-serif;
  background:
    radial-gradient(
      1200px 600px at 70% -10%,
      rgba(192, 199, 209, 0.08),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 15% 10%,
      rgba(11, 18, 32, 0.75),
      transparent 70%
    ),
    #07070a;
  color: #e6e9ef;
}

.glass {
  background: linear-gradient(
    135deg,
    rgba(11, 18, 32, 0.7),
    rgba(7, 7, 10, 0.6)
  );
  border: 1px solid rgba(192, 199, 209, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.bg-noise::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 3px 3px;
  opacity: 0.2;
  pointer-events: none;
}

.section-line {
  position: relative;
}

.section-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(192, 199, 209, 0.4),
    transparent
  );
}

.focus-ring:focus {
  outline: 2px solid rgba(192, 199, 209, 0.7);
  outline-offset: 2px;
}

.toast {
  animation: toast-in 0.35s ease;
}

@keyframes toast-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.scrollbar-hidden::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.gallery-clickable {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    outline-color 0.2s ease;
}

.gallery-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.gallery-clickable:focus-visible {
  outline: 2px solid rgba(192, 199, 209, 0.8);
  outline-offset: 3px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 7, 10, 0.55);
  color: rgba(230, 233, 239, 0.9);
  font-size: 28px;
  line-height: 1;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(192, 199, 209, 0.2);
  color: #e6e9ef;
  border-color: rgba(192, 199, 209, 0.5);
}

#checkoutModal .checkout-panel {
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#checkoutModal .checkout-panel.checkout-panel--rrpp {
  border-color: rgba(196, 110, 255, 0.45);
  background:
    radial-gradient(
      900px 380px at 85% -20%,
      rgba(196, 110, 255, 0.22),
      transparent 60%
    ),
    linear-gradient(140deg, rgba(35, 16, 56, 0.82), rgba(7, 7, 10, 0.7));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(196, 110, 255, 0.18) inset;
}

.checkout-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 110, 255, 0.55);
  background: rgba(196, 110, 255, 0.14);
  color: #f1dbff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#checkoutModal .ticket-card {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 18, 32, 0.65);
  padding: 0.9rem 1rem;
  transition:
    border-color 0.25s ease,
    transform 0.2s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

#checkoutModal .ticket-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 233, 239, 0.45);
}

#checkoutModal .ticket-card:focus-visible {
  outline: 2px solid rgba(230, 233, 239, 0.75);
  outline-offset: 2px;
}

#checkoutModal .ticket-card.ticket-card--active {
  border-color: rgba(196, 110, 255, 0.7);
  background: rgba(196, 110, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(196, 110, 255, 0.25) inset;
}

#checkoutModal .ticket-card.ticket-card--muted {
  opacity: 0.72;
}

#checkoutModal .ticket-card__title {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(192, 199, 209, 0.72);
}

#checkoutModal .ticket-card__price {
  font-size: 1.12rem;
  font-weight: 700;
  color: #e6e9ef;
}

#checkoutModal .checkout-total-card {
  background:
    radial-gradient(
      420px 180px at 100% -20%,
      rgba(52, 211, 153, 0.2),
      transparent 60%
    ),
    rgba(11, 18, 32, 0.75);
}

#checkoutModal .checkout-pay-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
}

#checkoutModal .checkout-pay-btn[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.85;
}

#checkoutModal .pay-btn__spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(7, 7, 10, 0.24);
  border-top-color: rgba(7, 7, 10, 0.82);
  animation: checkout-spin 0.8s linear infinite;
}

@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

#checkoutModal .pay-btn__check {
  width: 18px;
  height: 18px;
}

#checkoutModal .pay-btn__check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
}

#checkoutModal input,
#checkoutModal select,
#checkoutModal textarea {
  font-size: 16px;
}

#checkoutStatus.checkout-status--rrpp-blocked {
  border-color: rgba(251, 113, 133, 0.55);
  background:
    radial-gradient(
      450px 180px at 0% 0%,
      rgba(244, 63, 94, 0.14),
      transparent 60%
    ),
    rgba(15, 8, 12, 0.9);
  color: #ffd7df;
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 600;
  padding: 1rem 1.1rem;
}

@media (min-width: 640px) {
  #checkoutModal .checkout-panel {
    max-height: calc(100vh - 4rem);
  }
}

/* RRPP Link checkout (links reutilizables) */
#rrppLinkCheckoutApp {
  background:
    radial-gradient(
      900px 480px at 80% -10%,
      rgba(192, 199, 209, 0.12),
      transparent 60%
    ),
    radial-gradient(
      720px 380px at 10% 100%,
      rgba(11, 18, 32, 0.85),
      transparent 70%
    ),
    #07070a;
}

.rrpp-link-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
}

.rrpp-link-cta[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.85;
}

.rrpp-link-cta__spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(7, 7, 10, 0.24);
  border-top-color: rgba(7, 7, 10, 0.82);
  animation: checkout-spin 0.8s linear infinite;
}

.rrpp-link-qr-card {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.rrpp-link-qr-canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 240px;
  image-rendering: pixelated;
}

.rrpp-link-success-check {
  animation: rrpp-link-check-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.rrpp-link-success-check__mark {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: rrpp-link-check-draw 0.42s 0.18s ease-out forwards;
}

@keyframes rrpp-link-check-pop {
  from {
    transform: scale(0.45);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rrpp-link-check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

#rrppLinkCheckoutApp input,
#rrppLinkCheckoutApp select,
#rrppLinkCheckoutApp textarea {
  font-size: 16px;
}

.rrpp-link-card-free {
  background:
    radial-gradient(
      560px 220px at 90% -20%,
      rgba(52, 211, 153, 0.18),
      transparent 65%
    ),
    linear-gradient(140deg, rgba(11, 32, 24, 0.78), rgba(7, 7, 10, 0.7));
  border-color: rgba(52, 211, 153, 0.28);
}

.rrpp-link-card-public {
  background:
    radial-gradient(
      560px 220px at 90% -20%,
      rgba(56, 189, 248, 0.18),
      transparent 65%
    ),
    linear-gradient(140deg, rgba(8, 23, 40, 0.82), rgba(7, 7, 10, 0.7));
  border-color: rgba(56, 189, 248, 0.28);
}

.rrpp-link-card-nominated {
  background:
    radial-gradient(
      560px 220px at 90% -20%,
      rgba(167, 139, 250, 0.22),
      transparent 65%
    ),
    linear-gradient(140deg, rgba(35, 16, 56, 0.82), rgba(7, 7, 10, 0.7));
  border-color: rgba(167, 139, 250, 0.32);
}
