:root{
  --brand-navy:#121A41;
  --brand-red:#b80d0d;
  --bg:#f5f7fa;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --ink:#0f172a;
  --muted:#64748b;
  --line:#dbe3ec;
  --line-strong:#c7d0dc;
  --shadow-sm:0 8px 20px rgba(15,23,42,.04);
  --shadow:0 18px 40px rgba(15,23,42,.08);
  --font:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --focus:0 0 0 4px rgba(18,26,65,.14);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--ink);
  line-height:1.5;
}
img{max-width:100%;display:block;height:auto}
a{text-decoration:none;color:inherit}

.skip-link{
  position:absolute;
  left:-999px;
  top:12px;
  z-index:9999;
  background:var(--brand-navy);
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
}
.skip-link:focus{
  left:12px;
  outline:none;
  box-shadow:var(--focus);
}

.products-shell{
  width:min(80vw,1320px);
  max-width:1320px;
  margin-inline:auto;
}

@media (max-width:1200px){
  .products-shell{width:min(88vw,1320px)}
}
@media (max-width:980px){
  .products-shell{width:min(92vw,1320px)}
}
@media (max-width:860px){
  .products-shell{width:min(94vw,1320px)}
}

.section{
  padding:28px 0;
}

.section-kicker{
  margin:0 0 8px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(18,26,65,.58);
}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  transition:transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.card__pad{
  padding:20px;
}

.muted{
  color:var(--muted);
}

/* BOTONES */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:16px;
  font-weight:700;
  white-space:nowrap;
  transition:all .22s ease;
}

.btn:focus{
  outline:none;
  box-shadow:var(--focus);
}

.btn--detail{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:50px;
  padding:11px 18px;
  border-radius:16px;
  border:1px solid rgba(191,199,210,.92);
  background:linear-gradient(180deg,#fafbfc 0%, #f3f5f8 100%);
  color:#22315f;
  font-weight:700;
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 4px 10px rgba(15,23,42,.03);
  overflow:hidden;
  transition:
    transform .22s cubic-bezier(.2,.8,.2,1),
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease,
    color .22s ease;
}

/* quitamos overlay oscuro */
.btn--detail::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0));
  opacity:.32;
  pointer-events:none;
}

/* línea inferior más fina y discreta */
.btn--detail::after{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  bottom:8px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    rgba(184,13,13,0),
    rgba(184,13,13,.42),
    rgba(184,13,13,0)
  );
  transform:scaleX(.28);
  transform-origin:center;
  transition:transform .24s ease, opacity .24s ease;
  opacity:.85;
}

.btn--detail:hover{
  transform:translateY(-1px);
  background:linear-gradient(180deg,#ffffff 0%, #f7f9fc 100%);
  border-color:rgba(177,186,198,.96);
  color:#1f2c57;
  box-shadow:
    0 1px 0 rgba(255,255,255,.98) inset,
    0 8px 18px rgba(15,23,42,.06);
}

.btn--detail:hover::after{
  transform:scaleX(.78);
}

.btn--detail:active{
  transform:translateY(0);
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 4px 10px rgba(15,23,42,.04);
}

.btn--detail:focus{
  outline:none;
  box-shadow:
    0 1px 0 rgba(255,255,255,.98) inset,
    0 8px 18px rgba(15,23,42,.06),
    0 0 0 4px rgba(18,26,65,.12);
}

.btn--detail .arrow{
  opacity:0;
  transform:translateX(-3px);
  transition:opacity .18s ease, transform .18s ease;
}

.btn--detail:hover .arrow{
  opacity:1;
  transform:translateX(0);
}

/* HERO */
.section--productsHero{
  position:relative;
  overflow:hidden;
  padding:22px 0 10px;
  background:
    radial-gradient(800px 220px at 15% 0%, rgba(18,26,65,.07), transparent 60%),
    radial-gradient(720px 200px at 85% 8%, rgba(153,1,1,.05), transparent 65%);
}

.productsHero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:20px;
  align-items:center;
}

.productsHero__copy{
  padding:10px 0 4px;
}

.productsHero__copy h1{
  margin:0;
  font-size:clamp(30px,3.6vw,52px);
  line-height:1.02;
  letter-spacing:-.03em;
  color:var(--brand-navy);
  max-width:12ch;
}

.productsHero__copy p{
  margin:10px 0 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.65;
  max-width:58ch;
}

.productsHero__search{
  padding:18px;
  border-radius:28px;
  border:1px solid rgba(18,26,65,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,250,252,.92));
  backdrop-filter:blur(12px);
  box-shadow:var(--shadow-sm);
}

.productsSearch{
  position:relative;
  display:block;
}

.productsSearch svg{
  position:absolute;
  left:16px;
  top:50%;
  width:18px;
  height:18px;
  transform:translateY(-50%);
  color:rgba(18,26,65,.55);
}

.productsSearch input{
  width:100%;
  height:58px;
  padding:0 16px 0 48px;
  border-radius:20px;
  border:1px solid #d6deea;
  background:linear-gradient(180deg,#ffffff,#fbfcfe);
  color:var(--ink);
  font:inherit;
  font-size:15px;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}

.productsSearch input::placeholder{
  color:#7b879c;
}

.productsSearch input:focus{
  outline:none;
  border-color:rgba(18,26,65,.24);
  box-shadow:var(--focus);
}

/* TOOLBAR */
.section--productsCatalog{
  background:
    radial-gradient(900px 220px at 15% 0%, rgba(18,26,65,.04), transparent 60%),
    linear-gradient(180deg,#fbfbfc 0%, #f4f6f9 100%);
}

.productsToolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
  padding:12px 16px;
  border:1px solid rgba(205,212,221,.85);
  border-radius:18px;
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(10px);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.productsToolbar__left,
.productsToolbar__right{
  display:flex;
  align-items:center;
  gap:14px;
}

.productsCount{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  color:var(--brand-navy);
}

.productsCount::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--brand-red),#940505);
  box-shadow:0 0 0 6px rgba(184,13,13,.08);
}

.productsSelectWrap{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  color:var(--muted);
}

.productsSelectWrap span{
  font-weight:700;
  color:var(--brand-navy);
}

.productsSelect{
  height:42px;
  min-width:170px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  font:inherit;
}

.productsSelect:focus{
  outline:none;
  border-color:rgba(18,26,65,.24);
  box-shadow:var(--focus);
}

/* GRID */
.productsGrid--desktop{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
}

.categoryCatalogCard{
  position:relative;
  min-width:0;
}

.categoryCatalogCard__link{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:100%;
  height:100%;
  background:linear-gradient(180deg,#fbfbfc 0%, #f6f7f9 100%);
  border:1px solid rgba(190,198,210,.75);
  border-radius:24px;
  overflow:hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.92) inset,
    0 10px 30px rgba(15,23,42,.04);
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease,
    background .28s ease;
}

.categoryCatalogCard__link:hover{
  transform:translateY(-5px);
  border-color:rgba(166,176,190,.95);
  box-shadow:
    0 1px 0 rgba(255,255,255,.96) inset,
    0 16px 34px rgba(15,23,42,.08);
  background:linear-gradient(180deg,#ffffff 0%, #f5f7fa 100%);
}

.categoryCatalogCard__media{
  position:relative;
  padding:14px 14px 10px;
}

.categoryCatalogCard__media img{
  width:100%;
  height:210px;
  object-fit:contain;
  object-position:center;
  border-radius:18px;
  background:linear-gradient(180deg,#f3f4f6 0%, #f1f3f6 100%);
  display:block;
  padding:14px;
}

.categoryCatalogCard__media.is-empty{
  height:230px;
  border-radius:18px;
  background:
    radial-gradient(120px 44px at 50% 28%, rgba(18,26,65,.04), transparent 60%),
    linear-gradient(180deg,#f3f4f6 0%, #eff2f5 100%);
  display:flex;
  align-items:center;
  justify-content:center;
}

.categoryCatalogCard__media.is-empty::before{
  content:"Imagen no disponible";
  font-size:14px;
  font-weight:700;
  color:#8390a7;
}

.categoryCatalogCard__body{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:14px 16px 16px;
  border-top:1px solid rgba(215,220,228,.95);
  min-height:172px;
}

.categoryCatalogCard__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.categoryCatalogCard__tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:7px 14px;
  border-radius:999px;
  background:linear-gradient(180deg,#be1010 0%, #980606 100%);
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.01em;
  box-shadow:0 8px 18px rgba(190,16,16,.18);
  flex-shrink:0;
}

.categoryCatalogCard__meta{
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#6a748d;
  text-align:right;
  line-height:1.4;
  max-width:44%;
}

.categoryCatalogCard h2{
  margin:0;
  color:#0b1c4d;
  font-size:18px;
  font-weight:800;
  line-height:1.16;
  letter-spacing:-.03em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:42px;
}

.categoryCatalogCard__cta{
  margin-top:auto;
  padding-top:18px;
}

.categoryCatalogCard .btn--detail{
  min-width:150px;
  min-height:50px;
  padding:11px 16px;
  font-size:14px;
}

/* MOBILE */
.productsSliderWrap{
  display:none;
}

.productsSliderViewport{
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
}

.productsSliderViewport::-webkit-scrollbar{
  display:none;
}

.productsSliderTrack{
  display:flex;
  gap:16px;
}

.categoryCatalogCard--mobile{
  min-width:86vw;
  scroll-snap-align:center;
}

/* EMPTY */
.productsEmpty .card{
  text-align:center;
  border-style:dashed;
  background:linear-gradient(180deg,#fff,#f8fafc);
}

.productsEmpty strong{
  display:block;
  color:var(--brand-navy);
  font-size:18px;
  margin-bottom:6px;
}

/* =========================================
   TRUST SECTION — PREMIUM
   ========================================= */
.section--productsTrust{
  position: relative;
  padding: 60px 0;
}

/* fondo suave tipo Apple */
.section--productsTrust::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(600px 200px at 50% -10%, rgba(18,26,65,.05), transparent),
    linear-gradient(180deg,#ffffff 0%, #f7f9fc 100%);
  pointer-events:none;
}

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

/* =========================
   CARD
   ========================= */
.productsTrust__item{
  position: relative;
  padding: 26px 24px;
  border-radius: 22px;
  border: 1px solid rgba(190,198,210,.55);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 10px;

  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 8px 20px rgba(15,23,42,.04);

  transition:
    transform .3s cubic-bezier(.2,.8,.2,1),
    box-shadow .3s ease,
    border-color .3s ease,
    background .3s ease;
}

/* línea superior premium */
.productsTrust__item::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    rgba(153,1,1,0),
    rgba(153,1,1,.5),
    rgba(153,1,1,0)
  );
  opacity:.6;
  transition:.3s;
}

/* hover fino */
.productsTrust__item:hover{
  transform: translateY(-4px);
  border-color: rgba(170,180,195,.8);
  background: rgba(255,255,255,.96);

  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 16px 30px rgba(15,23,42,.07);
}

.productsTrust__item:hover::before{
  opacity:1;
}

/* =========================
   TIPOGRAFÍA
   ========================= */
.productsTrust__item h3{
  font-size: 16px;
  color: #1e2b57;
  letter-spacing: -.01em;
}

.productsTrust__item span{
  font-size: 13.5px;
  line-height: 1.5;
  color: #5b667a;
  max-width: 28ch;
}

/* =========================
   ICONO (opcional)
   ========================= */
.productsTrust__item::after{
  content:"";
  position:absolute;
  top:18px;
  right:18px;
  width:28px;
  height:28px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(153,1,1,.12), transparent);
  opacity:.6;
}

/* CTA */
.productsCta{
  padding:30px;
  border-radius:28px;
  border:1px solid rgba(18,26,65,.08);
  background:
    radial-gradient(520px 180px at 0% 100%, rgba(18,26,65,.06), transparent 60%),
    radial-gradient(520px 180px at 100% 0%, rgba(153,1,1,.05), transparent 60%),
    linear-gradient(180deg,#ffffff,#f8fafc);
  box-shadow:var(--shadow-sm);
}

.productsCta__content{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:24px;
  align-items:center;
}

.productsCta__copy h2{
  margin:0;
  font-size:clamp(26px,3vw,42px);
  line-height:1.04;
  letter-spacing:-.03em;
  color:var(--brand-navy);
  max-width:13ch;
}

.productsCta__copy p{
  margin:12px 0 0;
  color:var(--muted);
  line-height:1.68;
  max-width:56ch;
}

.productsCta__panel{
  display:flex;
  flex-direction:column;
  gap:16px;
  justify-self:end;
  max-width:340px;
  width:100%;
}

.productsCta__mini{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:14px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(18,26,65,.08);
  background:rgba(255,255,255,.8);
}

.productsCta__miniIcon{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  color:var(--brand-navy);
  background:linear-gradient(180deg,#fff,#f2f6fb);
  border:1px solid rgba(18,26,65,.1);
}

.productsCta__miniIcon svg{
  width:19px;
  height:19px;
}

.productsCta__miniText strong{
  display:block;
  font-size:16px;
  color:var(--brand-navy);
  line-height:1.15;
}

.productsCta__miniText span{
  display:block;
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
}

/* RESPONSIVE */
@media (max-width:1280px){
  .productsGrid--desktop{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:1200px){
  .productsHero{
    grid-template-columns:minmax(0,1fr) 320px;
  }
}

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

  .productsGrid--desktop{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

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

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

  .productsCta__panel{
    justify-self:start;
  }
}

@media (max-width:860px){
  .section{
    padding:24px 0;
  }

  .productsToolbar{
    flex-direction:column;
    align-items:flex-start;
  }

  .productsToolbar__right{
    width:100%;
  }

  .productsSelectWrap{
    width:100%;
    justify-content:space-between;
  }

  .productsSelect{
    width:100%;
    max-width:220px;
    min-width:0;
  }

  .productsGrid--desktop{
    display:none;
  }

  .productsSliderWrap{
    display:block;
  }

  .categoryCatalogCard__media img{
    height:190px;
  }

  .categoryCatalogCard__media.is-empty{
    height:210px;
  }

  .categoryCatalogCard__body{
    min-height:162px;
  }

  .categoryCatalogCard h2{
    font-size:18px;
    min-height:42px;
  }

  .productsCta{
    padding:22px;
  }

  .productsCta__panel .btn{
    width:100%;
  }
}

@media (max-width:640px){
  .productsHero__copy h1{
    font-size:clamp(28px,9vw,40px);
    max-width:13ch;
  }

  .productsHero__copy p{
    font-size:14px;
  }

  .productsHero__search{
    padding:14px;
    border-radius:24px;
  }

  .productsSearch input{
    height:54px;
    border-radius:18px;
  }

  .categoryCatalogCard--mobile{
    min-width:88vw;
  }
}

.categoryCatalogCard__link{
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s ease,
    border-color .28s ease,
    background .28s ease;
}

.categoryCatalogCard__link:hover{
  transform:translateY(-4px);
  border-color:rgba(176,185,197,.92);
  box-shadow:
    0 1px 0 rgba(255,255,255,.98) inset,
    0 14px 28px rgba(15,23,42,.06);
  background:linear-gradient(180deg,#ffffff 0%, #f7f9fc 100%);
}

.productsTrust__icon svg{
  width:20px;
  height:20px;
  stroke-width:1.6;
}

.productsTrust__icon{
  width:40px;
  height:40px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(18,26,65,.04);
}

.productsTrust__icon svg{
  width:20px;
  height:20px;
  stroke-width:1.5;
  color:#1e2b57;
}

/* ==============================
   Botón subir arriba premium
   ============================== */
.toTop{
  position: fixed;
  right: 24px;
  bottom: 108px;
  z-index: 85;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(18,26,65,.98), rgba(10,16,40,.98));
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 18px 38px rgba(18, 26, 65, .30),
    inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.toTop svg{
  width: 24px;
  height: 24px;
  transition: transform .2s ease;
}

/* halo suave */
.toTop::before{
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 55%);
  opacity: .65;
  z-index: -2;
}

/* shine diagonal */
.toTop::after{
  content: "";
  position: absolute;
  top: -40%;
  left: -65%;
  width: 48%;
  height: 190%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  opacity: 0;
  transition: left .5s ease, opacity .22s ease;
  z-index: -1;
}

.toTop:hover{
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 24px 46px rgba(18, 26, 65, .38),
    inset 0 1px 0 rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

.toTop:hover svg{
  transform: translateY(-3px);
}

.toTop:hover::after{
  left: 135%;
  opacity: 1;
}

.toTop:focus{
  outline: none;
  box-shadow: var(--focus);
}