/* =============================================================
   COBER NETWORK STORE — style.css
   Diseño glassmorphism con paleta morada oscura
   ============================================================= */

/* ---------------------------------------------------------------
   VARIABLES GLOBALES
--------------------------------------------------------------- */
:root {
  --bg:            #06060f;
  --bg-surface:    #0d0d1a;
  --primary:       #8b5cf6;
  --primary-dark:  #6d28d9;
  --primary-glow:  rgba(139, 92, 246, 0.15);
  --primary-glow2: rgba(139, 92, 246, 0.3);
  --accent:        #a78bfa;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border:        rgba(139, 92, 246, 0.2);
  --border-hover:  rgba(139, 92, 246, 0.5);
  --text:          #f8fafc;
  --text-muted:    #94a3b8;
  --text-dim:      #64748b;
  --success:       #22c55e;
  --warning:       #f59e0b;
  --error:         #ef4444;

  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:        12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --shadow-glow:   0 0 30px rgba(139, 92, 246, 0.2);
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.4);
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h:         72px;
}

/* ---------------------------------------------------------------
   RESET Y BASE
--------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selección de texto */
::selection {
  background: var(--primary);
  color: #fff;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  outline: none;
}

/* ---------------------------------------------------------------
   UTILIDADES
--------------------------------------------------------------- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow {
  box-shadow: var(--shadow-glow);
}

.desktop-br { display: block; }

/* ---------------------------------------------------------------
   BOTONES
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(255, 255, 255, 0.08);
}

.btn:hover::before { opacity: 1; }

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.55);
  transform: translateY(-2px);
}

.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border-hover);
}

.btn--outline:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------
   NAVBAR
--------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px var(--primary));
}

.logo-cober {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-ip-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-ip-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.ip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.85); }
}

/* Carrito */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.cart-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(6, 6, 15, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu .nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
}

.mobile-menu .nav-ip-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ---------------------------------------------------------------
   HERO
--------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-h) 24px 80px;
}

#particlesCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.12) 0%, transparent 70%);
  bottom: 0;
  left: -80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

/* Split word — cada word es un span inline-block */
.hero-title .word {
  display: inline-block;
  margin-right: 0.22em;
  opacity: 0; /* GSAP lo animará */
}

.hero-highlight {
  color: var(--primary);
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  opacity: 0; /* GSAP */
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0; /* GSAP */
}

/* ---------------------------------------------------------------
   STATS BAR
--------------------------------------------------------------- */
.stats-bar {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  backdrop-filter: blur(10px);
}

.stats-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------
   SECCIONES COMUNES
--------------------------------------------------------------- */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--primary-glow);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 20px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0 auto;
  border-radius: 3px;
}

/* ---------------------------------------------------------------
   TIENDA — BÚSQUEDA
--------------------------------------------------------------- */
.store-section {
  padding: 96px 0 120px;
}

.search-bar-wrapper {
  max-width: 480px;
  margin: 0 auto 36px;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-dim);
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  padding: 13px 44px 13px 46px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-input::placeholder { color: var(--text-dim); }

/* Clear */
.search-clear {
  position: absolute;
  right: 12px;
  background: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: var(--transition);
}

.search-clear:hover { color: var(--text); background: var(--surface-hover); }

/* ---------------------------------------------------------------
   TABS
--------------------------------------------------------------- */
.tabs-wrapper {
  position: relative;
  margin-bottom: 48px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs-wrapper::-webkit-scrollbar { display: none; }

.tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  position: relative;
  padding-bottom: 2px;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.tab-btn.active {
  color: var(--primary);
  background: var(--primary-glow);
  border-color: var(--border-hover);
}

.tab-icon {
  font-size: 1.1rem;
}

.tab-underline {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: var(--transition);
  pointer-events: none;
}

/* ---------------------------------------------------------------
   SKELETON LOADING
--------------------------------------------------------------- */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(139, 92, 246, 0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
}

.skeleton--img   { height: 100px; border-radius: 12px; }
.skeleton--title { height: 22px; width: 70%; }
.skeleton--text  { height: 14px; width: 100%; }
.skeleton--text.short { width: 55%; }
.skeleton--price { height: 28px; width: 40%; }
.skeleton--btn   { height: 44px; border-radius: var(--radius); }

/* ---------------------------------------------------------------
   GRID DE PRODUCTOS
--------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------------------------------------------------------------
   PRODUCT CARD
--------------------------------------------------------------- */
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
  /* Evita flicker en hover transform */
  will-change: transform;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.product-card:hover {
  border-color: var(--border-hover);
}

.product-card:hover::before { opacity: 1; }

/* Badge de categoría */
.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--primary-glow);
  border: 1px solid var(--border);
  color: var(--accent);
  z-index: 2;
  backdrop-filter: blur(8px);
}

/* Imagen / ícono */
.card-image-wrapper {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(109, 40, 217, 0.04));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card-emoji {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.6));
  transition: transform 0.3s ease;
  z-index: 1;
}

.product-card:hover .card-emoji {
  transform: scale(1.15);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .card-img { transform: scale(1.05); }

/* Contenido */
.card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

/* Footer de la card */
.card-footer {
  padding: 0 22px 22px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.price-currency {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.card-buy-btn:hover {
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.55);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------
   EMPTY STATE
--------------------------------------------------------------- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
}

.empty-icon { font-size: 3.5rem; margin-bottom: 16px; }

.empty-state h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ---------------------------------------------------------------
   CÓMO FUNCIONA
--------------------------------------------------------------- */
.how-section {
  padding: 96px 0 120px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03), transparent);
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.step-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.15);
}

.step-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.5));
}

.step-number {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--border-hover);
  letter-spacing: 0.08em;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
  flex-shrink: 0;
}

.connector-line {
  display: none;
}

.connector-arrow {
  font-size: 1.6rem;
  color: var(--border-hover);
  font-weight: 300;
  padding: 0 8px;
}

/* ---------------------------------------------------------------
   FOOTER
--------------------------------------------------------------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding-top: 72px;
  padding-bottom: 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent);
  padding-left: 4px;
}

/* Tebex */
.tebex-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 4px;
}

.tebex-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.tebex-t {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.tebex-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-not-affiliated { font-style: italic; }

/* ---------------------------------------------------------------
   MODAL
--------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 0;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 92, 246, 0.1);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
}

.modal-close:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--text);
}

.modal-header {
  padding: 40px 32px 28px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.modal-product-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.6));
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-product-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.modal-price-wrapper {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--primary-glow);
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  padding: 6px 18px;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-currency {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-body {
  padding: 28px 32px;
}

.modal-label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.modal-input-wrapper {
  position: relative;
  margin-bottom: 8px;
}

.modal-input {
  width: 100%;
  padding: 13px 50px 13px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  appearance: none;
}

.modal-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.06);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.modal-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.input-char-count {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-dim);
  pointer-events: none;
}

.modal-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.modal-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 6px;
  font-weight: 500;
}

.modal-footer {
  padding: 0 32px 32px;
  display: flex;
  gap: 12px;
}

.modal-cancel  { flex: 1; justify-content: center; }
.modal-checkout { flex: 2; justify-content: center; font-size: 0.92rem; }

/* ---------------------------------------------------------------
   TOAST
--------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-surface);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 3000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------------------------------------------------------------
   ANIMACIONES DE ENTRADA (usadas por GSAP ScrollTrigger)
--------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

/* ---------------------------------------------------------------
   MEDIA QUERIES
--------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .steps-grid { gap: 0; }
}

/* Tablet pequeña */
@media (max-width: 900px) {
  .steps-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .step-card { max-width: 100%; }

  .step-connector {
    display: none;
  }

  .stats-container {
    flex-direction: column;
    gap: 28px;
  }

  .stat-divider {
    width: 80px;
    height: 1px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links { display: none; }
  .cart-btn  { margin-left: auto; }
  .hamburger { display: flex; }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand { grid-column: 1; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons { flex-direction: column; align-items: center; }
  .desktop-br { display: none; }

  .modal { max-width: 100%; }
  .modal-header  { padding: 32px 24px 22px; }
  .modal-body    { padding: 22px 24px; }
  .modal-footer  { padding: 0 24px 28px; }
  .modal-footer  { flex-direction: column; }
  .modal-cancel, .modal-checkout { flex: 1; }

  .tabs { justify-content: flex-start; }
}

/* Mobile pequeño */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-title { font-size: 2rem; }

  .section-title { font-size: 1.6rem; }

  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .card-buy-btn { width: 100%; justify-content: center; }
}
