:root {
  --navy: #061b4f;
  --navy-deep: #03143e;
  --blue: #0b67e9;
  --blue-soft: #eaf3ff;
  --ink: #172650;
  --muted: #66738f;
  --line: #e5eaf2;
  --surface: #f7f9fc;
  --white: #fff;
  --shadow: 0 20px 60px rgba(11, 42, 99, .10);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
body.cart-is-open { overflow: hidden; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 0 0 8px 8px; transition: top .2s; }
.skip-link:focus { top: 0; }

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(220, 228, 239, .8);
  box-shadow: 0 4px 20px rgba(9, 31, 78, .04);
}
.header-inner {
  width: min(1330px, calc(100% - 72px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; width: 205px; flex: 0 0 auto; }
.brand img { width: 177px; height: auto; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 2.2vw, 38px); flex: 1; }
.desktop-nav a { position: relative; color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .025em; white-space: nowrap; transition: color .2s; }
.desktop-nav a::after { position: absolute; right: 0; bottom: -12px; left: 0; height: 2px; content: ""; background: var(--blue); transform: scaleX(0); transform-origin: center; transition: transform .2s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--blue); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { transform: scaleX(1); }
.header-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 12px; font-weight: 700; white-space: nowrap; }
.header-phone span { font-size: 18px; transform: rotate(-35deg); }
.mobile-menu-toggle, .mobile-menu { display: none; }

.catalog-hero { position: relative; min-height: 450px; overflow: hidden; isolation: isolate; background: #eef2f8; }
.hero-content { position: relative; z-index: 2; width: min(1330px, calc(100% - 72px)); min-height: 450px; margin: 0 auto; padding: 92px 0 130px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-content h1 { max-width: 500px; margin: 0; color: var(--navy); font-size: clamp(46px, 5vw, 76px); font-weight: 500; line-height: .98; letter-spacing: -.055em; text-transform: uppercase; }
.hero-content h1 strong { color: var(--blue); font-weight: 800; }
.hero-copy { max-width: 320px; margin: 22px 0 26px; color: #5b6783; font-size: 13px; }
.hero-link { display: inline-flex; align-items: center; gap: 18px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.hero-link span { font-size: 20px; font-weight: 400; transition: transform .2s; }
.hero-link:hover span { transform: translateX(5px); }
.hero-media { position: absolute; z-index: -1; inset: 0 0 0 36%; overflow: hidden; }
.hero-media::before { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(90deg, #eef2f8 0%, rgba(238,242,248,.91) 13%, rgba(238,242,248,.18) 50%, rgba(3,20,62,.16) 100%); }
.hero-media::after { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(0deg, rgba(3, 20, 62, .26), transparent 55%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 48%; filter: saturate(.86) contrast(.95); }
.hero-wave { position: absolute; right: 0; bottom: -1px; left: 0; z-index: 3; width: 100%; height: 120px; fill: #fff; }
.hero-wave-line { fill: none; stroke: var(--blue); stroke-width: 5; vector-effect: non-scaling-stroke; }

.products-section { width: min(1330px, calc(100% - 72px)); margin: 0 auto; padding: 76px 0 104px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(30px, 3vw, 42px); font-weight: 500; letter-spacing: -.045em; }
.heading-line { display: block; width: 23px; height: 3px; margin-top: 15px; background: var(--blue); }
.section-note { margin: 0 20px 6px 0; color: var(--muted); font-size: 11px; text-align: right; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; display: flex; min-height: 400px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.product-card:hover { border-color: #c7dafa; box-shadow: var(--shadow); transform: translateY(-5px); }
.product-image { position: relative; height: 224px; overflow: hidden; background: #f0f2f5; }
.product-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 64%, rgba(5, 24, 70, .06)); pointer-events: none; }
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 20px 18px 16px; }
.product-info h3 { min-height: 44px; margin: 0 0 3px; color: var(--navy); font-size: 15px; line-height: 1.35; }
.product-detail { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.product-more { width: fit-content; margin-top: 12px; padding: 0; color: var(--blue); background: transparent; font-size: 10px; font-weight: 800; }
.product-more span { display: inline-block; margin-left: 5px; transition: transform .2s; }
.product-more:hover span { transform: translate(3px,-2px); }
.product-bottom { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 20px; }
.product-price { color: var(--navy); font-size: 17px; font-weight: 800; line-height: 1.1; }
.product-unit { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 500; }
.add-to-cart { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; color: var(--blue); border: 1px solid #cfdbef; border-radius: 9px; background: #fff; font-size: 9px; font-weight: 800; text-transform: uppercase; transition: color .2s, background .2s, border-color .2s; }
.add-to-cart:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.add-to-cart span { font-size: 15px; font-weight: 400; line-height: .6; }
.no-script { display: none; color: var(--muted); }

.quote-banner { width: min(1330px, calc(100% - 72px)); min-height: 260px; margin: 0 auto 92px; display: flex; align-items: stretch; overflow: hidden; border-radius: 4px; background: linear-gradient(100deg, #fff 0%, #f7faff 58%, #edf4ff 100%); }
.quote-banner > div:first-child { flex: 1; padding: 50px 55px; }
.quote-banner h2 { max-width: 500px; margin: 0 0 9px; color: var(--navy); font-size: clamp(25px, 3vw, 38px); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; }
.quote-banner p:not(.eyebrow) { margin: 0 0 23px; color: var(--muted); font-size: 12px; }
.quote-image { width: 43%; overflow: hidden; clip-path: ellipse(80% 100% at 77% 50%); }
.quote-image img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; filter: saturate(.85); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 42px; padding: 0 18px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.button-dark { color: #fff; background: var(--navy); transition: background .2s, transform .2s; }
.button-dark:hover { background: var(--blue); transform: translateY(-2px); }

.catalog-product-modal { width: min(760px, calc(100% - 28px)); padding: 0; overflow: hidden; border: 0; border-radius: 12px 48px 12px 48px; background: #fff; box-shadow: 0 24px 90px rgba(5, 27, 79, .25); }
.catalog-product-modal::backdrop { background: rgba(3, 13, 39, .7); backdrop-filter: blur(4px); }
.catalog-modal-grid { display: grid; grid-template-columns: 40% 1fr; }
.catalog-modal-grid > img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; background: #f0f2f5; }
.catalog-modal-grid > div { padding: 48px 42px; }
.catalog-modal-grid h2 { margin: 8px 0 12px; color: var(--navy); font-size: 32px; line-height: 1.05; }
.catalog-modal-grid h3 { margin: 25px 0 6px; color: var(--navy); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.catalog-modal-grid p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.7; }
.catalog-modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; color: var(--navy); border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 24px; line-height: 1; }
.catalog-modal-close:hover { color: #fff; background: var(--blue); }

.site-footer { color: #fff; background: var(--navy); }
.footer-top { width: min(1330px, calc(100% - 72px)); margin: 0 auto; display: grid; grid-template-columns: 1.3fr .8fr .9fr 1.1fr; gap: 50px; padding: 58px 0 45px; }
.footer-brand img { width: 175px; height: auto; filter: brightness(0) invert(1); opacity: .96; }
.footer-brand p { max-width: 220px; margin: 14px 0 0; color: #c6d2e8; font-size: 11px; }
.site-footer h3 { margin: 5px 0 18px; color: #fff; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.site-footer a, .site-footer p { display: block; margin: 0 0 10px; color: #c6d2e8; font-size: 10px; }
.site-footer a:hover { color: #fff; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-contact p:last-child { margin-top: 15px; line-height: 1.7; }
.footer-bottom { padding: 16px 36px; color: #9fb0d0; border-top: 1px solid rgba(255,255,255,.13); font-size: 9px; text-align: center; }

.cart-floating { position: fixed; right: 25px; bottom: 25px; z-index: 25; display: inline-flex; align-items: center; gap: 9px; min-height: 51px; padding: 0 14px; color: #fff; border: 2px solid #fff; border-radius: 999px; background: var(--blue); box-shadow: 0 12px 30px rgba(7, 78, 183, .3); font-size: 11px; font-weight: 700; transition: transform .2s, background .2s; }
.cart-floating:hover { background: var(--navy); transform: translateY(-3px); }
.cart-floating-icon { font-size: 17px; filter: grayscale(1) brightness(0) invert(1); }
.cart-floating b { display: grid; min-width: 21px; height: 21px; padding: 0 4px; place-items: center; color: var(--blue); border-radius: 50%; background: #fff; font-size: 10px; }
.cart-overlay { position: fixed; z-index: 28; inset: 0; background: rgba(4, 17, 49, .44); backdrop-filter: blur(3px); }
.cart-drawer { position: fixed; z-index: 30; top: 0; right: 0; bottom: 0; width: min(430px, 100%); display: flex; flex-direction: column; padding: 28px 26px 22px; background: #fff; box-shadow: -18px 0 50px rgba(3, 20, 62, .2); transform: translateX(105%); transition: transform .3s ease; }
.cart-drawer.is-open { transform: translateX(0); }
.cart-header { display: flex; align-items: start; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cart-header .eyebrow { margin-bottom: 3px; }
.cart-header h2 { margin: 0; color: var(--navy); font-size: 27px; font-weight: 500; letter-spacing: -.045em; }
.cart-close { width: 34px; height: 34px; color: var(--navy); border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; }
.cart-close:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.cart-items { flex: 1; overflow: auto; padding: 10px 0; }
.cart-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-row-image { width: 58px; height: 58px; overflow: hidden; border-radius: 5px; background: #f0f2f5; }
.cart-row-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-row h3 { margin: 0; color: var(--navy); font-size: 12px; line-height: 1.35; }
.cart-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.quantity-control { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; }
.quantity-control button { width: 21px; height: 21px; color: var(--navy); border: 1px solid #d8e1ef; border-radius: 50%; background: #fff; font-size: 15px; line-height: 1; }
.quantity-control button:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.quantity-control span { min-width: 13px; color: var(--navy); font-size: 11px; font-weight: 700; text-align: center; }
.cart-row-total { align-self: start; padding-top: 3px; color: var(--navy); font-size: 12px; font-weight: 800; white-space: nowrap; }
.cart-empty { display: none; flex: 1; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.cart-empty.is-visible { display: flex; }
.cart-empty span { display: block; margin-bottom: 8px; color: var(--blue); font-size: 42px; font-weight: 300; line-height: 1; }
.cart-empty p { margin: 0; font-size: 12px; }
.cart-summary { padding-top: 16px; border-top: 1px solid var(--line); }
.cart-summary > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.cart-summary > div strong { color: var(--navy); }
.cart-summary .cart-total { align-items: center; margin-top: 7px; color: var(--navy); font-size: 13px; font-weight: 700; }
.cart-summary .cart-total strong { color: var(--blue); font-size: 22px; }
.cart-summary p { margin: 9px 0 15px; color: var(--muted); font-size: 9px; }
.whatsapp-button { width: 100%; color: #fff; background: #18a957; transition: opacity .2s, transform .2s; }
.whatsapp-button:not(:disabled):hover { transform: translateY(-2px); }
.whatsapp-button:disabled { cursor: not-allowed; opacity: .42; }
.clear-cart { display: block; margin: 12px auto 0; color: var(--muted); background: transparent; font-size: 10px; text-decoration: underline; }
.clear-cart:hover { color: var(--navy); }

@media (max-width: 1080px) {
  .header-inner, .hero-content, .products-section, .quote-banner, .footer-top { width: min(100% - 40px, 900px); }
  .desktop-nav { gap: 17px; }
  .header-phone { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .header-inner { width: calc(100% - 32px); min-height: 69px; justify-content: space-between; }
  .brand { width: 160px; }
  .brand img { width: 145px; }
  .desktop-nav, .header-phone { display: none; }
  .mobile-menu-toggle { display: flex; width: 39px; height: 39px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
  .mobile-menu-toggle span { width: 17px; height: 2px; background: var(--navy); }
  .mobile-menu { display: grid; max-height: 0; overflow: hidden; padding: 0 16px; background: #fff; transition: max-height .25s, padding .25s; }
  .mobile-menu.is-open { max-height: 360px; padding: 9px 16px 15px; border-top: 1px solid var(--line); }
  .mobile-menu a { padding: 10px 0; color: var(--navy); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; text-transform: uppercase; }
  .catalog-hero { min-height: 580px; }
  .hero-content { width: calc(100% - 34px); min-height: 580px; padding: 60px 0 160px; }
  .hero-content h1 { font-size: 49px; }
  .hero-media { inset: 31% 0 0; }
  .hero-media::before { background: linear-gradient(180deg, #eef2f8 0%, rgba(238,242,248,.6) 25%, rgba(238,242,248,.12) 75%); }
  .hero-wave { height: 92px; }
  .products-section { width: calc(100% - 34px); padding: 55px 0 70px; }
  .section-heading { align-items: start; flex-direction: column; gap: 13px; }
  .section-note { margin: 0; text-align: left; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .product-card { min-height: 335px; }
  .product-image { height: 145px; }
  .product-info { padding: 14px 12px 12px; }
  .product-info h3 { min-height: 37px; font-size: 12px; }
  .product-detail { font-size: 9px; }
  .product-bottom { align-items: start; flex-direction: column; padding-top: 13px; }
  .add-to-cart { width: 100%; justify-content: center; padding: 9px 6px; font-size: 8px; }
  .quote-banner { width: calc(100% - 34px); min-height: 0; margin-bottom: 60px; flex-direction: column; }
  .quote-banner > div:first-child { padding: 35px 24px 30px; }
  .quote-banner h2 { font-size: 27px; }
  .quote-image { width: 100%; height: 185px; clip-path: none; }
  .footer-top { width: calc(100% - 34px); grid-template-columns: repeat(2, 1fr); gap: 30px 20px; padding: 42px 0 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 14px 16px; }
  .cart-floating { right: 14px; bottom: 14px; }
  .cart-drawer { padding-right: 18px; padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* Catálogo desktop: composición de referencia y componentes marketplace. */
.catalog-page .catalog-hero { min-height: 560px; background: #eef3fa; }
.catalog-page .hero-content { width: min(1380px, calc(100% - 96px)); min-height: 560px; padding: 74px 0 142px; }
.catalog-page .hero-copy-block { position: relative; z-index: 3; width: 49%; }
.catalog-page .hero-content h1 { max-width: 690px; font-size: clamp(58px, 5.2vw, 86px); line-height: .93; }
.catalog-page .hero-copy { max-width: 430px; margin: 24px 0 24px; font-size: 15px; line-height: 1.55; }
.catalog-search { width: min(470px, 100%); height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid #d8e1ef; border-radius: 7px; background: #fff; box-shadow: 0 4px 14px rgba(13, 47, 103, .08); }
.catalog-search svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 1.8; }
.catalog-search input { width: 100%; min-width: 0; padding: 0; color: var(--navy); border: 0; outline: 0; background: transparent; font-size: 11px; }
.catalog-search input::placeholder { color: #8491aa; }
.catalog-search-wrap { position: relative; z-index: 8; width: min(470px, 100%); }
.catalog-search:focus-within { border-color: var(--blue); box-shadow: 0 6px 18px rgba(13, 47, 103, .13); }
.catalog-search-panel { position: absolute; z-index: 30; top: calc(100% + 9px); left: 0; width: min(560px, calc(100vw - 48px)); overflow: hidden; color: var(--navy); border: 1px solid #dce5f1; border-radius: 7px; background: #fff; box-shadow: 0 18px 38px rgba(8, 31, 74, .16); }
.catalog-search-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 14px 16px 10px; color: #647390; border-bottom: 1px solid #edf1f7; font-size: 10px; }
.catalog-search-panel-head strong { color: var(--navy); font-weight: 700; }
.catalog-search-panel-head small { flex: 0 0 auto; color: var(--blue); font-size: 9px; font-weight: 700; }
.catalog-search-results { padding: 4px 0; }
.catalog-search-result { width: 100%; min-height: 64px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 8px 16px; color: var(--navy); border: 0; border-bottom: 1px solid #f0f3f8; background: #fff; text-align: left; cursor: pointer; }
.catalog-search-result:last-child { border-bottom: 0; }
.catalog-search-result:hover, .catalog-search-result.is-active { background: #f4f8ff; }
.catalog-search-result img { width: 48px; height: 48px; object-fit: cover; border: 1px solid #e2e9f3; background: #f3f6fa; }
.catalog-search-result span { min-width: 0; }
.catalog-search-result strong, .catalog-search-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-search-result strong { font-size: 11px; font-weight: 700; }
.catalog-search-result small { margin-top: 4px; color: #71809b; font-size: 9px; }
.catalog-search-result em { color: var(--blue); font-size: 10px; font-style: normal; font-weight: 700; white-space: nowrap; }
.catalog-search-all { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: var(--blue); border: 0; background: #f7faff; font-size: 10px; font-weight: 700; text-align: left; cursor: pointer; }
.catalog-search-all svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.catalog-search-empty { padding: 18px 16px 19px; }
.catalog-search-empty strong, .catalog-search-empty span { display: block; }
.catalog-search-empty strong { font-size: 11px; }
.catalog-search-empty span { margin-top: 6px; color: #71809b; font-size: 9px; line-height: 1.5; }
.catalog-search-panel { width: min(880px, calc(100vw - 96px)); max-height: min(610px, calc(100vh - 150px)); display: grid; grid-template-columns: 182px minmax(0, 1fr); overflow: hidden; z-index: 1300 !important; }
.catalog-page .catalog-hero { overflow: visible !important; }
.catalog-page .hero-copy-block { z-index: 10 !important; }
.catalog-page .hero-wave { z-index: 2 !important; }
.catalog-search-categories { padding: 18px 14px; border-right: 1px solid #e6edf6; background: #fbfcfe; }
.catalog-search-categories .eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 10px; }
.catalog-search-categories button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 7px; color: var(--navy); border: 0; border-bottom: 1px solid #edf1f6; background: transparent; font-size: 10px; text-align: left; cursor: pointer; }
.catalog-search-categories button:hover { color: var(--blue); background: #eef5ff; }
.catalog-search-categories button span { line-height: 1.3; }
.catalog-search-categories button small { color: #8090aa; font-size: 9px; }
.catalog-search-category-empty { display: block; color: #8090aa; font-size: 9px; line-height: 1.5; }
.catalog-search-products { min-width: 0; overflow: auto; }
.catalog-search-products .catalog-search-panel-head { padding: 15px 18px 11px; }
.catalog-search-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.catalog-search-product { min-width: 0; overflow: hidden; border: 1px solid #dfe7f2; border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.catalog-search-product:hover, .catalog-search-product.is-active { border-color: #9bbff2; box-shadow: 0 8px 20px rgba(10, 54, 120, .11); transform: translateY(-2px); }
.catalog-search-product-image { position: relative; height: 116px; background: #f3f6fa; }
.catalog-search-product-image img { width: 100%; height: 100%; object-fit: cover; }
.catalog-search-product-detail { position: absolute; right: 8px; bottom: 8px; width: 27px; height: 27px; display: grid; place-items: center; color: var(--blue); border: 1px solid #dce5f1; border-radius: 50%; background: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.catalog-search-product-info { padding: 10px 11px 11px; }
.catalog-search-product-info > p { margin: 0 0 4px; color: var(--blue); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.catalog-search-product-info h3 { min-height: 28px; margin: 0; color: var(--navy); font-size: 11px; font-weight: 700; line-height: 1.25; }
.catalog-search-product-info > small { display: block; min-height: 24px; margin-top: 5px; color: #71809b; font-size: 9px; line-height: 1.3; }
.catalog-search-product-info > strong { display: block; margin: 7px 0 9px; color: var(--blue); font-size: 18px; line-height: 1; }
.catalog-search-product-info > strong em { color: #8090aa; font-size: 9px; font-style: normal; font-weight: 400; }
.catalog-search-add { width: 100%; min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #fff; border: 0; border-radius: 999px; background: var(--blue); font-size: 10px; font-weight: 700; cursor: pointer; }
.catalog-search-add:hover { background: var(--navy); }
.catalog-search-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.catalog-search-products .catalog-search-empty { margin: 8px 10px; border: 1px dashed #cbd8e9; }
.cart-overlay { z-index: 1100 !important; }
.cart-drawer { z-index: 1200 !important; top: 72px !important; right: 28px !important; bottom: auto !important; width: min(470px, calc(100vw - 32px)) !important; max-height: calc(100vh - 100px) !important; padding: 22px 22px 18px !important; visibility: hidden; border: 1px solid #dfe7f2; border-radius: 14px !important; box-shadow: 0 24px 70px rgba(3, 20, 62, .24); opacity: 0; transform: translateY(14px) scale(.98) !important; transition: opacity .24s ease, transform .24s ease, visibility .24s ease; }
.cart-drawer.is-open { visibility: visible; opacity: 1; transform: translateY(0) scale(1) !important; }
.cart-header { padding-bottom: 15px; }
.cart-header h2 { max-width: 360px; font-size: 16px; letter-spacing: -.025em; }
.cart-items { min-height: 80px; }
.cart-row { padding: 13px 0; }
.cart-row-total { font-size: 11px; }
.cart-summary { padding-top: 14px; }
.cart-summary .cart-total strong { font-size: 19px; }
.cart-overlay { background: rgba(4, 17, 49, .34); backdrop-filter: blur(4px); }

@media (max-width: 820px) {
  .catalog-search-panel { left: 0; width: calc(100vw - 34px); max-height: calc(100vh - 170px); grid-template-columns: 1fr; }
  .catalog-search-categories { display: flex; align-items: center; gap: 5px; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid #e6edf6; }
  .catalog-search-categories .eyebrow { flex: 0 0 auto; margin: 0 6px 0 0; }
  .catalog-search-categories button { width: auto; flex: 0 0 auto; padding: 7px 9px; border: 1px solid #dfe7f2; border-radius: 999px; background: #fff; }
  .catalog-search-product-grid { grid-template-columns: 1fr; }
  .cart-drawer { top: 14px !important; right: 12px !important; width: calc(100vw - 24px) !important; max-height: calc(100vh - 28px) !important; }
}
.catalog-page .hero-media { inset: 0 0 0 32%; }
.catalog-page .hero-media::before { background: linear-gradient(90deg, #eef3fa 0%, rgba(238,243,250,.95) 12%, rgba(238,243,250,.22) 52%, rgba(3,20,62,.08) 100%); }
.catalog-page .hero-media img { object-position: 57% 43%; filter: saturate(.9) contrast(.95); }
.hero-actions { position: absolute; z-index: 4; top: 66px; right: max(48px, calc((100vw - 1380px) / 2)); display: grid; gap: 9px; }
.hero-action { min-width: 164px; min-height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 12px; color: #fff; border-radius: 999px; box-shadow: 0 10px 24px rgba(4, 29, 82, .14); font-size: 10px; font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.hero-action svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.hero-action--blue { background: var(--blue); }
.hero-action--green { background: #0da750; }
.catalog-benefits { position: absolute; z-index: 4; right: 50%; bottom: 78px; width: min(930px, calc(100% - 96px)); transform: translateX(50%); display: grid; grid-template-columns: repeat(4, 1fr); }
.catalog-benefits article { min-width: 0; padding: 0 20px; display: flex; align-items: center; gap: 11px; border-right: 1px solid rgba(111, 132, 168, .28); }
.catalog-benefits article:first-child { padding-left: 0; }
.catalog-benefits article:last-child { border-right: 0; }
.catalog-benefits svg { width: 27px; height: 27px; flex: 0 0 auto; fill: none; stroke: var(--blue); stroke-width: 1.7; }
.catalog-benefits strong, .catalog-benefits span { display: block; }
.catalog-benefits strong { color: var(--navy); font-size: 10px; line-height: 1.25; }
.catalog-benefits span { margin-top: 4px; color: #536181; font-size: 9px; line-height: 1.25; }
.catalog-page .hero-wave { height: 118px; }

.categories-section, .popular-section, .brands-section { width: min(1330px, calc(100% - 96px)); margin: 0 auto; }
.categories-section { padding: 20px 0 34px; }
.center-heading { text-align: center; }
.center-heading .eyebrow { margin-bottom: 2px; }
.center-heading h2 { margin: 0; color: var(--navy); font-size: clamp(27px, 2.5vw, 35px); font-weight: 500; letter-spacing: -.055em; }
.center-heading .heading-line { margin: 9px auto 0; }
.category-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 4px 16px rgba(17, 48, 98, .06); cursor: pointer; outline: 0; transition: transform .2s, box-shadow .2s, border-color .2s; }
.category-card:hover, .category-card:focus-visible, .category-card.is-active { border-color: #a8c7fb; box-shadow: 0 13px 28px rgba(11, 70, 160, .12); transform: translateY(-3px); }
.category-image { position: relative; height: 164px; overflow: visible; background: #edf2f8; }
.category-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 60%, rgba(2,20,62,.14)); pointer-events: none; }
.category-image img { width: 100%; height: 100%; object-fit: cover; }
.category-icon { position: absolute; z-index: 2; left: 16px; bottom: -20px; width: 51px; height: 51px; display: grid; place-items: center; color: var(--blue); border: 1px solid #e1e9f5; border-radius: 50%; background: #fff; box-shadow: 0 7px 13px rgba(8, 47, 115, .1); }
.category-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.category-info { min-height: 130px; padding: 29px 16px 13px; display: flex; flex-direction: column; justify-content: space-between; }
.category-info h3 { margin: 0 0 4px; color: var(--navy); font-size: 14px; font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.category-info p { max-width: 220px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.category-info > div { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.category-info strong { color: var(--navy); font-size: 10px; }
.category-arrow { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--blue); }
.category-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.fabrication-strip { width: min(1330px, calc(100% - 96px)); min-height: 152px; margin: 0 auto 22px; display: flex; overflow: hidden; color: #fff; border-radius: 9px; background: var(--navy); }
.fabrication-photo { width: 27%; overflow: hidden; }
.fabrication-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.fabrication-copy { flex: 1; padding: 17px 30px 14px; }
.fabrication-copy .eyebrow { margin-bottom: 1px; color: #8cb9ff; }
.fabrication-copy h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.1; }
.fabrication-copy > p:not(.eyebrow) { margin: 2px 0 13px; font-size: 14px; }
.fabrication-features { display: flex; gap: 22px; }
.fabrication-features span { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 9px; line-height: 1.3; }
.fabrication-features svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fabrication-copy .button { min-width: 175px; min-height: 38px; margin-top: 13px; justify-content: space-between; font-size: 9px; }
.button-light { color: var(--blue); background: #fff; }
.button-light svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.popular-section { padding: 0 0 34px; }
.popular-section .section-heading { margin-bottom: 17px; align-items: end; }
.popular-section .section-heading h2 { font-size: 28px; }
.popular-section .section-heading .eyebrow { margin-bottom: 0; }
.catalog-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-size: 10px; font-weight: 800; }
.catalog-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.popular-grid { display: flex; gap: 13px; overflow-x: auto; padding: 0 2px 6px; scrollbar-width: thin; }
.market-product { flex: 0 0 194px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.market-product:hover { box-shadow: 0 12px 28px rgba(11, 42, 99, .12); transform: translateY(-3px); }
.market-product-image { position: relative; height: 116px; overflow: hidden; background: #f0f2f5; }
.market-product-image img { width: 100%; height: 100%; object-fit: cover; }
.market-category { position: absolute; right: 7px; bottom: 7px; max-width: 90%; padding: 4px 7px; color: var(--navy); border-radius: 999px; background: rgba(255,255,255,.9); font-size: 7px; font-weight: 700; }
.market-product-info { min-height: 118px; padding: 10px 12px 11px; }
.market-brand { margin: 0 0 4px; color: var(--blue); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.market-product h3 { margin: 0; color: var(--navy); font-size: 11px; line-height: 1.25; }
.market-detail { min-height: 18px; margin: 4px 0 9px; color: var(--muted); font-size: 9px; }
.market-product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.market-product-bottom strong { color: var(--navy); font-size: 12px; }
.market-product-bottom small { color: var(--muted); font-size: 8px; font-weight: 500; }
.market-product-bottom .add-to-cart { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; color: #fff; border: 0; border-radius: 50%; background: var(--blue); }
.market-product-link { display: inline-block; margin: 7px 0 5px; color: var(--blue); font-size: 9px; font-weight: 700; text-decoration: none; }
.market-product-link:hover { text-decoration: underline; }
.market-product-bottom .add-to-cart svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.catalog-empty { width: 100%; padding: 30px; color: var(--muted); border: 1px dashed #c9d6e9; border-radius: 9px; text-align: center; }
.catalog-empty strong, .catalog-empty span { display: block; }.catalog-empty strong { color: var(--navy); }.catalog-empty span { margin-top: 5px; font-size: 11px; }

.help-strip { width: min(1330px, calc(100% - 96px)); min-height: 122px; margin: 0 auto 29px; padding: 18px 22px; display: flex; align-items: center; gap: 19px; border-radius: 8px; background: #f1f6fd; }
.help-icon { width: 68px; height: 68px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; border-radius: 50%; background: var(--blue); }
.help-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.help-copy { width: 32%; padding-right: 18px; border-right: 1px solid #d3deed; }
.help-copy h2 { margin: 0 0 5px; color: var(--navy); font-size: 18px; line-height: 1.1; }.help-copy p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.help-points { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }.help-points span { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--navy); text-align: center; }.help-points svg { width: 24px; height: 24px; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 1.5; }.help-points strong { font-size: 8px; line-height: 1.25; }
.help-cta { width: 170px; min-height: 64px; padding: 12px 16px; position: relative; display: flex; flex-direction: column; justify-content: center; color: #fff; border-radius: 9px; background: var(--navy); }.help-cta strong { font-size: 11px; }.help-cta span { margin-top: 3px; color: #c9d7ee; font-size: 8px; }.help-cta svg { position: absolute; right: 9px; top: 8px; width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.5; }
.brands-section { padding: 0 0 34px; }.brands-section .center-heading h2 { font-size: 22px; }.catalog-brand-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: center; }.catalog-brand { min-height: 53px; display: grid; place-items: center; padding: 10px 14px; border: 1px solid transparent; border-radius: 8px; }.catalog-brand img { max-width: 135px; max-height: 35px; object-fit: contain; filter: saturate(.9); }

.cart-floating { width: 59px; height: 59px; min-height: 59px; padding: 0; position: fixed; right: 30px; bottom: 30px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 13px 31px rgba(7, 78, 183, .3); }
.cart-floating:hover { transform: translateY(-4px); }.cart-floating-icon { width: 25px; height: 25px; color: #fff; filter: none; fill: none; stroke: currentColor; stroke-width: 1.7; }.cart-floating b { position: absolute; top: -5px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; color: var(--blue); background: #fff; font-size: 10px; }

@media (max-width: 820px) {
  .catalog-page .hero-content { width: calc(100% - 34px); min-height: 590px; padding-top: 62px; }
  .catalog-page .hero-copy-block { width: 100%; }.catalog-page .hero-content h1 { font-size: 50px; }.catalog-page .hero-copy { max-width: 350px; font-size: 13px; }.hero-actions { top: auto; right: 17px; bottom: 150px; }.hero-action { min-width: 143px; min-height: 42px; font-size: 8px; }.catalog-benefits { right: 17px; bottom: 84px; width: calc(100% - 34px); transform: none; grid-template-columns: repeat(2, 1fr); gap: 12px 0; }.catalog-benefits article { padding: 0 10px; border-right: 0; }.catalog-benefits article:nth-child(odd) { padding-left: 0; border-right: 1px solid rgba(111,132,168,.28); }.catalog-benefits strong { font-size: 9px; }.catalog-benefits span { font-size: 8px; }.categories-section, .popular-section, .brands-section, .fabrication-strip, .help-strip { width: calc(100% - 34px); }.category-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }.category-image { height: 130px; }.category-info { min-height: 121px; padding: 27px 11px 11px; }.category-info h3 { font-size: 11px; }.category-info p { font-size: 8px; }.fabrication-strip { min-height: 245px; }.fabrication-photo { width: 32%; }.fabrication-copy { padding: 16px 14px; }.fabrication-copy h2 { font-size: 16px; }.fabrication-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }.fabrication-features span { font-size: 8px; }.fabrication-copy .button { min-width: 0; width: 100%; }.help-strip { align-items: start; flex-wrap: wrap; }.help-copy { width: calc(100% - 87px); border-right: 0; }.help-points { width: 100%; flex: none; }.help-cta { width: 100%; }.catalog-brand-grid { grid-template-columns: repeat(3, 1fr); }.catalog-brand img { max-width: 90px; }.cart-floating { right: 15px; bottom: 15px; }
}

/* Ajuste de composición solicitado: el catálogo vive más amplio en desktop,
   pero sus controles conservan el flujo normal y no se salen de las cajas. */
@media (min-width: 821px) {
  .catalog-page main#contenido { width: 100%; overflow-x:clip; zoom: 1.2; }
  .catalog-page .catalog-hero, .catalog-page .hero-content { min-height: 445px; }
  .catalog-page .hero-content { padding-top: 78px; padding-bottom: 112px; }
  .catalog-page .hero-copy-block { width: 55%; }
  .catalog-page .catalog-benefits { position: relative; z-index: 5; right: auto; bottom: auto; width: min(1120px, calc(100% - 96px)); min-height: 92px; margin: -30px auto 28px; padding: 22px 30px; transform: none; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: 0 12px 28px rgba(8, 31, 74, .08); }
  .catalog-page .catalog-benefits article { min-height: 48px; padding-inline: 22px; }
  .catalog-page .catalog-benefits article:first-child { padding-left: 0; }
  .catalog-page .catalog-benefits article:last-child { padding-right: 0; }
  .catalog-page .category-card, .catalog-page .market-product, .catalog-page .fabrication-strip { border-radius: 0; }
  .catalog-page .category-card:hover, .catalog-page .market-product:hover { transform: translateY(-2px); }
  .catalog-page .fabrication-strip { min-height: 176px; border-radius: 0; }
  .catalog-page .fabrication-copy { display: grid; grid-template-columns: minmax(0, 1fr) 205px; grid-template-rows: auto auto auto 1fr; column-gap: 28px; padding: 18px 30px; }
  .catalog-page .fabrication-copy .eyebrow { grid-column: 1; grid-row: 1; }
  .catalog-page .fabrication-copy h2 { grid-column: 1; grid-row: 2; }
  .catalog-page .fabrication-copy > p:not(.eyebrow) { grid-column: 1; grid-row: 3; }
  .catalog-page .fabrication-features { grid-column: 1; grid-row: 4; align-self: end; }
  .catalog-page .fabrication-copy .button { grid-column: 2; grid-row: 1 / -1; align-self: center; width: 100%; min-width: 0; margin-top: 0; border-radius: 0; }
  .catalog-page .help-strip, .catalog-page .catalog-brand { border-radius: 0; }
}

.catalog-page .hero-actions,
.catalog-page .floating-whatsapp,
.catalog-page .floating-quote { display: none !important; }
.catalog-page .category-generated-icon { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .16; background-image: url("recursos/imagenes/iconos/categorias-manamat.png"); background-repeat: no-repeat; background-size: 400% 200%; background-position: calc(var(--icon-col) * 33.333333%) calc(var(--icon-row) * 100%); }
.catalog-page .category-icon { position: relative; overflow: hidden; border-radius: 50%; }
.catalog-page .category-line-icon { position: relative; z-index: 1; width: 32px; height: 32px; fill: none; stroke: var(--blue); stroke-width: 1.7; }
.catalog-page .category-generated-icon { display: none !important; }
.catalog-page .category-info { padding-top: 72px !important; }
.catalog-page .category-card, .catalog-page .market-product, .catalog-page .fabrication-strip { border-radius: 0; }
.catalog-page .fabrication-strip { overflow: hidden; }
.catalog-page .catalog-modal-gallery { display: flex; min-height: 360px; flex-direction: column; background: #f0f2f5; }
.catalog-page .catalog-modal-gallery > img { min-height: 0; flex: 1; }
.catalog-page .catalog-product-thumbs { display: flex; gap: 7px; padding: 9px; overflow-x: auto; background: #fff; }
.catalog-page .catalog-product-thumb { width: 46px; height: 46px; flex: 0 0 auto; padding: 0; overflow: hidden; border: 1px solid #dce5f1; border-radius: 0; background: #f0f2f5; opacity: .65; }
.catalog-page .catalog-product-thumb.is-active, .catalog-page .catalog-product-thumb:hover { border-color: var(--blue); opacity: 1; }
.catalog-page .catalog-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog-page .catalog-modal-grid > div { min-width: 0; }

@media (max-width: 820px) {
  .catalog-page .catalog-benefits { position: relative; right: auto; bottom: auto; width: calc(100% - 34px); margin: -22px auto 22px; padding: 18px 14px; transform: none; grid-template-columns: repeat(2, 1fr); background: #fff; box-shadow: 0 10px 24px rgba(8, 31, 74, .07); }
  .catalog-page .catalog-benefits article { padding: 0 10px; }
  .catalog-page .catalog-benefits article:nth-child(odd) { padding-left: 0; }
  .catalog-page .catalog-benefits article:nth-child(even) { padding-right: 0; }
  .catalog-page .fabrication-strip, .catalog-page .category-card, .catalog-page .market-product { border-radius: 0; }
  .catalog-page .fabrication-copy .button { border-radius: 0; }
}

/* Misma jerarquía tipográfica de la web principal: Montserrat delgada como
   base, 500 para titulares y pesos fuertes sólo para navegación y énfasis. */
.catalog-page,
.catalog-page button,
.catalog-page input,
.catalog-page select,
.catalog-page textarea { font-family:"Montserrat", sans-serif; }
.catalog-page { font-weight:300; line-height:1.65; -webkit-font-smoothing:antialiased; }
.catalog-page .eyebrow { font-size:12px; font-weight:700; letter-spacing:.08em; }
.catalog-page .hero-content h1 { font-weight:500; letter-spacing:-.035em; }
.catalog-page .hero-content h1 strong { font-weight:800; }
.catalog-page .hero-copy { font-size:15px; font-weight:300; line-height:1.7; }
.catalog-page .center-heading h2,
.catalog-page .popular-section .section-heading h2,
.catalog-page .catalog-modal-grid h2,
.catalog-page .cart-header h2 { font-weight:500; }
.catalog-page .category-info h3,
.catalog-page .market-product h3 { font-weight:700; }
.catalog-page .market-brand,
.catalog-page .catalog-link,
.catalog-page .button,
.catalog-page .help-cta strong { font-weight:700; }
.catalog-page .market-product-bottom strong { font-weight:500; }

/* Capa de corrección definitiva del catálogo. Debe ir al final porque el shell compartido
   contiene reglas heredadas que se cargan después de los primeros estilos del catálogo. */
.catalog-page .hero-copy-block.reveal,
.catalog-page .hero-copy-block.reveal.is-visible {
  overflow: visible !important;
  clip-path: none !important;
}
.catalog-page .catalog-search-wrap { position: relative; z-index: 50 !important; }
.catalog-page .catalog-search-panel {
  position: absolute !important;
  top: calc(100% + 9px) !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
  z-index: 500 !important;
  width: min(760px, calc(100vw - 48px)) !important;
  max-height: min(500px, calc(100vh - 150px)) !important;
  transform: none !important;
}

/* Al sobreponerse, el área blanca cubre la curva en toda la ventana; no hay caja visible. */
.catalog-page .catalog-benefits::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  z-index: -1;
  top: -3px !important;
  bottom: -3px !important;
  left: 50% !important;
  right: auto !important;
  width: 100vw !important;
  transform: translateX(-50%);
  background: #fff !important;
  pointer-events: none;
}

/* Cuadrícula de e-commerce: los productos continúan hacia abajo, sin desplazamiento horizontal. */
@media (min-width: 821px) {
  .catalog-page .popular-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    overflow: visible !important;
    padding: 0;
  }
  .catalog-page .market-product { min-width: 0; width: auto; flex: none; border-radius: 0 !important; }
  .catalog-page .market-product-image { height: 158px; }
  .catalog-page .market-product-info { min-height: 136px; }
}
@media (min-width: 821px) and (max-width: 1180px) {
  .catalog-page .popular-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Filtros legibles y consistentes con Montserrat. */
.catalog-page .catalog-browser-tools {
  padding: 14px;
  grid-template-columns: minmax(280px, 2.1fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px;
  border-color: #cfdbeb;
  background: linear-gradient(90deg, rgba(16,104,241,.045), transparent 38%), #f8fbff;
  box-shadow: inset 3px 0 0 var(--blue);
}
.catalog-page .catalog-browser-search,
.catalog-page .catalog-filter-field select {
  border-color: #cddbea;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 300;
}
.catalog-page .catalog-browser-search:focus-within,
.catalog-page .catalog-filter-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16,104,241,.10); }
.catalog-page .catalog-filter-field span,
.catalog-page .catalog-filter-reset { font-family: "Montserrat", sans-serif !important; font-weight: 600; }
.catalog-page .catalog-filter-field span { color: #4f6386; letter-spacing: .06em; }
.catalog-page .catalog-filter-reset { min-width: 106px; }

.catalog-page,
.catalog-page button,
.catalog-page input,
.catalog-page select,
.catalog-page textarea { font-family: "Montserrat", sans-serif !important; }

@media (max-width: 820px) {
  .catalog-page .catalog-search-panel { width: calc(100vw - 32px) !important; max-height: min(530px, calc(100vh - 145px)) !important; grid-template-columns: 1fr; }
  .catalog-page .catalog-browser-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; box-shadow: inset 2px 0 0 var(--blue); }
}

/* Catálogo informativo: los precios y el flujo de carrito permanecen en los
   datos para una futura activación, pero no forman parte de la experiencia
   pública actual. */
.catalog-readonly [hidden] { display: none !important; }
.catalog-readonly .market-product-bottom,
.catalog-readonly .catalog-search-product-info > strong,
.catalog-readonly .catalog-search-add,
.catalog-readonly #cartOpen,
.catalog-readonly #cartOverlay,
.catalog-readonly #cartDrawer,
.catalog-readonly #catalogProductQuote { display: none !important; }

/* Fichas técnicas: presentación editorial, compacta y sin iconografía decorativa. */
.catalog-page .catalog-product-modal { background:#f7faff; }
.catalog-page .catalog-modal-copy {
  display:flex;
  min-height:560px;
  max-height:calc(100vh - 64px);
  flex-direction:column;
  gap:16px;
  overflow-y:auto;
  padding:38px 34px 32px !important;
  scrollbar-color:#b6c8e5 transparent;
  scrollbar-width:thin;
}
.catalog-page .catalog-modal-copy::-webkit-scrollbar { width:7px; }
.catalog-page .catalog-modal-copy::-webkit-scrollbar-thumb { border-radius:7px; background:#b6c8e5; }
.catalog-page .catalog-modal-product-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding-bottom:14px; border-bottom:1px solid #dfe7f3; }
.catalog-page .catalog-modal-product-head h2 { margin:3px 0 8px; font-size:clamp(26px, 3vw, 38px); letter-spacing:-.045em; }
.catalog-page .catalog-modal-product-head p:not(.eyebrow) { margin:0; max-width:430px; color:#6b7d9b; font-size:12px; line-height:1.65; }
.catalog-page .catalog-modal-unit { flex:0 0 auto; margin-top:22px; padding:7px 10px; border:1px solid #c9d8ee; border-radius:2px; color:var(--blue); background:#fff; font-size:10px; letter-spacing:.04em; text-transform:uppercase; }
.catalog-page .catalog-product-sheet { display:grid; gap:12px; }
.catalog-page .catalog-sheet-section { padding:17px 17px 16px; border:1px solid #dce6f2; border-left:3px solid var(--blue); background:#fff; box-shadow:0 8px 22px rgba(5,30,75,.055); }
.catalog-page .catalog-sheet-section-heading { display:flex; align-items:flex-start; gap:10px; margin-bottom:14px; }
.catalog-page .catalog-sheet-section-heading small,
.catalog-page .catalog-sheet-sources small { display:block; margin-bottom:3px; color:var(--blue); font-size:9px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.catalog-page .catalog-sheet-section-heading h3,
.catalog-page .catalog-sheet-sources h3 { margin:0; color:var(--navy); font-size:14px; font-weight:500; letter-spacing:-.02em; text-transform:none; }
.catalog-page .catalog-sheet-number { display:grid; width:25px; height:25px; flex:0 0 auto; place-items:center; border:1px solid #bcd0ec; color:var(--blue); background:#f2f7ff; font-size:10px; font-weight:500; }
.catalog-page .catalog-sheet-spec-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:0 17px; margin:0; }
.catalog-page .catalog-sheet-spec-grid > div { min-width:0; padding:9px 0; border-top:1px solid #edf1f7; }
.catalog-page .catalog-sheet-spec-grid dt { margin-bottom:3px; color:#7183a0; font-size:9px; font-weight:500; letter-spacing:.04em; text-transform:uppercase; }
.catalog-page .catalog-sheet-spec-grid dd { margin:0; color:#152958; font-size:11px; line-height:1.45; }
.catalog-page .catalog-sheet-columns { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
.catalog-page .catalog-sheet-list { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.catalog-page .catalog-sheet-list li { position:relative; padding-left:13px; color:#637493; font-size:10px; line-height:1.58; }
.catalog-page .catalog-sheet-list li::before { position:absolute; top:.62em; left:0; width:4px; height:4px; content:""; background:var(--blue); }
.catalog-page .catalog-sheet-recommendations { border-left-color:#274a82; background:linear-gradient(135deg,#fff 0%,#f5f9ff 100%); }
.catalog-page .catalog-sheet-storage { border-left-color:#9aaecb; }
.catalog-page .catalog-sheet-empty,
.catalog-page .catalog-sheet-fallback { margin:0; color:#7183a0; font-size:11px; line-height:1.65; }
.catalog-page .catalog-sheet-sources { display:flex; align-items:flex-end; justify-content:space-between; gap:15px; padding:14px 2px 0; border-top:1px solid #dfe7f3; }
.catalog-page .catalog-sheet-source-links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.catalog-page .catalog-sheet-source-links a { display:inline-flex; align-items:center; gap:7px; padding:7px 9px; border:1px solid #d5e1f1; color:var(--blue); background:#fff; font-size:9px; transition:background .2s, color .2s, border-color .2s; }
.catalog-page .catalog-sheet-source-links a:hover { border-color:var(--blue); color:#fff; background:var(--blue); }
.catalog-page .catalog-sheet-source-links svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:1.8; }
.catalog-page .catalog-sheet-caution { margin:0; padding:10px 11px; border:1px solid #e4eaf3; color:#7888a3; background:#fbfcfe; font-size:9px; line-height:1.55; }
.catalog-page .catalog-product-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:1px; }
.catalog-page #catalogProductQuote { align-self:flex-start; }
.catalog-product-share { min-height:46px; padding:0 15px; color:var(--navy); border:1px solid #c9d8ee; border-radius:10px; background:#fff; font:inherit; font-size:11px; cursor:pointer; }
.catalog-product-share:hover { color:var(--blue); border-color:var(--blue); }

@media (max-width:820px) {
  .catalog-page .catalog-modal-copy { min-height:0; max-height:calc(100vh - 394px); padding:24px 18px 24px !important; }
  .catalog-page .catalog-modal-product-head { display:block; }
  .catalog-page .catalog-modal-unit { display:inline-block; margin-top:10px; }
  .catalog-page .catalog-sheet-spec-grid,
  .catalog-page .catalog-sheet-columns { grid-template-columns:1fr; }
  .catalog-page .catalog-sheet-sources { display:block; }
  .catalog-page .catalog-sheet-source-links { justify-content:flex-start; margin-top:11px; }
  .catalog-page .catalog-sheet-section { padding:14px 13px; }
}

/* Overrides finales: se mantienen al final para que el navbar sea idéntico al de index.html. */
html body.catalog-page .desktop-nav a { font-weight: 600 !important; }
html body.catalog-page .header-phone { font-weight: 700 !important; }
html body.catalog-page .header-phone span { font-weight: 700 !important; }
html body.catalog-page .brand-type strong { font-weight: 800 !important; }
html body.catalog-page .brand-type small { font-weight: 600 !important; }
html body.catalog-page .mobile-menu a { font-weight: 600 !important; }
html body.catalog-page .hero-content h1 strong { font-weight: 800 !important; }
html body.catalog-page { overflow-x: hidden !important; }
/* Ficha técnica renovada: Montserrat delgada, mayor legibilidad y profundidad visual. */
html body.catalog-page .catalog-modal-copy,
html body.catalog-page .catalog-modal-copy * { font-family:"Montserrat",sans-serif !important; font-weight:300; }
html body.catalog-page .catalog-modal-copy { background:radial-gradient(circle at 90% 0%,rgba(20,120,234,.08),transparent 34%),linear-gradient(180deg,#fff 0%,#f7faff 100%); }
html body.catalog-page .catalog-modal-product-head { padding:4px 0 20px; border-bottom:0; }
html body.catalog-page .catalog-modal-product-head::after { position:absolute; bottom:0; left:0; width:76px; height:3px; content:""; background:var(--blue); }
html body.catalog-page .catalog-modal-product-head { position:relative; }
html body.catalog-page .catalog-modal-product-head h2 { font-size:clamp(30px,3.4vw,44px); font-weight:300 !important; letter-spacing:-.055em; }
html body.catalog-page .catalog-modal-product-head p:not(.eyebrow) { font-size:13px; line-height:1.75; }
html body.catalog-page .catalog-modal-unit { padding:9px 12px; border-radius:999px; font-size:11px; font-weight:400 !important; box-shadow:0 7px 16px rgba(11,42,99,.08); }
html body.catalog-page .catalog-product-sheet { gap:14px; }
html body.catalog-page .catalog-sheet-section { position:relative; overflow:hidden; padding:20px 20px 19px; border:1px solid #d8e4f3; border-left:3px solid var(--blue); border-radius:14px; background:rgba(255,255,255,.94); box-shadow:0 14px 32px rgba(11,42,99,.075); }
html body.catalog-page .catalog-sheet-section::after { position:absolute; top:-34px; right:-30px; width:100px; height:100px; content:""; border:1px solid rgba(20,120,234,.11); border-radius:50%; }
html body.catalog-page .catalog-sheet-section-heading { position:relative; z-index:1; align-items:center; margin-bottom:16px; }
html body.catalog-page .catalog-sheet-section-heading h3 { font-size:16px; font-weight:400 !important; letter-spacing:-.025em; }
html body.catalog-page .catalog-sheet-section-heading small { font-size:10px; font-weight:400 !important; letter-spacing:.11em; }
html body.catalog-page .catalog-sheet-number { width:30px; height:30px; border:0; border-radius:10px; color:#fff; background:linear-gradient(145deg,var(--blue),#0b53bd); font-size:10px; font-weight:400 !important; box-shadow:0 8px 16px rgba(20,120,234,.23); }
html body.catalog-page .catalog-sheet-spec-grid { position:relative; z-index:1; gap:8px; }
html body.catalog-page .catalog-sheet-spec-grid > div { padding:12px 13px; border:1px solid #e2eaf4; border-radius:10px; background:#fbfdff; }
html body.catalog-page .catalog-sheet-spec-grid dt { margin-bottom:5px; color:#7b8da8; font-size:10px; font-weight:300 !important; }
html body.catalog-page .catalog-sheet-spec-grid dd { color:#162b59; font-size:12.5px; line-height:1.55; font-weight:300 !important; }
html body.catalog-page .catalog-sheet-columns { gap:14px; }
html body.catalog-page .catalog-sheet-list { gap:11px; }
html body.catalog-page .catalog-sheet-list li { padding-left:17px; color:#5d6f8d; font-size:12px; line-height:1.62; font-weight:300 !important; }
html body.catalog-page .catalog-sheet-list li::before { top:.72em; width:6px; height:6px; border-radius:50%; box-shadow:0 0 0 3px rgba(20,120,234,.1); }
html body.catalog-page .catalog-sheet-recommendations { border-left-color:#0a4ea9; background:linear-gradient(135deg,#fff 0%,#eef6ff 100%); }
html body.catalog-page .catalog-sheet-storage { border-left-color:#8ca8cc; background:linear-gradient(135deg,#fff 0%,#f5f8fc 100%); }
html body.catalog-page .catalog-sheet-empty,
html body.catalog-page .catalog-sheet-fallback { font-size:12px; line-height:1.7; }
html body.catalog-page .catalog-sheet-caution { padding:13px 14px; border:1px solid #d8e3f1; border-radius:10px; color:#6d7e99; background:#f4f8fd; font-size:11px; line-height:1.65; }
html body.catalog-page #catalogProductQuote { min-height:46px; border-radius:10px; box-shadow:0 12px 22px rgba(20,120,234,.2); font-weight:400 !important; }
@media (max-width:820px) {
  html body.catalog-page .catalog-modal-product-head h2 { font-size:32px; }
  html body.catalog-page .catalog-modal-copy { padding:28px 20px 28px !important; }
  html body.catalog-page .catalog-sheet-section { padding:18px 16px; }
  html body.catalog-page .catalog-sheet-spec-grid dd { font-size:13px; }
  html body.catalog-page .catalog-sheet-list li { font-size:12.5px; }
}
html body.catalog-page .catalog-back-to-categories svg,
html body.catalog-page .catalog-gallery-nav svg,
html body.catalog-page #catalogProductQuote svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
html body.catalog-page .catalog-back-to-categories svg { transform: rotate(-90deg); }
html body.catalog-page .catalog-gallery-prev svg { transform: rotate(180deg); }
html body.catalog-page .catalog-gallery-nav { font-size: 0 !important; }
@media (max-width: 820px) {
  html body.catalog-page .catalog-search-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 8px !important;
  }
  html body.catalog-page .catalog-search-product { border-radius: 12px !important; }
  html body.catalog-page .catalog-search-product-image { height: 92px !important; }
  html body.catalog-page .catalog-search-product-info { padding: 8px !important; }
  html body.catalog-page .catalog-search-product-info > p { font-size: 7px !important; }
  html body.catalog-page .catalog-search-product-info h3 { min-height: 30px; font-size: 9px !important; line-height: 1.2; }
  html body.catalog-page .catalog-search-product-info > small { min-height: 24px; font-size: 7px !important; }
  html body.catalog-page .catalog-search-product-info > strong { margin: 6px 0 7px; font-size: 14px !important; }
  html body.catalog-page .catalog-search-product-detail { right: 6px; bottom: 6px; width: 24px; height: 24px; font-size: 0; }
  html body.catalog-page .catalog-search-product-detail::before { content: "+"; font-family: "Montserrat", sans-serif; font-size: 17px; font-weight: 300; line-height: 1; }
}
html body.catalog-page #catalogProductQuote { display: inline-flex; align-items: center; gap: 12px; }
@media (min-width: 821px) {
  html body.catalog-page .header-phone {
    margin-left: clamp(24px, 2.4vw, 46px) !important;
    font-size: clamp(11px, .7vw, 13px) !important;
  }
}
.catalog-page .brand-type strong { font-weight: 800 !important; }
.catalog-page .brand-type small { font-weight: 600 !important; }
.catalog-page .desktop-nav a { font-weight: 600 !important; }
.catalog-page .header-phone { font-weight: 700 !important; }
.catalog-page .mobile-menu a { font-weight: 600 !important; }

@media (max-width: 820px) {
  html body.catalog-page .header-inner { width: calc(100% - 28px) !important; }
  html body.catalog-page .brand { height: 66px !important; }
  html body.catalog-page .mobile-menu { position: absolute !important; top: 100% !important; right: 0 !important; left: 0 !important; inset: 100% 0 auto !important; }
  html body.catalog-page main#contenido { width: 100% !important; zoom: 1.44; }
  html body.catalog-page .category-card { grid-template-columns: 37% minmax(0, 1fr) !important; min-height: 96px !important; border-radius: 0 15px 0 15px !important; }
  html body.catalog-page .category-image,
  html body.catalog-page .category-info { min-height: 96px !important; height: 96px !important; }
  html body.catalog-page .category-info { padding: 10px 9px 8px 17px !important; }
  html body.catalog-page .category-info h3 { font-size: 10px !important; }
  html body.catalog-page .category-info p { font-size: 7px !important; line-height: 1.25 !important; }
  html body.catalog-page .hero-content h1 { font-size: 38px !important; }
  html body.catalog-page .hero-content h1 strong { font-size: 38px !important; }
  html body.catalog-page .cart-floating { right: 43px !important; }
  .catalog-page .header-inner { width: calc(100% - 36px) !important; }
  .catalog-page .mobile-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: 0 !important;
    inset: 100% 0 auto !important;
    overflow-y: auto !important;
  }
  .catalog-page main#contenido {
    width: 76.9230769% !important;
    zoom: 1.3;
  }
  .catalog-page .categories-section { padding-top: 9px !important; padding-bottom: 20px !important; }
  .catalog-page .center-heading h2 { font-size: 24px !important; line-height: 1.06; }
  .catalog-page .category-grid { margin-top: 12px !important; gap: 7px !important; }
  .catalog-page .category-card {
    grid-template-columns: 37% minmax(0, 1fr) !important;
    min-height: 96px !important;
    border-radius: 0 15px 0 15px !important;
  }
  .catalog-page .category-image,
  .catalog-page .category-info { min-height: 96px !important; height: 96px !important; }
  .catalog-page .category-image { border-radius: 0 12px 0 0 !important; }
  .catalog-page .category-info { padding: 10px 9px 8px 17px !important; }
  .catalog-page .category-info h3 { margin-bottom: 3px !important; font-size: 10px !important; }
  .catalog-page .category-info p { font-size: 7px !important; line-height: 1.25 !important; }
  .catalog-page .category-info > div { margin-top: 4px !important; }
  .catalog-page .category-info strong { font-size: 7px !important; }
}

/* Paridad total con el navbar de index.html: misma geometría, tipografía,
   transición de scroll y menú móvil. El script compartido ya se carga en ambas páginas. */
.catalog-page .site-header,
.catalog-page .site-header.scrolled {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: 88px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(5, 27, 79, .06);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, height .25s ease;
}
.catalog-page .site-header.scrolled {
  height: 76px;
  box-shadow: 0 10px 32px rgba(8, 19, 47, .09);
}
.catalog-page .header-inner {
  display: flex;
  width: min(calc(100% - 48px), var(--container));
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  align-items: center;
  gap: 0;
}
.catalog-page .brand {
  display: flex;
  width: 205px;
  height: 70px;
  margin: 0;
  align-items: center;
}
.catalog-page .brand img { width: 190px; height: auto; }
.catalog-page .brand-type { display: flex; flex-direction: column; }
.catalog-page .brand-type strong { font-weight: 800 !important; }
.catalog-page .brand-type small { font-weight: 600 !important; }
.catalog-page .desktop-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(18px, 2.2vw, 35px);
}
.catalog-page .desktop-nav a {
  padding: 33px 0 29px;
  color: #1c2640;
  font-size: 11px;
  font-weight: 600 !important;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.catalog-page .desktop-nav a::after { bottom: 20px; }
.catalog-page .header-phone {
  display: flex;
  margin-left: 36px;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700 !important;
}
.catalog-page .header-phone svg { width: 17px; color: var(--blue); }

@media (min-width: 821px) {
  .catalog-page .site-header,
  .catalog-page .site-header.scrolled { height: clamp(94px, 6.5625vw, 126px); }
  .catalog-page .header-inner { width: min(calc(100% - 80px), var(--container)); }
  .catalog-page .brand { width: clamp(300px, 22.4vw, 430px); height: 100%; gap: clamp(12px, 1vw, 19px); }
  .catalog-page .brand .brand-mark { width: clamp(120px, 7.8vw, 150px); }
  .catalog-page .brand-type strong { font-size: clamp(20px, 1.45vw, 28px); }
  .catalog-page .brand-type small { font-size: clamp(9px, .63vw, 12px); }
  .catalog-page .desktop-nav { gap: clamp(24px, 2.8vw, 54px); }
  .catalog-page .desktop-nav a { padding-block: 40px 36px; font-size: clamp(10px, .68vw, 13px); }
  .catalog-page .desktop-nav a::after { bottom: 26px; }
  .catalog-page .header-phone { margin-left: clamp(24px, 2.4vw, 46px); font-size: clamp(11px, .7vw, 13px); }
}

@media (max-width: 820px) {
  .catalog-page .site-header,
  .catalog-page .site-header.scrolled { height: 74px; background: #fff; }
  .catalog-page .header-inner { width: calc(100% - 36px); }
  .catalog-page .brand { width: 180px; height: 66px; gap: 8px; }
  .catalog-page .brand .brand-mark { width: 58px; }
  .catalog-page .brand-type strong {
    width: 82px;
    max-width: 82px;
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: normal;
  }
  .catalog-page .brand-type small { display: none; }
  .catalog-page .desktop-nav,
  .catalog-page .header-phone { display: none; }
  .catalog-page .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: transparent;
  }
  .catalog-page .menu-toggle svg { width: 27px; }
  .catalog-page .mobile-menu {
    position: absolute;
    z-index: 1001;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    max-height: 0;
    overflow-y: auto;
    padding: 0;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 18px 30px rgba(5, 27, 79, .12);
    transition: max-height .35s ease;
  }
  .catalog-page .mobile-menu.open { max-height: calc(100svh - 74px); }
  .catalog-page .mobile-menu nav { display: flex; padding: 20px; flex-direction: column; }
  .catalog-page .mobile-menu a {
    display: flex;
    min-height: 50px;
    padding: 0 8px;
    align-items: center;
    color: var(--navy);
    border-bottom: 1px solid #edf0f4;
    font-size: 12px;
    font-weight: 600 !important;
    text-transform: uppercase;
  }
  .catalog-page .mobile-menu a:last-child { color: var(--blue); border: 0; }
}

/* Escala solicitada para móvil. El ancho compensado mantiene el lienzo dentro
   de la pantalla mientras el catálogo se percibe al 130 %. */
@media (max-width: 820px) {
  .catalog-page main#contenido {
    width: 76.9230769% !important;
    zoom: 1.3;
  }
  .catalog-page .categories-section { padding-top: 9px; padding-bottom: 20px; }
  .catalog-page .center-heading h2 { font-size: 24px; line-height: 1.06; }
  .catalog-page .category-grid { margin-top: 12px; gap: 7px; }
  .catalog-page .category-card {
    grid-template-columns: 37% minmax(0, 1fr) !important;
    min-height: 96px !important;
    border-radius: 0 15px 0 15px !important;
  }
  .catalog-page .category-image,
  .catalog-page .category-info { min-height: 96px !important; height: 96px !important; }
  .catalog-page .category-image { border-radius: 0 12px 0 0; }
  .catalog-page .category-info { padding: 10px 9px 8px 17px !important; }
  .catalog-page .category-info h3 { margin-bottom: 3px !important; font-size: 10px !important; }
  .catalog-page .category-info p { font-size: 7px !important; line-height: 1.25 !important; }
  .catalog-page .category-info > div { margin-top: 4px; }
  .catalog-page .category-info strong { font-size: 7px !important; }
}

/* Interacción final: panel de búsqueda, filtros breves y vistas de catálogo. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.catalog-page .hero-wave { display: none !important; }
.catalog-page .catalog-benefits { margin-top: 0 !important; }
.catalog-page .catalog-search-panel {
  overflow: hidden !important;
  grid-template-rows: minmax(0, 1fr) !important;
  box-shadow: 0 18px 40px rgba(8, 31, 74, .18) !important;
}
.catalog-page .catalog-search-panel[hidden] { display: none !important; }
.catalog-page .catalog-search-categories,
.catalog-page .catalog-search-products {
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) #edf3fa;
}
.catalog-page .catalog-search-products::-webkit-scrollbar { width: 8px; }
.catalog-page .catalog-search-products::-webkit-scrollbar-track { background: #edf3fa; }
.catalog-page .catalog-search-products::-webkit-scrollbar-thumb { background: var(--blue); border: 2px solid #edf3fa; }
.catalog-page .catalog-search-panel-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 48px;
  padding-right: 46px !important;
  background: #fff;
}
.catalog-page .catalog-search-close {
  position: absolute;
  top: 8px;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d5e1f0;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-family: "Montserrat", sans-serif !important;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.catalog-page .catalog-search-close:hover,
.catalog-page .catalog-search-close:focus-visible { background: var(--blue); color: #fff; outline: none; }
.catalog-page .market-product.is-search-target {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(16, 104, 241, .2), 0 12px 28px rgba(10, 54, 130, .16) !important;
}
.catalog-page .catalog-filter-fields { display: contents; }
.catalog-page .catalog-browser-actions { display: none; }

@media (min-width: 821px) {
  .catalog-page .catalog-browser-tools {
    grid-template-columns: minmax(280px, 2.1fr) repeat(3, minmax(150px, 1fr)) auto !important;
  }
}

@media (max-width: 820px) {
  .catalog-page .catalog-benefits { margin-bottom: 20px !important; }
  .catalog-page .catalog-browser-tools {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    padding: 8px !important;
    margin-bottom: 12px !important;
    background: #f8fbff !important;
  }
  .catalog-page .catalog-browser-search { grid-column: auto !important; height: 37px !important; }
  .catalog-page .catalog-browser-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
  }
  .catalog-page .catalog-filter-trigger,
  .catalog-page .catalog-view-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid #cbd9eb;
    border-radius: 0;
    background: #fff;
    color: #0a2e69;
    font-family: "Montserrat", sans-serif !important;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
  }
  .catalog-page .catalog-filter-trigger { gap: 6px; padding: 0 11px; }
  .catalog-page .catalog-filter-trigger > span { color: var(--blue); font-size: 17px; line-height: 1; }
  .catalog-page .catalog-filter-trigger b {
    display: inline-grid;
    place-items: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 8px;
  }
  .catalog-page .catalog-filter-trigger b[hidden] { display: none !important; }
  .catalog-page .catalog-view-toggle { display: flex; gap: 4px; }
  .catalog-page .catalog-view-toggle button { width: 34px; padding: 0; font-size: 19px; line-height: 1; }
  .catalog-page .catalog-view-toggle button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
  .catalog-page .catalog-filter-fields { display: none; }
  .catalog-page .catalog-browser-tools.filters-open .catalog-filter-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-top: 2px;
  }
  .catalog-page .catalog-filter-field { gap: 2px; }
  .catalog-page .catalog-filter-field span { font-size: 8px !important; }
  .catalog-page .catalog-filter-field select { min-height: 34px; padding: 0 7px; font-size: 9px; }
  .catalog-page .catalog-filter-reset { grid-column: 1 / -1; min-height: 34px; font-size: 9px; }
  .catalog-page .catalog-search-panel { max-height: min(560px, calc(100vh - 112px)) !important; }
  .catalog-page .catalog-search-panel-head { min-height: 44px; }
  .catalog-page .catalog-search-close { top: 7px; right: 8px; }

  .catalog-page .popular-grid[data-view="grid"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .catalog-page .popular-grid[data-view="grid"] .market-product {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border-radius: 0 !important;
  }
  .catalog-page .popular-grid[data-view="grid"] .market-product-image { width: 100%; height: 132px; min-height: 132px; }
  .catalog-page .popular-grid[data-view="grid"] .market-product-info { min-height: 134px; padding: 9px; }
  .catalog-page .popular-grid[data-view="grid"] .market-brand { margin-bottom: 3px; font-size: 7px; }
  .catalog-page .popular-grid[data-view="grid"] .market-product h3 { min-height: 27px; font-size: 10px; line-height: 1.25; }
  .catalog-page .popular-grid[data-view="grid"] .market-detail {
    display: -webkit-box;
    min-height: 21px;
    margin: 3px 0 6px;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .catalog-page .popular-grid[data-view="grid"] .market-product-bottom strong { font-size: 12px; }
  .catalog-page .popular-grid[data-view="grid"] .market-product-bottom .add-to-cart { width: 28px; height: 28px; }
  .catalog-page .popular-grid[data-view="list"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .catalog-page .popular-grid[data-view="list"] .market-product {
    display: grid !important;
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 106px;
    border-radius: 0 !important;
  }
  .catalog-page .popular-grid[data-view="list"] .market-product-image { height: 100%; min-height: 106px; }
  .catalog-page .popular-grid[data-view="list"] .market-product-info { min-height: 106px; padding: 9px 10px; }

  .catalog-page .category-grid { margin-top: 14px !important; gap: 8px !important; }
  .catalog-page .category-card { grid-template-columns: 40% minmax(0, 1fr) !important; min-height: 112px !important; }
  .catalog-page .category-image { min-height: 112px !important; height: 112px !important; }
  .catalog-page .category-info { min-height: 112px !important; padding: 10px 9px 8px 20px !important; }
  .catalog-page .category-info h3 { margin: 0 0 4px !important; font-size: 11px !important; line-height: 1.2 !important; }
  .catalog-page .category-info p {
    display: -webkit-box;
    min-height: 20px !important;
    margin: 0 0 5px !important;
    overflow: hidden;
    font-size: 8px !important;
    line-height: 1.3 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .catalog-page .category-info strong { font-size: 8px !important; }
  .catalog-page .category-arrow { width: 26px !important; height: 26px !important; }
}

/* No se utiliza un trazo separador: la onda se resuelve sólo con su relleno blanco. */
.catalog-page .hero-wave-line { display: none !important; }

/* Corrección visual final: la onda del hero no debe atravesar la franja de beneficios. */
.catalog-page { overflow-x: clip; }
.catalog-page .catalog-benefits {
  isolation: isolate;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.catalog-page .catalog-benefits::before,
.catalog-page .catalog-benefits::after {
  content: none !important;
  display: none !important;
}
.catalog-page .catalog-benefits article {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

@media (min-width: 821px) {
  /* Fondo blanco sin borde: tapa únicamente la línea de la onda detrás del texto. */
  .catalog-page .catalog-benefits {
    background: #fff !important;
    position: relative;
    z-index: 6;
  }
  .catalog-page .catalog-benefits::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    z-index: -1;
    inset: -2px -26px;
    background: #fff;
    border: 0;
    pointer-events: none;
  }
}

/* Composición móvil del catálogo: lectura vertical, tarjetas rectas y controles visibles. */
@media (max-width: 820px) {
  .catalog-page .catalog-hero,
  .catalog-page .hero-content { min-height: 505px; }
  .catalog-page .hero-content { padding-top: 48px; padding-bottom: 105px; }
  .catalog-page .hero-content h1 { max-width: 310px; font-size: 43px; line-height: .96; }
  .catalog-page .hero-copy { max-width: 315px; margin: 17px 0 20px; font-size: 12px; line-height: 1.65; }
  .catalog-page .hero-media { inset: 28% 0 0; }
  .catalog-page .hero-media img { object-position: 59% 42%; transform: scale(1.08); }
  .catalog-page .hero-wave { height: 80px; }

  .catalog-page .catalog-benefits {
    width: calc(100% - 32px);
    min-height: 0;
    margin: -17px auto 28px;
    padding: 9px 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    background: #fff !important;
  }
  .catalog-page .catalog-benefits article,
  .catalog-page .catalog-benefits article:first-child,
  .catalog-page .catalog-benefits article:nth-child(odd),
  .catalog-page .catalog-benefits article:nth-child(even) {
    min-height: 47px;
    padding: 8px 10px;
    border: 0 !important;
  }
  .catalog-page .catalog-benefits svg { width: 23px; height: 23px; }
  .catalog-page .catalog-benefits strong { font-size: 9px; }
  .catalog-page .catalog-benefits span { margin-top: 2px; font-size: 8px; }

  .catalog-page .categories-section,
  .catalog-page .popular-section,
  .catalog-page .brands-section,
  .catalog-page .fabrication-strip,
  .catalog-page .help-strip { width: calc(100% - 32px); }
  .catalog-page .categories-section { padding: 11px 0 25px; }
  .catalog-page .center-heading { text-align: left; }
  .catalog-page .center-heading .heading-line { margin-left: 0; }
  .catalog-page .center-heading h2 { max-width: 290px; font-size: 27px; line-height: 1.05; }
  .catalog-page .category-grid {
    margin-top: 17px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .catalog-page .category-card {
    display: grid;
    grid-template-columns: 39% minmax(0, 1fr);
    min-height: 122px;
    overflow: visible;
    border-radius: 0 !important;
    box-shadow: 0 4px 14px rgba(17, 48, 98, .06);
  }
  .catalog-page .category-image {
    height: 100%;
    min-height: 122px;
    overflow: hidden;
  }
  .catalog-page .category-icon {
    left: auto;
    right: -17px;
    bottom: auto;
    top: 12px;
    width: 35px;
    height: 35px;
  }
  .catalog-page .category-icon svg,
  .catalog-page .category-generated-icon { width: 21px; height: 21px; }
  .catalog-page .category-info {
    min-height: 122px;
    padding: 13px 10px 10px 23px;
  }
  .catalog-page .category-info h3 { margin-bottom: 3px; font-size: 11px; line-height: 1.15; }
  .catalog-page .category-info p { max-width: none; font-size: 8px; line-height: 1.35; }
  .catalog-page .category-info > div { margin-top: 5px; }
  .catalog-page .category-info strong { font-size: 8px; }
  .catalog-page .category-arrow { width: 25px; height: 25px; }
  .catalog-page .category-arrow svg { width: 16px; height: 16px; }

  .catalog-page .fabrication-strip {
    min-height: 0;
    margin-bottom: 25px;
    display: block;
    border-radius: 0 !important;
  }
  .catalog-page .fabrication-photo { display: none; }
  .catalog-page .fabrication-copy { padding: 16px 14px 14px; }
  .catalog-page .fabrication-copy .eyebrow { margin-bottom: 2px; font-size: 9px; }
  .catalog-page .fabrication-copy h2 { font-size: 17px; }
  .catalog-page .fabrication-copy > p:not(.eyebrow) { margin: 3px 0 12px; font-size: 11px; }
  .catalog-page .fabrication-features { gap: 8px; }
  .catalog-page .fabrication-features span { gap: 5px; font-size: 8px; }
  .catalog-page .fabrication-features svg { width: 19px; height: 19px; }
  .catalog-page .fabrication-copy .button { min-height: 35px; margin-top: 13px; border-radius: 0 !important; font-size: 8px; }

  .catalog-page .popular-section { padding-bottom: 25px; }
  .catalog-page .popular-section .section-heading {
    margin-bottom: 13px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .catalog-page .popular-section .section-heading h2 { font-size: 25px; line-height: 1.08; }
  .catalog-page .catalog-link { align-self: flex-end; font-size: 9px; }
  .catalog-page .popular-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    overflow: visible;
    padding: 0;
  }
  .catalog-page .market-product {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 106px;
    flex: none;
    border-radius: 0 !important;
  }
  .catalog-page .market-product-image { height: 100%; min-height: 106px; }
  .catalog-page .market-category { right: 5px; bottom: 5px; max-width: calc(100% - 10px); padding: 3px 5px; font-size: 6px; }
  .catalog-page .market-product-info { min-height: 106px; padding: 9px 10px; }
  .catalog-page .market-brand { margin-bottom: 2px; font-size: 7px; }
  .catalog-page .market-product h3 { font-size: 10px; line-height: 1.2; }
  .catalog-page .market-detail { min-height: 15px; margin: 3px 0 5px; font-size: 8px; }
  .catalog-page .market-product-bottom strong { font-size: 11px; }
  .catalog-page .market-product-bottom small { font-size: 7px; }
  .catalog-page .market-product-bottom .add-to-cart { width: 25px; height: 25px; }
  .catalog-page .market-product-bottom .add-to-cart svg { width: 14px; height: 14px; }

  .catalog-page .help-strip { min-height: 0; margin-bottom: 24px; padding: 15px; gap: 12px; border-radius: 0 !important; flex-wrap: wrap; }
  .catalog-page .help-icon { width: 48px; height: 48px; }
  .catalog-page .help-icon svg { width: 25px; height: 25px; }
  .catalog-page .help-copy { width: calc(100% - 60px); padding-right: 0; border-right: 0; }
  .catalog-page .help-copy h2 { font-size: 15px; }
  .catalog-page .help-copy p { font-size: 8px; }
  .catalog-page .help-points { width: 100%; grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
  .catalog-page .help-points strong { font-size: 7px; }
  .catalog-page .help-cta { width: 100%; min-height: 50px; border-radius: 0; }

  .catalog-page .catalog-brand-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .catalog-page .catalog-brand { min-height: 48px; padding: 8px; border-radius: 0; }
  .catalog-page .catalog-brand img { max-width: 105px; max-height: 29px; }
}

/* Buscador y explorador de categoría: el panel queda anclado al campo y no al viewport. */
.catalog-page .catalog-search-panel {
  position: absolute !important;
  top: calc(100% + 9px) !important;
  right: auto !important;
  left: 0 !important;
  width: min(760px, calc(100vw - 48px)) !important;
  max-height: min(540px, calc(100vh - 150px)) !important;
  transform: none !important;
}
.catalog-page .catalog-search-products { min-height: 0; }
.catalog-page .catalog-search-product { border-radius: 0; }
.catalog-page .catalog-search-product:hover,
.catalog-page .catalog-search-product.is-active { transform: none; }
.catalog-page .catalog-browser-tools {
  width: 100%;
  margin: 0 0 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(145px, 1fr)) auto;
  gap: 8px;
  align-items: end;
  border: 1px solid #dce5f1;
  background: #f7faff;
}
.catalog-page .catalog-browser-tools[hidden] { display: none !important; }
.catalog-page .catalog-browser-search,
.catalog-page .catalog-filter-field { min-width: 0; }
.catalog-page .catalog-browser-search {
  height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #d4e0ef;
  background: #fff;
}
.catalog-page .catalog-browser-search svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 1.8; }
.catalog-page .catalog-browser-search input { width: 100%; min-width: 0; color: var(--navy); border: 0; outline: 0; background: transparent; font-size: 10px; }
.catalog-page .catalog-filter-field { display: grid; gap: 4px; }
.catalog-page .catalog-filter-field span { color: #667792; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.catalog-page .catalog-filter-field select {
  width: 100%;
  height: 39px;
  padding: 0 9px;
  color: var(--navy);
  border: 1px solid #d4e0ef;
  border-radius: 0;
  outline: 0;
  background: #fff;
  font-size: 9px;
}
.catalog-page .catalog-filter-reset {
  height: 39px;
  padding: 0 11px;
  color: var(--blue);
  border: 1px solid #c3d6ef;
  border-radius: 0;
  background: #fff;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.catalog-page .catalog-filter-reset:hover { color: #fff; background: var(--blue); }
.catalog-page .catalog-back-to-categories {
  width: 49px;
  height: 49px;
  position: fixed;
  z-index: 100;
  right: 35px;
  bottom: 101px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(7, 45, 112, .25);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.catalog-page .catalog-back-to-categories:hover { background: var(--blue); transform: translateY(-3px); }
.catalog-page .catalog-back-to-categories[hidden] { display: none !important; }

@media (max-width: 820px) {
  .catalog-page .catalog-search-panel {
    width: calc(100vw - 32px) !important;
    max-height: min(560px, calc(100vh - 150px)) !important;
  }
  .catalog-page .catalog-search-panel { grid-template-columns: 1fr; }
  .catalog-page .catalog-search-categories { max-height: 78px; }
  .catalog-page .catalog-search-product-grid { grid-template-columns: 1fr; }
  .catalog-page .catalog-browser-tools {
    margin-bottom: 13px;
    padding: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .catalog-page .catalog-browser-search { grid-column: 1 / -1; }
  .catalog-page .catalog-filter-reset { grid-column: 1 / -1; }
  .catalog-page .catalog-back-to-categories { right: 14px; bottom: 78px; width: 45px; height: 45px; font-size: 22px; }
}

/* La curva pertenece sólo al hero. El lienzo blanco de beneficios la cubre de lado a lado
   cuando ambos bloques se superponen, sin crear una tarjeta ni una línea de corte. */
.catalog-page .catalog-benefits::before {
  left: 50% !important;
  right: auto !important;
  width: 100vw !important;
  transform: translateX(-50%);
  inset-block: -3px !important;
  background: #fff !important;
}

/* Catálogo: productos en cuadrícula real que continúan hacia abajo, no en carrusel horizontal. */
@media (min-width: 821px) {
  .catalog-page .popular-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    padding: 0;
  }
  .catalog-page .market-product {
    min-width: 0;
    width: auto;
    min-height: 0;
    border-radius: 0 !important;
  }
  .catalog-page .market-product-image { height: 158px; }
  .catalog-page .market-product-info { min-height: 136px; }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .catalog-page .popular-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Filtros: nombres comprensibles, jerarquía clara y estética de catálogo industrial. */
.catalog-page .catalog-browser-tools {
  padding: 14px;
  grid-template-columns: minmax(280px, 2.1fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px;
  border-color: #cfdbeb;
  background:
    linear-gradient(90deg, rgba(16,104,241,.045), transparent 38%),
    #f8fbff;
  box-shadow: inset 3px 0 0 var(--blue);
}
.catalog-page .catalog-browser-search,
.catalog-page .catalog-filter-field select {
  border-color: #cddbea;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 300;
}
.catalog-page .catalog-browser-search:focus-within,
.catalog-page .catalog-filter-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(16,104,241,.10);
}
.catalog-page .catalog-filter-field span {
  color: #4f6386;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 600;
  letter-spacing: .06em;
}
.catalog-page .catalog-filter-reset { min-width: 106px; font-family: "Montserrat", sans-serif !important; font-weight: 600; }

/* El catálogo mantiene la misma familia que la página principal: Montserrat. */
.catalog-page,
.catalog-page button,
.catalog-page input,
.catalog-page select,
.catalog-page textarea { font-family: "Montserrat", sans-serif !important; }

@media (max-width: 820px) {
  .catalog-page .catalog-browser-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; box-shadow: inset 2px 0 0 var(--blue); }
}

/* Overrides finales: beneficios libres y fabricación compacta. */
.catalog-page .catalog-hero { border-bottom: 0 !important; }
.catalog-page .catalog-benefits { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.catalog-page .category-generated-icon { mix-blend-mode: normal; }

@media (min-width: 821px) {
  .catalog-page .catalog-benefits { padding: 22px 0 !important; }
  .catalog-page .fabrication-strip { height: 156px !important; min-height: 156px !important; }
  .catalog-page .fabrication-copy { height: 100% !important; min-height: 0 !important; grid-template-rows: auto auto auto auto !important; align-content: center !important; padding: 14px 30px !important; }
  .catalog-page .fabrication-features { grid-row: 4 !important; align-self: center !important; margin-top: 4px !important; }
  .catalog-page .fabrication-copy .button { grid-row: 1 / 5 !important; }
}

@media (max-width: 820px) {
  .catalog-page .catalog-benefits { width: calc(100% - 34px); padding: 18px 0 !important; background: transparent !important; box-shadow: none !important; }
  .catalog-page .category-info { padding-top: 42px !important; }
}

/* Overrides finales: beneficios libres y fabricación compacta. */
.catalog-page .catalog-hero { border-bottom: 0 !important; }
.catalog-page .catalog-benefits { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.catalog-page .category-generated-icon { mix-blend-mode: normal; }

@media (min-width: 821px) {
  .catalog-page .catalog-benefits { padding: 22px 0 !important; }
  .catalog-page .fabrication-strip { height: 156px !important; min-height: 156px !important; }
  .catalog-page .fabrication-copy { height: 100%; min-height: 0; grid-template-rows: auto auto auto; align-content: center; padding: 14px 30px; }
  .catalog-page .fabrication-features { grid-row: 3; align-self: center; margin-top: 4px; }
  .catalog-page .fabrication-copy .button { grid-row: 1 / 4; }
}

@media (max-width: 820px) {
  .catalog-page .catalog-benefits { width: calc(100% - 34px); padding: 18px 0 !important; background: transparent !important; box-shadow: none !important; }
}

/* Ajustes solicitados para el segundo pase visual. */
.catalog-page .catalog-hero { border-bottom: 0; }
.catalog-page .catalog-benefits { background: transparent; border: 0; box-shadow: none; }
.catalog-page .category-generated-icon { mix-blend-mode: normal; }

@media (min-width: 821px) {
  .catalog-page .catalog-benefits { padding: 22px 0; }
  .catalog-page .fabrication-strip { height: 156px; min-height: 156px; }
  .catalog-page .fabrication-copy { height: 100%; min-height: 0; grid-template-rows: auto auto auto; align-content: center; padding: 14px 30px; }
  .catalog-page .fabrication-features { grid-row: 3; align-self: center; margin-top: 4px; }
  .catalog-page .fabrication-copy .button { grid-row: 1 / 4; }
}

@media (max-width: 820px) {
  .catalog-page .catalog-benefits { width: calc(100% - 34px); padding: 18px 0; background: transparent; box-shadow: none; }
}

/* Continuidad con la navegación y el pie de página de la página principal. */
.catalog-page .site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: 88px;
  border-bottom: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(5, 27, 79, .06);
  backdrop-filter: blur(16px);
}
.catalog-page .site-header.scrolled { height: 76px; box-shadow: 0 10px 32px rgba(8, 19, 47, .09); }
.catalog-page .header-inner { width: min(calc(100% - 48px), var(--container)); min-height: 0; margin-inline: auto; gap: 0; }
.catalog-page .brand { display: flex; width: 205px; height: 70px; margin: 0; align-items: center; }
.catalog-page .brand img { width: 190px; height: auto; object-fit: initial; object-position: initial; }
.catalog-page .brand-type { display: flex; }
.catalog-page .desktop-nav { display: flex; margin-left: auto; justify-content: initial; flex: initial; gap: clamp(18px, 2.2vw, 35px); }
.catalog-page .desktop-nav a { padding: 33px 0 29px; color: #1c2640; font-size: 11px; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; }
.catalog-page .desktop-nav a::after { bottom: 20px; }
.catalog-page .header-phone { display: flex; margin-left: 36px; gap: 9px; color: var(--navy); font-size: 12px; }
.catalog-page .header-phone svg { width: 17px; color: var(--blue); }
.catalog-page .header-phone span { transform: none; font-size: inherit; }
.catalog-page .site-header + main { position: relative; }

@media (min-width: 821px) {
  .catalog-page .site-header,
  .catalog-page .site-header.scrolled { height: clamp(94px, 6.5625vw, 126px); }
  .catalog-page .header-inner { width: min(calc(100% - 80px), var(--container)); }
  .catalog-page .brand { width: clamp(300px, 22.4vw, 430px); height: 100%; gap: clamp(12px, 1vw, 19px); }
  .catalog-page .brand .brand-mark { width: clamp(120px, 7.8vw, 150px); }
  .catalog-page .brand-type { flex-direction: column; }
  .catalog-page .brand-type strong { font-size: clamp(20px, 1.45vw, 28px); }
  .catalog-page .brand-type small { font-size: clamp(9px, .63vw, 12px); }
  .catalog-page .desktop-nav { gap: clamp(24px, 2.8vw, 54px); }
  .catalog-page .desktop-nav a { padding-block: 40px 36px; font-size: clamp(10px, .68vw, 13px); }
  .catalog-page .desktop-nav a::after { bottom: 26px; }
}

.catalog-page .catalog-hero { min-height: 520px; }
.catalog-page .hero-content { min-height: 520px; padding-top: 110px; }
.catalog-page .hero-copy { text-transform: none; }
.catalog-page .hero-content h1 { font-size: clamp(52px, 5.6vw, 88px); }
.catalog-page .hero-media img { object-position: 57% 43%; transform: scale(1.12); transform-origin: center center; }
.catalog-page .products-section { padding-top: clamp(34px, 3.2vw, 58px); }

.catalog-page .quote-banner { position: relative; width: min(calc(100% - 80px), var(--container)); min-height: 360px; aspect-ratio: 4.05 / 1; margin-bottom: 96px; border-radius: 0; background: linear-gradient(100deg, #fff 0%, #fff 54%, #f6f9fd 100%); }
.catalog-page .quote-banner > div:first-child { position: relative; z-index: 3; display: flex; width: 59%; height: 100%; padding: clamp(42px, 4.2vw, 78px) clamp(42px, 6.4vw, 120px); flex-direction: column; justify-content: center; }
.catalog-page .quote-banner h2 { max-width: 860px; font-size: clamp(30px, 3.1vw, 58px); line-height: 1.08; }
.catalog-page .quote-banner p:not(.eyebrow) { max-width: 760px; margin-bottom: 28px; font-size: clamp(12px, .82vw, 16px); }
.catalog-page .quote-banner .button { width: min(350px, 100%); min-height: 60px; padding-inline: 30px; justify-content: space-between; font-size: clamp(11px, .75vw, 15px); }
.catalog-page .quote-image { position: absolute; z-index: 1; top: 0; right: 0; width: 51%; height: 100%; overflow: hidden; clip-path: url(#quoteImageClip); }
.catalog-page .quote-image.reveal.is-visible { clip-path: url(#quoteImageClip) !important; }
.catalog-page .quote-image img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 38%; transform: scale(1.08); transform-origin: center center; filter: saturate(.88); }
.catalog-page .quote-curve { position: absolute; z-index: 2; top: 0; right: 0; width: 51%; height: 100%; overflow: visible; pointer-events: none; }
.catalog-page .quote-curve path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.catalog-page .quote-curve-white { stroke: rgba(255,255,255,.98); stroke-width: 14; }
.catalog-page .quote-curve-blue { stroke: #8bb8ff; stroke-width: 7; }

@media (min-width: 821px) {
  .catalog-page .floating-whatsapp,
  .catalog-page .floating-quote {
    position: fixed;
    right: 25px;
    z-index: 90;
    display: flex !important;
    width: auto !important;
    min-width: 132px;
    min-height: 54px;
    padding: 0 18px;
    align-items: center;
    gap: 9px;
    color: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 13px 30px rgba(6, 27, 79, .22);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: opacity .25s ease, transform .25s ease, background .2s ease, box-shadow .2s ease;
  }
  .catalog-page .floating-whatsapp { bottom: 88px; background: #16b65b; }
  .catalog-page .floating-quote { bottom: 151px; background: var(--blue); }
  .catalog-page .floating-whatsapp.visible,
  .catalog-page .floating-quote.visible { opacity: 1; pointer-events: auto; transform: none; }
  .catalog-page .floating-whatsapp:hover { background: #129c4b; box-shadow: 0 16px 36px rgba(0, 115, 52, .3); }
  .catalog-page .floating-quote:hover { background: var(--navy); }
  .catalog-page .floating-whatsapp > svg,
  .catalog-page .floating-quote > svg { width: 21px; height: 21px; }
  .catalog-page .floating-whatsapp > span,
  .catalog-page .floating-quote > span {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
  }
}

.catalog-page .footer { padding: 55px 0 0; color: #4f5868; background: #fff; }
.catalog-page .footer-grid { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; grid-template-columns: 1.25fr .7fr .9fr 1.35fr; padding-bottom: 42px; gap: 60px; }
.catalog-page .footer-brand > img { width: 180px; filter: none; opacity: 1; }
.catalog-page .footer-brand > p { max-width: 270px; margin: 10px 0 16px; color: inherit; font-size: 12px; }
.catalog-page .footer h2 { color: var(--navy); font-size: 11px; }
.catalog-page .footer-grid > div:not(:first-child) a,
.catalog-page .footer address a,
.catalog-page .footer address p { color: inherit; font-size: 11px; }
.catalog-page .footer-bottom { display: flex; width: min(calc(100% - 48px), var(--container)); min-height: 50px; margin-inline: auto; padding: 0; align-items: center; justify-content: space-between; color: #747b87; border-top: 1px solid #e5e8ed; font-size: 9px; text-align: left; }

@media (max-width: 820px) {
  .catalog-page .site-header, .catalog-page .site-header.scrolled { height: 74px; }
  .catalog-page .header-inner { width: min(calc(100% - 32px), var(--container)); }
  .catalog-page .brand { width: 180px; height: 100%; gap: 8px; }
  .catalog-page .brand .brand-mark { width: 58px; }
  .catalog-page .brand-type strong { width: 82px; max-width: 82px; font-size: 11px; line-height: 1.2; text-transform: uppercase; white-space: normal; }
  .catalog-page .brand-type small { display: none; }
  .catalog-page .desktop-nav, .catalog-page .header-phone { display: none; }
  .catalog-page .menu-toggle { display: flex; width: 44px; height: 44px; margin-left: auto; padding: 0; align-items: center; justify-content: center; color: var(--ink); background: transparent; }
  .catalog-page .menu-toggle svg { width: 27px; }
  .catalog-page .menu-toggle .close-icon { display: none; }
  .catalog-page .menu-toggle[aria-expanded="true"] .menu-icon { display: none; }
  .catalog-page .menu-toggle[aria-expanded="true"] .close-icon { display: block; }
  .catalog-page .mobile-menu { position: fixed; inset: 74px 0 auto; display: block; max-height: 0; overflow: hidden; padding: 0; background: rgba(255,255,255,.985); box-shadow: 0 18px 30px rgba(5,27,79,.12); transition: max-height .35s ease; }
  .catalog-page .mobile-menu.open { max-height: calc(100vh - 74px); }
  .catalog-page .mobile-menu nav { display: flex; padding: 20px; flex-direction: column; }
  .catalog-page .mobile-menu a { display: flex; min-height: 50px; padding: 0 8px; align-items: center; color: var(--navy); border-bottom: 1px solid #edf0f4; font-size: 12px; font-weight: 600; text-transform: uppercase; }
  .catalog-page .catalog-hero, .catalog-page .hero-content { min-height: 590px; }
  .catalog-page .hero-content { padding-top: 70px; }
  .catalog-page .hero-media img { transform: scale(1.18); object-position: 58% 42%; }
  .catalog-page .quote-banner { width: calc(100% - 34px); aspect-ratio: auto; }
  .catalog-page .quote-banner > div:first-child { width: 100%; height: auto; padding: 35px 24px 30px; }
  .catalog-page .quote-image { position: relative; width: 100%; height: 240px; clip-path: none; }
  .catalog-page .quote-image img { transform: scale(1.08); }
  .catalog-page .quote-curve { top: auto; right: 0; bottom: 210px; width: 100%; height: 130px; }
  .catalog-page .quote-curve-white { stroke-width: 11; }
  .catalog-page .quote-curve-blue { stroke-width: 5; }
  .catalog-page .floating-whatsapp,
  .catalog-page .floating-quote { right: 14px; z-index: 90; }
  .catalog-page .floating-whatsapp { bottom: 82px; }
  .catalog-page .floating-quote { bottom: 148px; }
  .catalog-page .footer { padding-top: 36px; color: rgba(255,255,255,.78); background: linear-gradient(rgba(3,20,48,.97),rgba(3,20,48,.99)), url("recursos/imagenes/productos/acero-refuerzo.png") center/cover no-repeat; }
  .catalog-page .footer-grid { width: min(calc(100% - 48px), var(--container)); grid-template-columns: repeat(3, 1fr); padding-bottom: 27px; gap: 26px 14px; }
  .catalog-page .footer-brand { display: grid; grid-column: 1 / 4; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid rgba(255,255,255,.12); }
  .catalog-page .footer-brand > img { width: 150px; filter: brightness(0) invert(1); }
  .catalog-page .footer-brand > p { display: none; }
  .catalog-page .footer h2 { color: #fff; font-size: 9px; }
  .catalog-page .footer-grid > div:not(:first-child) a,
  .catalog-page .footer address a,
  .catalog-page .footer address p { color: rgba(255,255,255,.72); font-size: 7px; }
  .catalog-page .footer address svg { color: #fff; }
  .catalog-page .footer-bottom { width: min(calc(100% - 48px), var(--container)); min-height: 55px; color: rgba(255,255,255,.57); border-top-color: rgba(255,255,255,.1); font-size: 7px; }
  .catalog-modal-grid { grid-template-columns: 1fr; }
  .catalog-modal-grid > img { min-height: 200px; max-height: 230px; }
  .catalog-modal-grid > div { padding: 30px 24px 32px; }
  .catalog-modal-grid h2 { font-size: 27px; }
}

/* Precedencia final: estos valores pertenecen al catálogo y se aplican después del shell compartido. */
.catalog-page .floating-whatsapp, .catalog-page .floating-quote { display: none !important; }
@media (min-width: 821px) {
  .catalog-page .catalog-hero { min-height: 560px; }
  .catalog-page .hero-content { width: min(1380px, calc(100% - 96px)); min-height: 560px; padding: 74px 0 142px; }
  .catalog-page .hero-copy-block { position: relative; z-index: 3; width: 49%; }
  .catalog-page .hero-content h1 { max-width: 690px; margin: 0; font-size: clamp(58px, 5.2vw, 86px); line-height: .93; }
  .catalog-page .hero-copy { max-width: 430px; margin: 24px 0; font-size: 15px; line-height: 1.55; }
  .catalog-page .hero-copy { padding-top: 0; }
  .catalog-page .hero-media { inset: 0 0 0 32%; }
  .catalog-page .hero-media img { object-position: 57% 43%; transform: none; }
  .catalog-page .catalog-benefits { right: 50%; bottom: 78px; width: min(930px, calc(100% - 96px)); transform: translateX(50%); }
  .catalog-page .hero-wave { height: 118px; }
  .catalog-page .fabrication-strip { height: 152px; min-height: 152px; }
  .catalog-page .fabrication-photo { height: 100%; }
}

/* Última capa del catálogo: evita que las reglas heredadas del primer layout
   vuelvan a sacar los beneficios o el botón de fabricación de su caja. */
@media (min-width: 821px) {
  .catalog-page main#contenido { width: 100%; zoom: 1.2; }
  .catalog-page .catalog-hero, .catalog-page .hero-content { min-height: 445px; }
  .catalog-page .hero-content { padding-top: 78px; padding-bottom: 112px; }
  .catalog-page .hero-copy-block { width: 55%; }
  .catalog-page .catalog-benefits { position: relative; right: auto; bottom: auto; width: min(1120px, calc(100% - 96px)); min-height: 92px; margin: -30px auto 28px; padding: 22px 30px; transform: none; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: 0 12px 28px rgba(8, 31, 74, .08); }
  .catalog-page .catalog-benefits article { min-height: 48px; padding-inline: 22px; }
  .catalog-page .catalog-benefits article:first-child { padding-left: 0; }
  .catalog-page .catalog-benefits article:last-child { padding-right: 0; }
  .catalog-page .category-card, .catalog-page .market-product, .catalog-page .fabrication-strip, .catalog-page .help-strip { border-radius: 0; }
  .catalog-page .fabrication-strip { height: auto; min-height: 176px; }
  .catalog-page .fabrication-copy { display: grid; grid-template-columns: minmax(0, 1fr) 205px; grid-template-rows: auto auto auto 1fr; column-gap: 28px; padding: 18px 30px; }
  .catalog-page .fabrication-copy .eyebrow { grid-column: 1; grid-row: 1; }
  .catalog-page .fabrication-copy h2 { grid-column: 1; grid-row: 2; }
  .catalog-page .fabrication-copy > p:not(.eyebrow) { grid-column: 1; grid-row: 3; }
  .catalog-page .fabrication-features { grid-column: 1; grid-row: 4; align-self: end; }
  .catalog-page .fabrication-copy .button { grid-column: 2; grid-row: 1 / -1; align-self: center; width: 100%; min-width: 0; margin-top: 0; border-radius: 0; }
}

.catalog-page .category-generated-icon { width: 32px; height: 32px; display: block; background-image: url("recursos/imagenes/iconos/categorias-manamat.png"); background-repeat: no-repeat; background-size: 400% 200%; background-position: calc(var(--icon-col) * 33.333333%) calc(var(--icon-row) * 100%); }
.catalog-page .category-icon { overflow: hidden; border-radius: 50%; }
.catalog-page .catalog-modal-gallery { display: flex; min-height: 360px; flex-direction: column; background: #f0f2f5; }
.catalog-page .catalog-modal-gallery > img { min-height: 0; flex: 1; }
.catalog-page .catalog-product-thumbs { display: flex; gap: 7px; padding: 9px; overflow-x: auto; background: #fff; }
.catalog-page .catalog-product-thumb { width: 46px; height: 46px; flex: 0 0 auto; padding: 0; overflow: hidden; border: 1px solid #dce5f1; border-radius: 0; background: #f0f2f5; opacity: .65; }
.catalog-page .catalog-product-thumb.is-active, .catalog-page .catalog-product-thumb:hover { border-color: var(--blue); opacity: 1; }
.catalog-page .catalog-product-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 820px) {
  .catalog-page .catalog-benefits { position: relative; right: auto; bottom: auto; width: calc(100% - 34px); margin: -22px auto 22px; padding: 18px 14px; transform: none; grid-template-columns: repeat(2, 1fr); background: #fff; box-shadow: 0 10px 24px rgba(8, 31, 74, .07); }
  .catalog-page .catalog-benefits article { padding: 0 10px; }
  .catalog-page .catalog-benefits article:nth-child(odd) { padding-left: 0; }
  .catalog-page .catalog-benefits article:nth-child(even) { padding-right: 0; }
  .catalog-page .catalog-hero, .catalog-page .hero-content { min-height: 590px; }
  .catalog-page .fabrication-strip, .catalog-page .category-card, .catalog-page .market-product, .catalog-page .help-strip { border-radius: 0; }
  .catalog-page .fabrication-copy .button { border-radius: 0; }
}

/* Tipografía compartida con la web principal. */
.catalog-page,
.catalog-page button,
.catalog-page input,
.catalog-page select,
.catalog-page textarea { font-family:"Montserrat", sans-serif; }
.catalog-page { font-weight:300; line-height:1.65; -webkit-font-smoothing:antialiased; }
.catalog-page .eyebrow { font-size:12px; font-weight:700; letter-spacing:.08em; }
.catalog-page .hero-content h1 { font-weight:500; letter-spacing:-.035em; }
.catalog-page .hero-content h1 strong { font-weight:800; }
.catalog-page .hero-copy { font-size:15px; font-weight:300; line-height:1.7; }
.catalog-page .center-heading h2,
.catalog-page .popular-section .section-heading h2,
.catalog-page .catalog-modal-grid h2,
.catalog-page .cart-header h2 { font-weight:500; }
.catalog-page .category-info h3,
.catalog-page .market-product h3 { font-weight:700; }
.catalog-page .market-brand,
.catalog-page .catalog-link,
.catalog-page .button,
.catalog-page .help-cta strong { font-weight:700; }
.catalog-page .market-product-bottom strong { font-weight:500; }

/* Capa de corrección definitiva del catálogo: queda al final para ganar a reglas heredadas. */
/* E-commerce táctil: conserva el azul industrial de Manamat y suma profundidad controlada. */
.catalog-page .catalog-browser-tools {
  position: relative;
  overflow: visible;
  border: 1px solid #c9dbf2 !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 100%) !important;
  box-shadow: 0 14px 28px rgba(12, 57, 130, .10), inset 0 1px 0 rgba(255,255,255,.92) !important;
}
.catalog-page .catalog-browser-search,
.catalog-page .catalog-filter-field select,
.catalog-page .catalog-filter-reset {
  border-radius: 11px !important;
  background: rgba(255,255,255,.94) !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.catalog-page .catalog-browser-search:focus-within,
.catalog-page .catalog-filter-field select:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(16,104,241,.13), 0 8px 15px rgba(12,57,130,.08) !important;
}
.catalog-page .catalog-filter-reset:hover { color:#fff; border-color:var(--blue); background:var(--blue) !important; box-shadow:0 8px 16px rgba(16,104,241,.2); transform:translateY(-1px); }
.catalog-page .fabrication-strip,
.catalog-page .help-strip {
  border-radius: 24px !important;
  box-shadow: 0 18px 34px rgba(4, 30, 85, .15), 0 4px 10px rgba(7, 48, 125, .10) !important;
}
.catalog-page .fabrication-copy .button { border-radius: 12px !important; transition:transform .22s ease, box-shadow .22s ease; }
.catalog-page .fabrication-copy .button:hover { transform:translateY(-2px); box-shadow:0 10px 20px rgba(0,0,0,.2); }
.catalog-page .help-cta { border-radius: 14px !important; }
.catalog-page .category-card {
  border-radius: 0 25px 0 25px !important;
  box-shadow: 0 11px 22px rgba(10, 48, 111, .10), 0 2px 4px rgba(8,32,77,.07) !important;
  transform-style: preserve-3d;
  transition: transform .24s cubic-bezier(.2,.75,.25,1), box-shadow .24s ease, border-color .2s ease;
}
.catalog-page .category-image { border-radius: 0 24px 0 0; }
.catalog-page .category-image img { transition: transform .45s cubic-bezier(.2,.75,.25,1), filter .3s ease; }
.catalog-page .market-product {
  position: relative;
  border-color: #d7e1ef !important;
  box-shadow: 0 14px 26px rgba(10, 48, 111, .13), 0 3px 7px rgba(6,35,90,.10) !important;
  transform-style: preserve-3d;
  transition: transform .24s cubic-bezier(.2,.75,.25,1), box-shadow .24s ease, border-color .2s ease;
}
.catalog-page .market-product.is-tilting,
.catalog-page .category-card.is-tilting {
  transform: perspective(1000px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(-6px) !important;
  box-shadow: 0 26px 38px rgba(8, 42, 101, .20), 0 7px 13px rgba(6,35,90,.10) !important;
}
@media (hover:hover) and (pointer:fine) {
  .catalog-page .market-product:hover,
  .catalog-page .category-card:hover { border-color:#97bbef !important; transform:translateY(-6px); box-shadow:0 24px 36px rgba(8,42,101,.18), 0 6px 12px rgba(6,35,90,.10) !important; }
  .catalog-page .market-product:hover .market-product-image img,
  .catalog-page .category-card:hover .category-image img { transform:scale(1.055); filter:saturate(1.08) contrast(1.03); }
  .catalog-page .category-card:hover .category-arrow { transform:translateX(3px); box-shadow:0 7px 13px rgba(16,104,241,.28); }
}
.catalog-page .category-arrow { transition:transform .2s ease, box-shadow .2s ease; }
.catalog-page .catalog-motion-pending { opacity:0; transform:translateY(16px); }
.catalog-page .catalog-motion-pending.is-motion-visible { animation:catalog-rise .32s cubic-bezier(.2,.75,.25,1) var(--motion-delay,0ms) both; }
@keyframes catalog-rise { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.catalog-page .market-product.catalog-motion-pending {
  opacity:0;
  transform:perspective(900px) translateY(28px) scale(.955) rotateX(7deg);
  filter:blur(7px);
}
.catalog-page .market-product.catalog-motion-pending.is-motion-visible {
  animation:product-card-arrival .62s cubic-bezier(.16,.82,.24,1) var(--motion-delay,0ms) both;
}
.catalog-page .market-product.catalog-motion-pending .market-product-image::before {
  position:absolute;
  z-index:2;
  inset:0;
  content:"";
  background:linear-gradient(108deg, var(--navy), var(--blue) 58%, #77bbff);
  transform:scaleX(1);
  transform-origin:right center;
}
.catalog-page .market-product.catalog-motion-pending.is-motion-visible .market-product-image::before {
  animation:product-image-reveal .58s cubic-bezier(.76,0,.24,1) calc(var(--motion-delay,0ms) + 80ms) both;
}
@keyframes product-card-arrival {
  0% { opacity:0; filter:blur(7px); transform:perspective(900px) translateY(28px) scale(.955) rotateX(7deg); }
  58% { opacity:1; filter:blur(0); transform:perspective(900px) translateY(-4px) scale(1.008) rotateX(0); }
  100% { opacity:1; filter:blur(0); transform:perspective(900px) translateY(0) scale(1) rotateX(0); }
}
@keyframes product-image-reveal { from { transform:scaleX(1); } to { transform:scaleX(0); } }

.catalog-page .catalog-product-modal { width:min(1060px, calc(100% - 34px)); border-radius:30px !important; overflow:hidden; box-shadow:0 30px 86px rgba(3,20,62,.42) !important; }
.catalog-page .catalog-modal-grid { grid-template-columns:minmax(390px, 46%) minmax(0, 1fr); min-height:560px; }
.catalog-page .catalog-modal-grid > .catalog-modal-gallery { padding:0 !important; }
.catalog-page .catalog-modal-gallery { position:relative; min-height:560px; overflow:hidden; background:#eaf0f8; }
.catalog-page .catalog-modal-gallery > img { width:100%; height:100%; min-height:560px; object-fit:cover; transition:opacity .22s ease, transform .36s cubic-bezier(.2,.75,.25,1); }
.catalog-page .catalog-modal-gallery:hover > img { transform:scale(1.025); }
.catalog-page .catalog-gallery-nav { position:absolute; z-index:4; top:50%; width:44px; height:44px; display:grid; place-items:center; padding:0; border:1px solid rgba(255,255,255,.8); border-radius:50%; color:var(--navy); background:rgba(255,255,255,.92); box-shadow:0 8px 18px rgba(3,20,62,.18); font-family:"Montserrat",sans-serif !important; font-size:24px; line-height:1; transform:translateY(-50%); transition:color .2s ease, background .2s ease, transform .2s ease; }
.catalog-page .catalog-gallery-nav:hover { color:#fff; background:var(--blue); transform:translateY(-50%) scale(1.08); }
.catalog-page .catalog-gallery-nav[hidden] { display:none !important; }
.catalog-page .catalog-gallery-prev { left:18px; }
.catalog-page .catalog-gallery-next { right:18px; }
.catalog-page .catalog-gallery-count { position:absolute; z-index:4; right:18px; bottom:18px; padding:5px 10px; border-radius:999px; color:#fff; background:rgba(3,20,62,.72); font-size:10px; font-weight:700; letter-spacing:.04em; }
.catalog-page .catalog-product-thumbs { display:none !important; }

@media (max-width:820px) {
  .catalog-page .catalog-browser-tools { border-radius:15px !important; }
  .catalog-page .catalog-browser-search,
  .catalog-page .catalog-filter-trigger,
  .catalog-page .catalog-view-toggle button,
  .catalog-page .catalog-filter-field select,
  .catalog-page .catalog-filter-reset { border-radius:9px !important; }
  .catalog-page .fabrication-strip,
  .catalog-page .help-strip { border-radius:18px !important; }
  .catalog-page .category-card { border-radius:0 17px 0 17px !important; }
  .catalog-page .category-image { border-radius:0 16px 0 0; }
  .catalog-page .catalog-product-modal { width:calc(100% - 22px); border-radius:22px !important; }
  .catalog-page .catalog-modal-grid { grid-template-columns:1fr; min-height:0; }
  .catalog-page .catalog-modal-gallery,
  .catalog-page .catalog-modal-gallery > img { min-height:330px; height:330px; }
  .catalog-page .catalog-gallery-nav { width:38px; height:38px; font-size:21px; }
  .catalog-page .catalog-gallery-prev { left:12px; }
  .catalog-page .catalog-gallery-next { right:12px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-page .catalog-motion-pending { opacity:1; transform:none; }
  .catalog-page .catalog-motion-pending.is-motion-visible { animation:none; }
  .catalog-page .market-product,
  .catalog-page .category-card,
  .catalog-page .fabrication-strip,
  .catalog-page .help-strip,
  .catalog-page .market-product-image img,
  .catalog-page .category-image img { transition:none !important; }
}
.catalog-page,
.catalog-page :is(h1,h2,h3,h4,p,a,span,strong,small,label,button,input,select,textarea) {
  font-family:"Montserrat", sans-serif !important;
  font-weight:300 !important;
}
/* El navbar conserva el contraste tipográfico de la web principal. */
.catalog-page .desktop-nav a,
.catalog-page .header-phone,
.catalog-page .mobile-menu a,
.catalog-page .menu-toggle {
  font-family:"Montserrat", sans-serif !important;
  font-weight:700 !important;
}
@media (max-width:820px) {
  /* Escala visual equivalente a 120 %, sin reducir el ancho útil ni crear
     desplazamiento horizontal. El zoom CSS encogía el lienzo antes de ampliarlo. */
  .catalog-page main#contenido {
    width:100% !important;
    zoom:1;
  }
  .catalog-page .categories-section,
  .catalog-page .popular-section,
  .catalog-page .brands-section,
  .catalog-page .fabrication-strip,
  .catalog-page .help-strip { width:calc(100% - 34px) !important; }
  .catalog-page .category-grid { gap:13px !important; }
  .catalog-page .category-card { grid-template-columns:42% minmax(0, 1fr) !important; }
  .catalog-page .category-image { min-height:152px; height:auto !important; }
  .catalog-page .category-info { min-height:150px; padding:28px 17px 15px 18px !important; }
  .catalog-page .category-info h3 { font-size:12px; }
  .catalog-page .category-info p { font-size:9px; line-height:1.45; }
  .catalog-page .market-product-image { height:142px; }
  .catalog-page .market-product-info { min-height:142px; padding:12px; }
}
.catalog-page .hero-wave-line { display: none !important; }
.catalog-page .hero-wave > path:first-child { stroke: none !important; }
.catalog-page .hero-copy-block.reveal,
.catalog-page .hero-copy-block.reveal.is-visible {
  overflow: visible !important;
  clip-path: none !important;
}
.catalog-page .catalog-search-wrap { position: relative; z-index: 50 !important; }
.catalog-page .catalog-search-panel {
  position: absolute !important;
  top: calc(100% + 9px) !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
  z-index: 500 !important;
  width: min(760px, calc(100vw - 48px)) !important;
  max-height: min(500px, calc(100vh - 150px)) !important;
  transform: none !important;
}
.catalog-page .catalog-benefits::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  z-index: -1;
  top: -3px !important;
  bottom: -3px !important;
  left: 50% !important;
  right: auto !important;
  width: 100vw !important;
  transform: translateX(-50%);
  background: #fff !important;
  pointer-events: none;
}
@media (min-width: 821px) {
  .catalog-page .popular-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    overflow: visible !important;
    padding: 0;
  }
  .catalog-page .market-product { min-width: 0; width: auto; flex: none; border-radius: 0 !important; }
  .catalog-page .market-product-image { height: 158px; }
  .catalog-page .market-product-info { min-height: 136px; }
}
@media (min-width: 821px) and (max-width: 1180px) {
  .catalog-page .popular-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.catalog-page .catalog-browser-tools {
  padding: 14px;
  grid-template-columns: minmax(280px, 2.1fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px;
  border-color: #cfdbeb;
  background: linear-gradient(90deg, rgba(16,104,241,.045), transparent 38%), #f8fbff;
  box-shadow: inset 3px 0 0 var(--blue);
}
.catalog-page .catalog-browser-search,
.catalog-page .catalog-filter-field select { border-color: #cddbea; font-family: "Montserrat", sans-serif !important; font-weight: 300; }
.catalog-page .catalog-browser-search:focus-within,
.catalog-page .catalog-filter-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16,104,241,.10); }
.catalog-page .catalog-filter-field span,
.catalog-page .catalog-filter-reset { font-family: "Montserrat", sans-serif !important; font-weight: 600; }
.catalog-page .catalog-filter-field span { color: #4f6386; letter-spacing: .06em; }
.catalog-page .catalog-filter-reset { min-width: 106px; }
.catalog-page,
.catalog-page button,
.catalog-page input,
.catalog-page select,
.catalog-page textarea { font-family: "Montserrat", sans-serif !important; }
@media (max-width: 820px) {
  .catalog-page .catalog-search-panel { width: calc(100vw - 32px) !important; max-height: min(530px, calc(100vh - 145px)) !important; grid-template-columns: 1fr; }
  .catalog-page .catalog-browser-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; box-shadow: inset 2px 0 0 var(--blue); }
}
