: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);
}

.mp-wallet:empty::before {
  content: "El botón de pago aparecerá aquí";
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(192, 199, 209, 0.6);
}

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

#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 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);
  }
}
