/* ============================================================
   ZOMAX CAR AUDIO - Dark Theme
   Paleta: Negro profundo + Rojo Zomax (#e50000 / #cc0000)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Nunito:wght@300;400;600;700&display=swap');

:root {
  --red:        #e50000;
  --red-dark:   #cc0000;
  --red-glow:   rgba(229,0,0,.25);
  --black:      #0a0a0a;
  --black2:     #111111;
  --black3:     #181818;
  --dark:       #1e1e1e;
  --dark2:      #252525;
  --dark3:      #2e2e2e;
  --gray:       #3a3a3a;
  --gray2:      #555;
  --gray3:      #888;
  --light:      #aaaaaa;
  --white:      #f0f0f0;
  --white2:     #e0e0e0;
  --gold:       #f7b731;
  --font-head:  'Rajdhani', sans-serif;
  --font-body:  'Nunito', sans-serif;
  --radius:     6px;
  --radius2:    12px;
  --shadow:     0 4px 24px rgba(0,0,0,.6);
  --shadow-red: 0 4px 24px rgba(229,0,0,.3);
  --transition: .25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white2);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.2; color: var(--white); }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--black);
  border-bottom: 1px solid var(--dark3);
  padding: 6px 0;
  font-size: 13px;
  color: var(--gray3);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.topbar a { color: var(--gray3); }
.topbar a:hover { color: var(--red); }
.topbar-left { display: flex; gap: 16px; align-items: center; }
.topbar-right { display: flex; gap: 12px; align-items: center; }
.topbar-right a { font-size: 16px; }
.topbar-right a:hover { color: var(--red); transform: scale(1.1); display: inline-block; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: var(--black2);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.8);
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 52px; width: auto; }
.logo-text { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--white); letter-spacing: 2px; }
.logo-text span { color: var(--red); }
.logo-tagline { font-size: 11px; color: var(--gray3); letter-spacing: 1px; text-transform: uppercase; margin-top: -2px; }

/* NAV */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--white2);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-transform: uppercase;
}
.nav a:hover, .nav a.active {
  color: var(--red);
  background: rgba(229,0,0,.1);
}
.nav .btn-nav {
  background: var(--red);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
}
.nav .btn-nav:hover { background: var(--red-dark); box-shadow: var(--shadow-red); }

/* HEADER ACTIONS: cuenta + carrito */
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark);
  border: 1px solid var(--dark3);
  border-radius: 50%;
  color: var(--white2);
  font-size: 17px;
  transition: all var(--transition);
}
.header-icon-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--black2);
}

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); transition: all var(--transition); border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* MOBILE NAV */
.mobile-nav {
  display: none;
  background: var(--black2);
  border-top: 1px solid var(--dark3);
  padding: 16px 20px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--white2);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius);
  letter-spacing: .5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--dark3);
}
.mobile-nav a:hover { color: var(--red); background: rgba(229,0,0,.08); }

/* ============================================================
   CONTAINER
   ============================================================ */
.container { max-width: 1260px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   HERO SLIDER — crossfade + Ken Burns
   ============================================================ */
.hero-slider { position: relative; overflow: hidden; background: var(--black); }
.slider-track { position: relative; height: 580px; }
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 1.1s ease;
}
.slide.active { opacity: 1; visibility: visible; z-index: 2; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .72;
  transform: scale(1);
  transition: transform 7s linear;
}
.slide.active .slide-bg { transform: scale(1.12); }
.slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.68) 40%, rgba(10,10,10,.08) 100%);
}
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 60px;
}
.slide-label,
.slide-title,
.slide-subtitle,
.slide-desc,
.slide-btns {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1);
}
.slide.active .slide-label   { opacity: 1; transform: none; transition-delay: .15s; }
.slide.active .slide-title   { opacity: 1; transform: none; transition-delay: .28s; }
.slide.active .slide-subtitle{ opacity: 1; transform: none; transition-delay: .4s; }
.slide.active .slide-desc    { opacity: 1; transform: none; transition-delay: .52s; }
.slide.active .slide-btns    { opacity: 1; transform: none; transition-delay: .64s; }

.slide-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.slide-title {
  font-size: 54px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}
/* Solo el span decorativo explicito (ej. "Sonido que <span>se Siente</span>")
   debe pintarse en rojo. El JS de split-text del primer slide envuelve CADA
   palabra en <span class="word">, y sin esta exclusion esa regla las pintaba
   todas de rojo, dejando el titulo del primer slide distinto al resto. */
.slide-title > span:not(.word) { color: var(--red); }
.slide-subtitle { font-size: 20px; color: var(--red); font-family: var(--font-head); font-weight: 600; margin-bottom: 14px; letter-spacing: .5px; }
.slide-desc { color: var(--light); font-size: 15px; margin-bottom: 28px; max-width: 640px; }
.slide-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,10,.7);
  border: 1px solid var(--gray);
  color: var(--white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
  font-size: 18px;
}
.slider-btn:hover { background: var(--red); border-color: var(--red); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot {
  position: relative;
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  overflow: hidden;
  transition: background var(--transition);
}
.slider-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--red);
  border-radius: 2px;
}
.slider-dot.active::after { animation: dotProgress var(--slide-speed, 5s) linear forwards; }
.slider-dot.done::after { width: 100%; animation: none; }
@keyframes dotProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); color: #fff; box-shadow: var(--shadow-red); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white2); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 36px; font-size: 17px; }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #1ab75a; color: #fff; }
.payment-tab.active { background: var(--red); color: #fff; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 70px 0; }
.section-dark { background: var(--black2); }
.section-darker { background: var(--black3); }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
.section-header h2 span { color: var(--red); }
.section-header p { color: var(--gray3); font-size: 16px; max-width: 560px; margin: 0 auto; }
.section-line { width: 60px; height: 3px; background: var(--red); margin: 14px auto 0; border-radius: 2px; }

/* ============================================================
   CATEGORIAS — carrusel horizontal de una linea
   ============================================================ */
.cat-carousel { position: relative; }
.cat-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 10px 2px 12px;
  scrollbar-width: none;
}
.cat-track::-webkit-scrollbar { display: none; }
.cat-card {
  background: var(--dark);
  border: 1px solid var(--dark3);
  border-radius: var(--radius2);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  flex: 0 0 160px;
  scroll-snap-align: start;
}
.cat-card:hover {
  border-color: var(--red);
  background: var(--dark2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}
.cat-card i { font-size: 32px; color: var(--red); margin-bottom: 12px; display: block; }
.cat-card h3 { font-size: 14px; font-weight: 700; color: var(--white2); font-family: var(--font-head); letter-spacing: .5px; }
.cat-card span { font-size: 12px; color: var(--gray3); margin-top: 4px; display: block; }

.cat-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,10,.85);
  border: 1px solid var(--gray);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 5;
  font-size: 16px;
}
.cat-carousel-btn:hover { background: var(--red); border-color: var(--red); }
.cat-carousel-btn.hidden { display: none; }
.cat-carousel-prev { left: -14px; }
.cat-carousel-next { right: -14px; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

.product-card {
  background: var(--dark);
  border: 1px solid var(--dark3);
  border-radius: var(--radius2);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px var(--red-glow);
}
.product-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--black2);
}
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .4s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-head);
}
.badge-new   { background: var(--red); color: #fff; }
.badge-sale  { background: var(--gold); color: #111; }
.badge-hot   { background: #ff6600; color: #fff; }
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.product-name { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 6px; line-height: 1.3; flex: 1; }
.product-name a { color: var(--white); }
.product-name a:hover { color: var(--red); }
.product-cat  { font-size: 12px; color: var(--gray3); margin-bottom: 12px; }
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.price-current { font-size: 22px; font-weight: 700; color: var(--red); font-family: var(--font-head); }
.price-old    { font-size: 14px; color: var(--gray3); text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; justify-content: center; padding: 9px 12px; font-size: 12px; }

/* ============================================================
   SERVICIOS — carrusel horizontal de una linea
   ============================================================ */
.services-carousel { position: relative; }
.services-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.services-track::-webkit-scrollbar { display: none; }

/* Grid de servicios (pagina /servicios, distinto del carrusel del home) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.services-grid .service-card { flex: none; }

.service-card {
  background: var(--dark);
  border: 1px solid var(--dark3);
  border-radius: var(--radius2);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  flex: 0 0 280px;
  scroll-snap-align: start;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--red);
  transform: scaleY(0);
  transition: transform var(--transition);
  transform-origin: bottom;
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover { border-color: var(--dark2); background: var(--dark2); }
.service-icon { width: 60px; height: 60px; background: rgba(229,0,0,.1); border: 1px solid var(--red-glow); border-radius: var(--radius2); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: all var(--transition); }
.service-icon i { font-size: 26px; color: var(--red); transition: all var(--transition); }
.service-card:hover .service-icon { background: var(--red); transform: scale(1.08) rotate(-4deg); }
.service-card:hover .service-icon i { color: #fff; }
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--gray3); font-size: 14px; line-height: 1.7; }
.service-number {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.12);
  line-height: 1;
  user-select: none;
}

.services-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,10,.85);
  border: 1px solid var(--gray);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 5;
  font-size: 16px;
}
.services-carousel-btn:hover { background: var(--red); border-color: var(--red); }
.services-carousel-btn.hidden { display: none; }
.services-carousel-prev { left: -14px; }
.services-carousel-next { right: -14px; }

/* ============================================================
   MARCAS SLIDER
   ============================================================ */
.brands-strip {
  background: var(--black2);
  border-top: 1px solid var(--dark3);
  border-bottom: 1px solid var(--dark3);
  padding: 40px 0;
  overflow: hidden;
}
.brands-strip h3 { text-align: center; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--gray3); margin-bottom: 30px; font-family: var(--font-body); font-weight: 600; }
.brands-row { display: flex; gap: 40px; align-items: center; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.brands-row::-webkit-scrollbar { height: 4px; }
.brands-row::-webkit-scrollbar-track { background: var(--dark3); }
.brands-row::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }
.brand-item {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 140px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  border: 1px solid var(--dark3);
  border-radius: var(--radius);
  padding: 12px;
  transition: all var(--transition);
  text-decoration: none;
}
.brand-item:hover { border-color: var(--red); box-shadow: var(--shadow-red); background: var(--dark2); }
.brand-item img { max-height: 40px; max-width: 110px; width: auto; object-fit: contain; filter: grayscale(1) brightness(1.5); transition: filter var(--transition); }
.brand-item:hover img { filter: grayscale(0) brightness(1); }
.brand-item-text { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--gray3); text-align: center; letter-spacing: 1px; }
.brand-item:hover .brand-item-text { color: var(--red); }

/* ============================================================
   MARCAS PAGE
   ============================================================ */
.brands-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.brand-card {
  background: var(--dark);
  border: 1px solid var(--dark3);
  border-radius: var(--radius2);
  padding: 32px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
}
.brand-card:hover { border-color: var(--red); box-shadow: var(--shadow-red); transform: translateY(-4px); background: var(--dark2); }
.brand-card-logo { height: 80px; display: flex; align-items: center; justify-content: flex-start; }
.brand-card-logo img { max-height: 70px; max-width: 200px; object-fit: contain; filter: grayscale(1) brightness(1.4); transition: filter var(--transition); }
.brand-card:hover .brand-card-logo img { filter: none; }
.brand-card-logo-text { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--white); }
.brand-card h3 { font-size: 22px; font-weight: 700; color: var(--white); }
.brand-card .origin { font-size: 12px; color: var(--red); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.brand-card p { color: var(--gray3); font-size: 14px; line-height: 1.7; flex: 1; }
.brand-card .btn-ver { align-self: flex-start; margin-top: auto; }

/* ============================================================
   BANNERS / ADS
   ============================================================ */
.ads-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 40px 0; }
.ad-card { border-radius: var(--radius2); overflow: hidden; border: 1px solid var(--dark3); transition: all var(--transition); background: var(--black2); }
.ad-card:hover { border-color: var(--red); transform: scale(1.01); }
.ad-card img { width: 100%; height: 200px; object-fit: cover; }
.ad-banner-full { display: block; border-radius: var(--radius2); overflow: hidden; border: 1px solid var(--dark3); margin: 40px 0; background: var(--black2); line-height: 0; }
.ad-banner-full img { width: 100%; height: 220px; object-fit: cover; display: block; }
@media (max-width: 768px) { .ad-banner-full img { height: 160px; } }

/* ============================================================
   COTIZACION FORM
   ============================================================ */
.quote-section { background: var(--black2); }
.quote-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.quote-info h2 { font-size: 36px; margin-bottom: 16px; }
.quote-info h2 span { color: var(--red); }
.quote-info p { color: var(--gray3); margin-bottom: 24px; line-height: 1.8; }
.quote-features { display: flex; flex-direction: column; gap: 14px; }
.quote-feature { display: flex; gap: 14px; align-items: flex-start; }
.quote-feature i { color: var(--red); font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.quote-feature div h4 { font-size: 15px; margin-bottom: 2px; }
.quote-feature div p { font-size: 13px; color: var(--gray3); margin: 0; }
.form-card {
  background: var(--dark);
  border: 1px solid var(--dark3);
  border-radius: var(--radius2);
  padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--light); letter-spacing: .3px; }
.form-group label .req { color: var(--red); }
.form-control {
  background: var(--black2);
  border: 1px solid var(--dark3);
  color: var(--white2);
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  width: 100%;
}
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.form-control::placeholder { color: var(--gray2); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { cursor: pointer; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.contact-info-item .icon { width: 48px; height: 48px; background: rgba(229,0,0,.1); border: 1px solid var(--red-glow); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item .icon i { color: var(--red); font-size: 20px; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--gray3); font-size: 14px; }
.contact-social { display: flex; gap: 12px; margin-top: 28px; }
.social-btn { width: 42px; height: 42px; background: var(--dark); border: 1px solid var(--dark3); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--gray3); font-size: 18px; transition: all var(--transition); }
.social-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ============================================================
   TIENDA - LAYOUT
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.shop-sidebar { position: sticky; top: 90px; }
.sidebar-card { background: var(--dark); border: 1px solid var(--dark3); border-radius: var(--radius2); padding: 22px; margin-bottom: 18px; }
.sidebar-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--dark3); color: var(--white); display: flex; align-items: center; gap: 8px; }
.sidebar-card h4 i { color: var(--red); }
.sidebar-cat { display: flex; flex-direction: column; gap: 3px; }
.sidebar-cat a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: var(--radius); color: var(--light); font-size: 14px; transition: all var(--transition); }
.sidebar-cat a:hover, .sidebar-cat a.active { color: var(--red); background: rgba(229,0,0,.08); }
.sidebar-cat a span { background: var(--dark3); color: var(--gray3); font-size: 11px; padding: 2px 8px; border-radius: 20px; }

/* Search bar */
.search-bar { display: flex; gap: 8px; }
.search-bar input { flex: 1; }
.search-bar button { flex-shrink: 0; }

/* Shop toolbar */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.shop-toolbar p { color: var(--gray3); font-size: 14px; }
.shop-toolbar p strong { color: var(--white); }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--dark3);
  border-radius: var(--radius);
  color: var(--light);
  font-size: 14px;
  transition: all var(--transition);
  font-family: var(--font-head);
  font-weight: 600;
}
.pagination a:hover, .pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.product-gallery-main { aspect-ratio: 1; background: var(--dark); border: 1px solid var(--dark3); border-radius: var(--radius2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.product-gallery-thumbs { display: flex; gap: 12px; margin-top: 12px; }
.product-thumb { width: 84px; height: 84px; flex: 0 0 84px; background: var(--dark); border: 2px solid var(--dark3); border-radius: 8px; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color var(--transition); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.product-thumb:hover { border-color: var(--gray3); }
.product-thumb.active { border-color: var(--red); }
.product-detail-info h1 { font-size: 32px; margin-bottom: 8px; }
.product-detail-price { font-size: 38px; font-weight: 700; color: var(--red); font-family: var(--font-head); margin: 16px 0; }
.product-detail-price .old { font-size: 20px; color: var(--gray3); text-decoration: line-through; font-weight: 400; }
.product-specs { background: var(--dark); border: 1px solid var(--dark3); border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.spec-row { display: grid; grid-template-columns: 140px 1fr; gap: 0; border-bottom: 1px solid var(--dark3); }
.spec-row:last-child { border-bottom: none; }
.spec-row dt { background: var(--dark2); padding: 11px 16px; font-size: 13px; font-weight: 600; color: var(--light); }
.spec-row dd { padding: 11px 16px; font-size: 14px; color: var(--white2); }
.product-actions-detail { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; align-items: stretch; }
.add-to-cart-form { display: flex; gap: 10px; }
.add-to-cart-form input[type="number"] { width: 70px; text-align: center; }

/* ============================================================
   STATS / COUNTER BAR
   ============================================================ */
.stats-bar { background: var(--red); padding: 28px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 36px; font-weight: 700; color: #fff; line-height: 1; }
.stat-item p { font-size: 13px; color: rgba(255,255,255,.8); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

/* ============================================================
   ESTADOS DE PEDIDO (badge-status)
   ============================================================ */
.badge-status {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
}
.badge-pendiente_pago  { background: rgba(247,183,49,.15); color: #fde68a; border: 1px solid rgba(247,183,49,.3); }
.badge-pagado          { background: rgba(34,197,94,.15);  color: #86efac; border: 1px solid rgba(34,197,94,.3); }
.badge-en_preparacion  { background: rgba(59,130,246,.15); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.badge-listo_retiro    { background: rgba(229,0,0,.15);    color: #fca5a5; border: 1px solid rgba(229,0,0,.3); }
.badge-entregado       { background: rgba(100,100,100,.15);color: var(--gray3); border: 1px solid var(--dark3); }
.badge-cancelado       { background: rgba(229,0,0,.15);    color: #fca5a5; border: 1px solid rgba(229,0,0,.3); }
.badge-en_revision     { background: rgba(247,183,49,.15); color: #fde68a; border: 1px solid rgba(247,183,49,.3); }
.badge-rechazado       { background: rgba(229,0,0,.15);    color: #fca5a5; border: 1px solid rgba(229,0,0,.3); }

/* ============================================================
   ALERT / FLASH
   ============================================================ */
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; font-size: 14px; border: 1px solid transparent; }
.alert i { font-size: 18px; flex-shrink: 0; }
.alert-success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: #86efac; }
.alert-error   { background: rgba(229,0,0,.1); border-color: rgba(229,0,0,.3); color: #fca5a5; }
.alert-info    { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); color: #93c5fd; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--gray3); padding: 16px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray3); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--gray); }
.breadcrumb .current { color: var(--light); }
.breadcrumb-bar { background: var(--black2); border-bottom: 1px solid var(--dark3); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--black2) 50%, var(--black) 100%);
  border-bottom: 2px solid var(--red);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(229,0,0,.08) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 10px; }
.page-hero h1 span { color: var(--red); }
.page-hero p { color: var(--gray3); font-size: 16px; max-width: 550px; margin: 0 auto; }

/* ============================================================
   GRACIAS PAGE
   ============================================================ */
.thanks-card { max-width: 600px; margin: 80px auto; background: var(--dark); border: 1px solid var(--dark3); border-radius: var(--radius2); padding: 50px; text-align: center; }
.thanks-icon { width: 80px; height: 80px; background: rgba(229,0,0,.12); border: 2px solid var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.thanks-icon i { font-size: 38px; color: var(--red); }
.thanks-card h2 { font-size: 30px; margin-bottom: 12px; }
.thanks-card p { color: var(--gray3); line-height: 1.8; margin-bottom: 8px; }
.thanks-code { display: inline-block; background: var(--black2); border: 1px solid var(--red); color: var(--red); padding: 10px 24px; border-radius: var(--radius); font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: 2px; margin: 16px 0 24px; }
.thanks-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  border-top: 2px solid var(--red);
  padding: 60px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--gray3); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; background: var(--dark); border: 1px solid var(--dark3); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--gray3); font-size: 16px; transition: all var(--transition); }
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-col h4 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--dark3); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--gray3); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--red); padding-left: 4px; }
.footer-contact p { color: var(--gray3); font-size: 14px; margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact p i { color: var(--red); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid var(--dark3); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: var(--gray3); font-size: 13px; }
.footer-bottom .powered { color: var(--gray3); font-size: 12px; }
.footer-bottom .powered span { color: var(--red); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all var(--transition);
  animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }
.whatsapp-float i { font-size: 30px; color: #fff; }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 4px 28px rgba(37,211,102,.7); }
}

/* ============================================================
   ANIMACIONES MODERNAS — estilo sonicedge
   ============================================================ */

/* Cursor glow que sigue al mouse */
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(229,0,0,.10), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
}
.cursor-glow.active { opacity: 1; }

/* Scroll reveal genérico */
[data-reveal] {
  opacity: 0;
  transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1);
}
[data-reveal="up"]    { transform: translateY(36px); }
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="zoom"]  { transform: scale(.92); }
[data-reveal].in-view { opacity: 1; transform: none; }

/* Marquee de texto corriendo */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--dark3);
  border-bottom: 1px solid var(--dark3);
  padding: 16px 0;
  background: var(--black2);
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marqueeScroll 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray3);
  display: inline-flex;
  align-items: center;
  gap: 40px;
}
.marquee-track span i { color: var(--red); font-size: 9px; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Tilt 3D magnético para tarjetas */
.tilt-card {
  transform: perspective(900px) rotateX(var(--ry, 0)) rotateY(var(--rx, 0));
  transition: transform .25s ease;
  will-change: transform;
}

/* Barras de ecualizador decorativas */
.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  vertical-align: middle;
}
.eq-bars span {
  width: 3px;
  background: var(--red);
  border-radius: 2px;
  animation: eqBounce 1s ease-in-out infinite;
}
.eq-bars span:nth-child(1) { height: 40%; animation-delay: -.9s; }
.eq-bars span:nth-child(2) { height: 100%; animation-delay: -.6s; }
.eq-bars span:nth-child(3) { height: 60%; animation-delay: -.3s; }
.eq-bars span:nth-child(4) { height: 85%; animation-delay: -1.1s; }
.eq-bars span:nth-child(5) { height: 50%; animation-delay: -.45s; }
@keyframes eqBounce {
  0%, 100% { transform: scaleY(.4); }
  50%      { transform: scaleY(1); }
}

/* Parallax del hero (JS mueve --py) */
.slide-bg { will-change: transform; }
.hero-slider.parallax .slide-bg {
  transform: translateY(var(--py, 0px)) scale(1.06);
}

/* Split-text reveal en el título del hero */
.split-words { display: inline-block; overflow: hidden; }
.split-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotate(4deg);
  transition: transform .8s cubic-bezier(.22,.61,.36,1), opacity .6s ease;
}
.split-words.in-view .word { opacity: 1; transform: translateY(0) rotate(0); }

/* ============================================================
   CARRITO
   ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-items-box { background: var(--dark); border: 1px solid var(--dark3); border-radius: var(--radius2); overflow: hidden; }
.cart-item-row { display: flex; gap: 16px; align-items: center; padding: 18px; border-bottom: 1px solid var(--dark3); flex-wrap: wrap; }
.cart-item-img {
  width: 72px; height: 72px; flex-shrink: 0;
  background: var(--black2); border-radius: var(--radius);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 6px; }
.cart-item-info { flex: 1 1 160px; min-width: 0; }
.cart-item-name { color: var(--white); font-family: var(--font-head); font-weight: 700; }
.cart-item-price { color: var(--red); font-weight: 700; margin-top: 4px; }
.cart-item-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cart-qty-form input { width: 64px; padding: 6px; }
.cart-item-subtotal { width: 90px; text-align: right; font-weight: 700; color: var(--white); }
.cart-summary-box { position: sticky; top: 90px; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.checkout-summary-box { position: sticky; top: 90px; }
/* overflow-x:auto (no hidden) es lo que permite deslizar la tabla cuando no
   cabe: un overflow:hidden en el contenedor externo (como se usaba antes en
   estilos inline con border-radius) cancela este scroll y corta columnas
   como el boton "Ver" sin ningun indicio visual de que hay mas contenido. */
.table-responsive-wrap { position: relative; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--dark); border: 1px solid var(--dark3); border-radius: var(--radius2); }
.table-responsive table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.table-responsive th { font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--gray3); }
.table-responsive .btn-sm { padding: 7px 12px; font-size: 12px; }
.table-scroll-hint { display: none; }
@media (max-width: 640px) {
  .table-responsive table { font-size: 12.5px; min-width: 480px; }
  .table-responsive th, .table-responsive td { padding: 10px 8px !important; white-space: nowrap; }
  .table-responsive .btn-sm { padding: 6px 10px; font-size: 11.5px; }
  /* Pista visual explicita: sin esto, en pantallas angostas el usuario no
     tiene forma de saber que la tabla se puede deslizar para ver el resto
     de las columnas (incluido el boton de accion al final de cada fila). */
  .table-scroll-hint {
    display: flex; align-items: center; gap: 6px; justify-content: flex-end;
    font-size: 11.5px; color: var(--gray3); padding: 6px 4px 0;
  }
  .table-scroll-hint i { color: var(--red); animation: tableScrollHintMove 1.4s ease-in-out infinite; }
  @keyframes tableScrollHintMove { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
  .table-responsive .btn-sm span.btn-text { display: none; }
}

/* ============================================================
   ABOUT / MARCAS (grids sueltos que necesitan colapsar en movil)
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.brand-hero-grid { display: grid; grid-template-columns: auto 1fr; gap: 50px; align-items: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .quote-wrapper, .contact-grid, .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary-box { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary-box { position: static; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .shop-sidebar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .slide { height: 420px; }
  .slide-title { font-size: 34px; }
  .slide-content { padding: 0 28px; }
  .section-header h2 { font-size: 28px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .brands-page-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cat-card { flex-basis: 130px; }
  .cat-carousel-prev { left: -8px; }
  .cat-carousel-next { right: -8px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .thanks-card { margin: 40px 20px; padding: 30px 20px; }
  .cart-item-row { flex-direction: column; align-items: stretch; text-align: center; }
  .cart-item-img { width: 100%; height: 140px; margin: 0 auto; }
  .cart-item-info { text-align: center; }
  .cart-item-actions { justify-content: center; flex-wrap: wrap; }
  .cart-item-subtotal { width: auto; text-align: center; }
  section { padding: 50px 0; }
}
@media (max-width: 480px) {
  .topbar .topbar-left { display: none; }
  .slide { height: 340px; }
  .slide-title { font-size: 26px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .slide-btns { flex-direction: column; gap: 10px; }
  .product-actions { flex-direction: column; }
  .product-actions-detail { flex-direction: column; }
  .add-to-cart-form { width: 100%; }
  .add-to-cart-form button { flex: 1; }
  .shop-sidebar { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: 1fr; }
  .brand-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .brand-hero-grid h1 { font-size: 30px !important; }
}

/* ============================================================
   UTILS
   ============================================================ */
.text-red    { color: var(--red) !important; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.hidden { display: none; }
.d-flex { display: flex; }
.gap-8  { gap: 8px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
