/* ════════════════════════════════════════════
   Zipp – Estilos compartidos
   ════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
html,
body {
  height: 100%;
  overflow: hidden;
  background: #131315;
  color: #e4e2e4;
}

/* ── Pantallas ─────────────────────────────── */
.screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 64px;
  overflow-y: auto;
  background: #131315;
  display: none;
  -webkit-overflow-scrolling: touch;
}
.screen.active {
  display: block;
}

/* ── Animaciones de transición ─────────────── */
@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.anim-right {
  animation: slideRight 0.22s ease-out;
}
.anim-left {
  animation: slideLeft 0.22s ease-out;
}

/* ── Panel de vidrio ───────────────────────── */
.glass-panel {
  background: rgba(28, 28, 30, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Iconos Material ───────────────────────── */
.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 300,
    "GRAD" 0,
    "opsz" 24;
  vertical-align: middle;
}

/* ── Línea de tiempo ───────────────────────── */
.timeline-line {
  background: linear-gradient(180deg, #0052ff 0%, #0052ff 60%, #434656 100%);
}

/* ── Barra de navegación inferior ─────────── */
#global-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 500;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.55);
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.15s;
  color: rgb(113, 113, 122);
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  min-width: 52px;
}
.nav-btn.active {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
}
.nav-btn:focus-visible,
.global-menu-link:focus-visible,
.explore-filter-option:focus-visible,
.pay-option-card:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.92);
  outline-offset: 2px;
}
.nav-btn .material-symbols-outlined {
  font-size: 22px;
}

/* ── Insignia carrito ──────────────────────── */
.cart-badge-pill {
  position: absolute;
  top: 3px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #0052ff;
  color: white;
  font-size: 9px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  padding: 0 4px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge-pill.show {
  display: flex;
}

/* ── Flash botón agregar ───────────────────── */
@keyframes addFlash {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.88);
  }
  70% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
.btn-flash {
  animation: addFlash 0.28s ease;
}

/* ── Toast ─────────────────────────────────── */
#toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  background: #0052ff;
  color: white;
  padding: 8px 20px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  z-index: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
#toast.show {
  opacity: 1;
}

/* ── Tarjeta de pago ───────────────────────── */
.pay-option-card {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s;
  user-select: none;
  background: rgba(28, 28, 30, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pay-option-card.selected {
  border: 2px solid #0052ff;
  background: rgba(0, 82, 255, 0.08);
}
.radio-ring {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(141, 144, 162, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.pay-option-card.selected .radio-ring {
  border-color: #b7c4ff;
}
.radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b7c4ff;
  display: none;
}
.pay-option-card.selected .radio-dot {
  display: block;
}

/* ── Pulso paso activo ─────────────────────── */
.pulse-glow {
  animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(0, 82, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 26px rgba(0, 82, 255, 0.9);
  }
}

/* ── Menú global (overlay) ───────────────────── */
.global-menu-overlay {
  position: fixed;
  inset: 0;
  bottom: 64px;
  z-index: 450;
  pointer-events: none;
}
.global-menu-overlay:not(.hidden) {
  pointer-events: auto;
}
.global-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.global-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: rgba(22, 22, 26, 0.97);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1rem 1.5rem;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
  overflow-y: auto;
}
.global-menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #e4e4e7;
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.global-menu-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ── Sheet filtros explorar ───────────────── */
.explore-filter-sheet {
  position: fixed;
  inset: 0;
  bottom: 64px;
  z-index: 400;
  pointer-events: none;
}
.explore-filter-sheet:not(.hidden) {
  pointer-events: auto;
}
.explore-filter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.explore-filter-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 52vh;
  overflow-y: auto;
  background: rgba(22, 22, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.45);
}
.explore-filter-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(28, 28, 30, 0.6);
  color: #fafafa;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.explore-filter-option:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}
