@import url("/assets/css/main.css");

:root{
  --cat-blue:#062b5b;
  --cat-blue2:#0b447f;
  --cat-yellow:#fdb913;
  --cat-ink:#0b1d38;
  --cat-muted:#68768a;
  --cat-bg:#f6f8fb;
  --cat-line:#e0e6ee;
  --cat-card:#fff;
}
*{box-sizing:border-box}
body.catalog-page{margin:0;background:var(--cat-bg);color:var(--cat-ink);font-family:Arial,Helvetica,sans-serif}
.catalog-container{width:min(1180px,calc(100% - 40px));margin-inline:auto}

/* Header: preserve real site identity */
.catalog-page .topbar{background:#001429}
.catalog-page .header{background:#fff!important;border-bottom:1px solid #e5e9ef;box-shadow:none!important}
.catalog-page .header__nav-link{color:#25364b!important}
.catalog-page .header__nav-link--active{color:#0b447f!important}
.catalog-page .header__menu-toggle span{background:#082d59!important}

/* HERO */
.catalog-hero{
  position:relative;
  isolation:isolate;
  min-height:390px;
  display:flex;
  align-items:center;
  background:
    linear-gradient(90deg,rgba(1,24,54,.96) 0%,rgba(2,37,78,.87) 48%,rgba(2,37,78,.30) 100%),
    url("/assets/img/home/ups.webp") center/cover no-repeat;
}
.catalog-hero__inner{padding:58px 0}
.catalog-hero__content{max-width:690px}
.catalog-eyebrow{
  display:flex;align-items:center;gap:12px;
  color:var(--cat-yellow);font-size:14px;font-weight:900;
  letter-spacing:.08em;text-transform:uppercase
}
.catalog-eyebrow span{display:block;width:50px;height:3px;background:var(--cat-yellow)}
.catalog-hero h1{
  color:#fff!important;
  font-size:clamp(42px,5.4vw,68px)!important;
  line-height:1.02!important;
  letter-spacing:-.035em!important;
  margin:20px 0 18px!important;
  max-width:700px!important
}
.catalog-hero p{
  margin:0!important;max-width:620px!important;
  color:rgba(255,255,255,.92)!important;
  font-size:19px!important;line-height:1.65!important
}

/* SEARCH / QUICK CATEGORIES */
.catalog-main{padding:34px 0 22px}
.catalog-tools{margin-top:-2px}
.catalog-search{display:grid;grid-template-columns:1fr auto;gap:14px}
.catalog-search__box{position:relative}
.catalog-search__box svg{
  position:absolute;left:18px;top:50%;transform:translateY(-50%);
  width:21px;height:21px;fill:none;stroke:#173967;stroke-width:2;stroke-linecap:round
}
.catalog-search__box input{
  width:100%;height:54px;border:1px solid #d8e0e9;border-radius:14px;
  background:#fff;padding:0 18px 0 52px;font:inherit;font-size:16px;
  outline:none;box-shadow:0 3px 14px rgba(12,40,75,.03)
}
.catalog-search__box input:focus{border-color:#86a4ca;box-shadow:0 0 0 3px rgba(25,91,171,.08)}
.filter-toggle{
  height:54px;padding:0 21px;border-radius:14px;border:1px solid #d8e0e9;background:#fff;
  color:#0b4a96;font-weight:800;font-size:15px;display:flex;align-items:center;gap:8px;cursor:pointer
}
.filter-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

.quick-categories{
  margin:22px 0 26px;
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px
}
.quick-card{
  min-height:108px;background:#fff;border:1px solid #e4e9ef;border-radius:14px;
  text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:9px;padding:12px 8px;color:#10233d;font-size:13px;font-weight:800;text-align:center;
  box-shadow:0 6px 16px rgba(12,40,75,.04);position:relative
}
.quick-card__icon svg{width:30px;height:30px;fill:none;stroke:#0b2e60;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.quick-card.is-active{color:#c88b00}
.quick-card.is-active .quick-card__icon svg{stroke:#f3b000}
.quick-card.is-active:after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:4px;background:#fdb913;border-radius:4px 4px 0 0}

/* ADVANCED FILTERS */
.advanced-filters{
  display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;
  padding:20px;background:#fff;border:1px solid #e0e6ee;border-radius:16px;margin-bottom:26px
}
.advanced-filters.is-open{display:grid}
.advanced-filters label{font-weight:800;font-size:13px;color:#223750}
.advanced-filters select{
  display:block;width:100%;height:45px;margin-top:7px;border:1px solid #d1dae4;border-radius:9px;
  background:#fff;padding:0 10px;font:inherit;color:#1a2c43
}
.advanced-filters__actions{
  grid-column:1/-1;display:flex;align-items:center;gap:18px;justify-content:flex-end
}
.advanced-filters__actions a{color:#173967;font-weight:700}

/* PRODUCTS */
.products-section{padding-top:6px}
.products-toolbar{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:18px 0}
.products-toolbar h2{margin:0 0 5px;font-size:25px;color:#10233d}
.products-toolbar p{margin:0;color:var(--cat-muted)}
.sort-form select{
  height:45px;border:1px solid #dbe2ea;border-radius:11px;background:#fff;padding:0 38px 0 14px;
  font:inherit;font-weight:700;color:#21344c
}
.products-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.product-card{
  background:#fff;border:1px solid #e4e9ef;border-radius:16px;overflow:hidden;
  display:grid;grid-template-columns:43% 57%;min-height:210px;
  box-shadow:0 5px 18px rgba(10,38,72,.04)
}
.product-card__image{
  min-width:0;background:#f5f7fa;display:flex;align-items:center;justify-content:center;padding:20px
}
.product-card__image img{max-width:100%;max-height:180px;object-fit:contain}
.product-card__body{padding:17px 18px 16px;display:flex;flex-direction:column;align-items:flex-start}
.product-card__tag{
  display:inline-block;background:#fff6d9;color:#a87300;border-radius:12px;
  padding:4px 8px;font-size:10px;font-weight:900;text-transform:uppercase
}
.product-brand{font-size:11px;font-weight:900;color:#0a3d79;letter-spacing:.07em;text-transform:uppercase;margin-top:8px}
.product-card h3{font-size:22px;line-height:1.12;margin:5px 0 7px;color:#10233d}
.product-card p{margin:0 0 6px;color:#627086;line-height:1.4;font-size:14px}
.product-card__capacity{font-size:15px;margin-top:3px;color:#172942}
.product-card__link{
  margin-top:auto;color:#0966d9;font-weight:900;text-decoration:none;font-size:14px
}
.product-card__link span{font-size:18px;margin-left:3px}
.catalog-empty{text-align:center;background:#fff;border:1px solid #e0e6ee;border-radius:16px;padding:42px 20px}
.catalog-empty h3{margin-top:0}
.catalog-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:9px;text-decoration:none;font-weight:900;border:0}
.catalog-btn--blue{background:#082e63;color:#fff}
.catalog-btn--yellow{background:#fdb913;color:#09284e}

.pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin:32px 0 44px}
.pagination a{
  width:39px;height:39px;border:1px solid #dce3eb;border-radius:9px;background:#fff;
  display:flex;align-items:center;justify-content:center;text-decoration:none;color:#18324f;font-weight:800
}
.pagination a.current{background:#062b5b;color:#fff;border-color:#062b5b}
.pagination .page-arrow{font-size:24px;color:#35506f}

/* CTA */
.catalog-advice{
  overflow:hidden;border-radius:18px;background:#fdb913;margin:18px 0 10px;
  display:grid;grid-template-columns:1.2fr .8fr;min-height:270px
}
.catalog-advice__copy{padding:32px 38px;align-self:center}
.catalog-eyebrow--dark{color:#17324f}.catalog-eyebrow--dark span{background:#17324f}
.catalog-advice h2{font-size:34px;line-height:1.06;margin:16px 0 11px;color:#0b2a53}
.catalog-advice p{max-width:520px;color:#28405a;line-height:1.55;margin:0 0 20px}
.catalog-advice__image{
  background:
    linear-gradient(90deg,#fdb913 0%,rgba(253,185,19,.05) 25%),
    url("/assets/img/cta/soporte.webp") center/cover no-repeat;
  clip-path:polygon(19% 0,100% 0,100% 100%,0 100%)
}

/* Footer closer to mockup */
.catalog-page .footer{margin-top:42px}

/* TABLET */
@media(max-width:960px){
  .quick-categories{grid-template-columns:repeat(3,1fr)}
  .advanced-filters{grid-template-columns:repeat(2,1fr)}
  .products-grid{grid-template-columns:1fr}
  .catalog-advice{grid-template-columns:1fr .65fr}
}

/* MOBILE */
@media(max-width:768px){
  .catalog-container{width:min(100% - 28px,1180px)}
  .catalog-page .topbar{display:none}
  .catalog-page .header{height:76px!important}
  .catalog-page .header__container{height:76px!important}
  .catalog-page .header__logo img{height:44px!important;max-width:240px!important}
  .catalog-page .header__nav{top:76px!important}

  .catalog-hero{
    min-height:268px;
    background:
      linear-gradient(90deg,rgba(2,25,56,.97) 0%,rgba(2,37,78,.87) 52%,rgba(2,37,78,.20) 100%),
      url("/assets/img/home/ups.webp") 62% center/cover no-repeat
  }
  .catalog-hero__inner{padding:34px 0}
  .catalog-hero__content{max-width:78%}
  .catalog-eyebrow{font-size:11px;gap:9px}
  .catalog-eyebrow span{width:38px;height:2px}
  .catalog-hero h1{
    font-size:33px!important;line-height:1.05!important;margin:14px 0 13px!important;letter-spacing:-.03em!important
  }
  .catalog-hero p{font-size:14px!important;line-height:1.55!important}

  .catalog-main{padding-top:22px}
  .catalog-search{grid-template-columns:1fr auto;gap:9px}
  .catalog-search__box input{height:49px;border-radius:12px;font-size:14px}
  .filter-toggle{height:49px;padding:0 13px;border-radius:12px;font-size:13px}

  .quick-categories{
    margin:17px -2px 22px;display:flex;gap:9px;overflow-x:auto;padding:2px 2px 9px;
    scrollbar-width:none
  }
  .quick-categories::-webkit-scrollbar{display:none}
  .quick-card{flex:0 0 92px;min-height:90px;border-radius:12px;font-size:11px}
  .quick-card__icon svg{width:25px;height:25px}

  .advanced-filters{grid-template-columns:1fr;padding:15px;gap:10px}
  .advanced-filters__actions{grid-column:auto;justify-content:space-between}

  .products-toolbar{align-items:center;margin:13px 0 15px}
  .products-toolbar h2{font-size:21px}
  .products-toolbar p{font-size:13px}
  .sort-form select{height:42px;max-width:150px;font-size:12px;padding-left:10px}

  .products-grid{grid-template-columns:1fr;gap:13px}
  .product-card{
    grid-template-columns:42% 58%;min-height:168px;border-radius:14px
  }
  .product-card__image{padding:13px}
  .product-card__image img{max-height:140px}
  .product-card__body{padding:13px 13px 12px}
  .product-card__tag{font-size:8px;padding:3px 6px}
  .product-brand{font-size:9px;margin-top:5px}
  .product-card h3{font-size:18px;margin:3px 0 5px}
  .product-card p{font-size:11px;line-height:1.32;margin-bottom:3px}
  .product-card__capacity{font-size:12px}
  .product-card__link{font-size:12px}

  .pagination{margin:25px 0 32px}
  .pagination a{width:34px;height:34px;font-size:12px}

  .catalog-advice{
    min-height:230px;grid-template-columns:1fr .48fr;border-radius:14px
  }
  .catalog-advice__copy{padding:23px 18px}
  .catalog-advice h2{font-size:24px;margin:12px 0 8px}
  .catalog-advice p{font-size:12px;line-height:1.45;margin-bottom:14px}
  .catalog-advice .catalog-btn{min-height:39px;font-size:12px;padding:0 12px}
  .catalog-advice__image{clip-path:polygon(27% 0,100% 0,100% 100%,0 100%)}
}

@media(max-width:480px){
  .catalog-hero__content{max-width:88%}
  .catalog-hero h1{font-size:30px!important}
  .catalog-hero p{font-size:13px!important}
  .catalog-search{grid-template-columns:1fr auto}
  .filter-toggle{font-size:0;width:49px;padding:0;justify-content:center}
  .filter-toggle svg{width:21px;height:21px}
  .products-toolbar{align-items:flex-end}
  .sort-form select{max-width:132px}
  .product-card{grid-template-columns:40% 60%}
  .catalog-advice{grid-template-columns:1fr}
  .catalog-advice__image{display:none}
}


/* =========================================================
   Ajustes solicitados
   - Hero con imagen enfocada a UPS
   - Mejor visibilidad de links del footer
   ========================================================= */
.footer__links a,
.footer__link,
.footer__legal-link{
  color: rgba(255,255,255,.78) !important;
  text-decoration: none;
}

.footer__links a:hover,
.footer__link:hover,
.footer__legal-link:hover{
  color: #fdb913 !important;
}

.footer__links li{
  list-style:none;
}

.footer__contact a,
.footer__contact span{
  color: rgba(255,255,255,.82) !important;
}

.footer__description{
  color: rgba(255,255,255,.82) !important;
}

@media(max-width:768px){
  .footer__links a{
    display:block;
    line-height:1.45;
  }
}


/* Final catalog consistency */
.catalog-hero__accent{color:var(--cat-yellow)}
@media(max-width:1024px){
  .catalog-page .header__nav{background:#071d3c!important}
  .catalog-page .header__nav-link,.catalog-page .header__nav-link:visited{color:#fff!important}
  .catalog-page .header__nav-link:hover,.catalog-page .header__nav-link:focus-visible,.catalog-page .header__nav-link--active,.catalog-page .header__nav-link--active:visited{color:#FDB913!important}
  .catalog-page .header__nav-link--active{background:rgba(15,76,194,.16)!important;border-left-color:#FDB913!important}
}
