/* ══════════════════════════════════════════
   OUTLET DEL ELECTRO — stylesindex.css
   ══════════════════════════════════════════ */
:root {
  --primario: #002f49;
  --rojo: #c40000;
  --rojo-hover: #a50000;
  --gris-bg: #f2f3f5;
  --gris-card: #ffffff;
  --gris-borde: #e0e2e7;
  --texto: #1a1a2e;
  --texto-suave: #5a6272;
  --verde: #1a7f3c;
  --amarillo: #f5a623;
  --font: 'Barlow', Helvetica, sans-serif;
  --font-cond: 'Barlow Condensed', Helvetica, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .07);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, .14);
  --radius: 12px;
  --transition: .22s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--gris-bg);
  color: var(--texto);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
}

/* ══ HEADER ══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .09);
}

.header-top-bar {
  background: var(--primario);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 7px 20px;
}

.header-top-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
}

.nav-brand {
  font-family: var(--font-cond);
  font-size: 28px;
  letter-spacing: -.5px;
  color: var(--primario);
  line-height: 1;
}

.brand-outlet {
  color: var(--rojo);
}

.brand-del {
  font-size: 28px;
  opacity: .7;
  margin: 0 2px;
}

.brand-electro {
  color: var(--primario);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 6px;
}

.nav-link {
  color: var(--texto);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  background: var(--gris-bg);
  color: var(--rojo);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primario);
  border-radius: 2px;
  transition: all .3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--gris-borde);
  padding: 12px 20px 20px;
  gap: 4px;
}

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

.nav-mobile-menu a {
  color: var(--texto);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background var(--transition);
}

.nav-mobile-menu a:hover {
  background: var(--gris-bg);
}

/* ══ TRUST BAR ══ */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--gris-borde);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 40px;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.trust-item i {
  font-size: 26px;
  color: var(--rojo);
  flex-shrink: 0;
}

.trust-item div {
  display: flex;
  flex-direction: column;
}

.trust-item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--primario);
}

.trust-item span {
  font-size: 12px;
  color: var(--texto-suave);
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--gris-borde);
}

/* ══ SECTION HEADER ══ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px 20px;
}

.section-header.centered {
  flex-direction: column;
  text-align: center;
  gap: 8px;
}

.section-title {
  font-family: var(--font-cond);
  font-size: 26px;
  font-weight: 700;
  color: var(--primario);
  display: flex;
  align-items: center;
  gap: 12px;
}


.pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
}

.new-pill {
  background: var(--rojo);
  color: #fff;
}

.rec-pill {
  background: #fff3cd;
  color: #856404;
}

/* ══ PRODUCT CAROUSELS ══ */
.featured-section {
  padding: 50px 0 30px;
  background: var(--gris-bg);
  overflow: hidden;
}

.recomendados-bg {
  background: #fff;
}

.carousel-arrows {
  display: flex;
  gap: 8px;
}

.carr-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gris-borde);
  background: #fff;
  color: var(--primario);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.carr-btn:hover:not(:disabled) {
  background: var(--primario);
  color: #fff;
  border-color: var(--primario);
}

.carr-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.prod-carousel-viewport {
  overflow: hidden;
  padding: 10px 50px 20px;
}

.prod-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform .4s ease;
}

/* ══ CARD ══ */
.card {
  background: var(--gris-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  flex: 0 0 calc(25% - 18px);
  min-width: 220px;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: .4px;
}

.new-badge {
  background: var(--rojo);
  color: #fff;
}

.rec-badge {
  background: #fff3cd;
  color: #856404;
}

.card-img {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #fff;
}

.card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: opacity .3s ease;
}

.card-img img:nth-child(2) {
  opacity: 0;
}

.card-img:hover img:nth-child(2) {
  opacity: 1;
}

.card-content {
  padding: 16px 18px 20px;
}

.card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--rojo);
  text-transform: uppercase;
  letter-spacing: .8px;
  display: block;
  margin-bottom: 6px;
}

.card-content h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--texto);
  line-height: 1.4;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primario);
  margin-bottom: 4px;
  font-family: var(--font-cond);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-original {
  font-size: 13px;
  font-weight: 500;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 2px;
  font-family: var(--font-cond);
}

.badge-50 {
  display: inline-block;
  background: #c40000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

.cuotas {
  font-size: 12px;
  color: #555;
  margin-bottom: 12px;
}

.btn-ver-mas {
  display: block;
  text-align: center;
  background: var(--primario);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
}

.btn-ver-mas:hover {
  background: var(--rojo);
  transform: translateY(-1px);
}

/* ══ TESTIMONIOS ══ */
.testimonios-section {
  padding: 60px 0 50px;
  background: var(--gris-bg);
}

.test-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 30px 0;
}

.test-nav {
  flex-shrink: 0;
}

.test-viewport {
  overflow: hidden;
  flex: 1;
}

.test-track {
  display: flex;
  gap: 24px;
  transition: transform .4s ease;
}

.test-card {
  flex: 0 0 calc(33.333% - 16px);
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gris-borde);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition);
}

.test-card:hover {
  box-shadow: var(--shadow-md);
}

.test-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.test-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #c40000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.test-meta strong {
  display: block;
  font-size: 15px;
  color: var(--texto);
}

.test-meta small {
  font-size: 12px;
  color: var(--texto-suave);
}

.test-stars {
  color: var(--amarillo);
  font-size: 14px;
  letter-spacing: 1px;
}

.star-empty {
  color: #d8d8d8;
}

.test-card p {
  font-size: 14px;
  color: var(--texto-suave);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}

.test-verified {
  font-size: 12px;
  color: var(--verde);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.test-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gris-borde);
  border: none;
  cursor: pointer;
  transition: all .2s;
  padding: 0;
}

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

/* ══ CATÁLOGO + FILTROS ══ */
.catalog-section {
  padding: 50px 0 70px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: start;
}

/* SIDEBAR */
.filters-sidebar {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gris-borde);
  position: sticky;
  top: 110px;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gris-bg);
}

.filters-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primario);
}

.filters-reset {
  font-size: 12px;
  font-weight: 700;
  color: var(--rojo);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition);
}

.filters-reset:hover {
  background: #fff0f0;
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gris-bg);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--texto);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  margin-bottom: 2px;
}

.filter-option input[type="radio"] {
  display: none;
}

.filter-option::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--gris-borde);
  flex-shrink: 0;
  transition: all var(--transition);
}

.filter-option.active {
  background: #f0f4f8;
  color: var(--primario);
  font-weight: 700;
}

.filter-option.active::before {
  background: var(--rojo);
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(196, 0, 0, .15);
}

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

/* Price slider */
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--texto-suave);
  margin-bottom: 8px;
}

.price-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: var(--gris-borde);
  border-radius: 4px;
  outline: none;
  margin-bottom: 10px;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rojo);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(196, 0, 0, .3);
}

.sort-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gris-borde);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--texto);
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

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

/* CATALOG MAIN */
.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.catalog-title {
  font-family: var(--font-cond);
  text-transform: uppercase;
  font-size: 22px;
  font-weight: 700;
  color: var(--primario);
}

.catalog-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-count {
  font-size: 14px;
  color: var(--texto-suave);
  font-weight: 600;
}

.filter-toggle-mobile {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--primario);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* In the grid, cards fill full width */
#catalogo .card {
  flex: none;
  min-width: 0;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--texto-suave);
}

.no-results i {
  font-size: 48px;
  opacity: .3;
  margin-bottom: 16px;
  display: block;
}

.no-results p {
  font-size: 16px;
  margin-bottom: 16px;
}

.no-results button {
  background: var(--primario);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
}

.hidden {
  display: none !important;
}

/* ══ FOOTER ══ */
.footer {
  background: var(--primario);
  color: rgba(255, 255, 255, .85);
  padding: 60px 0 0;
  border-radius: 20px 20px 0 0;
  margin-top: 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 0 60px 50px;
}

.footer-brand .footer-logo {
  font-family: var(--font-cond);
  font-size: 28px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  opacity: .75;
  margin-bottom: 18px;
}

.footer-col strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #d8d8d8;
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 6px;
  display: block;
  transition: color var(--transition);
}

.footer-brand .brand-outlet{
  color: #d8d8d8;
}


.footer-brand .brand-electro{
  color: #d8d8d8;
}
  

.footer-col a:hover {
  color: #fff;
}

.footer-cards {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.footer-cards img {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: .75;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.socials a:hover {
  background: var(--rojo);
}

.socials svg {
  fill: #fff;
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 60px;
  font-size: 12px;
  opacity: .55;
  text-align: center;
}

/* ══ RESPONSIVE ══ */

@media (max-width: 1200px) {
  .card {
    flex: 0 0 calc(33.333% - 16px);
  }

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

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

  .trust-item {
    padding: 18px 20px;
  }
}

@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 0 20px;
  }

  .section-header {
    padding: 0 24px 20px;
  }

  .prod-carousel-viewport {
    padding: 10px 24px 20px;
  }
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    height: 100dvh;
    width: 280px;
    z-index: 2000;
    border-radius: 0;
    overflow-y: auto;
    transition: left .3s ease;
    box-shadow: var(--shadow-lg);
  }

  .filters-sidebar.open {
    left: 0;
  }

  .filter-toggle-mobile {
    display: flex;
  }

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

  .test-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
    height: 60px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .header-top-bar {
    font-size: 11px;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    height: 380px;
  }

  .hero-content {
    padding: 0 5%;
  }

  .trust-bar {
    padding: 0 10px;
    gap: 0;
  }

  .trust-item {
    padding: 14px 10px;
    min-width: 140px;
  }

  .trust-divider {
    display: none;
  }

  .trust-item strong {
    font-size: 12px;
  }

  .trust-item span {
    font-size: 11px;
  }

  .section-header {
    padding: 0 20px 16px;
  }

  .section-title {
    font-size: 20px;
  }

  .prod-carousel-viewport {
    padding: 8px 16px 16px;
  }

  .card {
    flex: 0 0 calc(50% - 12px);
    min-width: 160px;
  }

  .card-img {
    height: 180px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 30px 40px;
  }

  .footer {
    border-radius: 14px 14px 0 0;
  }

  .footer-bottom {
    padding: 16px 30px;
  }
}

@media (max-width: 580px) {
  .trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .trust-divider {
    display: none;
  }

  .card {
    flex: 0 0 calc(75vw);
    min-width: 0;
  }

  .test-card {
    flex: 0 0 calc(100% - 0px);
  }

  .products {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  #catalogo .card {
    min-width: 0;
  }

  .catalog-layout {
    padding: 0 14px;
  }

  .catalog-topbar {
    flex-wrap: wrap;
    gap: 10px;
  }

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

  .hero-title {
    font-size: 32px;
  }
}

@media (max-width: 400px) {
  .products {
    grid-template-columns: 1fr;
  }

  .card-img {
    height: 220px;
  }
}

/* ── CARD IMG PLACEHOLDER (sin imagen) ── */
.card-img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8ecf0 0%, #d0d8e0 100%);
  position: relative;
}

.card-img-empty::before {
  content: '';
  display: block;
  width: 52px;
  height: 52px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0aab4' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .6;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
}

.card-img-empty span {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: #7a8898;
  font-weight: 600;
  padding: 0 10px;
  line-height: 1.3;
}

/* BANNER */
.banner {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}