/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

/* =====================================================
   CSS VARIABLES - LIGHT & DARK THEME
   ===================================================== */
:root {
  /* Light Mode Colors — Identidad ROJO elegante */
  --bg-primary: #fffafa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-navbar: rgba(255, 255, 255, 0.96);
  --bg-sidebar: #fff5f5;
  --bg-hover: #fff0f0;
  --bg-input: #ffffff;

  --text-primary: #180808;
  --text-secondary: #4a1818;
  --text-muted: #a07070;
  --text-nav: #2a0a0a;

  --accent-primary: #c41a1a;
  --accent-secondary: #8b0000;
  --accent-glow: rgba(196, 26, 26, 0.25);
  --accent-gradient: linear-gradient(135deg, #c41a1a 0%, #e63535 100%);
  --accent-gradient-hover: linear-gradient(135deg, #9b1414 0%, #c72828 100%);

  --border-color: #f0d5d5;
  --border-accent: #c41a1a;
  --shadow-sm: 0 2px 10px rgba(180, 20, 20, 0.08);
  --shadow-md: 0 8px 30px rgba(180, 20, 20, 0.12);
  --shadow-lg: 0 20px 60px rgba(180, 20, 20, 0.15);
  --shadow-glow: 0 0 20px rgba(196, 26, 26, 0.22);

  --hero-bg: linear-gradient(135deg, #fff5f5 0%, #fdeaea 35%, #fbd8d8 65%, #f9c8c8 100%);
  --grid-color: rgba(196, 26, 26, 0.05);

  --badge-bg: rgba(196, 26, 26, 0.07);
  --badge-text: #9b1414;

  --card-border: 1px solid rgba(196, 26, 26, 0.12);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-med: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-heading: 'Orbitron', monospace;
  --font-body: 'Exo 2', sans-serif;

  /* Sizes */
  --navbar-height: 70px;
  --sidebar-width: 260px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
}

/* Dark Mode — Rojo oscuro elegante */
[data-theme="dark"] {
  --bg-primary: #0d0505;
  --bg-secondary: #180a0a;
  --bg-card: #200c0c;
  --bg-navbar: rgba(13, 5, 5, 0.97);
  --bg-sidebar: #140707;
  --bg-hover: #2a1010;
  --bg-input: #180a0a;

  --text-primary: #fff0f0;
  --text-secondary: #d49090;
  --text-muted: #7a4545;
  --text-nav: #f0c8c8;

  --accent-primary: #e05050;
  --accent-secondary: #c03030;
  --accent-glow: rgba(224, 80, 80, 0.32);
  --accent-gradient: linear-gradient(135deg, #d03030 0%, #f05050 100%);

  --border-color: rgba(220, 60, 60, 0.15);
  --border-accent: #e05050;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 30px rgba(224, 80, 80, 0.28);

  --hero-bg: linear-gradient(135deg, #0d0505 0%, #1a0808 40%, #240e0e 70%, #0d0505 100%);
  --grid-color: rgba(220, 60, 60, 0.04);

  --badge-bg: rgba(224, 80, 80, 0.12);
  --badge-text: #e05050;

  --card-border: 1px solid rgba(220, 60, 60, 0.14);
}

/* GRID PRODUCTOS */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* CARD */
.producto-card {
  background: rgba(255, 255, 255, 0.05); /* transparencia */
  backdrop-filter: blur(12px); /* difuminado */
  -webkit-backdrop-filter: blur(12px); /* Safari */

  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;

  border: 1px solid rgba(255, 255, 255, 0.1); /* borde glass */

  transition: all 0.3s ease;

  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.producto-card img {
  width: 100%;
  height: 180px;
  object-fit: contain; /* 🔥 clave */
  margin-bottom: 1rem;
  align-items: center;
}

.producto-card h3 {
  color: #300000;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  min-height: 48px; /* 🔥 mantiene altura uniforme */
}

.producto-card .precio {
  color: #0f0305;
  font-weight: bold;
  text-align: center;
  margin-top: auto; /* 🔥 empuja hacia abajo */
  font-size: 1.1rem;
}

/* HOVER */
.producto-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(110, 15, 31, 0.5);
}

.producto-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-overlay.activo {
  display: flex;
}

/* CONTENIDO MODAL */
.modal-content {
  background: #111;
  padding: 20px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  color: #fff;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-img {
  width: 100%;
  border-radius: 10px;
}

#cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 25px;
  cursor: pointer;
}

/* ANIMACIÓN */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--transition-med), color var(--transition-med);
  overflow-x: hidden;
  min-height: 100vh;
}

/* =====================================================
   LOADING SCREEN
   ===================================================== */
#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0d0505 0%, #1a0808 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 40px;
  animation: pulse-glow 1.5s ease-in-out infinite;
}

/* TECNO en blanco, TECH en rojo */
.loading-logo .logo-white { color: #ffffff; }
.loading-logo .logo-red {
  background: linear-gradient(135deg, #e63535, #ff6060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(230,53,53,0.7));
}

.loading-bar-container {
  width: 300px;
  height: 3px;
  background: rgba(196, 26, 26, 0.18);
  border-radius: 100px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, #c41a1a, #e63535);
  border-radius: 100px;
  animation: loading-fill 1.8s ease-in-out forwards;
  box-shadow: 0 0 10px rgba(196, 26, 26, 0.8);
}

.loading-text {
  margin-top: 20px;
  font-family: var(--font-body);
  color: rgba(220, 80, 80, 0.75);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.loading-dots {
  display: inline-flex;
  gap: 6px;
  margin-top: 8px;
}

.loading-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #e63535;
  animation: dot-bounce 1.2s ease infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading-fill {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(196, 26, 26, 0.5)); }
  50% { filter: drop-shadow(0 0 25px rgba(230, 53, 53, 0.9)); }
}

@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar-tecnotech {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  transition: background var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
}

.navbar-tecnotech.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  width: 80px;   /* ajusta el tamaño */
  height: auto;
  object-fit: contain;
}



.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  transition: color var(--transition-fast);
}

.logo-text span {
  color: var(--accent-primary);
}

.navbar-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
}

.nav-link-item {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-nav);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  letter-spacing: 0.3px;
  position: relative;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition-fast);
}

.nav-link-item:hover {
  color: var(--accent-primary);
  background: var(--badge-bg);
}

.nav-link-item:hover::after,
.nav-link-item.active::after {
  width: 60%;
}

.nav-link-item.active {
  color: var(--accent-primary);
}


/* Searchbar */
.navbar-search {
  flex: 1;
  max-width: 380px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}

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

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.search-input:focus + .search-icon,
.navbar-search:focus-within .search-icon {
  color: var(--accent-primary);
}

/* Search Results Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  z-index: 1001;
  display: none;
}

.search-dropdown.active { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-hover); }

.search-result-img {
  width: 40px; height: 40px;
  border-radius: var(--border-radius-sm);
  object-fit: contain;
  background: var(--bg-primary);
  padding: 4px;
}

.search-result-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.search-result-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-no-results {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

/* Cart Button */
.cart-btn {
  position: relative;
  width: 38px; height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

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

.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

/* Login Button */
.btn-login {
  padding: 0.5rem 1.25rem;
  background: var(--accent-gradient);
  color: white !important;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(196, 26, 26, 0.3);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 26, 26, 0.45);
  filter: brightness(1.1);
}

/* User Menu */
.user-menu-container {
  position: relative;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  background: var(--badge-bg);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-avatar-btn:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.user-avatar {
  width: 28px; height: 28px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.user-name-display {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  display: none;
  overflow: hidden;
}

.user-dropdown.active { display: block; }

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.user-dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--accent-primary);
}

.user-dropdown-item.danger:hover {
  color: #ff4d6d;
  background: rgba(255, 77, 109, 0.08);
}

/* Mobile Hamburger */
.hamburger-btn {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0; right: 0;
  background: var(--bg-navbar);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  z-index: 999;
  backdrop-filter: blur(20px);
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
}

.mobile-nav {
  display: flex;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav.active {
  max-height: 300px;
}

/* Page Content Offset */
.page-content {
  padding-top: var(--navbar-height);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  min-height: calc(100vh - var(--navbar-height));
  background: var(--hero-bg);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 3rem;
}

/* Grid Background */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

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

.hero-orb-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(196, 26, 26, 0.10) 0%, transparent 70%);
  animation: orb-float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -50px;
  background: radial-gradient(circle, rgba(230, 53, 53, 0.07) 0%, transparent 70%);
  animation: orb-float 10s ease-in-out infinite reverse;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  background: var(--badge-bg);
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--badge-text);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: badge-pulse 2s ease infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  animation: underline-expand 1s ease 0.5s both;
}

@keyframes underline-expand {
  from { width: 0; }
  to { width: 100%; }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.75rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-med);
  box-shadow: 0 6px 20px rgba(0, 170, 255, 0.4);
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 170, 255, 0.55);
  filter: brightness(1.1);
  color: white;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.75rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--badge-bg);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-device {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 170, 255, 0.1);
  animation: float-device 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.hero-device::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

@keyframes float-device {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.device-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.device-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.device-dot:nth-child(1) { background: #ff5f57; }
.device-dot:nth-child(2) { background: #febc2e; }
.device-dot:nth-child(3) { background: #28c840; }

.device-title-bar {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  margin-left: 10px;
}

.device-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.device-product-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.device-product-card:hover {
  border-color: var(--accent-primary);
  transform: scale(1.02);
}

.device-product-img {
  width: 100%;
  height: 60px;
  background: linear-gradient(135deg, var(--bg-hover) 0%, var(--border-color) 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.device-product-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-product-price {
  font-size: 0.7rem;
  font-family: var(--font-heading);
  color: var(--accent-primary);
  font-weight: 700;
}

/* SECCIÓN FULL WIDTH */
.banner-section {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* IMÁGENES DEL BANNER */
.banner {
  width: 100%;
  height: 60vh; /* 🔥 altura relativa a pantalla */
  margin-top: 90px;
  overflow: hidden;
}
.banner-img {
  margin-top: 90px;
  width: 100%;
  height: 600px; /* puedes ajustar */
}

/* TEXTO ENCIMA DEL BANNER */
.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
}

/* TÍTULO */
.carousel-caption h2 {
  font-size: 2.5rem;
  font-weight: bold;
}

/* TEXTO */
.carousel-caption p {
  font-size: 1.2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .carousel-caption h2 {
    font-size: 1.4rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .carousel-caption {
    padding: 10px;
  }

  .banner-img {
    height: 250px; /* más bajo en celular */
  }
}


/* Floating Badges on Hero */
.hero-floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--border-radius);
  padding: 0.6rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.fb-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.fb-1 { top: 10px; left: -40px; animation: float-badge 5s ease infinite; }
.fb-2 { bottom: 20px; right: -30px; animation: float-badge 7s ease infinite 1s; }

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =====================================================
   SECTION STYLES
   ===================================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--badge-bg);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--badge-text);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(0, 170, 255, 0.2);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

.section-title span {
  color: var(--accent-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* Sections */
.products-section {
  padding: 5rem 1.5rem;
}

/* =====================================================
   PRODUCT CARDS
   ===================================================== */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.producto-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(255, 12, 4, 0.12);
  border-color: rgba(255, 0, 0, 0.35);
}

.producto-titulo {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  min-height: 48px; /* 🔥 mantiene altura uniforme */
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.product-img-wrap {
  position: relative;
  padding: 1.25rem;
  background: var(--bg-primary);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-med);
  font-size: 0.7rem;
  color: var(--text-muted);
}

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

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-new {
  background: rgba(0, 200, 130, 0.15);
  color: #00c882;
  border: 1px solid rgba(0, 200, 130, 0.3);
}

.badge-hot {
  background: rgba(255, 80, 50, 0.12);
  color: #ff5032;
  border: 1px solid rgba(255, 80, 50, 0.25);
}

.badge-sale {
  background: rgba(255, 165, 0, 0.12);
  color: #e08800;
  border: 1px solid rgba(255, 165, 0, 0.25);
}

.product-wish {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0;
}

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

.product-wish:hover {
  color: #ff4d6d;
  border-color: #ff4d6d;
  background: rgba(255, 77, 109, 0.08);
}

.product-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--badge-text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.4rem;
}

.product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.product-price-area {
  margin-bottom: 0.75rem;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-currency {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
}

.price-locked {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  background: var(--bg-primary);
  border-radius: 6px;
  border: 1px dashed var(--border-color);
}

.btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 0.6rem;
  background: transparent;
  border: 1px solid var(--accent-primary);
  border-radius: var(--border-radius-sm);
  color: var(--accent-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cart:hover {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 170, 255, 0.35);
  transform: translateY(-1px);
}

.btn-cart.disabled {
  border-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-cart.disabled:hover {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-color);
  transform: none;
  box-shadow: none;
}

/* =====================================================
   CATEGORIES SECTION
   ===================================================== */
.categories-section {
  padding: 4rem 1.5rem;
  background: var(--bg-secondary);
}

.category-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.category-pill:hover,
.category-pill.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px rgba(0, 170, 255, 0.35);
  transform: translateY(-2px);
}

/* =====================================================
   WHY US SECTION
   ===================================================== */
.why-section {
  padding: 5rem 1.5rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-med);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 170, 255, 0.35);
}

.why-icon {
  width: 64px; height: 64px;
  background: var(--badge-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(0, 170, 255, 0.15);
}

.why-card:hover .why-icon {
  background: var(--accent-gradient);
  box-shadow: 0 8px 20px rgba(0, 170, 255, 0.35);
}

.why-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.why-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--badge-bg);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color var(--transition-fast);
}

.footer-link:hover { color: var(--accent-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =====================================================
   MODALS
   ===================================================== */
/* OVERLAY (fondo oscuro con blur) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;  

  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.modal-overlay.activo {
  opacity: 1;
  visibility: visible;
}

/* CAJA PRINCIPAL */
.modal-box {
  background: linear-gradient(145deg, #1a0000, #2a0000);
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  padding: 25px;
  color: white;

  border: 1px solid rgba(255, 0, 60, 0.3);
  box-shadow: 
    0 0 40px rgba(255, 0, 60, 0.2),
    inset 0 0 20px rgba(255, 0, 60, 0.1);

  transform: scale(0.8) translateY(40px);
  transition: all 0.35s ease;
  position: relative;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

/* BOTÓN CERRAR */
#cerrar-modal {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 24px;
  cursor: pointer;
  color: #ff4d6d;
  transition: 0.2s;
}

#cerrar-modal:hover {
  color: white;
  transform: scale(1.2);
}

/* CONTENIDO */
#modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CONTENEDOR SUPERIOR (imagen + info) */
.modal-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* IMAGEN */
.modal-img {
  width: 100%;
  border-radius: 15px;
  background: #000;
  padding: 10px;
}

.modal-img img {
  width: 100%;
  border-radius: 10px;
}

/* INFO */
.modal-info h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.modal-info .precio {
  color: #ff4d6d;
  font-size: 24px;
  margin-bottom: 10px;
}

.modal-info .descripcion {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
}

/* CARACTERÍSTICAS */
.caracteristicas {
  background: rgba(255, 0, 60, 0.08);
  border-radius: 15px;
  padding: 15px;
  border: 1px solid rgba(255, 0, 60, 0.2);
}

.caracteristicas h3 {
  margin-bottom: 10px;
  color: #ff4d6d;
}

.caracteristicas ul {
  list-style: none;
  padding: 0;
}

.caracteristicas li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}

.caracteristicas li strong {
  color: #ff8080;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .modal-top {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 170, 255, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 170, 255, 0.45);
  filter: brightness(1.1);
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.modal-footer-text {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.modal-footer-text a {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
}

.alert-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.alert-error {
  background: rgba(255, 77, 109, 0.1);
  color: #ff4d6d;
  border: 1px solid rgba(255, 77, 109, 0.25);
}

.alert-success {
  background: rgba(0, 200, 130, 0.1);
  color: #00c882;
  border: 1px solid rgba(0, 200, 130, 0.25);
}

/* =====================================================
   CART SIDEBAR
   ===================================================== */
.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-med);
  box-shadow: var(--shadow-lg);
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
}

.cart-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.cart-item:hover {
  border-color: rgba(0, 170, 255, 0.25);
}

.cart-item-img {
  width: 55px; height: 55px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg-secondary);
  padding: 4px;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }

.cart-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 24px; height: 24px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.qty-display {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 20px;
  text-align: center;
}

.cart-item-delete {
  width: 28px; height: 28px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}

.cart-item-delete:hover {
  background: rgba(255, 77, 109, 0.1);
  color: #ff4d6d;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cart-subtotal-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-subtotal-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.cart-iva {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

.btn-checkout {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 170, 255, 0.3);
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 170, 255, 0.45);
  filter: brightness(1.1);
}

/* =====================================================
   CHATBOT
   ===================================================== */
.chatbot-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px; height: 56px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 1500;
  box-shadow: 0 8px 25px rgba(0, 170, 255, 0.45), 0 0 0 0 rgba(0, 170, 255, 0.4);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: chatbot-pulse 3s ease infinite;
}

.chatbot-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 170, 255, 0.55);
  animation: none;
}

@keyframes chatbot-pulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(0, 170, 255, 0.45), 0 0 0 0 rgba(0, 170, 255, 0.4); }
  50% { box-shadow: 0 8px 25px rgba(0, 170, 255, 0.45), 0 0 0 10px rgba(0, 170, 255, 0); }
}

.chatbot-window {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 340px;
  height: 480px;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 170, 255, 0.15);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-med);
}

.chatbot-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.chatbot-header {
  background: var(--accent-gradient);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-avatar {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chatbot-name {
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
}

.chatbot-status {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
}

.chatbot-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.chatbot-close:hover { background: rgba(255,255,255,0.15); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 82%;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  animation: msg-appear 0.25s ease;
}

@keyframes msg-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--accent-gradient);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 1rem 0.75rem;
}

.chat-suggestion-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.chat-suggestion-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--badge-bg);
}

.chatbot-input-area {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
  background: var(--bg-secondary);
}

.chatbot-input {
  flex: 1;
  padding: 0.5rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.chatbot-input:focus { border-color: var(--accent-primary); }
.chatbot-input::placeholder { color: var(--text-muted); }

.chatbot-send {
  width: 34px; height: 34px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.chatbot-send:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 170, 255, 0.4);
}

/* =====================================================
   PRODUCTS PAGE - CATEGORY NAV
   ===================================================== */
.cat-navbar {
  position: sticky;
  top: var(--navbar-height);
  z-index: 100;
  background: var(--bg-navbar);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-navbar::-webkit-scrollbar { display: none; }

.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: max-content;
  height: 52px;
}

.cat-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.9rem;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  position: relative;
}

.cat-nav-btn::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  width: 0; height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width var(--transition-fast);
}

.cat-nav-btn:hover {
  color: var(--accent-primary);
  background: var(--bg-hover);
}

.cat-nav-btn.active {
  color: var(--accent-primary);
  background: var(--badge-bg);
}

.cat-nav-btn.active::after,
.cat-nav-btn:hover::after {
  width: 70%;
}

/* Products Page Layout */
.products-page-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: calc(100vh - var(--navbar-height) - 52px);
  max-width: 1440px;
  margin: 0 auto;
}

/* Filter Sidebar */
.filter-sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--navbar-height) + 52px);
  height: calc(100vh - var(--navbar-height) - 52px);
  overflow-y: auto;
}

.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-track { background: transparent; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.filter-group { margin-bottom: 1.5rem; }

.filter-group-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0.5rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-bottom: 2px;
}

.filter-option:hover { background: var(--bg-hover); }

.filter-option input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--accent-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-option-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  flex: 1;
  cursor: pointer;
}

.filter-option-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--badge-bg);
  padding: 1px 6px;
  border-radius: 100px;
}

/* Price Range Slider */
.price-slider-container { padding: 0.5rem 0; }

.price-slider {
  width: 100%;
  accent-color: var(--accent-primary);
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Products Main Area */
.products-main {
  padding: 1.5rem;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.products-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.products-count strong {
  color: var(--text-primary);
  font-weight: 600;
}

.sort-select {
  padding: 0.45rem 2rem 0.45rem 0.9rem;
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2300aaff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: border-color var(--transition-fast);
}

.sort-select:focus { border-color: var(--accent-primary); }

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.view-btn:hover,
.view-btn.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--badge-bg);
}

/* List View */
.products-grid.list-view {
  grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
  flex-direction: row;
  height: auto;
}

.products-grid.list-view .product-img-wrap {
  width: 140px;
  flex-shrink: 0;
  aspect-ratio: auto;
}

/* Load More */
.load-more-area {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 2.5rem;
  background: transparent;
  border: 1px solid var(--accent-primary);
  border-radius: 100px;
  color: var(--accent-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-load-more:hover {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 170, 255, 0.35);
  transform: translateY(-2px);
}

/* =====================================================
   CONOCENOS PAGE
   ===================================================== */
.about-hero {
  padding: 6rem 1.5rem 4rem;
  background: var(--hero-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.about-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.mvv-card {
  padding: 2rem;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-med);
}

.mvv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.mvv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.mvv-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.mvv-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.mvv-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.values-section {
  padding: 4rem 1.5rem;
  background: var(--bg-secondary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.value-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.value-item:hover {
  border-color: rgba(0, 170, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.value-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.value-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact Form */
.contact-section {
  padding: 5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.contact-info { }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 42px; height: 42px;
  background: var(--badge-bg);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 170, 255, 0.15);
}

.contact-item-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.contact-item-value {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
}

/* Team Section */
.team-section {
  padding: 5rem 1.5rem;
  background: var(--bg-secondary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.team-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-med);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 170, 255, 0.3);
}

.team-avatar {
  width: 80px; height: 80px;
  background: var(--accent-gradient);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  font-family: var(--font-heading);
}

.team-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.team-role {
  font-size: 0.78rem;
  color: var(--badge-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =====================================================
   ADMIN PANEL
   ===================================================== */
.admin-modal {
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
}

.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  gap: 0;
}

.admin-tab {
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.admin-tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.admin-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-color);
}

.admin-product-info {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}

.admin-product-price {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-primary);
}

.admin-actions {
  display: flex;
  gap: 6px;
}

.btn-admin-edit,
.btn-admin-delete {
  width: 28px; height: 28px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.btn-admin-edit:hover { color: var(--accent-primary); border-color: var(--accent-primary); }
.btn-admin-delete:hover { color: #ff4d6d; border-color: #ff4d6d; background: rgba(255,77,109,0.08); }

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: 100px;
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
  animation: toast-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.toast.removing {
  animation: toast-out 0.3s ease forwards;
}

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

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(0.9); }
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* =====================================================
   UTILITIES
   ===================================================== */
.container-xl {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.text-accent { color: var(--accent-primary); }
.text-muted-custom { color: var(--text-muted); }

.scrollbar-custom::-webkit-scrollbar { width: 5px; height: 5px; }
.scrollbar-custom::-webkit-scrollbar-track { background: transparent; }
.scrollbar-custom::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.scrollbar-custom::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }

  .fb-1, .fb-2 { display: none; }

  .navbar-nav-links { display: none; }
  .hamburger-btn { display: flex; }

  .hero-visual { display: none; }

  .products-page-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    display: none;
  }

  .filter-sidebar.mobile-open { display: block; }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-tecnotech {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .navbar-search { max-width: 160px; }

  .chatbot-window {
    right: 1rem;
    bottom: 5rem;
    width: calc(100vw - 2rem);
  }

  .cart-sidebar {
    width: 100vw;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

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

@media (max-width: 480px) {
  .hero-stats { gap: 1.25rem; }
  .navbar-search { display: none; }

  .hero-badge { font-size: 0.7rem; }

  .why-grid { grid-template-columns: 1fr; }

  .mvv-grid { grid-template-columns: 1fr; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   OFFER BANNER
   ===================================================== */
.offer-banner {
  background: var(--accent-gradient);
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.offer-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* Pagination */
.pagination-area {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.page-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.page-btn:hover,
.page-btn.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--badge-bg);
}

/* Brand Logos Strip */
.brands-section {
  padding: 3rem 1.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.brands-track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  animation: brands-scroll 20s linear infinite;
  white-space: nowrap;
}

.brand-logo-item {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  flex-shrink: 0;
  transition: color var(--transition-fast);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
}

.brand-logo-item:hover { color: var(--accent-primary); border-color: rgba(0,170,255,0.3); }

@keyframes brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =====================================================
   TECNOTECH v2 — NUEVOS ESTILOS (Rojo + Features)
   ===================================================== */

/* ── Logo texto TECNO/TECH ── */
.logo-text-tecno {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
}
.logo-text-tech {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #c41a1a 0%, #e63535 60%, #ff8080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(196,26,26,0.35));
}

/* ── Highlight de búsqueda en rojo ── */
mark.search-hl {
  background: rgba(196,26,26,0.15);
  color: var(--accent-primary);
  border-radius: 2px;
  padding: 0 2px;
}

/* ============================================
   CAROUSEL — Hero de productos
   ============================================ */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  background: var(--hero-bg);
  border: var(--card-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  padding: 2.5rem 2.5rem 2.5rem 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 280px;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.carousel-slide::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.carousel-slide-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.carousel-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.85rem;
  background: var(--badge-bg);
  border: 1px solid rgba(196,26,26,0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--badge-text);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.carousel-slide-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.carousel-slide-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.1rem;
  max-width: 380px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-slide-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.carousel-slide-price-locked {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  background: var(--bg-primary);
  border-radius: 6px;
  border: 1px dashed var(--border-color);
  width: fit-content;
  margin-bottom: 1rem;
}

.carousel-slide-img {
  position: relative;
  z-index: 1;
  font-size: 6rem;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 30px rgba(196,26,26,0.18));
  animation: float-device 5s ease-in-out infinite;
}

/* Carousel controls */
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.85rem;
  pointer-events: none;
  z-index: 10;
}

.carousel-btn {
  pointer-events: all;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: var(--card-border);
  color: var(--accent-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1);
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1rem;
}

.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent-primary);
  width: 22px;
  border-radius: 4px;
}

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.product-detail-modal .modal-box {
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.75rem;
}

.pd-img-wrap {
  background: var(--bg-primary);
  border: var(--card-border);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

.pd-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 30px 30px;
}

.pd-img-emoji { position: relative; z-index: 1; }

.pd-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.pd-cat-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.pd-cat-pill {
  padding: 0.22rem 0.7rem;
  background: var(--badge-bg);
  border: 1px solid rgba(196,26,26,0.18);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--badge-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pd-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

/* Price area */
.pd-price-box {
  padding: 0.85rem 1rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: var(--card-border);
  margin-bottom: 1rem;
}

.pd-price-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.pd-price-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}

.pd-price-original {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-top: 3px;
}

.pd-price-iva {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Customization options */
.pd-customization {
  border: var(--card-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.pd-custom-header {
  background: var(--badge-bg);
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--badge-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-custom-body { padding: 0.85rem; }

.pd-option-group {
  margin-bottom: 0.85rem;
}

.pd-option-group:last-child { margin-bottom: 0; }

.pd-option-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pd-chip {
  padding: 0.3rem 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.pd-chip:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.pd-chip.selected {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(196,26,26,0.28);
}

.pd-chip-extra {
  font-size: 0.65rem;
  opacity: 0.85;
  margin-left: 3px;
}

.pd-add-btn {
  width: 100%;
  padding: 0.8rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(196,26,26,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pd-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,26,26,0.45);
  filter: brightness(1.08);
}

/* ============================================
   PC BUILDER — "Arma tu PC"
   ============================================ */
.pc-builder-section {
  padding: 5rem 1.5rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.pc-builder-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.pc-builder-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.pc-builder-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}

.pc-builder-components {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pc-component-card {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--border-radius);
  padding: 1.1rem;
  transition: all var(--transition-fast);
}

.pc-component-card:hover {
  border-color: rgba(196,26,26,0.3);
  box-shadow: var(--shadow-sm);
}

.pc-comp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.7rem;
}

.pc-comp-icon {
  width: 32px; height: 32px;
  background: var(--badge-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.pc-comp-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.pc-comp-select {
  width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 0.85rem;
  background: var(--bg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23c41a1a' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: border-color var(--transition-fast);
}

.pc-comp-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.pc-comp-price {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-top: 0.45rem;
  min-height: 1.2em;
}

.pc-comp-compat {
  font-size: 0.68rem;
  margin-top: 3px;
  min-height: 1em;
}

.compat-ok   { color: #00c882; }
.compat-warn { color: #e08800; }
.compat-err  { color: #e05050; }

/* PC Summary panel */
.pc-summary {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--navbar-height) + 50px);
  box-shadow: var(--shadow-md);
}

.pc-summary-header {
  background: var(--accent-gradient);
  padding: 1.1rem 1.25rem;
  color: white;
}

.pc-summary-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.pc-summary-subtitle {
  font-size: 0.72rem;
  opacity: 0.85;
}

.pc-summary-list {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.pc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.78rem;
}

.pc-summary-row:last-child { border-bottom: none; }

.pc-sum-label { color: var(--text-muted); flex-shrink: 0; }

.pc-sum-value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  font-size: 0.75rem;
  word-break: break-word;
}

.pc-total-area {
  padding: 1rem 1.25rem;
}

.pc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.pc-total-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pc-total-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.pc-total-iva {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 1rem;
}

.pc-compat-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.pc-compat-ok   { background: rgba(0,200,130,0.1); color: #00c882; border: 1px solid rgba(0,200,130,0.25); }
.pc-compat-warn { background: rgba(230,140,0,0.1); color: #e08800; border: 1px solid rgba(230,140,0,0.25); }
.pc-compat-incomplete { background: var(--badge-bg); color: var(--badge-text); border: var(--card-border); }

.btn-pc-add {
  width: 100%;
  padding: 0.8rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(196,26,26,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-pc-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,26,26,0.45);
  filter: brightness(1.08);
}

.btn-pc-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-pc-reset {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.6rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-pc-reset:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ============================================
   RESPONSIVE — nuevas secciones
   ============================================ */
@media (max-width: 900px) {
  .pc-builder-layout {
    grid-template-columns: 1fr;
  }
  .pc-summary {
    position: static;
  }
  .pd-grid {
    grid-template-columns: 1fr;
  }
  .carousel-slide {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .carousel-slide-img { font-size: 4rem; }
  .carousel-slide-desc { max-width: 100%; }
}

@media (max-width: 680px) {
  .pc-builder-components {
    grid-template-columns: 1fr;
  }
  .carousel-slide-title { font-size: 1rem; }
}
