/* ====================================
   Coporacion wilson— Design System
   Main CSS
   ==================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap');

/* CSS Variables — Design System */
:root {
  --blue: #1565C0;
  --blue-dark: #0A225C;
  --blue-deep: #051336;
  --blue-electric: #2979FF;
  --blue-cyan: #00D4FF;
  --blue-light: #60A5FA;
  --blue-pale: #EFF6FF;
  --orange: #FF6B35;
  --orange-light: #FF885B;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --danger: #EF4444;
  --danger-dark: #DC2626;
  --success: #10B981;
  --warning: #F59E0B;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 6px 12px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .05);
  --shadow-lg: 0 15px 25px rgba(0, 0, 0, .12), 0 5px 10px rgba(0, 0, 0, .06);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, .18), 0 10px 15px rgba(0, 0, 0, .08);
  --shadow-glow: 0 0 30px rgba(41, 121, 255, 0.45);

  --glass-bg: rgba(10, 34, 92, 0.88);
  --glass-border: rgba(255, 255, 255, 0.15);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: 0.28s cubic-bezier(.4, 0, .2, 1);
}

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

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== CUSTOM SCROLLBARS ===== */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2979FF, #1D4ED8);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1565C0, #0A225C);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #2979FF #F1F5F9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Oswald', sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.15rem;
}

p {
  color: var(--gray-600);
}

/* Utilities */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-py {
  padding: 5rem 3rem;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-1 {
  gap: .5rem;
}

.gap-2 {
  gap: 1rem;
}

.hidden {
  display: none !important;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--blue-dark);
  margin-bottom: .5rem;
}

.section-title .subtitle {
  color: var(--gray-400);
  font-size: 1.05rem;
}

.section-title .accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-electric), var(--blue-light));
  border-radius: 2px;
  margin: .75rem auto 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .92rem;
  transition: all var(--transition);
  letter-spacing: .02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-electric), var(--blue));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(41, 121, 255, .35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 121, 255, .5);
}

.btn-outline {
  border: 2px solid var(--blue-electric);
  color: var(--blue-electric);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue-electric);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--blue-pale);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: var(--danger-dark);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-sm {
  padding: .4rem 1rem;
  font-size: .82rem;
}

.btn-lg {
  padding: .85rem 2rem;
  font-size: 1rem;
}

.btn-wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .35);
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, .5);
}

/* ── Fixed header spacer for inner pages ── */
body:not(.page-home):not(.has-transparent-header) #main-content {
  padding-top: 110px;
}

body.has-transparent-header #main-content {
  padding-top: 0;
}

/* Integración Senior de .page-banner bajo el header transparente (desactiva align-items:center) */
body.has-transparent-header .page-banner:first-child,
body.has-transparent-header section.page-banner:first-child {
  margin-top: 0;
  padding-top: 140px !important;
  padding-bottom: 3.5rem !important;
  align-items: flex-start !important;
}

body:not(.page-home):not(.has-transparent-header) #main-content>.page-banner:first-child,
body:not(.page-home):not(.has-transparent-header) #main-content>section:first-child.page-banner {
  margin-top: -100px;
  padding-top: 160px;
  padding-bottom: 4rem;
}

/* ========== PAGE BANNER (inner pages) ========== */
.page-banner {
  position: relative;
  min-height: 465px;
  background-image: url('../uploads/hero_bg1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* Layered overlay */
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(3, 16, 55, 0.92) 0%,
      rgba(13, 71, 161, 0.75) 55%,
      rgba(3, 16, 55, 0.85) 100%);
  z-index: 1;
}

/* Animated grid texture */
.page-banner::after {
  display: none !important;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

/* Glowing accent orb */
.page-banner .banner-orb {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(41, 121, 255, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.page-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Breadcrumb */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.page-breadcrumb a:hover {
  color: #fff;
}

.page-breadcrumb .sep {
  font-size: 0.7rem;
  opacity: 0.5;
}

.page-breadcrumb .current {
  color: var(--blue-light);
}

/* Badge */
.page-banner-badge {
  display: none !important;
}

.page-banner h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 800;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.6rem;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.page-banner p.banner-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 700px;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Decorative line */
.page-banner .banner-line {
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-electric), #00d4ff);
  border-radius: 2px;
  margin-top: 1rem;
  box-shadow: 0 0 14px rgba(41, 121, 255, 0.7);
}

/* ── Legacy support (catalog uses page-header-bg) ── */
.page-header-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0 4rem;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.page-header-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 30, 82, 0.92) 0%, rgba(13, 71, 161, 0.75) 100%);
  z-index: 1;
}

.page-header-bg::after {
  display: none !important;
}

.page-header-bg .container {
  position: relative;
  z-index: 2;
}

.page-header-bg h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  margin-bottom: .5rem;
  color: var(--white);
}

.page-header-bg p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 650px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ========== BRAND SLIDER (PREMIUM) ========== */
.brand-slider-section {
  background: linear-gradient(to bottom, var(--gray-50), var(--white));
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
  position: relative;
}

/* Subtle tech-mesh pattern */
.brand-slider-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--blue-pale) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}

.brand-slider-title-wrap {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.brand-slider-title-wrap h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue-electric);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.brand-slider-title-wrap h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--blue-dark);
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.2;
}

.brand-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 2;
  margin-top: 1rem;
}

/* Futuristic Deep Fade Edges */
.brand-slider-container::before,
.brand-slider-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 280px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.brand-slider-container::before {
  left: 0;
  background: linear-gradient(to right, var(--gray-50) 15%, transparent 100%);
}

.brand-slider-container::after {
  right: 0;
  background: linear-gradient(to left, var(--gray-50) 15%, transparent 100%);
}

.brand-track {
  display: flex;
  width: max-content;
  animation: scrollMarketer 55s linear infinite;
  align-items: center;
  gap: 2rem;
}

.brand-track:hover {
  animation-play-state: paused;
}

.brand-slide {
  flex-shrink: 0;
  width: 220px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  filter: grayscale(100%);
  opacity: 0.35;
  transition: all 0.6s cubic-bezier(.4, 0, .2, 1);
}

.brand-slide img {
  max-width: 150px;
  max-height: 82px;
  transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

.brand-slide:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-8px);
}

.brand-slide:hover img {
  transform: scale(1.12);
}

@keyframes scrollMarketer {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .brand-slider-section {
    padding: 3.5rem 0;
  }

  .brand-slider-title-wrap h2 {
    font-size: 1.6rem;
  }

  .brand-slider-container::before,
  .brand-slider-container::after {
    width: 100px;
  }

  .brand-slide {
    width: 160px;
  }
}

/* ============================================================
   FORGE HEADER — Diseño Único Corporación Ferretera Wilson
   ============================================================ */

/* ── Top bar ── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
}

/* Transparente por defecto (sobre el hero) */
#header.header-transparent {
  background: transparent;
  box-shadow: none;
}

/* Sólido al hacer scroll o en páginas internas */
#header.header-solid {
  background-color: #0A225C;
  background-image: linear-gradient(135deg, rgba(10, 34, 92, 0.96), rgba(29, 78, 216, 0.92)), url('../uploads/page_banner_bg.png');
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

/* ── Top Info Bar ── */
.header-topbar {
  background: #2979ff61;

  padding: 0.35rem 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.4s ease;
  overflow: hidden;
  max-height: 40px;
}

.header-topbar.hidden-bar {
  max-height: 0;
  padding: 0;
  opacity: 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-left a,
.topbar-left span {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.topbar-left a:hover {
  color: #fff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-right a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}

.topbar-right a:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* ── Main Navbar ── */
.navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 78px;
  position: relative;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.nav-logo .logo-img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-top: 0;
  transition: all 0.35s cubic-bezier(.34, 1.56, .64, 1);
  filter: drop-shadow(0 0 8px rgba(41, 121, 255, 0.4));
}

/* Modo transparente en Home (sin scroll) */
#header.header-transparent:not(.header-solid) .nav-logo .logo-img {
  height: 62px;
  width: auto;
  max-width: 200px;
  margin-top: 0;
}

/* Ajuste perfecto SOLO cuando el header está en modo sólido / scrolled */
#header.header-solid .nav-logo .logo-img,
#header.header-scrolled .nav-logo .logo-img {
  height: 44px !important;
  width: auto !important;
  max-width: 175px !important;
  margin-top: 0 !important;
  object-fit: contain !important;
}

.nav-logo:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 16px rgba(41, 121, 255, 0.7));
}

/* ── Navigation Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  position: relative;
}

/* Indicador deslizante (se mueve con JS) */
.nav-indicator {
  position: absolute;
  bottom: -2px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-electric), var(--blue-light), #00d4ff);
  border-radius: 2px 2px 0 0;
  transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(41, 121, 255, 0.8);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: color 0.22s, background 0.22s;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: #fff;
}

/* ── Search Expandable ── */
.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.nav-search-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 16px rgba(41, 121, 255, 0.4);
}

.nav-search {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(.4, 0, .2, 1), opacity 0.3s;
  opacity: 0;
}

.nav-search.open {
  width: 320px;
  opacity: 1;
}

.nav-search input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(4, 22, 70, 0.85);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-search input:focus {
  border-color: var(--blue-electric);
  box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.2);
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.nav-search .search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  font-size: 0.85rem;
}

/* ── Nav Actions ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Video Promo Button in Header ── */
.nav-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.nav-video-btn i {
  font-size: 1rem;
  color: #60A5FA;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-video-btn:hover {
  background: linear-gradient(135deg, #2979FF, #1565C0);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(41, 121, 255, 0.45);
  color: #ffffff;
}

.nav-video-btn:hover i {
  color: #ffffff;
  transform: scale(1.2);
}

.cart-btn {
  position: relative;
  color: var(--white);
  font-size: 1.15rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s cubic-bezier(.34, 1.56, .64, 1);
}

.cart-btn:hover {
  background: rgba(41, 121, 255, 0.35);
  border-color: rgba(41, 121, 255, 0.6);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(41, 121, 255, 0.5);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, #FF6B35, #F7C59F);
  color: #fff;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.5);
  transition: transform var(--transition);
}

.cart-count.pulse {
  animation: pulse .3s ease;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }
}

/* ── Video Showcase Modal ── */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(3, 16, 55, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.video-modal-card {
  width: min(880px, 96vw);
  background: #0B1936;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(41, 121, 255, 0.3);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.video-modal-overlay.open .video-modal-card {
  transform: scale(1) translateY(0);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-electric));
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.video-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.video-modal-close:hover {
  background: rgba(239, 68, 68, 0.85);
  transform: rotate(90deg);
}

.video-modal-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.6rem;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-tab-btn {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.22s;
}

.video-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.video-tab-btn.active {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-electric));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(41, 121, 255, 0.35);
}

.video-modal-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Hamburger (mobile) ── */
.hamburger {
  display: none;
  color: var(--white);
  font-size: 1.3rem;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-electric));
  backdrop-filter: blur(20px);
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.mobile-nav a {
  color: rgba(255, 255, 255, 0.82);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.22s;
  border: 1px solid transparent;
}

.mobile-nav a:hover {
  background: rgba(41, 121, 255, 0.15);
  border-color: rgba(41, 121, 255, 0.3);
  color: #fff;
  transform: translateX(6px);
}

.mobile-search-form {
  padding: 0.75rem 0 0.25rem;
  position: relative;
}

.mobile-search-form input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-size: 0.9rem;
  outline: none;
}

.mobile-search-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.mobile-search-form .ms-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

/* ============================================================
   FORGE HERO — Fullscreen Image Slider + Spark Particles
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── Slides container ── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.85);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: kenBurns 8s ease-in-out infinite alternate;
}

.hero-slide.active {
  opacity: 1;
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.08) translate(-1%, 1%);
  }
}

/* Dark overlay gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 16, 55, 0.88) 0%, rgb(13 71 161 / 17%) 50%, rgba(3, 16, 55, 0.75) 100%);
  z-index: 1;
}

/* Grid texture overlay */
.hero-grid-overlay {
  display: none !important;
}

/* ── Spark particles canvas ── */
#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ── Hero Content ── */
.hero>.container {
  position: relative;
  z-index: 3;

}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 9rem;
  padding-bottom: 5rem;
}

.hero-text {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(41, 121, 255, 0.2);
  border: 1px solid rgba(41, 121, 255, 0.45);
  color: #7ec8ff;
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(41, 121, 255, 0);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(41, 121, 255, 0.12);
  }
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.22;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  overflow: hidden;
  display: block;
}

#hero-typewriter {
  display: inline;
}

/* Typewriter cursor */
.hero-text h1 .cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--blue-electric);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-text>p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

/* ── Stats strip ── */
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

.hero-stat {
  flex: 1;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 1.5rem;
}

.hero-stat:not(:first-child):not(:last-child) {
  padding-left: 1.5rem;
}

.hero-stat .num {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, #7ec8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
  display: block;
}

/* ── Category Cards (right side) ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
}

/* Glow orb behind cards */
.hero-card-grid::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(41, 121, 255, 0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-cat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem;
  text-align: center;
  color: var(--white);
  transition: all 0.35s cubic-bezier(.34, 1.56, .64, 1);
  cursor: pointer;
  min-width: 140px;
  overflow: hidden;
  z-index: 1;
}

/* Shimmer on hover */
.hero-cat-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -60%;
  width: 60%;
  height: 300%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.hero-cat-card:hover::before {
  left: 130%;
}

.hero-cat-card:hover {
  background: rgba(41, 121, 255, 0.25);
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(41, 121, 255, 0.4);
  border-color: rgba(41, 121, 255, 0.5);
}

.hero-cat-card i {
  font-size: 2.4rem;
  margin-bottom: 0.85rem;
  display: block;
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
  filter: drop-shadow(0 0 8px rgba(41, 121, 255, 0.6));
}

.hero-cat-card:hover i {
  transform: scale(1.2) rotate(-5deg);
}

.hero-cat-card span {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Slider Dots ── */
.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 4;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* ── Scroll indicator ── */
.hero-scroll-ind {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-mouse::after {
  content: '';
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(10px);
    opacity: 0;
  }
}



/* ========== FEATURED PRODUCTS INFINITE HORIZONTAL SLIDER ========== */
.featured-slider-section {
  overflow: hidden;
  position: relative;
}

.featured-slider-wrapper {
  position: relative;
  width: 100%;
  padding: 1rem 0;
  overflow: hidden;
}

.featured-slider-row {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.featured-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  padding: 0.75rem 0;
  /* Movimiento continuo hacia la DERECHA */
  animation: featuredScrollRight 90s linear infinite;
}

.featured-track:hover {
  animation-play-state: paused;
}

@keyframes featuredScrollRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Movimiento continuo hacia la IZQUIERDA */
.featured-track-left {
  animation-name: featuredScrollLeft;
}

@keyframes featuredScrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.featured-slide-item {
  flex: 0 0 280px;
  width: 280px;
}

.featured-slide-item .product-card {
  height: 100%;
}

@media (max-width: 768px) {
  .featured-slide-item {
    flex: 0 0 230px;
    width: 230px;
  }

  .featured-track {
    gap: 1rem;
    animation-duration: 65s;
  }
}

@media (max-width: 480px) {
  .featured-slide-item {
    flex: 0 0 200px;
    width: 200px;
  }
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-pale);
}

.product-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ffffff;
  justify-items: center;
}

.product-img img {

  height: 100%;
  transition: transform .4s ease;
}

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

.product-img .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--gray-200);
}



.badge-stack {
  position: absolute;
  top: .6rem;
  left: .6rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: .22rem .6rem;
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-oferta {
  background: linear-gradient(135deg, var(--danger), #FF6B6B);
  color: #fff;
}

.badge-destacado {
  background: linear-gradient(135deg, var(--orange), var(--warning));
  color: #fff;
}

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

.product-cat {
  font-size: .74rem;
  font-weight: 600;
  color: var(--blue-electric);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .35rem;
}

.product-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .5rem;
  line-height: 1.3;
}

.product-desc {
  display: none !important;
}

.product-price {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.price-current {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.price-old {
  font-size: .88rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.price-discount {
  background: var(--danger);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 4px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.btn-add-cart {
  background: linear-gradient(135deg, var(--blue-electric), var(--blue));
  color: #fff;
  border-radius: var(--radius-sm);
  padding: .55rem;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  transition: all var(--transition);
}

.btn-add-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(41, 121, 255, .4);
}

.btn-detail {
  border: 1.5px solid var(--blue-electric);
  color: var(--blue-electric);
  border-radius: var(--radius-sm);
  padding: .55rem;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  transition: all var(--transition);
}

.btn-detail:hover {
  background: var(--blue-pale);
}

/* ========== CATEGORIES INFINITE DUAL SLIDER ========== */
.categories-section {
  overflow: hidden;
  position: relative;
}

.categories-slider-wrapper {
  position: relative;
  width: 100%;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
}

/* Gradient fade overlays on left and right edges */
.categories-slider-wrapper::before,
.categories-slider-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: 10;
  pointer-events: none;
}

.categories-slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--gray-50) 25%, rgba(248, 249, 250, 0) 100%);
}

.categories-slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--gray-50) 25%, rgba(248, 249, 250, 0) 100%);
}

.categories-slider-row {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.categories-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
  padding: 0.5rem 0;
}

/* Pause animation on hover for easy clicking */
.categories-track:hover {
  animation-play-state: paused;
}

/* Fila 1: Desliza hacia la Derecha */
.categories-track-right {
  animation: categoriesScrollRight 110s linear infinite;
}

/* Fila 2: Desliza hacia la Izquierda */
.categories-track-left {
  animation: categoriesScrollLeft 110s linear infinite;
}

@keyframes categoriesScrollRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes categoriesScrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
}

.category-card {
  flex: 0 0 190px;
  width: 190px;
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.category-card:hover,
.category-card.active {
  border-color: var(--blue-electric);
  background: var(--white);
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 28px rgba(41, 121, 255, 0.18);
}

.category-card i {
  font-size: 2.2rem;
  color: var(--blue-electric);
  margin-bottom: .75rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.category-card:hover i {
  transform: scale(1.18);
  color: var(--navy-dark);
}

.category-card h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.category-card .count {
  font-size: .76rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ========== CATALOG PAGE ========== */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.sidebar {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.sidebar h3 {
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--blue-pale);
}

.filter-list li {
  margin-bottom: .35rem;
}

.filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .65rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--gray-600);
  transition: all var(--transition);
}

.filter-list a:hover,
.filter-list a.active {
  background: var(--blue-pale);
  color: var(--blue-electric);
  font-weight: 600;
}

.filter-list .badge-count {
  background: var(--gray-100);
  color: var(--gray-400);
  padding: .1rem .4rem;
  border-radius: 50px;
  font-size: .72rem;
}

.price-range-filter {
  margin-top: 1.5rem;
}

.range-inputs {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}

.range-inputs input[type="number"] {
  width: 100%;
  padding: .45rem .65rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .85rem;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.catalog-header h2 {
  font-size: 1.3rem;
  color: var(--gray-800);
}

.results-count {
  color: var(--gray-400);
  font-size: .88rem;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-400);
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* ========== PRODUCT DETAIL ========== */
.detail-breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: 0.85rem 0;
  font-size: 0.84rem;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--gray-600);
}

.detail-breadcrumb a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.detail-breadcrumb a:hover {
  color: var(--blue-electric);
}

.detail-breadcrumb .sep-icon {
  font-size: 0.65rem;
  color: var(--gray-400);
}

.detail-breadcrumb .crumb-current {
  color: var(--blue-dark);
  font-weight: 600;
  background: #EEF2FF;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #C7D2FE;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-detail-section {
  background: #FFFFFF;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Gallery Wrapper */
.detail-gallery-wrap {
  position: sticky;
  top: 100px;
}

.gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.gallery-main:hover img {
  transform: scale(1.05);
}

.gallery-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.gallery-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.badge-guarantee {
  background: linear-gradient(135deg, #1D4ED8, #2563EB);
  color: #FFFFFF;
}

.badge-discount {
  background: #EF4444;
  color: #FFFFFF;
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.thumb {
  width: 76px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gray-200);
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 3px;
}

.thumb:hover,
.thumb.active {
  border-color: var(--blue-electric);
  box-shadow: 0 0 12px rgba(41, 121, 255, 0.35);
  transform: translateY(-2px);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Info Column */
.detail-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #EEF2FF;
  color: #1D4ED8;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  border: 1px solid #C7D2FE;
}

.detail-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.detail-status-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.stock-in {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.stock-low {
  background: #FEF9C3;
  color: #A16207;
  border: 1px solid #FDE047;
}

.stock-out {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}

.sku-tag {
  font-size: 0.82rem;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Price Box */
.detail-price-card {
  background: linear-gradient(135deg, #F8FAFC, #EFF6FF);
  border: 1px solid #E0E7FF;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.price-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.price-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
}

.detail-price-card .price-current {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0A225C;
}

.detail-price-card .price-old {
  font-size: 1.2rem;
  color: #94A3B8;
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.price-discount-pill {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-left: 0.5rem;
}

.price-subnote {
  font-size: 0.78rem;
  color: #64748B;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Description Box */
.detail-desc-box {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  background: #FAFAFC;
  border-left: 4px solid var(--blue-electric);
  padding: 0.85rem 1.15rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.5rem;
}

/* Purchase Block (Quantity + Action Buttons) */
.detail-purchase-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.qty-selector-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qty-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 3px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #FFFFFF;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1E293B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.qty-btn:hover {
  background: var(--blue-electric);
  color: #FFFFFF;
}

.qty-input {
  width: 48px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0F172A;
}

.detail-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-action-main {
  flex: 1;
  min-width: 220px;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #1D4ED8, #2563EB);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 12px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-action-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.4);
}

.btn-action-wa {
  flex: 1;
  min-width: 220px;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
}

.btn-action-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  color: #FFFFFF;
}

.detail-secondary-actions {
  margin-bottom: 1.5rem;
}

.copy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-link-btn:hover {
  background: #E2E8F0;
  color: var(--blue-electric);
}

/* Trust Grid */
.detail-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  background: #FAFAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  margin-bottom: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.trust-item i {
  font-size: 1.6rem;
  color: var(--blue-electric);
}

.trust-item strong {
  display: block;
  font-size: 0.85rem;
  color: #0F172A;
}

.trust-item span {
  font-size: 0.74rem;
  color: #64748B;
}

/* Technical Specs Card */
.specs-card-wrap {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.specs-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid #EFF6FF;
  padding-bottom: 0.75rem;
}

.specs-title i {
  color: var(--blue-electric);
}

.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
}

.specs-table tr:nth-child(odd) {
  background: #F8FAFC;
}

.specs-table tr:nth-child(even) {
  background: #FFFFFF;
}

.specs-table td {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid #F1F5F9;
}

.specs-table td:first-child {
  color: #475569;
  font-weight: 600;
  width: 40%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.specs-table td:first-child i {
  font-size: 0.8rem;
  color: var(--blue-electric);
}

.specs-table td:last-child {
  color: #0F172A;
  font-weight: 600;
}

/* Full Description */
.full-description-card {
  margin-top: 3.5rem;
  padding: 2rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.description-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 2px solid #EFF6FF;
  padding-bottom: 0.75rem;
}

.description-title i {
  color: var(--blue-electric);
}

.description-body {
  color: #334155;
  line-height: 1.85;
  font-size: 0.96rem;
}

.related-products-section {
  margin-top: 4rem;
}

@media (max-width: 992px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .detail-gallery-wrap {
    position: static;
  }
}

/* ========== CART DRAWER ========== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

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

.cart-drawer {
  position: fixed;
  right: -430px;
  top: 0;
  bottom: 0;
  width: 430px;
  max-width: 95vw;
  background: var(--white);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 30px rgba(0, 0, 0, .15);
  transition: right .3s cubic-bezier(.4, 0, .2, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
}

.cart-header h3 {
  color: #fff;
  font-size: 1.2rem;
}

.cart-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
}

.cart-close:hover {
  background: rgba(255, 255, 255, .25);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-400);
}

.cart-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.cart-item-img {
  width: 70px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .25rem;
}

.cart-item-price {
  font-size: .9rem;
  color: var(--blue-electric);
  font-weight: 700;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--gray-600);
  transition: all var(--transition);
}

.qty-btn:hover {
  border-color: var(--blue-electric);
  color: var(--blue-electric);
}

.qty-num {
  font-size: .9rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  color: var(--gray-400);
  font-size: .85rem;
  transition: color var(--transition);
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

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

.cart-total .label {
  font-weight: 600;
  color: var(--gray-600);
}

.cart-total .amount {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.cart-footer .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: .5rem;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

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

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

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--blue-pale);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.value-card i {
  color: var(--blue-electric);
  font-size: 1.3rem;
  margin-bottom: .5rem;
}

.value-card h4 {
  font-size: .95rem;
  margin-bottom: .25rem;
}

.value-card p {
  font-size: .82rem;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-electric), var(--blue-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-electric);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: .6rem;
  color: var(--gray-800);
}

.service-card p {
  font-size: .88rem;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

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

.contact-info .info-item i {
  font-size: 1.2rem;
  color: var(--blue-light);
  margin-top: .2rem;
  flex-shrink: 0;
}

.contact-info .info-item p {
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: .4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  color: var(--gray-800);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-electric);
  box-shadow: 0 0 0 3px rgba(41, 121, 255, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========== FOOTER ========== */
#footer {
  position: relative;
  background-color: #081120;
  background-image: linear-gradient(180deg, rgb(48 98 194 / 92%) 0%, rgb(23 42 81 / 70%) 100%), url('../uploads/hero_bg1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: rgba(255, 255, 255, .75);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: .88rem;
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  gap: .75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--blue-electric);
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: .5rem;
}

.footer-col ul li a {
  font-size: .88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--blue-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: .82rem;
}

/* Footer mobile — hidden on desktop, shown ≤768px */
.footer-mobile {
  display: none;
}

.fm-brand {
  background: linear-gradient(160deg, #0D2461 0%, #0a1a3a 100%);
  position: relative;
  overflow: hidden;
}

.fm-brand::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(41, 121, 255, .12);
  pointer-events: none;
}

.fm-brand-inner {
  padding: 1.75rem 1.25rem 1.5rem;
  position: relative;
  z-index: 1;
}

.fm-logo-wrap {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}

.fm-logo-wrap .logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.fm-tagline {
  color: rgba(255, 255, 255, .65);
  font-size: .85rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.fm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .6rem;
}

.fm-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: .85rem .5rem;
  border-radius: var(--radius);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}

.fm-action-btn i {
  font-size: 1.2rem;
}

.fm-action-call {
  background: rgba(41, 121, 255, .15);
  color: var(--blue-light);
  border-color: rgba(41, 121, 255, .3);
}

.fm-action-call:hover {
  background: rgba(41, 121, 255, .28);
}

.fm-action-wa {
  background: rgba(37, 211, 102, .15);
  color: #25D366;
  border-color: rgba(37, 211, 102, .3);
}

.fm-action-wa:hover {
  background: rgba(37, 211, 102, .28);
}

.fm-action-mail {
  background: rgba(249, 115, 22, .15);
  color: var(--orange);
  border-color: rgba(249, 115, 22, .3);
}

.fm-action-mail:hover {
  background: rgba(249, 115, 22, .28);
}

.fm-nav-section {
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fm-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background var(--transition);
  font-family: inherit;
}

.fm-accordion-btn:hover {
  background: rgba(255, 255, 255, .04);
}

.fm-accordion-btn.open {
  color: var(--blue-light);
}

.fm-chevron {
  font-size: .75rem;
  color: rgba(255, 255, 255, .35);
  transition: transform .28s ease;
}

.fm-accordion-btn.open .fm-chevron {
  transform: rotate(180deg);
  color: var(--blue-light);
}

.fm-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
  background: rgba(255, 255, 255, .03);
}

.fm-accordion-body.open {
  max-height: 400px;
}

.fm-accordion-body a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.5rem;
  color: rgba(255, 255, 255, .7);
  font-size: .87rem;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: all var(--transition);
}

.fm-accordion-body a:last-child {
  border-bottom: none;
}

.fm-accordion-body a i {
  width: 16px;
  text-align: center;
  color: var(--blue-electric);
  font-size: .85rem;
  flex-shrink: 0;
}

.fm-accordion-body a:hover {
  background: rgba(41, 121, 255, .1);
  color: #fff;
  padding-left: 1.75rem;
}

.fm-contact-row {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: .9rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.fm-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: rgba(255, 255, 255, .5);
  font-size: .82rem;
  line-height: 1.5;
}

.fm-contact-item i {
  color: var(--blue-light);
  margin-top: .15rem;
  flex-shrink: 0;
}

.fm-bottom {
  background: rgba(8, 14, 28, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.1rem 1.25rem .9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.fm-socials {
  display: flex;
  gap: .6rem;
}

.fm-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .6);
  font-size: .85rem;
  transition: all var(--transition);
}

.fm-social:hover {
  background: var(--blue-electric);
  color: #fff;
  border-color: var(--blue-electric);
}

.fm-social-wa:hover {
  background: #25D366;
  border-color: #25D366;
}

.fm-copy {
  font-size: .74rem;
  color: rgba(255, 255, 255, .28);
  text-align: center;
}

/* ========== TOASTS / ALERTS ========== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  pointer-events: none;
}

.toast {
  background: var(--gray-800);
  color: #fff;
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .88rem;
  font-weight: 500;
  animation: toast-in .3s ease;
  pointer-events: all;
  max-width: 320px;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.info {
  border-left: 4px solid var(--blue-electric);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* WhatsApp Float */
.wa-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 800;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .5);
  animation: wa-bounce 2s infinite;
  transition: transform var(--transition);
}

.wa-float:hover {
  transform: scale(1.1);
  animation: none;
}

@keyframes wa-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

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

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 .75rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  transition: all var(--transition);
}

.page-btn:hover,
.page-btn.active {
  background: var(--blue-electric);
  border-color: var(--blue-electric);
  color: #fff;
}

.mobile-only {
  display: none;
}

/* ========== RESPONSIVE ========== */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  /* El sidebar pasa a ser drawer fixed, el layout solo tiene 1 col */
  .sidebar {
    position: static;
    /* se sobreescribe por el ID #catalog-sidebar en el drawer */
  }

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

  .about-grid {
    gap: 2.5rem;
  }

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

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

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

  /* Base */
  .container {
    padding: 0 1rem;
  }

  .section-py {
    padding: 3rem 0;
  }

  h1 {
    font-size: clamp(1.75rem, 7vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  /* Navbar — mobile */
  .nav-links {
    display: none;
  }

  .nav-search-wrap {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    gap: .75rem;
    height: 66px;
  }

  .nav-logo {
    flex: 0 0 auto;
  }

  .header-topbar {
    display: none;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline-block !important;
  }

  /* Hero — fullscreen on mobile */
  .hero {
    min-height: 100%;
    align-items: flex-end;
    padding-bottom: 5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-scroll-ind {
    display: none;
  }

  .hero-badge {
    margin: 0 auto 1rem;
  }

  .hero-text h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .hero-text p {
    font-size: .97rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    justify-content: center;
    gap: .75rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    font-size: .88rem;
    padding: .75rem 1rem;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    margin-top: 2rem;
  }

  .hero-stat {
    text-align: center;
    min-width: 80px;
  }

  .hero-stat .num {
    font-size: 1.6rem;
  }

  .hero-stat .label {
    font-size: .72rem;
  }

  /* Products grid */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: .85rem;
  }

  .product-body {
    padding: .9rem;
  }

  .product-name {
    font-size: .95rem;
  }

  .product-price {
    gap: .45rem;
    margin-bottom: .75rem;
  }

  .price-current {
    font-size: 1.15rem;
  }

  .product-actions {
    gap: .4rem;
  }

  .btn-add-cart,
  .btn-detail {
    font-size: .75rem;
    padding: .5rem .35rem;
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: .75rem;
  }

  .category-card {
    padding: 1.25rem .6rem;
  }

  .category-card i {
    font-size: 1.6rem;
  }

  .category-card h4 {
    font-size: .78rem;
  }

  /* Section titles */
  .section-title {
    margin-bottom: 2rem;
  }

  .section-title h2 {
    font-size: clamp(1.35rem, 5vw, 1.9rem);
  }

  /* Grids */
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
  }

  /* CTA sections */
  [style*="display:flex"][style*="justify-content:center"] {
    flex-wrap: wrap !important;
  }

  /* Services */
  .srv-grid {
    grid-template-columns: 1fr;
  }

  .step-arrow {
    display: none;
  }

  .steps-row {
    flex-direction: column;
    align-items: stretch;
  }

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

  .services-hero {
    padding: 3rem 0 2.5rem;
  }

  /* ── FOOTER MOBILE REDESIGN ── */
  #footer {
    padding: 0;
  }

  #footer>.container {
    display: none;
  }

  /* oculta desktop: grid + copyright bar */

  .footer-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 0;
  }

  /* Toast */
  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    max-width: 100%;
  }

  /* WhatsApp float */
  .wa-float {
    bottom: 1.25rem;
    left: 1.25rem;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .container {
    padding: 0 .875rem;
  }

  h1 {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
  }

  /* Hero */
  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 6rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 1rem 1.5rem;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
  }

  .product-img .placeholder {
    font-size: 2.5rem;
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
  }

  .category-card {
    padding: 1rem .5rem;
    flex: 0 0 100px;
    width: 100px;
  }

  .category-card i {
    font-size: 1.4rem;
    margin-bottom: .4rem;
  }

  .category-card h4 {
    font-size: .72rem;
  }

  .category-card .count {
    display: none;
  }

  /* Values */
  .values-grid {
    grid-template-columns: 1fr;
  }


}

/* ── Very small (≤380px) ── */
@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

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

  .btn-lg {
    padding: .7rem 1.2rem;
    font-size: .88rem;
  }

  .hero-stat .num {
    font-size: 1.4rem;
  }
}

/* ========== SERVICES PAGE ========== */
.services-hero {
  background:
    linear-gradient(135deg, rgba(13, 71, 161, .9) 0%, rgba(21, 101, 192, .85) 50%, rgba(10, 40, 90, .9) 100%),
    url('/wilsonelectric/assets/uploads/hero_bg.png') center/cover no-repeat;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.services-hero h1 {
  color: var(--white);
  margin-bottom: .75rem;
}

.services-hero p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.1rem;
  max-width: 560px;
  margin-inline: auto;
}

/* Service Cards Grid */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  margin: 40px;
}

.srv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.srv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-pale);
}

.srv-card--featured {
  border-color: var(--blue-electric);
  background: linear-gradient(135deg, rgba(41, 121, 255, .04), var(--white));
}

.srv-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.srv-icon--blue {
  background: rgba(41, 121, 255, .12);
  color: var(--blue-electric);
}

.srv-icon--orange {
  background: rgba(249, 115, 22, .12);
  color: var(--orange);
}

.srv-icon--green {
  background: rgba(34, 197, 94, .12);
  color: #16A34A;
}

.srv-icon--teal {
  background: rgba(37, 211, 102, .12);
  color: #128C7E;
}

.srv-icon--purple {
  background: rgba(139, 92, 246, .12);
  color: #7C3AED;
}

.srv-icon--yellow {
  background: rgba(245, 158, 11, .12);
  color: #B45309;
}

.srv-body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.srv-body h3 {
  font-size: 1.2rem;
  color: var(--gray-800);
}

.srv-body p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.srv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.srv-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--gray-600);
}

.srv-list li i {
  color: #16A34A;
  font-size: .8rem;
  flex-shrink: 0;
}

/* Steps / How it works */
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step-item {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.step-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  font-family: 'Oswald', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue-electric);
  margin-bottom: .75rem;
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-electric), var(--blue));
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
  box-shadow: 0 4px 14px rgba(41, 121, 255, .35);
}

.step-item h4 {
  color: var(--gray-800);
  margin-bottom: .5rem;
  font-size: 1rem;
}

.step-item p {
  font-size: .88rem;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--blue-electric);
  opacity: .4;
  margin-top: 3.5rem;
  flex-shrink: 0;
}

/* Responsive services */
@media (max-width: 768px) {
  .srv-grid {
    grid-template-columns: 1fr;
  }

  .step-arrow {
    display: none;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================================
   DETAIL BREADCRUMB BAR
   ============================================================ */
.detail-breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.65rem 0;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.detail-breadcrumb a {
  color: var(--blue-electric);
  transition: color 0.2s;
}

.detail-breadcrumb a:hover {
  color: var(--blue-dark);
}

.sep-icon {
  font-size: 0.6rem;
  color: var(--gray-400);
}

.crumb-current {
  color: var(--gray-600);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   CONTACT GRID — inner pages
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  color: #fff;
}

.contact-info h3 {
  color: #fff;
  margin-bottom: 1.75rem;
  font-size: 1.3rem;
}

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

.info-item i {
  font-size: 1.1rem;
  color: var(--blue-light);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.info-item p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.92rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-info {
    padding: 1.75rem 1.5rem;
  }
}

/* ============================================================
   PAGE BANNER RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {

  /* Inner page padding for fixed header */
  body:not(.page-home):not(.has-transparent-header) #main-content {
    padding-top: 64px;
  }

  body.has-transparent-header #main-content {
    padding-top: 0;
  }

  body.has-transparent-header .page-banner:first-child,
  body.has-transparent-header section.page-banner:first-child {
    margin-top: 0;
    padding-top: 130px !important;
    padding-bottom: 3rem;
    min-height: 360px;
    align-items: center !important;
  }

  body:not(.page-home):not(.has-transparent-header) #main-content>.page-banner:first-child,
  body:not(.page-home):not(.has-transparent-header) #main-content>section:first-child.page-banner {
    margin-top: -64px;
    padding-top: 110px;
    padding-bottom: 2.5rem;
  }

  .page-banner h1 {
    font-size: clamp(1.8rem, 6.5vw, 2.6rem);
    line-height: 1.2;
  }

  .page-banner p.banner-sub {
    font-size: 1rem;
    line-height: 1.55;
  }

  .page-banner .banner-orb {
    display: none;
  }

  .detail-breadcrumb-bar {
    overflow-x: auto;
  }

  .crumb-current {
    max-width: 150px;
  }

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

  .hero-text h1 {
    font-size: clamp(1.8rem, 6.5vw, 2.5rem);
    height: 2.7em;
  }
}

@media (max-width: 480px) {
  .page-banner {
    padding: 3rem 0 2rem;
  }

  .page-breadcrumb {
    flex-wrap: wrap;
  }
}