/* =========================================================
   Colderman - Estilos principales
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root{
  --red:#f28c00;
  --red-2:#d17a00;
  --dark:#1f252b;
  --blue:#243746;
  --blue-2:#1b2b38;
  --gray:#66727d;
  --light:#f6f8fa;
  --border:#d9e1e7;
  --yellow:#f7b955;
  --radius:6px;
  --shadow-sm:0 2px 6px rgba(2, 1, 1, 0.08);
  --shadow:0 8px 24px rgba(0,0,0,.10);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Poppins',system-ui,sans-serif;
  color:var(--dark);
  line-height:1.6;
  background:var(--light);
  font-size:1rem;
}
h1,h2,h3{
  color:var(--blue);
  font-weight:700;
  letter-spacing:-.01em;
}
h1{font-size:2.5rem;line-height:1.2}
h2{font-size:2rem;line-height:1.25}
h3{font-size:1.5rem;line-height:1.3}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none;transition:color .2s}
a:hover{color:var(--red)}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
ul{list-style:none}

.container{max-width:1280px;margin:0 auto;padding:0 1.25rem}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.85rem 1.6rem;border-radius:var(--radius);
  font-weight:600;font-size:.95rem;
  transition:all .2s;cursor:pointer;border:2px solid transparent;
}
.btn--primary{background:var(--red);color:#fff}
.btn--primary:hover{background:var(--red-2);color:#fff;transform:translateY(-2px);box-shadow:var(--shadow)}
.btn--white{background:#fff;color:var(--blue);font-weight:700}
.btn--white:hover{background:var(--blue);color:#fff}

/* ============================================================
   TOPBAR — rojo izquierda + negro derecha + tagline central
   ============================================================ */
.topbar{
  position:relative;
  background:#fff;
}
.topbar__inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:46px;
}
.topbar__red{
  background:linear-gradient(94deg,#f7ad35 0%,#f28c00 56%,#bd6800 100%);
  clip-path:polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
  display:flex;align-items:center;
}
.topbar__red-inner{
  display:flex;align-items:center;
  padding-left:2rem;color:#fff;
}
.topbar__link{color:var(--blue);display:inline-flex;align-items:center;gap:.4rem;font-weight:700}
.topbar__link:hover{color:var(--red-2);opacity:1}

.topbar__tagline{
  font-size:.76rem;font-weight:700;letter-spacing:1.4px;
  text-transform:uppercase;
}

.topbar__black{
  background:#fff;
  clip-path:polygon(30px 0, 100% 0, 100% 100%, 0 100%);
  display:flex;align-items:center;justify-content:flex-end;
}
.topbar__black-inner{
  display:flex;align-items:center;gap:1.5rem;
  padding-right:2rem;color:#616d77;font-size:.78rem;
}

/* ============================================================
  BRAND - Logo IPS AUTOPARTES
  ============================================================ */
.brand{
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
}
.brand__img{
  display:block;
  width:auto;
  height:24px;
  object-fit:contain;
}
.header .brand__img--header{
  width:auto;
  height:48px;
  object-fit:contain;
  object-position:left center;
  filter:none;
}
.brand--footer{
  margin-bottom:1.2rem;
  display:inline-flex;
}
.brand--footer .brand__img{
  height:64px;
}

/* ============================================================
  HEADER (3 columnas: logo - nav - CTA)
  ============================================================ */
.header{
  background:linear-gradient(180deg,#ffffff 0%,#fff7ec 44%,#f5f7f9 100%);
  border-bottom:1px solid rgba(36,55,70,.12);
  box-shadow:0 4px 14px rgba(0,0,0,.10);
  position:sticky;top:0;z-index:50;
}
.header__inner{
  display:flex;align-items:center;justify-content:space-between;gap:2rem;
  padding:.75rem 1.25rem;min-height:96px;
}

.header__cta{margin-left:auto}

/* Nav */
.mainnav{display:flex;align-items:center;gap:.25rem;flex:1;justify-content:center}
.mainnav__cats{
  display:inline-flex;align-items:center;gap:.5rem;
  background:var(--red);color:#fff;
  padding:.65rem 1.1rem;border-radius:6px;
  font-weight:700;font-size:.9rem;
  margin-right:.75rem;transition:background .2s;
}
.mainnav__cats:hover{background:var(--red-2);color:#fff}
.mainnav ul{display:flex;gap:.1rem;flex-wrap:wrap}
.mainnav ul a{
  display:inline-flex;align-items:center;gap:.35rem;
  padding:.62rem .92rem;font-size:.95rem;font-weight:500;
  color:#fff;border-radius:4px;position:relative;
}
.mainnav ul a:hover{color:#fff;background:rgba(255,255,255,.09)}
.mainnav ul a.active{color:#fff}
.mainnav ul a.active::after{
  content:"";position:absolute;left:.9rem;right:.9rem;bottom:.25rem;
  height:2px;background:var(--red);
}
.mainnav ul a i{font-size:.65rem;opacity:.85}

/* CTA derecha */
.header__cta{display:flex;align-items:center;gap:1rem;flex-shrink:0}
.header__phone{
  display:inline-flex;align-items:center;gap:.65rem;
  font-size:.9rem;color:var(--red);
}
.header__phone i{
  width:42px;height:42px;border-radius:50%;
  background:var(--red);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:1.05rem;
}
.header__phone small{display:block;font-size:.76rem;color:#7b8791;line-height:1.1}
.header__phone strong{display:block;font-weight:700;font-size:1rem;color:#3f4a53}
.header__phone:hover strong{color:#2f3a43}
.header__quote{padding:.72rem 1.35rem;font-size:.9rem;border-radius:50px;white-space:nowrap}

/* Toggle móvil */
.mainnav__toggle{
  display:none;font-size:1.5rem;color:#fff;
  padding:.5rem;
}

/* ============================================================
  BRANDS STRIP - slider infinito
  ============================================================ */
.brands-strip{
  background:
    linear-gradient(90deg, rgba(8,14,20,.9), rgba(17,42,61,.86)),
    url('../images/repuestos.webp') center/cover no-repeat;
  color:#fff;
  padding:1.2rem 0;overflow:hidden;
  border-top:2px solid var(--red);
  position:relative;
}
.brands-strip::before,
.brands-strip::after{
  content:"";position:absolute;top:0;bottom:0;width:60px;z-index:2;pointer-events:none;
}
.brands-strip::before{left:0;background:linear-gradient(90deg,rgba(8,14,20,.96),transparent)}
.brands-strip::after{right:0;background:linear-gradient(-90deg,rgba(17,42,61,.96),transparent)}
.brands-strip__viewport{overflow:hidden}
.brands-strip__track{
  display:flex;gap:3.5rem;align-items:center;
  font-family:'Poppins',sans-serif;font-weight:800;
  font-style:italic;font-size:1.5rem;letter-spacing:1px;
  white-space:nowrap;width:max-content;
  animation:slide-brands 55s linear infinite;
}
.brands-strip:hover .brands-strip__track{animation-play-state:paused}
@keyframes slide-brands{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
.brand-logo{
  display:inline-flex;flex-direction:column;align-items:center;line-height:1;
  opacity:.95;transition:transform .2s,opacity .2s;
}
.brand-logo:hover{opacity:1;transform:scale(1.08)}
.brand-logo small{font-size:.55rem;font-weight:600;letter-spacing:2px;font-style:normal;margin-top:2px}
.brand-logo--isaka{font-style:italic}
.brand-logo--oem{
  border:2px solid #fff;padding:.2rem .6rem;font-size:1.1rem;
}
.brand-logo--simyi{font-style:italic;letter-spacing:2px}
.brand-logo--ffi{font-size:1.9rem}

/* ============================================================
  PORTADA CATEGORIAS
  ============================================================ */
.portada-catalogo{
  background:#eef3f7;
  padding:0 0 1rem;
}
.portada-catalogo > .container{
  max-width:1280px;
  margin:0 auto;
  padding:0 1.25rem;
}

.portada-tabs{
  display:flex;
  align-items:center;
  min-height:58px;
  background:linear-gradient(95deg,#2a3a47 0%,#233340 62%,#1b2b38 100%);
  border:none;
  border-radius:0;
  overflow:auto;
  box-shadow:none;
}
.portada-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  gap:.52rem;
  height:58px;
  padding:0 1.15rem;
  font-size:.86rem;
  font-weight:700;
  letter-spacing:.3px;
  text-transform:uppercase;
  color:#d6e2eb;
  white-space:nowrap;
  border-right:1px solid rgba(154,182,204,.24);
}
.portada-tab:hover{background:rgba(255,255,255,.08);color:#fff}
.portada-tab.active{
  background:rgba(255,255,255,.05);
  color:#fff;
  box-shadow:inset 0 -3px 0 var(--red);
}
.portada-tab--cats{
  background:linear-gradient(90deg,var(--red),var(--red-2));
  color:#fff;
  border-right:1px solid rgba(255,255,255,.2);
  min-width:250px;
  display:inline-flex;align-items:center;gap:.65rem;
}
.portada-tab--cats:hover{background:var(--red-2);color:#fff}
.portada-tab--wa{
  margin-left:auto;
  margin-right:.6rem;
  height:40px;
  border-radius:10px;
  border-right:none;
  background:#24c860;
  color:#fff;
  padding:0 .95rem;
  text-transform:none;
  font-size:.9rem;
  font-weight:800;
}
.portada-tab--wa:hover{background:#1caf52;color:#fff}

.portada-main{
  display:grid;
  grid-template-columns:250px 1fr;
  align-items:stretch;
  gap:0;
  background:
    radial-gradient(circle at 14% 18%, rgba(242,140,0,.2), transparent 40%),
    linear-gradient(145deg,#233340 0%,#1b2b38 72%);
  border:none;
  border-radius:0;
  min-height:560px;
  padding:0;
  overflow:hidden;
  box-shadow:none;
  position:relative;
}

.portada-categorias{
  background:#fff;
  border-right:1px solid #dbe4eb;
  display:grid;
  grid-template-rows:1fr auto;
  min-height:100%;
  position:relative;
  z-index:3;
}
.portada-categorias ul{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:.35rem 0;
  overflow:auto;
}
.portada-categorias ul li{
  border-bottom:1px solid #e8edf2;
}
.portada-categorias a{
  display:flex;
  align-items:center;
  gap:.65rem;
  min-height:42px;
  padding:.82rem .88rem;
  font-size:.91rem;
  font-weight:600;
  letter-spacing:.08px;
  color:#28343d;
  position:relative;
}
.portada-categorias__icon{
  width:20px;
  text-align:center;
  color:#6f8290;
  font-size:.9rem;
  flex-shrink:0;
}
.portada-categorias__label{
  flex:1;
}
.portada-categorias__arrow{
  color:#9aaab7;
  font-size:.75rem;
  transition:transform .2s;
}
.portada-categorias a:hover{
  background:#fff;
  color:#17222c;
}
.portada-categorias a.active{
  background:#fff;
  color:#17222c;
}
.portada-categorias a:hover .portada-categorias__arrow{transform:translateX(2px)}
.portada-categorias a.active .portada-categorias__icon,
.portada-categorias a.active .portada-categorias__arrow{color:#6f8290}
.portada-categorias__more{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:.35rem;
  text-align:left;
  padding:.95rem 1rem;
  font-weight:700;
  font-size:.92rem;
  color:#3b4852;
  background:#f7fafc;
  border-top:1px solid #dce4ea;
}

.portada-accordion-panel{display:none}

.mega-panel{
  min-height:560px;
  border:none;
  background:
    radial-gradient(circle at 89% 12%, rgba(242,140,0,.22), transparent 30%),
    linear-gradient(130deg,#10263c 0%,#0c1f31 46%,#091726 100%);
  color:#f7fbff;
  padding:1.05rem 1.2rem;
  overflow:hidden;
  position:relative;
}
.mega-panel--hero{
  position:relative;
  padding:0;
  overflow:hidden;
  background:#0b1e30;
}
.hero-slider{
  position:relative;
  top:auto;
  bottom:auto;
  left:auto;
  transform:none;
  width:100%;
  min-height:560px;
  height:100%;
  z-index:1;
}
.hero-slider__slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  opacity:0;
  visibility:hidden;
  transition:opacity .65s ease, visibility 0s linear .65s;
  z-index:2;
  pointer-events:none;
}
.hero-slider__slide.is-active{
  opacity:1;
  visibility:visible;
  transition:opacity .65s ease, visibility 0s linear 0s, transform 6s ease;
  pointer-events:auto;
}
.mega-panel__intro{
  margin-bottom:1rem;
  padding-bottom:.9rem;
  border-bottom:1px solid #d5dde3;
  background:rgba(255,255,255,.55);
  border-radius:8px;
  padding:.9rem 1rem;
}
.mega-panel__brand{
  display:block;
  height:34px;
  width:auto;
  margin-bottom:.6rem;
}
.mega-panel__intro h3{
  font-size:1.15rem;
  color:#1d2b33;
  margin-bottom:.25rem;
}
.mega-panel__intro p{
  font-size:.92rem;
  color:#5f6f78;
}
.mega-panel__title{
  font-size:1.25rem;
  font-weight:800;
  color:var(--blue-2);
  margin-bottom:.8rem;
}
.mega-panel__columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(180px,1fr));
  gap:1rem;
  align-content:start;
}
.mega-panel__layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:1rem;
  align-items:start;
  animation:submenuReveal .24s ease;
}
.mega-panel__visual{
  margin:0;
  border:1px solid #d3dce2;
  background:#fff;
  min-height:332px;
  overflow:hidden;
}
.mega-panel__visual img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.mega-group{
  background:#fff;
  border:1px solid #d3dce2;
  padding:.8rem .9rem;
  border-radius:8px;
  box-shadow:0 6px 14px rgba(24,44,62,.05);
}
.mega-group__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
}
.mega-group h4{
  font-size:1rem;
  color:var(--blue);
  margin-bottom:.45rem;
  padding-bottom:.4rem;
  border-bottom:1px solid #e3eaef;
  flex:1;
}
.mega-group__count{
  background:#eef5fa;
  color:#2f5f7f;
  font-size:.75rem;
  font-weight:700;
  padding:.18rem .45rem;
  border-radius:999px;
}
.mega-group ul{
  display:grid;
  gap:.22rem;
}
.mega-group li{
  font-size:.91rem;
  line-height:1.35;
  color:#1d2226;
}
.mega-group li a{
  color:inherit;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.6rem;
  padding:.25rem 0;
  border-bottom:1px dashed rgba(176,193,205,.55);
}
.mega-group li:last-child a{border-bottom:none}
.mega-group li a:hover{
  color:var(--blue);
}
.mega-group li a i{font-size:.72rem;color:#8fa0ad}
@keyframes submenuReveal{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}

.finder{
  background:#fff;
  color:#2d3a43;
  padding:.6rem .6rem .6rem .8rem;
  border-radius:12px;
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:0;
  box-shadow:0 8px 28px rgba(18,37,53,.13);
  margin:1rem auto 0;
  border:1.5px solid #e2e8ef;
  align-items:center;
}
.finder__field{
  text-align:left;
  background:transparent;
  border:none;
  border-right:1.5px solid #e2e8ef;
  padding:.4rem .9rem;
  position:relative;
}
.finder__field label{
  display:block;
  font-size:.72rem;
  font-weight:700;
  color:#8896a0;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:.1rem;
}
.finder__field select{
  width:100%;
  border:1px solid #d4dee8;
  border-radius:10px;
  min-height:46px;
  padding:0 .9rem;
  outline:none;
  background:#fff;
  font-size:.94rem;
  color:#1e2d38;
  font-family:inherit;
  font-weight:600;
  cursor:pointer;
}
.finder__field select:focus{
  border-color:#6f8799;
  box-shadow:0 0 0 3px rgba(74,111,134,.14);
}
.finder .btn{
  width:auto;
  align-self:center;
  justify-content:center;
  padding:.65rem 1.6rem;
  border-radius:8px;
  font-size:.92rem;
  margin-left:.4rem;
  white-space:nowrap;
  gap:.45rem;
}

.finder--footer{
  max-width:100%;
  border-top:3px solid var(--red);
  margin-top:.85rem;
}

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits{background:linear-gradient(95deg,var(--red) 0%,#df8300 62%,#c17305 100%);padding:2rem 0}
.benefits__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.benefit{display:flex;gap:1rem;align-items:center}
.benefit__icon{
  width:54px;height:54px;border-radius:50%;
  background:transparent;border:2px solid #fff;color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:1.4rem;
  flex-shrink:0;
}
.benefit strong{display:block;font-size:1rem;color:#fff;font-weight:700}
.benefit span{font-size:.92rem;color:rgba(255,255,255,.85)}

/* ============================================================
   SECTIONS
   ============================================================ */
.section{padding:4rem 0}
.section--alt{background:var(--light)}
.section__head{
  display:flex;justify-content:space-between;align-items:flex-end;
  flex-wrap:wrap;gap:1rem;margin-bottom:2.5rem;
  border-bottom:2px solid var(--border);padding-bottom:1rem;
}
.section__head h2{font-size:2rem;font-weight:700;position:relative;padding-bottom:.5rem}
.section__head h2::after{
  content:"";position:absolute;left:0;bottom:-1.05rem;width:60px;height:3px;background:var(--red);
}
.section__sub{color:var(--gray);font-size:1rem;width:100%;margin-top:-.5rem}
.section__title-wrap{display:grid;gap:.3rem}
.section__head--new{flex-wrap:nowrap;align-items:flex-end}
.section__head--new .section__sub{width:auto;margin-top:0}
.section__head--new h2::after{display:none}
.section__head--new .section__title-wrap{
  position:relative;
  padding-bottom:1rem;
}
.section__head--new .section__title-wrap::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:60px;
  height:3px;
  background:var(--red);
}
.section__head--new .tabs{
  margin-left:auto;
  flex-wrap:nowrap;
  overflow-x:auto;
  max-width:100%;
}

.tabs{display:flex;flex-wrap:wrap;gap:.4rem}
.tab{
  padding:.52rem 1rem;border-radius:50px;font-size:.92rem;font-weight:500;
  color:var(--dark);background:transparent;border:1px solid var(--border);
  transition:all .2s;
}
.tab:hover{color:var(--red-2);border-color:var(--red-2)}
.tab.active{background:var(--red);color:#fff;border-color:var(--red)}

.link{color:var(--blue);font-weight:600;font-size:1rem;display:inline-flex;align-items:center;gap:.4rem}
/* ============================================================
   HOME REVIEWS
   ============================================================ */
.section--reviews{
  background:
    linear-gradient(120deg, rgba(36,55,70,.86), rgba(30,45,58,.74)),
    url('../images/Products/hero-cmp-maquinaria.png') center/cover no-repeat;
  color:#fff;
}
.section--reviews .section__head h2{color:#fff}
.section--reviews .review-kpi{
  border-color:rgba(255,255,255,.25);
  background:rgba(255,255,255,.1);
  color:#fff;
}
.review-kpi{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.35rem .72rem;
  border-radius:999px;
  border:1px solid #cddae5;
  background:#f3f8fc;
  color:#2e4f66;
  font-size:.84rem;
  font-weight:700;
}
.review-kpi i{color:#f28c00}
.home-reviews{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
}
.home-review-card{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  border-radius:12px;
  padding:1.2rem 1.3rem;
  display:grid;
  gap:.62rem;
  box-shadow:0 8px 28px rgba(0,0,0,.22);
  backdrop-filter:blur(6px);
  transition:background .22s,transform .22s;
}
.home-review-card:hover{background:rgba(255,255,255,.13);transform:translateY(-4px)}
.home-review__stars{display:flex;gap:.2rem;color:#f28c00;font-size:.86rem}
.home-review-card p{font-size:.94rem;line-height:1.56;color:rgba(255,255,255,.88)}
.home-review__meta{display:grid;gap:.12rem}
.home-review__meta strong{font-size:.9rem;color:#fff}
.home-review__meta span{font-size:.82rem;color:rgba(255,255,255,.6)}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.product{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;transition:all .25s;position:relative;
  display:flex;flex-direction:column;
}
.product:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:transparent}
.product__img{
  position:relative;height:220px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#f7fafc,#dde7ef);font-size:4rem;color:#7d92a7;
  overflow:hidden;
}
.product__image-link{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  color:inherit;
}
.product__image-link:hover{color:var(--blue)}
.product__badge{
  position:absolute;top:.65rem;left:.65rem;background:var(--red);color:#fff;
  font-size:.7rem;font-weight:700;padding:.2rem .55rem;border-radius:4px;
}
.product__actions{
  position:absolute;top:.5rem;right:.5rem;display:flex;flex-direction:column;gap:.4rem;
  opacity:0;transform:translateX(10px);transition:all .25s;
}
.product:hover .product__actions{opacity:1;transform:translateX(0)}
.product__actions button{
  width:36px;height:36px;border-radius:50%;background:#fff;color:var(--dark);
  box-shadow:var(--shadow-sm);font-size:.9rem;
}
.product__actions button:hover{background:var(--red);color:#fff}
.product__quick{
  position:absolute;bottom:0;left:0;right:0;background:var(--red);color:#fff;
  text-align:center;padding:.6rem;font-size:.82rem;font-weight:600;
  transform:translateY(100%);transition:transform .25s;letter-spacing:.5px;cursor:pointer;
}
.product:hover .product__quick{transform:translateY(0)}
.product__body{padding:1rem;display:grid;gap:.28rem}
.product__sku{font-size:.78rem;color:var(--gray);text-transform:uppercase;letter-spacing:.5px}
.product__cat{font-size:.76rem;color:#5f7486;font-weight:700;text-transform:uppercase;letter-spacing:.3px}
.product__title{font-size:1rem;font-weight:600;margin:.25rem 0 .55rem;color:var(--dark);min-height:2.6em;line-height:1.35}
.product__title a:hover{color:var(--red)}
.product__price{font-size:1.22rem;font-weight:700;color:var(--blue)}
.product{
  border:1px solid #d5dde3;
  border-radius:10px;
  box-shadow:0 4px 12px rgba(19,39,55,.06);
}
.product::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:2px;
  background:linear-gradient(90deg,var(--red),#ffb14d);
}
.product:hover{
  box-shadow:0 14px 30px rgba(19,39,55,.16);
  border-color:#c6d3de;
}
.product__img{
  background:
    radial-gradient(circle at 75% 20%, rgba(74,111,134,.18), transparent 32%),
    linear-gradient(135deg,#f2f7fb,#d9e4ee);
  color:#728ba3;
}
.product__sku{color:#7d8c99}
.product__cat{color:#4f6c82;font-weight:800;letter-spacing:.35px}
.product__price--cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:42px;
  padding:.62rem .8rem;
  border-radius:8px;
  background:linear-gradient(90deg,#f28000,#d66d00);
  color:#fff;
  font-size:1.02rem;
  font-weight:800;
  letter-spacing:.2px;
  text-align:center;
}
.product__price--cta:hover{color:#fff;filter:brightness(.96)}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.detail-page{background:#f2f6fa}
.detail-shell{padding:2.2rem 0 3rem}
.detail-breadcrumb{
  display:flex;
  align-items:center;
  gap:.45rem;
  color:#647482;
  font-size:.85rem;
  margin-bottom:.75rem;
}
.detail-breadcrumb a{color:#4f6678;font-weight:600}
.detail-back{
  display:inline-flex;align-items:center;gap:.5rem;
  color:#425260;font-weight:700;margin-bottom:1rem;
}
.detail-page .header{position:sticky;top:0;z-index:60}
.detail-card{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  background:#fff;
  border:1px solid #d5dde3;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 16px 34px rgba(17,37,53,.08);
}
.detail-media{
  min-height:540px;
  padding:1.15rem;
  border-right:1px solid #d8e1e8;
  background:linear-gradient(140deg,#f7fbff,#e9f1f8);
  display:grid;
  grid-template-rows:minmax(390px,1fr) auto;
  gap:.8rem;
}
.detail-gallery-main{
  margin:0;
  border:1px solid #cfdae4;
  border-radius:10px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1rem;
  position:relative;
  overflow:hidden;
  cursor:zoom-in;
}
.detail-gallery-main img{
  --zoom-x:50%;
  --zoom-y:50%;
  width:100%;
  height:390px;
  object-fit:contain;
  transform-origin:var(--zoom-x) var(--zoom-y);
  transition:transform .22s ease;
}
.detail-gallery-main::after{
  content:'\f00e';
  font-family:'Font Awesome 6 Free';
  font-weight:900;
  font-size:1rem;
  color:#fff;
  position:absolute;
  right:10px;
  bottom:10px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(26,58,84,.74);
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.detail-gallery-main.is-zooming img{transform:scale(1.92)}
@media (hover:hover){
  .detail-gallery-main:hover img{transform:scale(1.92)}
}

.detail-showcase{margin-top:1.05rem}
.detail-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:.75rem;
}
.detail-section-head h2{
  font-size:1.22rem;
  color:#203342;
}
.detail-section-link{
  display:inline-flex;
  align-items:center;
  gap:.42rem;
  font-weight:700;
  color:var(--blue);
  font-size:.92rem;
}
.detail-section-link:hover{color:var(--red)}

.detail-showcase--reviews .detail-section-head{margin-bottom:.8rem}
.detail-review-score{
  display:inline-flex;
  align-items:center;
  padding:.35rem .7rem;
  border-radius:999px;
  border:1px solid #c9d8e4;
  background:#f3f8fc;
  color:#325167;
  font-size:.82rem;
  font-weight:700;
}
.detail-reviews-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.8rem;
}
.detail-review-card{
  background:linear-gradient(165deg,#fff,#f2f7fb);
  border:1px solid #d8e1e8;
  border-radius:10px;
  padding:1rem;
  display:grid;
  gap:.55rem;
  box-shadow:0 10px 22px rgba(18,39,56,.06);
}
.detail-review-card--featured{
  background:linear-gradient(145deg,#ffffff,#edf4fa);
  border-color:#c8d8e5;
}
.detail-review-stars{display:flex;gap:.2rem;color:#f28000;font-size:.86rem}
.detail-review-card p{color:#4f6270;font-size:.92rem;line-height:1.55}
.detail-review-meta{display:grid;gap:.1rem}
.detail-review-meta strong{font-size:.88rem;color:#223645}
.detail-review-meta span{font-size:.8rem;color:#6d8090}
.detail-review-card small{font-size:.78rem;color:#7a8d9c}

.detail-similar-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.8rem;
}
.detail-similar-card{
  background:#fff;
  border:1px solid #d8e1e8;
  border-radius:10px;
  padding:.72rem;
  display:grid;
  gap:.56rem;
  box-shadow:0 10px 24px rgba(18,39,56,.06);
}
.detail-similar-card figure{
  margin:0;
  border:1px solid #d8e1e8;
  border-radius:8px;
  background:#fff;
  padding:.5rem;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:120px;
}
.detail-similar-card img{width:100%;height:100px;object-fit:contain}
.detail-similar-card small{
  color:#667784;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.45px;
  font-size:.72rem;
}
.detail-similar-card h3{
  font-size:.95rem;
  color:#223645;
  line-height:1.35;
  min-height:2.55em;
}
.detail-similar-card p{font-size:.83rem;color:#607180;line-height:1.45}
.detail-similar-card .btn{
  justify-content:center;
  font-size:.86rem;
  padding:.6rem .75rem;
}

.detail-client-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.8rem;
}
.detail-rec-card{
  background:linear-gradient(155deg,#ffffff,#f4f8fb);
  border:1px solid #d8e1e8;
  border-radius:10px;
  padding:1rem;
  display:grid;
  gap:.5rem;
}
.detail-rec-stars{display:flex;gap:.18rem;color:#f28000;font-size:.82rem}
.detail-rec-card p{color:#536572;font-size:.9rem;line-height:1.52}
.detail-rec-author{
  display:flex;
  justify-content:space-between;
  gap:.7rem;
  font-size:.82rem;
  color:#6a7c8a;
}
.detail-rec-author strong{color:#273744;font-size:.85rem}
.detail-thumbs{
  display:flex;
  flex-wrap:nowrap;
  gap:.45rem;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
}
.detail-thumb{
  flex:0 0 82px;
  border:1px solid #cfdae4;
  border-radius:8px;
  background:#fff;
  padding:.28rem;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:64px;
}
.detail-thumb img{width:100%;height:52px;object-fit:contain;display:block}
.detail-thumb.is-active{border-color:#f28000;box-shadow:0 0 0 1px rgba(242,128,0,.2)}
.detail-content{padding:1.3rem 1.45rem 1.55rem;display:grid;gap:.9rem}
.detail-brand{display:flex;align-items:center;gap:.7rem}
.detail-brand img{height:32px;width:auto}
.detail-brand span{
  font-size:.8rem;
  font-weight:700;
  text-transform:uppercase;
  color:#4e6577;
  letter-spacing:.5px;
}
.detail-content h1{font-size:clamp(2rem,3vw,2.5rem);line-height:1.2;color:#1f2d37}
.detail-lead{font-size:.95rem;color:#6c7f8d;font-weight:600}
.detail-headmeta{display:grid;gap:.32rem}
.detail-pill--stock{
  width:max-content;
  background:#eaf6ff;
  border-color:#b8d8ee;
  color:#165276;
}
.detail-code-line{
  font-size:.92rem;
  color:#6a7c8a;
  font-weight:500;
  letter-spacing:.1px;
}
.detail-code-line span{color:#3f5567;font-weight:700}
.detail-price-block{
  display:grid;
  gap:.12rem;
  padding:0;
}
.detail-price-block strong{font-size:1.85rem;color:#2b5e80;line-height:1.02}
.detail-price-block small{font-size:.86rem;color:#6e8090}
.detail-buybox{
  border:1px solid #d7e1e8;
  background:#f8fbfe;
  border-radius:10px;
  padding:.95rem 1rem 1rem;
  display:grid;
  gap:1rem;
}
.detail-buybox__row{
  display:flex;
  align-items:flex-end;
  gap:.9rem;
  flex-wrap:wrap;
}
.detail-buybox__row .detail-qty-wrap{flex:0 0 auto}
.detail-buybox__row .detail-actions{
  flex:1 1 220px;
  display:flex;
  margin:0;
}
.detail-buybox__row .detail-actions .btn{
  width:100%;
  justify-content:center;
  min-height:48px;
}
.detail-state{display:flex;flex-wrap:wrap;gap:.5rem}
.detail-pill{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.32rem .62rem;
  border-radius:999px;
  background:#eef4f9;
  color:#4f6475;
  border:1px solid #d4dee6;
  font-size:.76rem;
  font-weight:700;
}
.detail-pill--ok{
  color:#1f6843;
  background:#ebf8f0;
  border-color:#b8e2ca;
}
.detail-content p{font-size:1.03rem;color:#5b6b78;line-height:1.6}
.detail-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.detail-pill--meta{
  padding:.36rem .72rem;
  background:#f0f6fb;
  border-color:#cfdae4;
  color:#425a6d;
  font-size:.8rem;
}
.detail-pill--meta i{color:#4b6d85}
.detail-pill--meta strong{color:#203544;font-size:.83rem}
.detail-qty-wrap small{
  display:block;
  font-size:.78rem;
  font-weight:700;
  color:#4f6475;
  text-transform:uppercase;
  letter-spacing:.4px;
  margin-bottom:.45rem;
}
.detail-qty{
  display:inline-grid;
  grid-template-columns:46px 82px 46px;
  border:1px solid #cfdde8;
  border-radius:10px;
  overflow:hidden;
  background:#ffffff;
  box-shadow:0 2px 6px rgba(19,39,55,.05);
  height:48px;
}
.detail-qty button{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  padding:0;
  background:#f4f8fc;
  font-size:1.25rem;
  font-weight:700;
  color:#2b5e80;
  cursor:pointer;
  transition:background .15s ease,color .15s ease;
  line-height:1;
  border:none;
}
.detail-qty button:hover{background:#e3edf5;color:#1d3a55}
.detail-qty input{
  border:none;
  text-align:center;
  font-size:1.05rem;
  font-weight:700;
  color:#1d2f43;
  outline:none;
  background:#ffffff;
  -moz-appearance:textfield;
}
.detail-qty input::-webkit-outer-spin-button,
.detail-qty input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.detail-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.detail-actions .btn{padding:.78rem 1.25rem}
.detail-assurance{
  border-top:1px solid #d8e1e8;
  padding-top:.75rem;
  display:grid;
  gap:.65rem;
}
.detail-shipping-note{
  display:flex;
  align-items:center;
  gap:.45rem;
  font-size:.93rem !important;
  color:#344c5c !important;
  line-height:1.45;
}
.detail-shipping-note i{color:#3d6079}
.detail-shipping-note strong{color:#0f2d3f}
.detail-payments{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.detail-payments span{
  display:inline-flex;
  align-items:center;
  height:28px;
  padding:0 .6rem;
  border:1px solid #cad8e4;
  border-radius:6px;
  background:#fff;
  color:#283c4c;
  font-weight:700;
  font-size:.78rem;
}
.detail-help-btn{
  justify-content:center;
  border-color:#25d366;
  color:#25d366;
  background:#fff;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.25px;
}
.detail-help-btn:hover{background:#e8faf0;color:#1da854;border-color:#1da854}
.detail-specs{
  margin-top:.4rem;
  border-top:1px solid #d8e1e8;
  padding-top:.9rem;
}
.detail-specs--compact{margin-top:0}
.detail-specs h2{
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:.01em;
  line-height:1.25;
  margin-bottom:.7rem;
  color:#1d2f43;
}
.detail-specs ul{display:grid;gap:.35rem}
.detail-specs li{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  padding:.45rem 0;
  border-bottom:1px dashed #d9e2ea;
}
.detail-specs li span{font-size:.88rem;color:#678}
.detail-specs li strong{font-size:.9rem;color:#263643;text-align:right}

.detail-panels{
  margin-top:1rem;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  gap:.8rem;
}
.detail-panel{
  background:#fff;
  border:1px solid #d8e1e8;
  border-radius:10px;
  padding:1rem;
}
.detail-panel h2{
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:.01em;
  line-height:1.25;
  color:#1d2f43;
  margin-bottom:.7rem;
}
.detail-panel p{
  color:#5b6b78;
  line-height:1.55;
  font-size:.94rem;
}
.detail-panel__list{display:grid;gap:.25rem}
.detail-panel__list li{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  padding:.38rem 0;
  border-bottom:1px dashed #d9e2ea;
}
.detail-panel__list li span{font-size:.83rem;color:#6d7f8d}
.detail-panel__list li strong{font-size:.86rem;color:#263643;text-align:right}
.detail-panel__bullets{list-style:disc;padding-left:1rem;color:#5b6b78;display:grid;gap:.35rem}
.detail-panel__bullets li{font-size:.92rem;line-height:1.5}

/* ============================================================
   PROMO
   ============================================================ */
.promo{
  background:
    linear-gradient(135deg, rgba(5,14,22,.93) 0%, rgba(18,46,68,.85) 100%),
    url('../images/repuestos.webp') center/cover no-repeat;
  color:#fff;
  padding:3rem 0 3.5rem;
}

/* Cabecera */
.promo__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:1.5rem;
  margin-bottom:2rem;
  padding-bottom:1.5rem;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.promo__badge{
  display:inline-flex;align-items:center;gap:.35rem;
  background:var(--red);color:#fff;
  padding:.3rem .85rem;border-radius:50px;font-size:.75rem;font-weight:700;
  letter-spacing:1px;margin-bottom:.6rem;
}
.promo__text h2{font-size:2rem;margin-bottom:.4rem;font-weight:800}
.promo__text p{opacity:.88;font-size:1.02rem}

/* Contador */
.promo__counter{display:flex;gap:.65rem}
.promo__counter > div{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  padding:.9rem 1.1rem;border-radius:10px;
  text-align:center;min-width:72px;
  backdrop-filter:blur(6px);
}
.promo__counter span{display:block;font-size:1.65rem;font-weight:800;line-height:1}
.promo__counter small{font-size:.65rem;text-transform:uppercase;opacity:.7;margin-top:.3rem;display:block;letter-spacing:.5px}

/* Grid de productos en oferta */
.promo__products{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1rem;
  margin-bottom:2rem;
}
.promo-card{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  overflow:hidden;
  position:relative;
  transition:transform .22s ease, box-shadow .22s ease;
  backdrop-filter:blur(4px);
}
.promo-card:hover{
  transform:translateY(-5px);
  box-shadow:0 16px 36px rgba(0,0,0,.45);
  border-color:rgba(242,140,0,.4);
}
.promo-card__off{
  position:absolute;top:.75rem;left:.75rem;
  background:var(--red);color:#fff;
  font-size:.68rem;font-weight:800;
  padding:.22rem .55rem;border-radius:50px;
  letter-spacing:.5px;z-index:1;
}
.promo-card__img{
  background:rgba(255,255,255,.05);
  display:flex;align-items:center;justify-content:center;
  padding:1.2rem 1rem;height:158px;
}
.promo-card__img img{
  max-height:130px;
  width:auto;
  object-fit:contain;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.35));
  transition:transform .22s ease;
}
.promo-card:hover .promo-card__img img{transform:scale(1.06)}
.promo-card__info{padding:.85rem 1rem 1.1rem}
.promo-card__name{
  font-size:.83rem;font-weight:600;line-height:1.38;
  opacity:.93;margin-bottom:.5rem;min-height:2.4rem;
}
.promo-card__old{
  display:block;font-size:.78rem;
  text-decoration:line-through;opacity:.45;margin-bottom:.1rem;
}
.promo-card__price{
  display:block;font-size:1.3rem;font-weight:800;
  color:var(--red);margin-bottom:.8rem;
}

/* CTA final */
.promo__cta{text-align:center}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter{
  background:
    linear-gradient(120deg, rgba(8,16,24,.86), rgba(22,52,74,.72)),
    url('../images/repuestos.webp') center/cover no-repeat;
  color:#fff;
  padding:3rem 0;
}
.newsletter__inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:2rem}
.newsletter h2{font-size:1.75rem;margin-bottom:.4rem}
.newsletter p{opacity:.85;font-size:1.03rem}
.newsletter form{display:flex;gap:.5rem;min-width:340px}
.newsletter input{
  flex:1;padding:.8rem 1.2rem;border-radius:var(--radius);border:none;outline:none;
  font-size:1rem;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.post{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:all .25s}
.post:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.post__img{height:180px;display:flex;align-items:center;justify-content:center;font-size:3rem;color:rgba(255,255,255,.4)}
.post__body{padding:1.2rem}
.post__cat{font-size:.78rem;color:var(--blue);font-weight:700;text-transform:uppercase;letter-spacing:.5px}
.post__body h3{font-size:1.08rem;margin:.55rem 0;line-height:1.4}
.post__body h3 a:hover{color:var(--red)}
.post__meta{font-size:.88rem;color:var(--gray)}

/* ============================================================
   MAPA UBICACION
   ============================================================ */
.section--map{background:#fff}
.map-card{
  display:grid;
  grid-template-columns:minmax(380px,420px) minmax(0,1fr);
  gap:1rem;
  border:1px solid #d5dde3;
  border-radius:10px;
  background:#fff;
  box-shadow:0 14px 28px rgba(18,38,54,.1);
  overflow:hidden;
}
.map-card__info{
  padding:1.2rem;
  background:linear-gradient(155deg,#f4f8fb,#e9f1f7);
  display:grid;
  align-content:start;
  gap:.8rem;
}
.map-card__info h3{font-size:1.35rem;color:#223646}
.map-card__info p{color:#5f7080;font-size:.98rem;line-height:1.55}
.map-card__highlights{display:grid;gap:.45rem}
.map-card__highlights span{
  display:flex;
  align-items:flex-start;
  gap:.5rem;
  color:#304351;
  font-size:.93rem;
}
.map-card__highlights i{color:var(--blue);margin-top:3px;flex-shrink:0}
.map-card__divider{
  height:1px;
  width:100%;
  background:linear-gradient(90deg,rgba(242,140,0,.9),rgba(242,140,0,.25),transparent);
  border-radius:999px;
  margin:.1rem 0 .2rem;
}
.map-card__actions{display:grid;gap:.55rem;margin-top:.1rem}
.map-card__actions .btn{justify-content:center;text-align:center}
.map-card__contact{
  justify-content:center;
  border:1px solid #c7d3dd;
  color:#2f4a5f;
  background:#fff;
}
.map-card__contact:hover{background:#edf4f9;color:#244055}
.map-card__list{
  display:grid;
  gap:.42rem;
  margin-top:.12rem;
  background:#fff;
  border:1px solid #d7e2ea;
  border-radius:12px;
  padding:.58rem .68rem;
  box-shadow:0 8px 18px rgba(18,38,54,.06);
}
.map-card__list li{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  align-items:start;
  column-gap:.6rem;
  color:#304351;
  font-size:.93rem;
  line-height:1.4;
  padding:.12rem 0;
}
.map-card__list li+li{
  border-top:1px dashed #d6e1e9;
  padding-top:.45rem;
}
.map-card__list i{
  color:#fff;
  margin-top:2px;
  flex-shrink:0;
  width:18px;
  height:18px;
  border-radius:999px;
  background:var(--blue);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.68rem;
}
.map-card__list span{min-width:0}
.map-card__list strong{color:#203a4d;font-weight:700}
.map-card__list a{
  color:#1b5379;
  text-decoration:none;
  overflow-wrap:anywhere;
  word-break:break-word;
  border-bottom:1px dotted rgba(27,83,121,.45);
}
.map-card__list a:hover{color:var(--blue);border-bottom-color:var(--blue)}
.map-card__emails{display:grid;gap:.1rem;margin-top:.22rem}
.map-card__emails a{display:block;width:100%}
.map-card__list-item--emails > div{min-width:0}
.map-card__frame iframe{
  width:100%;
  height:100%;
  min-height:360px;
  border:0;
  display:block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{
  background:
    linear-gradient(120deg, rgba(3,8,12,.92), rgba(10,24,36,.88)),
    url('../images/camiones.webp') center/cover no-repeat;
  color:#cbd5e1;
  padding:3.5rem 0 0;
}
.footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2.5rem;padding-bottom:2.5rem}
.footer h4{color:#fff;font-size:1.15rem;margin-bottom:1rem;position:relative;padding-bottom:.6rem}
.footer h4::after{content:"";position:absolute;left:0;bottom:0;width:30px;height:2px;background:var(--blue)}
.footer ul li{margin-bottom:.55rem;font-size:1rem}
.footer__contact li{display:flex;gap:.6rem;align-items:flex-start;margin-bottom:.7rem;font-size:.96rem}
.footer__contact i{color:var(--blue);margin-top:3px;flex-shrink:0}
.footer p{margin:1rem 0;font-size:1rem;opacity:.85}
.socials{display:flex;gap:.5rem;margin-top:.75rem}
.socials a{
  width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;font-size:.95rem;
}
.socials a:hover{background:var(--blue);color:#fff;transform:translateY(-3px)}
.footer__bottom{border-top:1px solid rgba(255,255,255,.08);padding:1.2rem 0;font-size:.92rem}
.footer__bottom .container{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}

/* ============================================================
   WHATSAPP WIDGET + POPUP
   ============================================================ */
.wa-widget{position:fixed;bottom:25px;right:25px;z-index:999;display:flex;flex-direction:column;align-items:flex-end;gap:.75rem}

/* Botón flotante */
.wa-float{
  width:60px;height:60px;border-radius:50%;border:none;cursor:pointer;
  background:#25d366;color:#fff;font-size:1.9rem;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 22px rgba(37,211,102,.55);
  animation:waBounce 4s ease-in-out infinite;position:relative;
}
.wa-float:hover,.wa-float.active{animation:none;transform:scale(1.08)}
.wa-float__badge{
  position:absolute;top:-3px;right:-3px;
  background:#ef2459;color:#fff;border-radius:50%;
  width:20px;height:20px;font-size:.65rem;font-weight:800;
  display:flex;align-items:center;justify-content:center;
  border:2px solid #fff;
  transition:transform .2s ease,opacity .2s ease;
}
.wa-float__badge.is-hidden{opacity:0;transform:scale(.4);pointer-events:none}
@keyframes waBounce{
  0%,100%{transform:translateY(0);box-shadow:0 6px 22px rgba(37,211,102,.55)}
  10%{transform:translateY(-6px);box-shadow:0 6px 32px rgba(37,211,102,.9)}
  20%{transform:translateY(0);box-shadow:0 6px 22px rgba(37,211,102,.55)}
  30%{transform:translateY(-3px);box-shadow:0 6px 28px rgba(37,211,102,.75)}
  40%{transform:translateY(0);box-shadow:0 6px 22px rgba(37,211,102,.55)}
}

/* Popup */
.wa-popup{
  position:relative;
  background:#fff;border-radius:16px;width:300px;
  box-shadow:0 12px 40px rgba(0,0,0,.18);
  overflow:hidden;
  transform:translateY(12px) scale(.96);opacity:0;
  pointer-events:none;
  transition:transform .25s ease,opacity .25s ease;
}
.wa-popup.is-open{transform:translateY(0) scale(1);opacity:1;pointer-events:auto}
.wa-popup__close{
  position:absolute;top:.6rem;right:.7rem;
  background:none;border:none;cursor:pointer;
  color:#8896a0;font-size:1rem;padding:.25rem;
}
.wa-popup__header{
  background:#075e54;color:#fff;
  display:flex;align-items:center;gap:.75rem;
  padding:1rem 1.1rem;position:relative;
}
.wa-popup__avatar{
  width:44px;height:44px;border-radius:50%;
  background:#25d366;display:flex;align-items:center;justify-content:center;
  font-size:1.4rem;flex-shrink:0;
}
.wa-popup__header strong{display:block;font-size:.95rem}
.wa-popup__header span{font-size:.72rem;opacity:.85;display:flex;align-items:center;gap:.3rem}
.wa-popup__msg{
  padding:1rem 1.1rem;font-size:.88rem;color:#2d3a43;
  background:#f5f7fa;line-height:1.5;
}
.wa-popup__cta{
  display:block;margin:.4rem .9rem .9rem;
  background:#25d366;color:#fff;text-align:center;
  padding:.65rem 1rem;border-radius:8px;font-weight:700;font-size:.88rem;
  text-decoration:none;transition:background .2s;
}
.wa-popup__cta:hover{background:#1ebe5d;color:#fff}
.wa-popup__cta i{margin-right:.35rem}

/* ============================================================
   INDICADORES DE CONFIANZA
   ============================================================ */
.trust{
  background:
    linear-gradient(120deg, rgba(8,16,24,.88), rgba(22,52,74,.78)),
    url('../images/Products/hero-cmp-maquinaria.png') center/cover no-repeat;
  color:#fff;padding:2.5rem 0;
}
.trust__grid{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:1rem;text-align:center;
}
.trust__stat{padding:1rem .5rem}
.trust__num{font-size:2.8rem;font-weight:900;line-height:1;color:#fff}
.trust__suffix{font-size:2rem;font-weight:900;color:var(--red)}
.trust__stat p{font-size:.88rem;opacity:.85;margin-top:.3rem}

/* ============================================================
   CÓMO COMPRAR
   ============================================================ */
.howto__steps{
  display:grid;grid-template-columns:1fr auto 1fr auto 1fr;
  gap:1rem;align-items:center;margin:2rem 0 2.5rem;
}
.howto__step{
  background:#fff;border:1px solid #e5edf2;border-radius:16px;
  padding:2rem 1.5rem;text-align:center;position:relative;
  box-shadow:0 4px 18px rgba(0,0,0,.06);
}
.howto__icon{
  width:64px;height:64px;border-radius:50%;
  background:var(--red);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:1.6rem;margin:0 auto .8rem;
}
.howto__num{
  position:absolute;top:.75rem;right:1rem;
  font-size:2.5rem;font-weight:900;color:#f0f4f7;line-height:1;
  pointer-events:none;user-select:none;
}
.howto__step h3{font-size:1rem;font-weight:700;margin-bottom:.4rem}
.howto__step p{font-size:.86rem;color:#6b7c88;line-height:1.55}
.howto__connector{color:#d0dae2;font-size:1.5rem;text-align:center}
.howto__cta{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}
.btn--outline{
  background:transparent;border:2px solid var(--red);color:var(--red);
  font-weight:700;border-radius:var(--radius);
  padding:.6rem 1.4rem;transition:background .2s,color .2s;display:inline-flex;align-items:center;gap:.4rem;
}
.btn--outline:hover{background:var(--red);color:#fff}

/* ============================================================
   COMPATIBILIDAD
   ============================================================ */
.compat__filter{display:flex;gap:.5rem;margin-bottom:1.5rem;flex-wrap:wrap}
.compat__btn{
  background:#fff;border:1.5px solid #d8e3eb;color:#4a5568;
  border-radius:50px;padding:.38rem 1rem;font-size:.84rem;font-weight:600;
  cursor:pointer;transition:all .18s;
}
.compat__btn.active,.compat__btn:hover{background:var(--blue);border-color:var(--blue);color:#fff}
.compat__table-wrap{overflow-x:auto;border-radius:12px;border:1px solid #e5edf2}
.compat__table{
  width:100%;border-collapse:collapse;font-size:.88rem;
  background:#fff;
}
.compat__table thead tr{background:var(--blue);color:#fff}
.compat__table th{padding:.75rem 1rem;text-align:left;font-weight:700;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em}
.compat__table td{padding:.65rem 1rem;border-bottom:1px solid #f0f4f7;vertical-align:middle}
.compat__table tbody tr:last-child td{border-bottom:none}
.compat__table tbody tr:hover td{background:#f8fbfd}
.compat__tag{
  display:inline-block;padding:.2rem .55rem;border-radius:50px;
  font-size:.7rem;font-weight:700;text-transform:capitalize;
}
.compat__tag--autos{background:#dbeafe;color:#1d4ed8}
.compat__tag--maquinaria{background:#fef3c7;color:#92400e}
.compat__tag--camiones{background:#dcfce7;color:#166534}
.compat__wa{
  display:inline-flex;align-items:center;gap:.3rem;
  background:#25d366;color:#fff;border-radius:6px;
  padding:.28rem .65rem;font-size:.78rem;font-weight:700;
  text-decoration:none;white-space:nowrap;
  transition:background .18s;
}
.compat__wa:hover{background:#1ebe5d;color:#fff}
.compat__note{
  margin-top:1rem;font-size:.83rem;color:#6b7c88;
  display:flex;align-items:center;gap:.4rem;
}
.compat__note a{color:var(--blue);font-weight:600}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal]{opacity:0;transform:translateY(28px);transition:opacity .55s ease,transform .55s ease}
[data-reveal].revealed{opacity:1;transform:translateY(0)}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .portada-main{grid-template-columns:230px 1fr}
  .portada-tab{padding:.82rem .95rem;font-size:.82rem}
  .portada-tab--cats{min-width:220px}
  .mega-panel{min-height:520px}
  .hero-slider{min-height:520px}
  .products,.blog{grid-template-columns:repeat(3,1fr)}
  .benefits__grid{grid-template-columns:repeat(2,1fr)}
  .footer__grid{grid-template-columns:repeat(2,1fr)}
  .map-card{grid-template-columns:1fr}
  .map-card__frame iframe{min-height:320px}
  .brands-strip__track{font-size:1.2rem;gap:2.5rem}
  .brand-logo--ffi{font-size:1.5rem}
  .header .brand__img--header{height:42px}
  .header__phone span{display:none}
  .header__phone i{width:38px;height:38px}
  .mega-panel__layout{grid-template-columns:minmax(0,1fr) 260px}
}
@media (max-width:860px){
  .topbar__inner{grid-template-columns:1fr}
  .topbar__black{clip-path:none;justify-content:flex-start}
  .topbar__black-inner{padding:.5rem 1rem;gap:1rem;flex-wrap:wrap}
  .portada-tabs{border-top-width:2px}
  .portada-tab{font-size:.78rem;padding:.75rem .7rem}
  .portada-tab--cats{min-width:auto}
  .portada-tab--wa{margin:0 .4rem 0 auto;height:36px;font-size:.82rem}
  .portada-main{grid-template-columns:1fr;overflow:visible;min-height:auto}
  .portada-categorias{order:2}
  .portada-categorias ul{justify-content:flex-start;overflow:visible}
  .mega-panel{order:1;min-height:420px}
  .mega-panel--hero{overflow:hidden}
  .hero-slider{min-height:420px}
  .mega-panel--hero .hero-slider{
    position:relative;
    top:auto;
    bottom:auto;
    left:auto;
    transform:none;
    width:100%;
  }
  .portada-accordion-panel{
    display:block;
    background:#f7fafc;
    border-top:1px solid #e1e8ef;
    padding:.7rem .85rem .8rem;
  }
  .portada-accordion-group + .portada-accordion-group{margin-top:.7rem}
  .portada-accordion-group h4{
    font-size:.84rem;
    color:#1f5f8f;
    margin-bottom:.35rem;
  }
  .portada-accordion-group ul{display:grid;gap:.2rem}
  .portada-accordion-group li{
    font-size:.82rem;
    color:#2c3c47;
    padding:.12rem 0;
  }
  .portada-categorias a.active .portada-categorias__arrow{transform:rotate(90deg)}
  .mega-panel__layout{grid-template-columns:1fr}
  .mega-panel__visual{min-height:210px}
  .mega-panel__columns{grid-template-columns:repeat(2,minmax(180px,1fr))}
  .header__inner{padding:.75rem 1.25rem;min-height:78px;position:relative}
  .header .brand__img--header{height:36px}
  .header__cta{gap:.65rem}
  .detail-card{grid-template-columns:1fr}
  .detail-media{min-height:280px;border-right:none;border-bottom:1px solid #d8e1e8}
  .detail-gallery-main img{height:260px}
  .detail-panels{grid-template-columns:1fr 1fr}
  .detail-buybox__row{flex-direction:row}
  .detail-reviews-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-review-card--featured{grid-column:1/-1}
  .detail-similar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .detail-client-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:768px){
  h1{font-size:2rem}
  h2{font-size:1.75rem}
  h3{font-size:1.35rem}
  .portada-tab:nth-child(n+4){display:none}
  .portada-categorias a{padding:.7rem .85rem;font-size:.8rem}
  .portada-categorias__more{font-size:.9rem}
  .mega-panel__columns{grid-template-columns:1fr}
  .mega-panel__visual{display:none}
  .finder{grid-template-columns:1fr 1fr;gap:.4rem;padding:.5rem}
  .finder__field{border-right:none;border-bottom:1px solid #e2e8ef;padding:.4rem .6rem}
  .finder .btn{grid-column:1/-1}
  .products,.blog{grid-template-columns:repeat(2,1fr)}
  .section__head--new{flex-wrap:wrap}
  .section__head--new .tabs{margin-left:0}
  .promo__header{flex-direction:column;text-align:center}
  .trust__grid{grid-template-columns:repeat(2,1fr)}
  .howto__steps{grid-template-columns:1fr;gap:1rem}
  .howto__connector{display:none}
  .promo__products{grid-template-columns:repeat(2,1fr)}
  .promo__cta{text-align:center}
  .newsletter__inner{flex-direction:column;text-align:center}
  .newsletter form{min-width:100%;flex-direction:column}
  .map-card__frame iframe{min-height:280px}
  .brands-strip__track{font-size:1rem;gap:1.75rem}
  .topbar__black-inner{gap:.75rem;font-size:.72rem;padding-right:1rem}
  .detail-content h1{font-size:1.9rem}
  .detail-thumb{flex-basis:78px}
  .detail-actions .btn{width:100%;justify-content:center}
  .detail-panels{grid-template-columns:1fr}
  .detail-reviews-grid{grid-template-columns:1fr}
  .detail-review-card--featured{grid-column:auto}
  .detail-similar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-section-head h2{font-size:1.1rem}
}
@media (max-width:480px){
  .products,.blog,.benefits__grid,.footer__grid{grid-template-columns:1fr}
  .header__phone{display:none}
  .header .brand__img--header{height:32px}
  .brand__img{height:34px}
  .brand--footer .brand__img{height:44px}
  .mega-panel{min-height:340px;padding:.8rem}
  .mega-panel--hero{padding:0}
  .hero-slider{min-height:340px}
  .mega-group li{font-size:.86rem}
  .finder{padding:.7rem}
  .topbar__black-inner .topbar__link:not(:first-child){display:none}
  .detail-shell{padding:1.2rem 0 2.1rem}
  .detail-breadcrumb{font-size:.78rem;flex-wrap:wrap}
  .detail-meta{grid-template-columns:1fr}
  .detail-thumb{flex-basis:74px}
  .detail-gallery-main img{height:210px}
  .detail-buybox{padding:.65rem}
  .detail-buybox__row{flex-direction:column;align-items:stretch;gap:.65rem}
  .detail-buybox__row .detail-qty-wrap{width:100%}
  .detail-buybox__row .detail-actions{flex:1 1 auto}
  .detail-buybox__row .detail-qty{width:100%;max-width:200px}
  .detail-page .header__quote{padding:.62rem .95rem;font-size:.8rem}
  .detail-similar-grid,
  .detail-client-grid{grid-template-columns:1fr}
  .detail-review-score{font-size:.76rem}
  .detail-section-head{align-items:flex-start;flex-direction:column}
  .map-card__info{padding:1rem}
  .map-card__list li{font-size:.91rem}
  .map-card__frame iframe{min-height:250px}
}

#footer-contacto{scroll-margin-top:110px}

/* ============================================================
   PALETA BALANCEADA | FIX HOVER PRODUCTOS
   ============================================================ */
a:hover{color:var(--red-2)}
.topbar__red{background:linear-gradient(94deg,#f7ad35 0%,#f28c00 56%,#bd6800 100%)}
.header{background:linear-gradient(180deg,#ffffff 0%,#fff7ec 44%,#f5f7f9 100%);border-bottom:1px solid rgba(36,55,70,.12)}
.mainnav__cats{background:var(--red)}
.mainnav__cats:hover{background:var(--red-2)}
.header__phone i{background:var(--red)}
.brands-strip{
  background:
    linear-gradient(90deg, rgba(8,14,20,.9), rgba(17,42,61,.86)),
    url('../images/repuestos.webp') center/cover no-repeat;
  border-top:2px solid var(--red);
}
.brands-strip::before{background:linear-gradient(90deg,rgba(8,14,20,.96),transparent)}
.brands-strip::after{background:linear-gradient(-90deg,rgba(17,42,61,.96),transparent)}
.portada-tabs{border-color:#31495c}
.portada-tab.active{background:rgba(255,255,255,.05)}
.portada-tab--cats{background:linear-gradient(90deg,var(--red),var(--red-2))}
.portada-tab--cats:hover{background:linear-gradient(90deg,var(--red-2),var(--red))}
.portada-categorias a:hover{background:#fff}
.portada-categorias a.active{background:#fff}
.benefit__icon{border-color:#fff;color:#fff}
.product__actions button:hover{background:var(--red);color:#fff}
.product__quick{background:linear-gradient(90deg,var(--blue),var(--blue-2));color:#fff}
.product__quick:hover,
.product__quick:focus{color:#fff}
.product__title a:hover{color:var(--blue-2)}
.product::before{background:linear-gradient(90deg,var(--blue),var(--red))}
.promo{
  background:
    linear-gradient(120deg, rgba(7,17,26,.82), rgba(20,52,77,.7)),
    url('../images/repuestos.webp') center/cover no-repeat;
}
.promo__badge{background:var(--red)}
.post__body h3 a:hover{color:var(--blue)}

@media (max-width:860px){
  .home-reviews{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:768px){
  .home-reviews{grid-template-columns:1fr}
}
