/* =========================================================
   AVAX Tecno Store — Estilo Aurora Fluida & Glassmorphism Refinado
   Fondo de auroras en movimiento + Cristal translúcido de alta gama.
   ========================================================= */

:root {
  --bg: #050714;
  --bg-soft: rgba(8, 11, 24, 0.35);
  --surface: rgba(8, 12, 28, 0.45);
  --surface-2: rgba(20, 26, 50, 0.6);
  --surface-solid: #080b18;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(45, 212, 255, 0.35);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --brand: #2dd4ff;
  --brand-2: #6366f1;
  --brand-dark: #0ea5e9;
  --warn: #fb923c;
  --danger: #f43f5e;
  --ok: #22c55e;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --glow-brand: 0 0 15px rgba(45, 212, 255, 0.15);

  --brand-rgb: 45, 212, 255;
  --brand-2-rgb: 99, 102, 241;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-snap: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html { 
  scroll-behavior: smooth; 
}

body {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(5, 7, 20, 0.90), rgba(5, 7, 20, 0.90)), url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- Scrollbar Estilizado ---------- */
::-webkit-scrollbar { 
  width: 8px; 
  height: 8px; 
}
::-webkit-scrollbar-track { 
  background: var(--bg); 
}
::-webkit-scrollbar-thumb { 
  background: var(--surface-2); 
  border-radius: 10px; 
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { 
  background: var(--brand-2); 
}

a { 
  color: inherit; 
  text-decoration: none;
}

h1, h2, h3, h4, .font-display {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

::selection { 
  background: var(--brand); 
  color: #050714; 
}



/* ---------- Textos con Degradados ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.logo-mark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text) 30%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Glassmorphism Cards ---------- */
.card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -10px rgba(99, 102, 241, 0.15), var(--glow-brand);
}

/* ---------- Botones Glassmorphic ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.8rem 1.8rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #050714;
  box-shadow: 0 8px 30px -4px rgba(45, 212, 255, 0.3);
}
.btn-primary:hover { 
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -2px rgba(45, 212, 255, 0.4), 0 0 15px rgba(99, 102, 241, 0.2);
  filter: brightness(1.05);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled { 
  opacity: 0.4; 
  cursor: not-allowed; 
  transform: none !important; 
  box-shadow: none !important;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-outline:hover { 
  border-color: var(--brand); 
  color: var(--brand);
  background: rgba(45, 212, 255, 0.04);
  box-shadow: var(--glow-brand);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { 
  background: rgba(255, 255, 255, 0.08); 
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  color: var(--text-muted);
}
.icon-btn:hover { 
  border-color: var(--brand); 
  color: var(--brand); 
  transform: scale(1.05);
  box-shadow: var(--glow-brand);
}

/* ---------- Chips y Badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.chip:hover { 
  color: var(--text); 
  border-color: var(--brand);
  box-shadow: var(--glow-brand);
}
.chip.active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #050714;
  border-color: transparent;
  box-shadow: 0 8px 20px -4px rgba(45, 212, 255, 0.35);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge-oferta { background: rgba(239, 68, 68, 0.08); color: #f87171; border-color: rgba(239, 68, 68, 0.15); }
.badge-nuevo { background: rgba(45, 212, 255, 0.08); color: var(--brand); border-color: rgba(45, 212, 255, 0.15); }
.badge-usado { background: rgba(249, 115, 22, 0.08); color: var(--warn); border-color: rgba(249, 115, 22, 0.15); }
.badge-vendido { background: rgba(34, 197, 94, 0.08); color: var(--ok); border-color: rgba(34, 197, 94, 0.15); }

/* ---------- Product Media ---------- */
.product-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1), rgba(5, 7, 20, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.product-media svg {
  position: relative;
  z-index: 1;
  stroke: var(--brand);
  filter: drop-shadow(0 0 10px rgba(45, 212, 255, 0.25));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .product-media svg {
  transform: scale(1.08) rotate(1deg);
}

/* ---------- Navbar Estilo Glass ---------- */
.navbar {
  background: rgba(5, 7, 20, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.5rem 0;
}
.nav-link:hover, .nav-link.active { 
  color: var(--text); 
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 10%; 
  right: 10%; 
  bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
}

/* ---------- Inputs ---------- */
.input {
  background: rgba(8, 12, 28, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.1rem;
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.input:focus { 
  outline: none; 
  border-color: var(--brand); 
  box-shadow: 0 0 0 3px rgba(45, 212, 255, 0.1), var(--glow-brand); 
}
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

/* ---------- Stepper ---------- */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 12, 28, 0.5);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.stepper button {
  width: 40px; 
  height: 40px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.stepper button:hover { 
  background: rgba(255, 255, 255, 0.05); 
  color: var(--brand);
}
.stepper button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.stepper input {
  width: 40px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}
.stepper input:focus { 
  outline: none; 
}

/* ---------- Marquee / Ticker Horizontal ---------- */
.marquee-container {
  overflow: hidden;
  padding: 1.5rem 0;
  background: rgba(8, 12, 28, 0.2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: relative;
  display: flex;
}
.marquee-container::before, .marquee-container::after {
  content: "";
  position: absolute;
  top: 0; 
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
  gap: 3.5rem;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  opacity: 0.55;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s, color 0.3s;
}
.marquee-item:hover {
  opacity: 1;
  color: var(--brand);
}

/* ---------- Animaciones / Skeletal ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Ajustes de Tabla ---------- */
table {
  border-collapse: separate;
  border-spacing: 0;
}
tr {
  transition: background-color 0.2s;
}

[data-lucide] { 
  display: inline-block; 
  vertical-align: middle;
}



/* ---------- hero CTA ambient glow ---------- */
.cta-glow { position: relative; z-index: 0; }
.cta-glow::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  filter: blur(16px);
  opacity: .45;
  pointer-events: none;
  animation: pulse-glow-opacity 2.8s var(--ease-out-soft) infinite;
}
@keyframes pulse-glow-opacity {
  0%, 100% { opacity: .4; }
  50% { opacity: .8; }
}
.cta-glow:hover::after { animation-play-state: paused; }

/* ---------- scroll-triggered section reveal ---------- */
.reveal { opacity: 1; transform: none; }
.reveal.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.reveal-ready.in-view { opacity: 1; transform: none; }

/* ---------- ambient float (hero image) ---------- */
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.ambient-float { animation: float-slow 6s var(--ease-out-soft) infinite; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
  .card, .btn, .chip, .icon-btn, .product-media img, .product-media svg, .nav-link::after, .navbar { transition: none; }
  .reveal.reveal-ready { opacity: 1; transform: none; transition: none; }
  .ambient-float, .cta-glow::after { animation: none; }
}
