/* ============================================================
   TECNOLINE BAHÍA — MAIN STYLESHEET
   style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES — MODIFICAR AQUÍ PARA CAMBIAR COLORES
   ============================================================ */
:root {
  /* ── Colores de Marca ── */
  --color-primary:       #1565FF;
  --color-primary-dark:  #0D47D9;
  --color-primary-light: #4285FF;
  --color-secondary:     #00CFFF;
  --color-accent:        #FF5B00;
  --color-accent-light:  #FF7A2E;

  /* ── Fondos ── */
  --bg:            #080C18;
  --bg-card:       #0E1525;
  --bg-card-hover: #121D35;
  --bg-glass:      rgba(10, 15, 30, 0.85);
  --bg-input:      rgba(255, 255, 255, 0.06);
  --bg-overlay:    rgba(8, 12, 24, 0.97);

  /* ── Texto ── */
  --text:       #EEF2FF;
  --text-muted: #8892B0;
  --text-dim:   #4A5568;

  /* ── Bordes ── */
  --border:       rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(21, 101, 255, 0.5);

  /* ── Gradientes ── */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-accent:  linear-gradient(135deg, var(--color-accent) 0%, #FF8C00 100%);
  --gradient-hero:    radial-gradient(ellipse at 60% 50%, rgba(21, 101, 255, 0.18) 0%, transparent 70%),
                      radial-gradient(ellipse at 20% 80%, rgba(0, 207, 255, 0.12) 0%, transparent 60%),
                      linear-gradient(180deg, #08091A 0%, #080C18 100%);
  --gradient-card:    linear-gradient(180deg, transparent 55%, rgba(8, 12, 24, 0.95) 100%);

  /* ── Sombras ── */
  --shadow-sm:         0 2px 8px rgba(0,0,0,0.35);
  --shadow-md:         0 4px 24px rgba(0,0,0,0.45);
  --shadow-lg:         0 8px 48px rgba(0,0,0,0.55);
  --shadow-card-hover: 0 8px 40px rgba(21,101,255,0.22);
  --shadow-glow:       0 0 30px rgba(21,101,255,0.28);
  --shadow-accent-glow:0 0 24px rgba(255,91,0,0.3);
  --shadow-wa:         0 6px 24px rgba(37,211,102,0.4);

  /* ── Radios ── */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* ── Transiciones ── */
  --transition:      0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s  cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Tipografía ── */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Layout ── */
  --header-height: 72px;
  --max-width:     1400px;
  --gutter:        24px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; min-height: 100vh; }
img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
button{ cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol{ list-style: none; }
input, select { font-family: inherit; }

/* ============================================================
   SCROLLBAR PERSONALIZADO
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: var(--radius-full); }

/* ============================================================
   UTILIDADES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-accent    { color: var(--color-accent); }
.text-muted     { color: var(--text-muted); }

/* ============================================================
   BOTONES GLOBALES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(21,101,255,0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  background: var(--bg-input);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-wa {
  background: linear-gradient(135deg, #25D366, #1DA851);
  color: #fff;
  box-shadow: var(--shadow-wa);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
  color: #fff;
}

.btn-accent {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-accent-glow);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,91,0,0.4);
}

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: var(--radius-full); }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
#site-header.scrolled {
  background: rgba(8, 12, 24, 0.98);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
  position: relative;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-logo svg { height: 36px; width: auto; }
.logo-wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-wordmark .logo-tecno { color: var(--text); }
.logo-wordmark .logo-line  { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Nav — centrado absolutamente para que quede siempre en el centro del header */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.nav-link {
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-input);
}
.nav-link.active { color: var(--color-primary); }

/* Actions */
.header-actions { display: flex; align-items: center; gap: 8px; }

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  font-size: 1.1rem;
  position: relative;
}
.header-btn:hover { color: var(--text); background: var(--bg-input); }

.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--transition);
}
.cart-badge.visible { transform: scale(1); }

.header-wa-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #25D366, #1DA851);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
}
.header-wa-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-wa); color: #fff; }
.header-wa-btn span { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.hamburger:hover { background: var(--bg-input); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-nav {
  position: fixed;
  top: var(--header-height); left: 0; right: 0;
  background: rgba(8, 12, 24, 0.99);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--gutter) 24px;
  transform: translateY(-110%);
  transition: transform var(--transition);
  z-index: 999;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.mobile-nav .nav-link { padding: 12px 16px; font-size: 1rem; border-radius: var(--radius-md); }
.mobile-nav-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-box {
  width: 100%;
  max-width: 680px;
  padding: 0 var(--gutter);
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0 20px;
  gap: 12px;
}
.search-input-wrapper i { color: var(--text-muted); font-size: 1.1rem; }
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1.1rem;
  padding: 18px 0;
}
.search-input::placeholder { color: var(--text-dim); }
.search-close { color: var(--text-muted); font-size: 1.5rem; cursor: pointer; padding: 8px; }
.search-hint { margin-top: 12px; color: var(--text-muted); font-size: 0.85rem; text-align: center; }
.search-results-quick { margin-top: 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  background: var(--gradient-hero);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  right: -100px; top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(21,101,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(21,101,255,0.12);
  border: 1px solid rgba(21,101,255,0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}
.hero-tag i { font-size: 0.75rem; }
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  animation: fadeInUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  animation: fadeInUp 0.6s 0.4s ease both;
}
.hero-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); }
.hero-visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  z-index: 1;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  mask-image: linear-gradient(to right, transparent 0%, black 40%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
section { padding: 80px 0; }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(21,101,255,0.1);
  border: 1px solid rgba(21,101,255,0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-badge.accent {
  background: rgba(255,91,0,0.1);
  border-color: rgba(255,91,0,0.2);
  color: var(--color-accent-light);
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
}
.category-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card-hover);
}
.category-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(21,101,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition);
}
.category-card:hover .category-icon {
  background: rgba(21,101,255,0.22);
  transform: scale(1.1);
}
.category-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
  line-height: 1.3;
}
.category-card:hover .category-name { color: var(--text); }
.category-count {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ============================================================
   PRODUCTOS — GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Product Card ── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  border-color: rgba(21,101,255,0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card-hover);
}

/* Badges */
.product-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.badge-product {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-offer   { background: var(--gradient-accent); color: #fff; }
.badge-hot     { background: var(--gradient-primary); color: #fff; }
.badge-new     { background: linear-gradient(135deg, #10B981, #059669); color: #fff; }

/* Image */
.product-img-wrapper {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, rgba(21,101,255,0.12) 0%, #080E1E 70%);
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform var(--transition);
}
.product-card:hover .product-img { transform: scale(1.06); }
/* Fallback cuando no existe imagen del producto */
.img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(21,101,255,0.35);
  pointer-events: none;
}
.product-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,12,24,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .product-img-overlay { opacity: 1; }
.product-overlay-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.product-overlay-btn:hover { background: var(--color-primary); border-color: var(--color-primary); transform: scale(1.1); }

/* Info */
.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-brand {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.price-current {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.price-old {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-dim);
  text-decoration: line-through;
}
.price-discount {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent-light);
  background: rgba(255,91,0,0.1);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Card Actions */
.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
}
.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: rgba(21,101,255,0.12);
  border: 1px solid rgba(21,101,255,0.2);
  border-radius: var(--radius-md);
  color: var(--color-primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-add-cart:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.btn-add-cart.added {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.3);
  color: #10B981;
}
.btn-wa-quick {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.2);
  color: #25D366;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-wa-quick:hover { background: #25D366; color: #fff; }

/* ============================================================
   MODAL PRODUCTO
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.modal-product {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition);
  position: relative;
}
.modal-backdrop.open .modal-product {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: var(--text); }

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

/* Gallery */
.modal-gallery { padding: 24px; background: #080D1C; border-radius: var(--radius-xl) 0 0 var(--radius-xl); position: relative; }
.modal-main-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
}
.modal-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-thumb {
  width: 60px; height: 60px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 4px;
  background: #080D1C;
  transition: border-color var(--transition-fast);
}
.modal-thumb.active, .modal-thumb:hover { border-color: var(--color-primary); }

/* Info */
.modal-info { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.modal-brand { font-size: 0.75rem; font-weight: 700; color: var(--color-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.modal-name  { font-size: 1.4rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; }
.modal-model { font-size: 0.85rem; color: var(--text-muted); }
.modal-desc  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.modal-divider { height: 1px; background: var(--border); }
.modal-price-block { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.modal-price-current { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; }
.modal-price-old { font-size: 1rem; color: var(--text-dim); text-decoration: line-through; }
.modal-discount-badge {
  padding: 4px 12px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}
.modal-qty {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  width: fit-content;
}
.qty-btn {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  border-radius: var(--radius-full);
  background: none;
  border: none;
}
.qty-btn:hover { color: var(--text); background: var(--bg-input); }
.qty-value {
  min-width: 38px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

/* ============================================================
   CARRITO PAGE
   ============================================================ */
.cart-page-wrapper {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  min-height: 100vh;
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* Cart Items */
.cart-items-list { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: all var(--transition);
}
.cart-item:hover { border-color: var(--border-light); }
.cart-item-img {
  width: 80px; height: 80px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #080D1C;
  padding: 8px;
}
.cart-item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-brand { font-size: 0.75rem; color: var(--color-secondary); text-transform: uppercase; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 10px; }
.cart-item-price { font-weight: 700; font-size: 1rem; }
.cart-item-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart-qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}
.cart-qty-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  background: none; border: none;
  font-size: 1rem;
}
.cart-qty-btn:hover { color: var(--text); background: var(--bg-input); }
.cart-qty-val { min-width: 32px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.cart-remove {
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  background: none; border: none;
}
.cart-remove:hover { color: #EF4444; background: rgba(239,68,68,0.1); }

/* Cart Right Panel */
.cart-summary-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}
.cart-summary-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cart-summary-row:last-of-type { border-bottom: none; }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 20px;
}
.cart-total-label { font-weight: 700; font-size: 1rem; }
.cart-total-amount { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.03em; }
.cart-empty {
  text-align: center;
  padding: 80px 24px;
}
.cart-empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.3; }
.cart-empty-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.cart-empty-text { color: var(--text-muted); margin-bottom: 24px; }

/* ============================================================
   SECCIÓN OFERTAS
   ============================================================ */
.offers-section { background: linear-gradient(180deg, var(--bg) 0%, rgba(255,91,0,0.04) 50%, var(--bg) 100%); }

/* ============================================================
   SECCIÓN INSTAGRAM
   ============================================================ */
.instagram-section {
  text-align: center;
  padding: 60px 0;
}
.instagram-banner {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 36px;
  background: linear-gradient(135deg, rgba(131,58,180,0.15), rgba(253,29,29,0.1), rgba(252,176,69,0.1));
  border: 1px solid rgba(131,58,180,0.25);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition);
}
.instagram-banner:hover {
  background: linear-gradient(135deg, rgba(131,58,180,0.25), rgba(253,29,29,0.2), rgba(252,176,69,0.2));
  transform: translateY(-3px);
}
.instagram-icon { font-size: 2rem; }
.instagram-text { font-size: 1.1rem; font-weight: 700; }
.instagram-handle { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   CATÁLOGO PAGE
   ============================================================ */
.catalog-page-wrapper {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  min-height: 100vh;
}
.catalog-header {
  margin-bottom: 32px;
}
.catalog-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 20px;
  transition: border-color var(--transition-fast);
  margin-bottom: 24px;
}
.catalog-search-bar:focus-within { border-color: var(--border-focus); }
.catalog-search-bar i { color: var(--text-muted); }
.catalog-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  padding: 14px 0;
}
.catalog-search-input::placeholder { color: var(--text-dim); }

.catalog-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-right: 4px; }
.filter-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.active { background: rgba(21,101,255,0.12); border-color: var(--color-primary); color: var(--color-primary-light); }

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 28px;
}
.sort-select {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--border-focus); }
.results-count { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   CONTACTO PAGE
   ============================================================ */
.contact-page-wrapper {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  min-height: 100vh;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-block { display: flex; flex-direction: column; gap: 32px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-icon.blue  { background: rgba(21,101,255,0.12); color: var(--color-primary-light); }
.contact-icon.green { background: rgba(37,211,102,0.12); color: #25D366; }
.contact-icon.pink  { background: rgba(236,72,153,0.12); color: #EC4899; }
.contact-icon.orange{ background: rgba(255,91,0,0.12);   color: var(--color-accent-light); }
.contact-item-title { font-weight: 700; margin-bottom: 4px; }
.contact-item-text  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* Social Row */
.social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all var(--transition);
}
.social-link:hover { color: var(--text); border-color: var(--border-light); background: var(--bg-card-hover); }
.social-link.instagram:hover { border-color: rgba(131,58,180,0.4); color: #C13584; background: rgba(131,58,180,0.08); }
.social-link.whatsapp:hover  { border-color: rgba(37,211,102,0.4);  color: #25D366; background: rgba(37,211,102,0.08); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #25D366, #1DA851);
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-wa);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  animation: waPulse 2.5s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 10px 36px rgba(37,211,102,0.55);
  color: #fff;
  animation: none;
}
.wa-float i { font-size: 1.4rem; }
.wa-float-text { font-size: 0.82rem; white-space: nowrap; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 6px 36px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #050812;
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; margin: 16px 0; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.footer-social-btn:hover { color: var(--text); border-color: var(--border-light); }
.footer-social-btn.instagram:hover { color: #C13584; border-color: rgba(193,53,132,0.4); background: rgba(193,53,132,0.08); }
.footer-social-btn.whatsapp:hover  { color: #25D366; border-color: rgba(37,211,102,0.4); background: rgba(37,211,102,0.08); }
.footer-social-btn.facebook:hover  { color: #1877F2; border-color: rgba(24,119,242,0.4); background: rgba(24,119,242,0.08); }

.footer-heading { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 0.875rem; color: var(--text-dim); transition: color var(--transition-fast); }
.footer-link:hover { color: var(--text); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--text-dim); margin-bottom: 12px; }
.footer-contact-item i { color: var(--text-muted); margin-top: 2px; flex-shrink: 0; }
.footer-contact-item a { color: var(--text-dim); transition: color var(--transition-fast); }
.footer-contact-item a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }
.footer-copy span { color: var(--color-secondary); font-weight: 600; }

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  max-width: 320px;
}
.toast.success { border-color: rgba(16,185,129,0.3); }
.toast.success i { color: #10B981; }

/* No results */
.no-results {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.no-results i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; display: block; }

/* Page title bar */
.page-title-bar {
  padding: calc(var(--header-height) + 40px) 0 40px;
  background: linear-gradient(180deg, rgba(21,101,255,0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.page-title-bar h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.page-title-bar p  { color: var(--text-muted); margin-top: 6px; font-size: 0.95rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-dim); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb i { font-size: 0.6rem; }
