:root {
  color-scheme: light;
  --el-primary: #ffd200;
  --el-primary-dark: #e6bd00;
  --el-dark: #333e48;
  --el-dark-light: #4b5563;
  --el-light: #ffffff;
  --el-bg: #f5f7fa;
  --el-border: #e6e9eb;
  --el-text: #333e48;
  --el-muted: #6c757d;
  --el-accent: #006394;
  --el-danger: #e8112d;
  --el-success: #00aa63;
  --bs-body-font-family: "Inter", "Poppins", sans-serif;
  --bs-body-font-size: 0.925rem;
  --bs-body-color: var(--el-text);
}
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-size-adjust: 100%;
  scroll-behavior: smooth;
}
body,
html {
  height: 100%;
}
body {
  font-family: "Inter", "Poppins", sans-serif;
  font-size: 0.925rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-color: var(--el-bg);
  color: var(--el-text);
}
img {
  max-width: 100%;
}
a {
  color: var(--el-text);
  text-decoration: none;
}
a:hover {
  color: var(--el-dark);
}
.btn-primary {
  --bs-btn-bg: var(--el-primary);
  --bs-btn-border-color: var(--el-primary);
  --bs-btn-color: var(--el-dark);
  --bs-btn-hover-bg: var(--el-primary-dark);
  --bs-btn-hover-border-color: var(--el-primary-dark);
  --bs-btn-hover-color: var(--el-dark);
  --bs-btn-active-bg: var(--el-primary-dark);
  --bs-btn-active-border-color: var(--el-primary-dark);
  --bs-btn-active-color: var(--el-dark);
  font-weight: 700;
}
.text-primary {
  color: var(--el-primary) !important;
}

/* ===== TOP BAR ===== */
.el-topbar {
  background: var(--el-dark);
  color: #e6e9eb;
  font-size: 0.8rem;
}
.el-topbar a {
  color: #e6e9eb;
  text-decoration: none;
  font-size: 0.8rem;
}
.el-topbar a:hover {
  color: var(--el-primary);
}
.el-topbar .topbar-item {
  padding: 0.4rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-right: 1px solid #ffffff20;
}
.el-topbar .topbar-item:first-child {
  border-left: 1px solid #ffffff20;
}

/* ===== MASTHEAD ===== */
.el-masthead {
  background: var(--el-light);
  border-bottom: 1px solid var(--el-border);
  padding: 0.9rem 0;
}
.el-search .form-control {
  border-radius: 0.25rem 0 0 0.25rem;
  border: 2px solid var(--el-primary);
  border-right: 0;
  font-size: 0.9rem;
}
.el-search .btn {
  border: 2px solid var(--el-primary);
  background: var(--el-primary);
  color: var(--el-dark);
  border-radius: 0 0.25rem 0.25rem 0;
  font-weight: 700;
}
.el-search .btn:hover {
  background: var(--el-primary-dark);
}
.el-icon-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--el-text);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}
.el-icon-link:hover {
  color: var(--el-accent);
}
.el-icon-link .ic {
  font-size: 1.6rem;
  color: var(--el-accent);
}
.el-icon-link .cap {
  font-size: 0.75rem;
  color: var(--el-muted);
  line-height: 1.1;
}
.el-icon-link .val {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}
.el-cart-count,
.el-compare-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--el-primary);
  color: var(--el-dark);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 1.1rem;
  height: 1.1rem;
  line-height: 1.1rem;
  text-align: center;
}

/* ===== NAVBAR ===== */
.el-nav {
  background: var(--el-light);
  border-bottom: 1px solid var(--el-border);
}
.el-nav .navbar-nav > .nav-item > .nav-link {
  font-weight: 600;
  color: var(--el-text);
  padding: 0.75rem 1rem;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.el-nav .navbar-nav > .nav-item > .nav-link:hover,
.el-nav .navbar-nav > .nav-item > .nav-link.active {
  color: var(--el-accent);
}
.el-departments-btn {
  background: var(--el-primary);
  color: var(--el-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  border-radius: 0.35rem;
  padding: 0.75rem 1rem;
  border: 0;
  white-space: nowrap;
}
.el-departments-btn:hover {
  background: var(--el-primary-dark);
  color: var(--el-dark);
}
.el-megamenu {
  border: 1px solid var(--el-border);
  border-radius: 0 0.5rem 0.5rem 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 1rem;
  width: 720px;
  max-width: 90vw;
}
.el-megamenu .mm-title {
  font-weight: 700;
  color: var(--el-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--el-primary);
}
.el-megamenu .mm-link {
  color: var(--el-text);
  font-size: 0.85rem;
  padding: 0.2rem 0;
  display: block;
}
.el-megamenu .mm-link:hover {
  color: var(--el-accent);
}

/* ===== DEPARTMENTS DROPDOWN (Todos los departamentos) ===== */
.el-departments {
  position: relative;
}
.el-departments-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.el-departments.open .el-departments-btn {
  background: var(--el-primary-dark);
}
.el-departments-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1060;
  min-width: 960px;
  max-width: 98vw;
  background: var(--el-light);
  border: 1px solid var(--el-border);
  border-top: 2px solid var(--el-primary);
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  margin-top: 0.35rem;
}
.el-departments.open .el-departments-menu {
  display: flex;
}
.el-dept-nav {
  flex: 0 0 260px;
  background: var(--el-dark);
  padding: 0.5rem 0;
  border-radius: 0 0 0 0.5rem;
}
.el-dept-nav > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.el-dept-nav > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #c8cdd3;
  padding: 0.62rem 1rem;
  font-size: 0.88rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.el-dept-nav > ul > li > a i {
  font-size: 0.7rem;
  opacity: 0.7;
}
.el-dept-nav > ul > li:hover > a,
.el-dept-nav > ul > li.active > a {
  background: var(--el-primary);
  color: var(--el-dark);
  font-weight: 700;
}
.el-dept-nav > ul > li.active > a i {
  opacity: 1;
}
.el-dept-panels {
  flex: 1;
  padding: 1.25rem 1.5rem;
  max-height: 50vh;
  overflow-y: auto;
}
.el-dept-panel {
  display: none;
}
.el-dept-panel.active {
  display: block;
}
.el-mm-banner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--el-dark);
  color: #fff;
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  height: 100%;
}
.el-mm-banner i {
  font-size: 2rem;
  color: var(--el-primary);
}
.el-mm-banner b {
  display: block;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.el-mm-banner span {
  display: block;
  font-size: 0.78rem;
  color: #c8cdd3;
}
.el-mm-banner em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--el-primary);
  font-weight: 700;
  margin-top: 0.25rem;
}

/* ===== MEGAMENU NAV (Productos) ===== */
.el-nav-hover {
  position: relative;
}
.el-nav-megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 1060;
  width: 900px;
  max-width: 92vw;
  background: var(--el-light);
  border: 1px solid var(--el-border);
  border-top: 2px solid var(--el-primary);
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  padding: 1.25rem 1.5rem;
  max-height: 50vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}
.el-nav-hover:hover .el-nav-megamenu,
.el-nav-hover:focus-within .el-nav-megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.el-nav-megamenu .mm-title,
.el-dept-panel .mm-title {
  font-weight: 700;
  color: var(--el-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--el-primary);
}
.el-nav-megamenu .mm-link,
.el-dept-panel .mm-link {
  color: var(--el-text);
  font-size: 0.85rem;
  padding: 0.2rem 0;
  display: block;
}
.el-nav-megamenu .mm-link:hover,
.el-dept-panel .mm-link:hover {
  color: var(--el-accent);
}
.el-nav-megamenu .mm-all,
.el-dept-panel .mm-all {
  font-weight: 700;
  color: var(--el-accent);
  margin-top: 0.4rem;
}

/* ===== MOBILE TOGGLE ===== */
.el-mobile-toggle {
  background: var(--el-light);
  border: 1px solid var(--el-border);
  color: var(--el-dark);
  border-radius: 0.35rem;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.el-mobile-toggle:hover {
  border-color: var(--el-primary);
  color: var(--el-dark);
}

/* ===== MOBILE OFFSCANVAS ===== */
.el-mobile-menu {
  max-width: 320px;
}
.el-mobile-menu-head {
  border-bottom: 1px solid var(--el-border);
}
.el-mobile-account {
  background: var(--el-bg);
  border: 1px solid var(--el-border);
  border-radius: 0.5rem;
  padding: 0.6rem;
}
.el-mobile-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--el-light);
  border: 1px solid var(--el-border);
  color: var(--el-text);
  border-radius: 0.35rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
}
.el-mobile-account-btn:hover {
  border-color: var(--el-primary);
  color: var(--el-dark);
}
.el-mobile-account-btn .el-cart-count,
.el-mobile-bottomnav .el-cart-count {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.15rem;
}
.el-mobile-links .nav-link {
  color: var(--el-text);
  font-weight: 600;
  padding: 0.5rem 0;
  font-size: 0.92rem;
}

/* ===== MOBILE BOTTOM NAV ===== */
.el-mobile-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: var(--el-light);
  border-top: 1px solid var(--el-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}
.el-mobile-bottomnav a,
.el-mobile-bottomnav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  background: none;
  border: 0;
  color: var(--el-muted);
  font-size: 0.65rem;
  text-decoration: none;
  padding: 0.2rem 0.75rem;
  position: relative;
}
.el-mobile-bottomnav a:hover,
.el-mobile-bottomnav a.active,
.el-mobile-bottomnav button:hover {
  color: var(--el-accent);
}
.el-mobile-bottomnav i {
  font-size: 1.2rem;
}

/* ===== SECTION TITLES ===== */
.el-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}
.el-section-title h2 {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  color: var(--el-dark);
  letter-spacing: 0.02em;
}
.el-section-title .line {
  flex: 1;
  height: 2px;
  background: var(--el-border);
}
.el-section-title .line:first-child {
  flex: 0 0 0;
}

/* ===== PRODUCT CARDS (Electro style) ===== */
.el-product {
  background: var(--el-light);
  border: 1px solid var(--el-border);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.el-product:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.el-product-media {
  position: relative;
  background: var(--el-light);
  border-bottom: 1px solid var(--el-border);
  overflow: hidden;
}
.el-product-media .thumb {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center;
}
.el-product-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--el-danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}
.el-product-body {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.el-product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--el-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3rem;
}
.el-product-name:hover {
  color: var(--el-accent);
}
.el-product-meta {
  font-size: 0.78rem;
  color: var(--el-muted);
  margin: 0.25rem 0;
}
.el-product-meta .sep {
  margin: 0 0.3rem;
  color: var(--el-border);
}
.el-product-price {
  margin-top: auto;
  padding-top: 0.5rem;
}
.el-product-price .price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--el-dark);
}
.el-product-price .price-old {
  font-size: 0.85rem;
  color: var(--el-muted);
  text-decoration: line-through;
  margin-left: 0.4rem;
}
.el-product-price .price-tax {
  display: block;
  font-size: 0.72rem;
  color: var(--el-success);
  font-weight: 600;
}
.el-product-footer {
  padding: 0 1rem 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.el-product-footer .btn-add {
  background: var(--el-light);
  border: 2px solid var(--el-primary);
  color: var(--el-dark);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 0.3rem;
  flex: 1;
}
.el-product-footer .btn-add:hover {
  background: var(--el-primary);
}
.el-product-footer .btn-compare {
  background: var(--el-light);
  border: 2px solid var(--el-border);
  color: var(--el-dark);
  font-size: 0.82rem;
  border-radius: 0.3rem;
  padding: 0.45rem 0.75rem;
}
.el-product-footer .btn-compare:hover {
  border-color: var(--el-accent);
  color: var(--el-accent);
}

/* ===== BRAND CARDS (catalogos) ===== */
.el-brand-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.el-brand-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.el-brand-logo {
  background: var(--el-light);
  border-bottom: 1px solid var(--el-border);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 1rem;
}
.el-brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== COMPARE ===== */
.compare-table th.compare-attr {
  background: var(--el-bg);
  white-space: nowrap;
  width: 160px;
}
.compare-table td {
  vertical-align: top;
}
.compare-product {
  position: relative;
  min-width: 200px;
}
.el-product-footer .btn-detail {
  background: var(--el-dark);
  color: #fff;
  font-size: 0.82rem;
  border-radius: 0.3rem;
  border: 0;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
}
.el-product-footer .btn-detail:hover {
  background: #000;
}

/* ===== FEATURES ===== */
.el-features {
  background: var(--el-light);
  border: 1px solid var(--el-border);
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}
.el-features .feature-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border-right: 1px solid var(--el-border);
}
.el-features .feature-item:last-child {
  border-right: 0;
}
.el-features .feature-item .fic {
  font-size: 2rem;
  color: var(--el-accent);
}
.el-features .feature-item .ftitle {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--el-dark);
  text-transform: uppercase;
}
.el-features .feature-item .flead {
  font-size: 0.78rem;
  color: var(--el-muted);
}

/* ===== BANNERS ===== */
.el-banner-card {
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  display: block;
  border: 1px solid var(--el-border);
  height: 100%;
}
.el-banner-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.el-banner-card:hover img {
  transform: scale(1.05);
}
.el-banner-card .banner-caption {
  position: absolute;
  left: 1rem;
  top: 1rem;
  max-width: 60%;
  color: var(--el-light);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.el-banner-card .banner-caption h4 {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.05rem;
}
.el-banner-card .banner-caption p {
  font-size: 0.8rem;
}

/* ===== HERO SLIDER ===== */
.el-hero {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--el-border);
}
.el-hero .swiper-slide {
  position: relative;
}
.el-hero .hero-media {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
}
.el-hero .hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 100%);
  color: #fff;
}
.el-hero .hero-content .lead {
  font-size: 1rem;
  font-weight: 600;
  color: var(--el-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.el-hero .hero-content h2 {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  max-width: 60%;
}
.el-hero .hero-content p {
  max-width: 50%;
  font-size: 0.95rem;
  opacity: 0.95;
}
.el-hero .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}
.el-hero .swiper-pagination-bullet-active {
  background: var(--el-primary);
  opacity: 1;
}

/* ===== NEWSLETTER ===== */
.el-newsletter {
  background: var(--el-dark);
  color: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1.75rem 0;
}
.el-newsletter h4 {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin: 0;
}
.el-newsletter p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0;
}
.el-newsletter .form-control {
  border: 0;
  border-radius: 0.3rem 0 0 0.3rem;
}
.el-newsletter .btn {
  border-radius: 0 0.3rem 0.3rem 0;
  background: var(--el-primary);
  color: var(--el-dark);
  font-weight: 700;
}

/* ===== FOOTER ===== */
.el-footer {
  background: var(--el-dark);
  color: #c8cdd3;
  margin-top: 2rem;
  padding-top: 2.5rem;
}
.el-footer h6 {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #ffffff20;
}
.el-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.el-footer ul li {
  padding: 0.25rem 0;
}
.el-footer ul li a {
  color: #c8cdd3;
  font-size: 0.85rem;
}
.el-footer ul li a:hover {
  color: var(--el-primary);
}
.el-footer .contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.35rem 0;
  font-size: 0.85rem;
}
.el-footer .contact-item i {
  color: var(--el-primary);
  margin-top: 0.15rem;
}
.el-footer-bottom {
  background: #2a333c;
  color: #a7adb4;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.82rem;
}

/* ===== PAGINATION ===== */
.el-pagination .page-link {
  color: var(--el-text);
  border-color: var(--el-border);
  margin: 0 0.15rem;
  border-radius: 0.3rem !important;
}
.el-pagination .page-item.active .page-link {
  background: var(--el-primary);
  border-color: var(--el-primary);
  color: var(--el-dark);
  font-weight: 700;
}
.el-pagination .page-item.disabled .page-link {
  color: var(--el-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 58px;
  }
  .el-hero .hero-content h2 {
    font-size: 1.4rem;
    max-width: 80%;
  }
  .el-hero .hero-content p {
    max-width: 80%;
  }
  .el-hero .hero-media {
    height: 320px;
  }
  .el-features .feature-item {
    border-right: 0;
    border-bottom: 1px solid var(--el-border);
  }
  .el-megamenu {
    width: 100%;
    max-width: 100%;
  }
  .el-departments-menu {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .el-dept-nav {
    flex: 0 0 180px;
  }
  .el-nav-megamenu {
    width: 92vw;
    left: 0;
    transform: translateY(8px);
  }
  .el-nav-hover:hover .el-nav-megamenu,
  .el-nav-hover:focus-within .el-nav-megamenu {
    transform: translateY(0);
  }
}
@media (max-width: 575.98px) {
  .el-dept-panels {
    padding: 1rem;
  }
  .el-dept-nav {
    flex: 0 0 150px;
  }
  .el-dept-nav > ul > li > a {
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
  }
}
