:root {
  --red: #E32C3B;
  --red-dark: #c42532;
  --brown: #55403B;
  --brown-2: #6d5750;
  --sand: #C6B9A9;
  --sand-2: #E2DED6;
  --yellow: #EAA809;
  --ink: #241f1d;
  --muted: #6b625e;
  --white: #fff;
  --shadow: 0 18px 42px rgba(36, 31, 29, .16);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: "Google Sans Flex", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  width: 100%;
  padding: 0 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 3px 14px rgba(36, 31, 29, .12);
  backdrop-filter: blur(10px);
}

.brand {
  position: relative;
  display: grid;
  place-items: center;
  width: 142px;
  height: 104px;
  margin-bottom: -10px;
  background: var(--red);
  box-shadow: var(--shadow);
  z-index: 2;
}

.brand-mark {
  width: 84%;
  height: 72%;
  background: var(--white);
  mask: url("../logo/logo-vidrieria-del-sur.svg") center / contain no-repeat;
  -webkit-mask: url("../logo/logo-vidrieria-del-sur.svg") center / contain no-repeat;
}

.menu-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  margin-left: auto;
  position: relative;
  z-index: 3;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.site-nav {
  position: fixed;
  inset: 72px 12px auto 12px;
  display: none;
  flex-direction: column;
  padding: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.site-nav.open { display: flex; }

.site-nav a {
  min-height: 48px;
  padding: 14px 16px;
  text-decoration: none;
  font-weight: 700;
  color: var(--brown);
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--red);
  background: var(--sand-2);
}

.hero {
  position: relative;
  display: grid;
  width: min(var(--max), 100%);
  min-height: 680px;
  margin: 0 auto;
  background: var(--sand);
  overflow: visible;
}

.hero-media {
  position: absolute;
  inset: 0;
  min-height: 0;
  background-image: linear-gradient(90deg, rgba(229, 223, 212, .55), rgba(229, 223, 212, .08)), url("../img/hero/hero-vidrieria-del-sur.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 18px;
  width: min(360px, 48%);
  margin: 210px 0 0 52px;
  padding: 0;
  background: transparent;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.modal-kicker {
  margin: 0;
  color: var(--red);
  font-weight: 800;
  letter-spacing: .02em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2.05rem, 8.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--brown);
  overflow-wrap: anywhere;
}

.slogan {
  position: relative;
  max-width: 360px;
  margin: 0;
  line-height: .98;
  color: var(--brown);
  text-align: center;
}

.slogan::before {
  content: "”";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  transform: translate(-50%, -48%);
  font-size: 12rem;
  line-height: .7;
  color: rgba(255, 255, 255, .38);
  font-weight: 800;
}

.slogan span {
  display: block;
  font-weight: 800;
}

.slogan span:first-child {
  color: var(--red);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.slogan span:nth-of-type(2) {
  font-size: clamp(1.55rem, 3vw, 2.7rem);
}

.slogan small {
  display: block;
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  color: var(--brown);
}

.slogan span:last-child {
  color: var(--red);
  font-size: clamp(1.02rem, 1.8vw, 1.6rem);
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: #403735;
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-actions,
.center-action {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero .hero-actions {
  align-self: start;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  border-radius: 0;
}

.button.primary {
  background: var(--yellow);
  color: #2c251b;
}

.button.secondary {
  background: var(--brown);
  color: var(--white);
}

.button.ghost {
  border-color: var(--brown);
  color: var(--brown);
  background: rgba(228, 223, 215, .72);
}

.intro-band {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 28px));
  margin: -78px auto 0;
  background: var(--sand-2);
  box-shadow: var(--shadow);
  text-align: center;
}

.intro-band::before {
  content: "40";
  position: absolute;
  left: 12px;
  top: 30px;
  color: rgba(255,255,255,.66);
  font-size: 8.2rem;
  line-height: .72;
  font-weight: 800;
}

.intro-band strong {
  display: block;
  position: relative;
  z-index: 1;
  width: calc(100% - 120px);
  margin-left: auto;
  transform: translateY(-50%);
  padding: 11px 18px;
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-size: 1.05rem;
}

.intro-band p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 38px 30px;
  color: var(--brown);
  line-height: 1.55;
}

.intro-band span {
  position: absolute;
  left: -46px;
  right: 160px;
  bottom: -18px;
  z-index: 2;
  display: block;
  padding: 10px 18px;
  background: var(--brown);
  color: var(--sand-2);
  font-size: 1.18rem;
}

.section {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 54px 0;
}

.services-preview {
  width: min(var(--max), 100%);
  position: relative;
  padding: 0;
  background: var(--sand-2);
}

.product-lines {
  width: min(var(--max), 100%);
  margin: 0 auto;
  background: var(--red);
  color: #fff;
  padding: 104px 0 0;
}

.home-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
}

.home-tile {
  display: grid;
  grid-template-rows: auto auto;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
}

.home-tile .tile-top {
  display: grid;
  place-items: center;
  align-content: start;
  min-height: 250px;
  padding: 54px 18px 22px;
  text-align: center;
  border-right: 5px solid rgba(255,255,255,.88);
}

.home-tile:last-child .tile-top,
.home-tile:last-child .tile-media {
  border-right: 0;
}

.product-tile .tile-top {
  background: var(--red);
}

.service-tile .tile-top {
  min-height: 220px;
  padding-top: 38px;
  background: var(--sand-2);
  color: var(--brown);
}

.home-tile strong {
  display: block;
  margin-top: 14px;
  font-size: 1.55rem;
  line-height: 1.05;
  font-weight: 800;
}

.home-tile em {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  min-height: 34px;
  margin-top: 16px;
  background: var(--yellow);
  color: #2b2925;
  font-style: normal;
  font-size: 1.02rem;
  font-weight: 800;
}

.tile-media {
  display: block;
  width: 100%;
  height: 390px;
  border-right: 5px solid rgba(255,255,255,.88);
  overflow: hidden;
}

.home-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  transform-origin: center;
  will-change: transform;
}

.home-tile:hover img {
  transform: scale(1.04);
}

.hero,
.product-lines,
.services-preview,
.contact-footer,
.catalog-layout {
  transform: translateY(var(--motion-y, 0));
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .product-lines,
  .services-preview,
  .contact-footer,
  .catalog-layout {
    transform: none !important;
    will-change: auto;
  }
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  color: var(--brown);
  font-size: clamp(1.75rem, 6vw, 3.2rem);
  line-height: 1.02;
}

.line-grid,
.service-grid {
  display: grid;
  gap: 0;
}

.line-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  justify-items: center;
  min-height: 270px;
  padding: 48px 18px 32px;
  text-decoration: none;
  color: var(--white);
  text-align: center;
  border-right: 5px solid rgba(255,255,255,.88);
}

.line-card.red { background: var(--red); }
.line-card.brown { background: var(--red); }
.line-card:last-child { border-right: 0; }

.line-icon {
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  background: var(--white);
}

.line-icon::before {
  content: "";
  display: block;
  width: 88px;
  height: 88px;
  background: var(--red);
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
  transition: transform .24s ease;
}

.line-card span {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
}

.line-card small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.86);
  line-height: 1.35;
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), 100%);
  margin: 0 auto;
  background: var(--white);
}

.media-strip img {
  width: 100%;
  height: clamp(230px, 34vw, 420px);
  object-fit: cover;
}

.service-grid article {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 230px;
  padding: 34px 22px;
  background: var(--sand-2);
  border: 0;
  border-right: 5px solid #fff;
  text-align: center;
}

.service-grid article:last-child { border-right: 0; }

.service-icon {
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  background: var(--red);
}

.service-icon::before {
  content: "";
  display: block;
  width: 88px;
  height: 88px;
  background: var(--white);
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
  transition: transform .24s ease;
}

.service-tile-install .service-icon::before {
  width: 101px;
  height: 101px;
}

.service-tile-advice .service-icon::before,
.service-tile-maintenance .service-icon::before {
  width: 97px;
  height: 97px;
}

.service-grid h3,
.service-detail-grid h2 {
  margin-bottom: 0;
  color: var(--brown);
}

.section-ribbon {
  display: block;
  width: min(650px, 80%);
  position: relative;
  z-index: 2;
  margin: -24px auto 0;
  padding: 10px 18px;
  background: var(--brown);
  color: var(--sand-2);
  text-align: center;
  font-size: 1.22rem;
  font-weight: 500;
}

.service-grid p,
.service-detail-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-media-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.service-media-strip img {
  width: 100%;
  height: clamp(230px, 34vw, 420px);
  object-fit: cover;
}

.page-hero {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 72px 0 30px;
}

.page-hero.compact {
  position: relative;
  width: min(var(--max), 100%);
  min-height: 560px;
  display: grid;
  align-items: end;
  padding: 160px 52px 110px;
  background: var(--sand) url("../img/hero/hero-vidrieria-del-sur.jpg") center / cover no-repeat;
  overflow: visible;
}

.page-hero.compact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(198,186,170,.92) 0 38%, rgba(198,186,170,.38) 65%, rgba(198,186,170,.10));
}

.page-hero > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.page-hero.compact > div {
  position: static;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.05rem;
}

.page-slogan {
  position: relative;
  z-index: 1;
  position: relative;
  width: min(360px, 46vw);
  margin: 0 0 82px;
  line-height: .98;
  color: var(--brown);
  text-align: center;
}

.page-slogan::before {
  content: "”";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  transform: translate(-50%, -48%);
  font-size: 11rem;
  line-height: .7;
  color: rgba(255,255,255,.34);
  font-weight: 800;
}

.page-slogan span {
  display: block;
  font-weight: 800;
}

.page-slogan span:first-child {
  color: var(--brown);
  font-size: clamp(2.35rem, 4vw, 4rem);
}

.page-slogan small {
  display: block;
  font-size: 1.1rem;
}

.page-slogan span:last-child {
  color: var(--red);
  font-size: clamp(1rem, 1.7vw, 1.45rem);
}

.page-intro {
  position: absolute;
  left: 50%;
  bottom: -86px;
  z-index: 2;
  width: min(800px, 78vw);
  transform: translateX(-50%);
  background: rgba(228,223,215,.95);
  text-align: center;
}

.page-intro strong {
  display: block;
  width: calc(100% - 150px);
  margin-left: auto;
  transform: translateY(-50%);
  padding: 10px 18px;
  background: var(--red);
  color: var(--sand-2);
  font-size: 1.25rem;
}

.page-intro p {
  margin: -4px 0 0;
  padding: 0 36px 36px;
  color: var(--brown);
  line-height: 1.55;
}

.page-intro span {
  position: absolute;
  left: -48px;
  right: 200px;
  bottom: -18px;
  padding: 10px 18px;
  background: var(--brown);
  color: var(--sand-2);
  font-size: 1.18rem;
  font-weight: 800;
}

.catalog-layout {
  display: grid;
  gap: 16px;
  width: min(var(--max), calc(100% - 28px));
  margin: 118px auto 56px;
}

.catalog-readable {
  width: min(900px, calc(100% - 28px));
  margin: 118px auto 0;
  padding: 24px 28px;
  background: var(--sand-2);
  color: var(--brown);
  line-height: 1.6;
}

.catalog-readable h2 {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.catalog-readable p {
  margin: 0 0 12px;
}

.catalog-readable ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.catalog-readable + .catalog-layout {
  margin-top: 28px;
}

.catalog-sidebar {
  position: sticky;
  top: 82px;
  z-index: 4;
  padding: 12px;
  background: var(--red);
  color: var(--white);
}

.mobile-filter-title {
  margin-bottom: 10px;
  font-weight: 800;
}

.line-filter,
.category-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  min-width: 0;
}

.line-filter::-webkit-scrollbar,
.category-filter::-webkit-scrollbar { display: none; }

.filter-button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 0;
  padding: 0 14px;
  background: rgba(255,255,255,.16);
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.catalog-line-icon {
  display: none;
}

.filter-button.active {
  background: var(--yellow);
  color: #2a231b;
}

.catalog-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  border: 2px solid #d7cfc3;
  padding: 0 15px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.category-filter {
  color: var(--brown);
}

.category-filter .filter-button {
  background: var(--white);
  border: 1px solid #ded6cb;
}

.category-filter .filter-button.active {
  border-color: var(--yellow);
  background: var(--yellow);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 0;
  padding: 0;
  text-align: left;
  background: var(--white);
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(36,31,29,.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #d7d2ca;
}

.product-card div {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.product-card h3 {
  margin: 0;
  color: var(--brown);
  font-size: 1rem;
  line-height: 1.1;
}

.product-card strong {
  color: var(--red);
  font-size: 1rem;
  line-height: 1.1;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

.catalog-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 280px;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  background:
    linear-gradient(90deg, var(--red) 0 8px, transparent 8px),
    var(--sand);
  color: var(--brown);
  box-shadow: 0 14px 34px rgba(53, 42, 36, .08);
}

.catalog-empty-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 2rem;
}

.catalog-empty h3 {
  margin: 0;
  max-width: 520px;
  color: var(--brown);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.08;
}

.catalog-empty p {
  margin: 0;
  max-width: 570px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.product-modal.open { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(198,185,169,.58);
}

.modal-card {
  position: absolute;
  inset: auto 0 0 0;
  max-height: 92svh;
  overflow: visible;
  background: var(--white);
  border: 6px solid rgba(255,255,255,.92);
}

.modal-close {
  position: absolute;
  right: -22px;
  top: -22px;
  z-index: 12;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

.modal-image {
  min-height: 320px;
  background: #ddd center / cover no-repeat;
  position: relative;
}

.modal-gallery {
  position: relative;
  display: grid;
  gap: 8px;
  background: #f7f6f2;
  overflow: hidden;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 10px 10px;
  scrollbar-width: none;
}

.modal-thumbs::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.modal-thumb {
  flex: 0 0 76px;
  border: 3px solid transparent;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.modal-thumb.active {
  border-color: var(--yellow);
}

.modal-thumb:focus-visible {
  outline: 0;
  border-color: var(--yellow);
}

.modal-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 42px;
  height: 64px;
  transform: translateY(-50%);
  border: 0;
  background: rgba(85,64,59,.92);
  color: var(--white);
  cursor: pointer;
}

.modal-arrow-prev { left: 0; }
.modal-arrow-next { right: 0; }

.modal-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.product-modal.image-zoom-open .modal-card {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.product-modal.image-zoom-open .modal-gallery {
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: 1fr;
  min-height: 0;
}

.product-modal.image-zoom-open .modal-image {
  grid-column: 1;
  background-size: contain;
  cursor: zoom-out;
}

.product-modal.image-zoom-open .modal-content,
.product-modal.image-zoom-open .modal-thumbs {
  display: none;
}

.product-modal.image-zoom-open .modal-watermark {
  left: 24px;
  bottom: 24px;
}

.product-modal.image-zoom-open .modal-arrow {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.product-modal.image-zoom-open .modal-arrow-prev {
  left: 12px;
  right: auto;
}

.product-modal.image-zoom-open .modal-arrow-next {
  left: auto;
  right: 12px;
}

.modal-watermark {
  position: absolute;
  left: 22px;
  bottom: 26px;
  z-index: 6;
  width: min(300px, 58%);
  height: 82px;
  background: rgba(255,255,255,.96);
  mask: url("../logo/logo-vidrieria-del-sur.svg") left bottom / contain no-repeat;
  -webkit-mask: url("../logo/logo-vidrieria-del-sur.svg") left bottom / contain no-repeat;
  filter:
    drop-shadow(0 2px 1px rgba(0,0,0,.72))
    drop-shadow(0 0 10px rgba(0,0,0,.48));
  pointer-events: none;
}

.modal-content {
  display: grid;
  gap: 10px;
  padding: 20px;
  min-height: 0;
  overflow: hidden;
}

.modal-content h2 {
  margin: 0;
  color: var(--brown);
  font-size: 2rem;
  line-height: 1;
}

.modal-content h2::first-letter {
  color: var(--red);
}

.modal-content h3 {
  margin: 10px 0 0;
  color: var(--red);
}

.modal-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-tags span,
.modal-tags button,
.modal-tags a {
  border: 0;
  background: var(--sand-2);
  color: var(--brown);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 800;
  font-family: inherit;
  padding: 5px 8px;
  text-decoration: none;
}

.modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.modal-tabs button {
  border: 1px solid #ded6cb;
  background: var(--white);
  color: var(--brown);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.modal-tabs button.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.modal-tabs .modal-share {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  width: 34px;
  height: 34px;
  background: var(--red);
  color: var(--white);
  padding: 0;
}

.modal-panel {
  display: none;
  color: var(--muted);
  line-height: 1.55;
}

.modal-panel.active {
  display: block;
}

.modal-panel h3,
.modal-panel h4 {
  margin: 12px 0 6px;
  color: var(--red);
}

.modal-panel ul,
.modal-panel ol {
  margin: 8px 0;
  padding-left: 22px;
}

.modal-cta {
  display: grid;
  margin-top: 10px;
  text-align: center;
}

.modal-cta strong {
  background: var(--sand-2);
  color: var(--brown);
  padding: 8px 12px;
}

.modal-whatsapp {
  display: grid;
  justify-items: center;
  gap: 6px;
  background: var(--brown);
  color: var(--white);
  padding: 12px;
  text-decoration: none;
}

.modal-whatsapp svg {
  width: 42px;
  height: 42px;
  fill: var(--white);
}

.service-detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  width: min(var(--max), 100%);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--sand-2);
}

.service-detail-card {
  position: relative;
  display: grid;
  background: #C5B8A9;
  border: 0;
  box-shadow: none;
}

.service-detail-card:nth-child(even) {
  background: var(--sand-2);
}

.service-detail-card:nth-child(odd) h2,
.service-detail-card:nth-child(odd) p {
  color: var(--brown);
}

.service-detail-card:nth-child(odd) .button {
  color: #2a231b;
}

.service-detail-card:last-child {
  border-bottom: 0;
}

body[data-page="servicios"] .service-detail-card:nth-child(3) > div {
  padding-bottom: 82px;
}

.service-detail-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--red);
}

.service-detail-card:nth-child(even)::before {
  left: auto;
  right: 0;
}

.service-detail-card figure {
  margin: 0;
  background: var(--sand);
  min-height: 100%;
  overflow: hidden;
}

.service-detail-grid img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
}

.service-detail-card > div {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 42px 44px 46px 52px;
}

.service-number {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 38px;
  background: var(--yellow);
  color: #2a231b;
  font-weight: 800;
}

.service-detail-grid h2 {
  margin: 0;
  color: var(--brown);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.service-detail-grid h2[id] {
  scroll-margin-top: 128px;
}

.service-detail-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.service-detail-grid .button {
  justify-self: start;
  margin-top: 6px;
}

body[data-page="servicios"] .intro-band {
  z-index: 4;
}

body[data-page="servicios"] .contact-footer {
  margin-top: -18px;
  z-index: 8;
}

.legal-content {
  width: min(860px, calc(100% - 28px));
  margin: 0 auto 54px;
  padding: 24px;
  background: var(--white);
  line-height: 1.65;
}

.legal-content h2 {
  color: var(--brown);
}

body[data-page="tratamiento-datos"] main {
  background: var(--sand);
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  gap: 0;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-top: 110px;
  background: var(--sand-2);
}

.legal-hero-copy {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 72px clamp(28px, 6vw, 82px);
}

.legal-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--brown);
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: .98;
}

.legal-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

.legal-hero figure,
.legal-inline-image {
  margin: 0;
  overflow: hidden;
}

.legal-hero img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 0 0;
  background: rgba(85,64,59,.18);
}

.legal-summary div {
  padding: 18px;
  background: var(--white);
}

.legal-summary dt {
  color: var(--red);
  font-weight: 800;
}

.legal-summary dd {
  margin: 5px 0 0;
  color: var(--brown);
  font-weight: 700;
}

.legal-summary a,
.legal-content a {
  color: var(--brown);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(234,168,9,.45);
  transition: color .2s ease, box-shadow .2s ease;
}

.legal-summary a:hover,
.legal-content a:hover {
  color: var(--red);
  box-shadow: inset 0 -2px 0 var(--red);
}

.legal-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 46px 0 0;
}

.legal-index {
  position: sticky;
  top: 118px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 24px;
  background: var(--red);
  color: var(--white);
}

.legal-index .eyebrow {
  color: var(--white);
}

.legal-index a {
  display: block;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.38);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.legal-index a:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.10);
}

.legal-content.full {
  width: auto;
  margin: 0 0 54px;
  padding: 0;
  background: transparent;
}

.legal-content.full section {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 34px;
  border-bottom: 1px solid rgba(85,64,59,.14);
  background: var(--sand-2);
}

.legal-content.full section:nth-of-type(even) {
  background: #f4f1eb;
}

.legal-content.full h2 {
  margin: 0;
  color: var(--brown);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.legal-content.full p,
.legal-content.full li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.legal-content.full p,
.legal-content.full ul {
  margin: 0;
}

.legal-content.full ul {
  display: grid;
  gap: 8px;
  padding-left: 1.15rem;
}

.legal-content.full strong {
  color: var(--brown);
}

.legal-number {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 34px;
  margin-bottom: 2px;
  background: var(--yellow);
  color: #181818;
  font-weight: 800;
}

.legal-inline-image img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.contact-footer {
  position: relative;
  margin-top: 0;
  background: var(--brown);
  color: var(--white);
}

.contact-ribbon {
  position: relative;
  z-index: 10;
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  transform: translateY(-50%);
  padding: 12px 16px;
  background: var(--yellow);
  color: #322820;
  text-align: center;
}

.contact-grid {
  display: grid;
  gap: 22px;
  width: min(var(--max), calc(100% - 28px));
  margin: -10px auto 0;
  padding: 28px 0 44px;
}

.contact-grid.three {
  grid-template-columns: 1fr;
}

.contact-grid h2 {
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 1.2rem;
}

.contact-grid p {
  margin-bottom: 12px;
  color: rgba(255,255,255,.84);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.contact-grid p strong {
  color: var(--yellow);
}

.schedule {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  color: rgba(255,255,255,.84);
  line-height: 1.55;
}

.schedule > strong {
  color: var(--yellow);
}

.schedule-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  column-gap: 6px;
  align-items: start;
}

.schedule-times {
  display: grid;
  justify-items: start;
  gap: 1px;
}

.schedule-times b {
  font-weight: 800;
}

.phone-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  column-gap: 6px;
  align-items: baseline;
}

.phone-row a {
  font-weight: 800;
}

.contact-grid a[href^="tel:"] {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.contact-grid a[href^="tel:"]:hover {
  color: var(--yellow);
  border-bottom-color: currentColor;
}

.phone {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white) !important;
}

.contact-form {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  transition: transform .22s ease, filter .22s ease;
}

.contact-form:hover,
.contact-form:focus-within {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.10));
}

.contact-form label {
  color: rgba(255,255,255,.88);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid var(--yellow);
  background: rgba(255,255,255,.10);
  color: var(--white);
  font: inherit;
  padding: 10px 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255,255,255,.16);
}

.contact-form textarea {
  min-height: 116px;
  resize: vertical;
}

.privacy-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 4px;
  color: rgba(255,255,255,.82);
  font-size: .82rem;
  line-height: 1.35;
}

.privacy-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--yellow);
}

.privacy-consent a {
  color: var(--yellow);
  font-weight: 800;
}

.privacy-consent.is-invalid {
  color: var(--white);
}

.privacy-consent.is-invalid input {
  box-shadow: 0 0 0 3px rgba(234, 168, 9, .45);
}

.form-status {
  min-height: 1.25em;
  margin: -2px 0 0;
  color: var(--yellow);
  font-size: .92rem;
  line-height: 1.35;
}

.form-status.success {
  color: var(--white);
}

.contact-form .is-invalid {
  box-shadow: 0 0 0 2px rgba(234, 168, 9, .36);
}

.contact-form .button {
  justify-self: end;
  width: 176px;
  min-height: 38px;
  margin-top: 4px;
  white-space: nowrap;
}

.contact-divider {
  display: none;
  background: var(--yellow);
  opacity: .9;
}

.contact-location p {
  color: rgba(255,255,255,.84);
}

.map-embed {
  width: 100%;
  height: 190px;
  border: 2px solid var(--yellow);
  transition: transform .28s ease, box-shadow .28s ease;
  transform-origin: center;
}

.map-embed:hover {
  transform: scale(1.025);
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
}

.social-links {
  display: inline-flex;
  gap: 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(85,64,59,.35);
  background: rgba(85,64,59,.10);
}

.social-icon svg,
.social-icon i {
  width: 14px;
  height: 14px;
  fill: var(--brown);
  color: var(--brown);
  font-size: 14px;
}

.copyright {
  padding: 16px 18px;
  background: var(--white);
  color: var(--brown);
  text-align: center;
  font-size: .9rem;
}

body[data-page="productos"] .copyright {
  background: var(--sand-2);
}

.copyright a {
  text-decoration: none;
}

@media (min-width: 680px) {
  .site-header {
    min-height: 84px;
    padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  }

  .brand {
    width: 240px;
    height: 170px;
    margin-bottom: -86px;
  }

  .menu-button { display: none; }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    display: grid;
    place-items: center;
    min-height: 84px;
    padding: 0 14px;
  }

  .site-nav a[data-nav="contacto"] {
    background: var(--red);
    color: var(--white);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 720px;
    width: min(var(--max), calc(100% - 28px));
    margin: 0 auto;
    position: relative;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .hero-content {
    position: relative;
    width: min(360px, 46%);
    margin-top: 250px;
    align-self: start;
    background: transparent;
    padding: 0;
  }

  .intro-band {
    margin-top: -34px;
    width: min(760px, 74vw);
  }

  .line-grid,
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 54px;
  }

  .contact-grid.three {
    grid-template-columns: 1fr 2px 1fr 2px 1fr;
    gap: 24px;
  }

  .contact-divider {
    display: block;
  }

  .catalog-layout {
    grid-template-columns: 285px 1fr;
    align-items: start;
  }

  .catalog-sidebar {
    top: 104px;
    min-height: 700px;
    padding: 44px 24px;
  }

  .line-filter {
    display: grid;
    gap: 28px;
    overflow: visible;
  }

  .line-filter .filter-button {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-height: 150px;
    padding: 0 12px;
    background: transparent;
    border-bottom: 2px solid rgba(255,255,255,.85);
    color: #fff;
    font-size: 1.22rem;
  }

  .catalog-line-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: var(--white);
    overflow: hidden;
  }

  .catalog-line-icon img {
    width: 126%;
    height: 126%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(23%) sepia(98%) saturate(2105%) hue-rotate(336deg) brightness(88%) contrast(93%);
  }

  .line-filter .filter-button.active {
    background: var(--yellow);
    color: #2a231b;
    border-bottom-color: transparent;
  }

  .catalog-main {
    gap: 18px;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .modal-card {
    inset: 50% auto auto 50%;
    width: min(980px, calc(100vw - 44px));
    height: min(720px, calc(100svh - 48px));
    max-height: none;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
  }

  .modal-close {
    position: absolute;
    right: -18px;
    top: -18px;
    bottom: auto;
  }

  .modal-image {
    min-height: 0;
    height: 100%;
  }

  .modal-gallery {
    grid-template-columns: 92px 1fr;
    align-items: stretch;
    min-height: 0;
  }

  .modal-image {
    grid-column: 2;
    grid-row: 1;
  }

  .modal-thumbs {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    align-content: start;
    max-height: 620px;
    overflow-y: auto;
    padding: 0;
  }

  .modal-content {
    align-content: start;
    max-height: 100%;
    overflow: hidden;
    padding: 26px 34px;
  }

  .modal-panel.active {
    max-height: 180px;
    overflow: hidden;
  }

  .service-detail-card {
    grid-template-columns: 42% 1fr;
  }

  .service-detail-card:nth-child(even) {
    grid-template-columns: 1fr 42%;
  }

  .service-detail-card:nth-child(even) figure {
    order: 2;
  }

  .service-detail-grid img {
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
  }
}

@media (min-width: 960px) {
  .site-header {
    min-height: 86px;
    justify-content: flex-end;
    padding: 0 calc(max(0px, (100vw - var(--max)) / 2) - 8px) 0 calc(max(0px, (100vw - var(--max)) / 2) + 338px - (126px * var(--scroll-progress, 0)));
    background: #fff;
    box-shadow: 0 3px 16px rgba(36, 31, 29, .10);
    transition: box-shadow .32s ease;
  }

  .brand {
    position: absolute;
    left: calc(max(0px, (100vw - var(--max)) / 2) - 8px);
    top: 0;
    width: calc(336px - (130px * var(--scroll-progress, 0)));
    height: calc(210px - (74px * var(--scroll-progress, 0)));
    margin: 0;
    box-shadow: 0 18px 34px rgba(36, 31, 29, .16);
    transition: box-shadow .32s ease;
    transform-origin: left top;
  }

  .brand-mark {
    width: calc(93% - (1% * var(--scroll-progress, 0)));
    height: calc(80% - (2% * var(--scroll-progress, 0)));
  }

  body.is-scrolled .site-header {
    box-shadow: 0 4px 18px rgba(36, 31, 29, .14);
  }

  body.is-scrolled .brand {
    box-shadow: 0 12px 24px rgba(36, 31, 29, .14);
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    min-width: 94px;
    min-height: 86px;
    padding: 0 15px;
    color: #241f1d;
    font-size: 1.12rem;
    font-weight: 400;
    text-transform: lowercase;
    background: transparent;
  }

  .site-nav a.active,
  .site-nav a:hover {
    background: transparent;
    color: var(--red);
  }

  .site-nav a[data-nav="contacto"] {
    min-width: 112px;
    background: var(--red);
    color: var(--white);
  }

  .site-nav a[data-nav="contacto"]:hover,
  .site-nav a[data-nav="contacto"].active {
    background: var(--red);
    color: var(--white);
  }

  body[data-page="inicio"] .hero,
  body[data-page="servicios"] .hero {
    width: min(var(--max), 100%);
    max-width: var(--max);
    min-height: 505px;
    margin: 0 auto;
    background: var(--sand);
  }

  body[data-page="inicio"] .hero-media,
  body[data-page="servicios"] .hero-media {
    background-image: url("../img/hero/hero-vidrieria-del-sur.jpg");
    background-position: center 42%;
  }

  body[data-page="inicio"] .hero-content,
  body[data-page="servicios"] .hero-content {
    width: 360px;
    margin: 232px 0 0 48px;
  }

  body[data-page="inicio"] .slogan,
  body[data-page="servicios"] .slogan {
    max-width: 340px;
    text-align: center;
  }

  body[data-page="inicio"] .slogan::before,
  body[data-page="servicios"] .slogan::before {
    content: "”";
    left: 50%;
    top: calc(72% + 30px);
    transform: translate(-50%, -50%);
    font-size: 24.3rem;
    color: rgba(255,255,255,.62);
  }

  body[data-page="inicio"] .slogan span:first-child,
  body[data-page="servicios"] .slogan span:first-child {
    font-size: 3.12rem;
    line-height: .95;
  }

  body[data-page="inicio"] .slogan span:nth-of-type(2),
  body[data-page="servicios"] .slogan span:nth-of-type(2) {
    font-size: 2.28rem;
    font-weight: 400;
    line-height: .98;
  }

  body[data-page="inicio"] .slogan small,
  body[data-page="servicios"] .slogan small {
    margin: -2px 0;
    font-size: 1.32rem;
    line-height: .9;
  }

  body[data-page="inicio"] .slogan span:last-child,
  body[data-page="servicios"] .slogan span:last-child {
    font-size: 1.32rem;
    line-height: 1;
  }

  body[data-page="inicio"] .intro-band,
  body[data-page="servicios"] .intro-band {
    width: 720px;
    margin: -56px 0 0 calc(50% - 360px);
    box-shadow: none;
    text-align: left;
    transform: none;
  }

  body[data-page="inicio"] .intro-band::before,
  body[data-page="servicios"] .intro-band::before {
    left: 24px;
    top: 50%;
    transform: translateY(-48%);
    font-size: 9.4rem;
    color: rgba(255,255,255,.76);
  }

  body[data-page="inicio"] .intro-band strong,
  body[data-page="servicios"] .intro-band strong {
    width: 635px;
    margin-left: 148px;
    transform: translateY(-50%);
    padding: 8px 18px;
    text-align: center;
    font-size: 1.15rem;
  }

  body[data-page="inicio"] .intro-band p,
  body[data-page="servicios"] .intro-band p {
    max-width: 646px;
    padding: 0 40px 45px 44px;
    font-size: 1.02rem;
    line-height: 1.34;
  }

  body[data-page="inicio"] .intro-band span,
  body[data-page="servicios"] .intro-band span {
    left: -54px;
    right: 138px;
    bottom: -18px;
    padding: 10px 16px;
    text-align: center;
    font-size: 1.16rem;
  }

  body[data-page="servicios"] .service-detail-grid {
    margin-top: -136px;
    padding-top: 0;
  }

  body[data-page="servicios"] .service-detail-card:first-child > div {
    padding-top: 206px;
  }

  body[data-page="inicio"] .product-lines {
    width: min(var(--max), 100%);
    max-width: var(--max);
    margin: -136px auto 0;
    padding-top: 156px;
  }

  body[data-page="inicio"] .service-icon::before {
    transform: scale(1.25);
  }

  body[data-page="inicio"] .home-tile:hover .service-icon::before {
    transform: scale(1.42);
  }

  body[data-page="inicio"] .product-tile .line-icon::before {
    width: 67px;
    height: 67px;
    transform: scale(1);
  }

  body[data-page="inicio"] .product-tile:nth-child(2) .line-icon::before {
    width: 60px;
    height: 60px;
  }

  body[data-page="inicio"] .product-tile:hover .line-icon::before {
    transform: scale(1.12);
  }

  body[data-page="inicio"] .section-ribbon {
    width: 650px;
    position: absolute;
    top: 0;
    left: calc(50% - 325px + 162px);
    margin: 0;
    padding: 12px 18px;
    transform: translateY(-50%);
    font-size: 1.34rem;
  }

  body[data-page="inicio"] .contact-footer,
  body[data-page="servicios"] .contact-footer {
    width: min(var(--max), 100%);
    margin: 0 auto;
  }

  body[data-page="servicios"] .contact-footer {
    margin-top: -18px;
    z-index: 8;
  }

  body[data-page="inicio"] .contact-ribbon,
  body[data-page="servicios"] .contact-ribbon {
    width: 650px;
    max-width: 72%;
    margin: 0 0 0 calc(50% - 325px - 162px);
    padding: 12px 18px;
    font-size: 1.34rem;
  }

  body[data-page="inicio"] .contact-grid,
  body[data-page="servicios"] .contact-grid {
    width: calc(100% - 96px);
    padding: 56px 0 44px;
    gap: 34px;
  }

  body[data-page="inicio"] .contact-grid.three,
  body[data-page="servicios"] .contact-grid.three {
    grid-template-columns: 1fr 2px 1.08fr 2px 1fr;
  }

  body[data-page="inicio"] .contact-grid h2,
  body[data-page="servicios"] .contact-grid h2 {
    margin-bottom: 14px;
  }

  body[data-page="inicio"] .contact-grid section,
  body[data-page="servicios"] .contact-grid section {
    min-width: 0;
  }

  body[data-page="inicio"] .contact-form-card,
  body[data-page="inicio"] .contact-location,
  body[data-page="servicios"] .contact-form-card,
  body[data-page="servicios"] .contact-location {
    display: flex;
    flex-direction: column;
  }

  body[data-page="inicio"] .contact-form,
  body[data-page="servicios"] .contact-form {
    flex: 1;
    grid-template-rows: auto 54px auto 54px auto minmax(96px, 1fr) auto auto auto;
  }

  body[data-page="inicio"] .contact-location .map-embed,
  body[data-page="servicios"] .contact-location .map-embed {
    flex: 1;
    min-height: 245px;
  }

  body[data-page="inicio"] .map-embed,
  body[data-page="servicios"] .map-embed {
    height: 245px;
  }

  body[data-page="inicio"] .contact-location .button,
  body[data-page="inicio"] .contact-form .button,
  body[data-page="servicios"] .contact-location .button,
  body[data-page="servicios"] .contact-form .button {
    width: 176px;
    min-height: 42px;
    white-space: nowrap;
  }

  body[data-page="inicio"] .contact-location .button,
  body[data-page="servicios"] .contact-location .button {
    justify-self: end;
  }

  body[data-page="inicio"] .contact-location p:last-child,
  body[data-page="servicios"] .contact-location p:last-child {
    display: grid;
    margin-top: auto;
    padding-top: 16px;
    justify-items: end;
  }

  body[data-page="inicio"] .copyright,
  body[data-page="productos"] .copyright,
  body[data-page="servicios"] .copyright {
    width: min(var(--max), 100%);
    margin: 0 auto;
    background: var(--sand-2);
  }

  body[data-page="productos"] .hero {
    width: min(var(--max), 100%);
    max-width: var(--max);
    min-height: 505px;
    margin: 0 auto;
    background: var(--sand);
  }

  body[data-page="productos"] .hero-media {
    background-image: url("../img/hero/hero-vidrieria-del-sur.jpg");
    background-position: center 42%;
  }

  body[data-page="productos"] .hero-content {
    width: 360px;
    margin: 232px 0 0 48px;
  }

  body[data-page="productos"] .slogan {
    max-width: 340px;
    text-align: center;
  }

  body[data-page="productos"] .slogan::before {
    content: "”";
    left: 50%;
    top: calc(72% + 30px);
    transform: translate(-50%, -50%);
    font-size: 24.3rem;
    color: rgba(255,255,255,.62);
  }

  body[data-page="productos"] .slogan span:first-child {
    font-size: 3.12rem;
    line-height: .95;
  }

  body[data-page="productos"] .slogan span:nth-of-type(2) {
    font-size: 2.28rem;
    font-weight: 400;
    line-height: .98;
  }

  body[data-page="productos"] .slogan small {
    margin: -2px 0;
    font-size: 1.32rem;
    line-height: .9;
  }

  body[data-page="productos"] .slogan span:last-child {
    font-size: 1.32rem;
    line-height: 1;
  }

  body[data-page="productos"] .intro-band {
    width: 720px;
    margin: -56px 0 0 calc(50% - 360px);
    box-shadow: none;
    text-align: left;
  }

  body[data-page="productos"] .intro-band::before {
    left: 24px;
    top: 50%;
    transform: translateY(-48%);
    font-size: 9.4rem;
    color: rgba(255,255,255,.76);
  }

  body[data-page="productos"] .intro-band strong {
    width: 635px;
    margin-left: 148px;
    transform: translateY(-50%);
    padding: 8px 18px;
    text-align: center;
    font-size: 1.15rem;
  }

  body[data-page="productos"] .intro-band p {
    max-width: 646px;
    padding: 0 40px 45px 44px;
    font-size: 1.02rem;
    line-height: 1.34;
  }

  body[data-page="productos"] .intro-band span {
    left: -54px;
    right: 138px;
    bottom: -18px;
    padding: 10px 16px;
    text-align: center;
    font-size: 1.16rem;
  }

  body[data-page="productos"] .page-hero.compact {
    width: min(var(--max), 100%);
    max-width: var(--max);
    min-height: 505px;
    padding: 126px 46px 70px;
    margin: 0 auto;
    background-position: center 42%;
  }

  body[data-page="productos"] .page-hero.compact::after {
    background: linear-gradient(90deg, rgba(198,186,170,.62) 0 27%, rgba(198,186,170,.10) 47%, rgba(198,186,170,0) 72%);
  }

  body[data-page="productos"] .page-slogan {
    width: 330px;
    margin: 94px 0 0;
    text-align: left;
  }

  body[data-page="productos"] .page-slogan::before {
    content: "”";
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12.6rem;
    color: rgba(255,255,255,.50);
  }

  body[data-page="productos"] .page-slogan span:first-child {
    font-size: 3rem;
    line-height: .95;
  }

  body[data-page="productos"] .page-slogan small {
    margin-left: 118px;
    font-size: 1.25rem;
    line-height: .9;
  }

  body[data-page="productos"] .page-slogan span:last-child {
    font-size: 1.18rem;
    line-height: 1;
  }

  body[data-page="productos"] .page-intro {
    width: 720px;
    left: 50%;
    bottom: -78px;
    transform: translateX(-50%);
    box-shadow: none;
    text-align: center;
  }

  body[data-page="productos"] .page-intro strong {
    width: 585px;
    margin-left: 174px;
    padding: 10px 20px;
    font-size: 1.32rem;
  }

  body[data-page="productos"] .page-intro p {
    padding: 0 42px 48px;
    font-size: 1.02rem;
    line-height: 1.38;
  }

  body[data-page="productos"] .page-intro span {
    left: -46px;
    right: 180px;
    bottom: -21px;
    padding: 12px 18px;
    text-align: center;
    font-size: 1.35rem;
  }

  body[data-page="productos"] .catalog-layout {
    grid-template-columns: 285px 1fr;
    gap: 0;
    width: min(var(--max), 100%);
    max-width: var(--max);
    min-height: 1110px;
    margin: -136px auto 0;
    align-items: stretch;
    background: var(--sand-2);
  }

  body[data-page="productos"] .catalog-layout,
  body[data-page="productos"] .contact-footer {
    transform: none;
    will-change: auto;
  }

  body[data-page="productos"] .catalog-sidebar {
    position: relative;
    top: auto;
    z-index: 1;
    min-height: 1110px;
    padding: 170px 24px 44px;
    background: var(--red);
  }

  body[data-page="productos"] .mobile-filter-title {
    display: none;
  }

  body[data-page="productos"] .line-filter {
    display: grid;
    gap: 28px;
    overflow: visible;
    padding: 0;
  }

  body[data-page="productos"] .line-filter-group {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding-bottom: 28px;
    border-bottom: 2px solid rgba(255,255,255,.34);
  }

  body[data-page="productos"] .line-filter-group:last-child {
    border-bottom: 0;
  }

  body[data-page="productos"] .line-filter .filter-button {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.62rem;
    line-height: 1.05;
    text-align: center;
  }

  body[data-page="productos"] .line-filter .filter-button em {
    display: inline-grid;
    place-items: center;
    min-width: 72px;
    min-height: 36px;
    margin-top: 2px;
    padding: 0 14px;
    background: var(--yellow);
    color: #2a231b;
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    background: transparent;
    color: #fff;
  }

  body[data-page="productos"] .catalog-line-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: var(--white);
    overflow: hidden;
  }

  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 90px;
    height: 90px;
  }

  body[data-page="productos"] .catalog-line-icon img {
    width: 67px;
    height: 67px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(23%) sepia(98%) saturate(2105%) hue-rotate(336deg) brightness(88%) contrast(93%);
  }

  body[data-page="productos"] .line-filter-group:nth-child(2) .catalog-line-icon img {
    width: 60px;
    height: 60px;
  }

  body[data-page="productos"] .sidebar-category-list {
    display: grid;
    justify-self: stretch;
    gap: 18px;
    margin: 6px 0 8px;
    color: #fff;
  }

  body[data-page="productos"] .sidebar-category-list button {
    display: block;
    position: relative;
    border: 0;
    padding: 0 0 0 24px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
  }

  body[data-page="productos"] .sidebar-category-list button::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 6px;
    height: 6px;
    background: #fff;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    color: var(--yellow);
  }

  body[data-page="productos"] .category-filter {
    display: none;
  }

  body[data-page="productos"] .catalog-main {
    display: grid;
    align-content: start;
    gap: 28px;
    min-width: 0;
    padding: 204px 36px 80px;
    background: var(--sand-2);
  }

  body[data-page="productos"] .search-box {
    position: relative;
    display: block;
    justify-self: end;
    width: min(560px, 100%);
  }

  body[data-page="productos"] .search-box::before {
    content: "\f002";
    position: absolute;
    left: 20px;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    color: var(--red);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    pointer-events: none;
  }

  body[data-page="productos"] .search-box input {
    min-height: 56px;
    border: 2px solid rgba(198,185,169,.9);
    border-radius: 0;
    background: rgba(255,255,255,.78);
    padding: 0 18px 0 52px;
    color: var(--brown);
    box-shadow: 0 12px 24px rgba(85,64,59,.08);
    font-size: 1rem;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  }

  body[data-page="productos"] .search-box input::placeholder {
    color: rgba(85,64,59,.66);
  }

  body[data-page="productos"] .search-box input:focus {
    border-color: var(--sand);
    background: var(--white);
    box-shadow: 0 14px 30px rgba(85,64,59,.13);
    outline: none;
  }

  body[data-page="productos"] .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 30px 26px;
  }

  body[data-page="productos"] .product-card {
    width: 100%;
    background: #dfdbd3;
    box-shadow: none;
    border: 1px solid rgba(85,64,59,.06);
    text-align: center;
  }

  body[data-page="productos"] .product-card img {
    width: calc(100% - 28px);
    margin: 13px auto 0;
    aspect-ratio: 3 / 4.565;
    border: 8px solid #fff;
    object-fit: cover;
  }

  body[data-page="productos"] .product-card div {
    gap: 1px;
    width: calc(100% - 28px);
    margin: 0 auto;
    padding: 12px 10px 18px;
  }

  body[data-page="productos"] .product-card h3 {
    font-size: .98rem;
    font-weight: 400;
    line-height: 1.08;
  }

  body[data-page="productos"] .product-card h3 span {
    color: var(--red);
  }

  body[data-page="productos"] .product-card strong {
    display: none;
  }

  body[data-page="productos"] .product-card p {
    color: rgba(85,64,59,.58);
    font-size: .81rem;
    line-height: 1.16;
  }

  body[data-page="productos"] .contact-footer {
    width: min(var(--max), 100%);
    margin: 0 auto;
  }

  body[data-page="productos"] .contact-ribbon {
    position: relative;
    z-index: 3;
    width: 650px;
    max-width: 72%;
    margin-left: calc(50% - 325px - 162px);
    margin-right: auto;
    padding: 12px 18px;
    font-size: 1.34rem;
  }

  body[data-page="productos"] .contact-grid {
    width: calc(100% - 72px);
    padding: 54px 0 44px;
    gap: 28px;
  }

  body[data-page="productos"] .contact-grid.three {
    grid-template-columns: 1fr 2px 1.1fr 2px 1fr;
  }

  body[data-page="productos"] .contact-grid p {
    margin-bottom: 18px;
  }
}

@media (min-width: 1040px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .product-card {
    transition: transform .18s ease, box-shadow .18s ease;
  }
}

@media (min-width: 521px) and (max-width: 1039px) {
  body[data-page="productos"] .hero {
    width: min(var(--max), calc(100% - 28px));
    min-height: 560px;
  }

  body[data-page="productos"] .hero-content {
    width: min(330px, 42vw);
    margin: 230px 0 0 34px;
  }

  body[data-page="productos"] .slogan::before {
    font-size: 16rem;
  }

  body[data-page="productos"] .slogan span:first-child {
    font-size: 2.55rem;
  }

  body[data-page="productos"] .slogan span:nth-of-type(2) {
    font-size: 1.86rem;
  }

  body[data-page="productos"] .intro-band {
    width: min(720px, calc(100% - 64px));
    margin: -40px auto 0;
  }

  body[data-page="productos"] .intro-band strong {
    width: min(560px, calc(100% - 52px));
    margin-left: auto;
    margin-right: auto;
    transform: translateY(-50%);
  }

  body[data-page="productos"] .intro-band span {
    left: 28px;
    right: 28px;
  }

  body[data-page="productos"] .catalog-layout {
    grid-template-columns: 1fr;
    width: min(var(--max), calc(100% - 28px));
    min-height: 0;
    margin: 18px auto 0;
  }

  body[data-page="productos"] .catalog-sidebar {
    position: sticky;
    top: 84px;
    z-index: 5;
    min-height: 0;
    padding: 14px;
  }

  body[data-page="productos"] .line-filter {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 2px;
  }

  body[data-page="productos"] .line-filter-group {
    flex: 0 0 190px;
    padding: 0;
    border-bottom: 0;
  }

  body[data-page="productos"] .line-filter .filter-button {
    min-height: 112px;
    gap: 8px;
    padding: 12px;
    background: rgba(255,255,255,.12);
    font-size: 1.05rem;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    background: var(--yellow);
    color: var(--ink);
  }

  body[data-page="productos"] .line-filter .filter-button em {
    min-height: 30px;
    background: var(--yellow);
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 58px;
    height: 58px;
  }

  body[data-page="productos"] .catalog-main {
    gap: 24px;
    padding: 30px 24px 56px;
  }

  body[data-page="productos"] .search-box {
    justify-self: stretch;
    width: 100%;
  }

  body[data-page="productos"] .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  body[data-page="productos"] .contact-grid.three {
    grid-template-columns: 1fr;
  }

  body[data-page="productos"] .contact-divider {
    display: none;
  }
}

@media (max-width: 520px) {
  :root {
    --mobile-gutter: 16px;
    --mobile-section-gap: 16px;
  }

  .site-header {
    justify-content: space-between;
  }

  .menu-button {
    position: absolute;
    right: 18px;
    top: 26px;
    width: 48px;
    height: 48px;
    margin-left: 0;
    border: 2px solid var(--yellow);
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
    color: var(--brown);
    transition: transform .18s ease, background .18s ease, color .18s ease;
  }

  .menu-button:hover,
  .menu-button:focus-visible {
    background: var(--yellow);
    color: var(--ink);
    transform: translateY(-1px);
  }

  .menu-button span:not(.sr-only) {
    width: 22px;
    height: 2px;
    border-radius: 99px;
  }

  .menu-button[aria-expanded="true"] span:not(.sr-only):nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:not(.sr-only):nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:not(.sr-only):nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    inset: 92px 16px auto auto;
    min-width: 210px;
    border: 1px solid rgba(85,64,59,.16);
  }

  .hero {
    width: 100%;
    min-height: 58svh;
  }

  .hero-media {
    position: absolute;
    min-height: 58svh;
    background-position: 58% center;
  }

  .hero-content {
    align-self: center;
    width: min(310px, calc(100% - (var(--mobile-gutter) * 2)));
    margin: 30px 0 0 var(--mobile-gutter);
    padding: 0;
    text-align: left;
    background: transparent;
  }

  .slogan {
    max-width: 310px;
    margin: 0;
    text-align: left;
  }

  .slogan::before {
    font-size: 10rem;
    top: 58%;
  }

  .slogan span:first-child {
    font-size: 2rem;
  }

  .slogan span:nth-of-type(2) {
    font-size: 1.45rem;
  }

  .slogan span:last-child {
    font-size: .98rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .page-hero {
    width: 100%;
    margin: 0;
    padding-top: 48px;
  }

  .section,
  .catalog-layout,
  .contact-grid,
  .media-strip {
    width: calc(100% - (var(--mobile-gutter) * 2));
    margin-left: auto;
    margin-right: auto;
  }

  .intro-band {
    width: calc(100% - (var(--mobile-gutter) * 2));
    margin: var(--mobile-section-gap) auto 0;
  }

  .intro-band::before {
    font-size: 10.8rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .intro-band strong {
    width: 100%;
    transform: none;
  }

  .intro-band p {
    padding: 22px 18px 24px;
    text-align: left;
  }

  .intro-band span {
    position: static;
    margin: 0;
  }

  .product-lines {
    width: 100%;
    padding: var(--mobile-section-gap) 0 0;
    background: transparent;
  }

  .home-tile-grid {
    grid-template-columns: 1fr;
    width: calc(100% - (var(--mobile-gutter) * 2));
    margin: 0 auto;
    gap: 12px;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .home-tile {
    grid-template-columns: 44% 56%;
    grid-template-rows: 1fr;
    min-height: 168px;
    border: 3px solid rgba(255,255,255,.88);
    overflow: hidden;
  }

  .service-tile {
    grid-template-columns: 44% 56%;
  }

  .home-tile .tile-top {
    place-items: center;
    align-content: center;
    min-height: 168px;
    padding: 22px 12px 18px;
    border-right: 3px solid rgba(255,255,255,.88);
    border-bottom: 0;
    scroll-snap-align: none;
  }

  .line-icon {
    width: 70px;
    height: 70px;
  }

  .line-icon::before {
    width: 62px;
    height: 62px;
  }

  .home-tile strong {
    font-size: 1rem;
    line-height: 1.05;
    overflow-wrap: normal;
  }

  .home-tile em {
    min-width: 52px;
    min-height: 28px;
    margin-top: 10px;
    font-size: .82rem;
  }

  .home-tile .tile-media {
    min-height: 168px;
    border-right: 0;
    border-bottom: 0;
  }

  .section-ribbon {
    width: calc(100% - (var(--mobile-gutter) * 2));
    margin: 0 auto var(--mobile-section-gap);
  }

  .service-tile .tile-top {
    min-height: 168px;
    padding-top: 22px;
    align-content: center;
  }

  .service-icon {
    width: 68px;
    height: 68px;
  }

  .service-icon::before {
    width: 58px;
    height: 58px;
  }

  .service-tile-install .service-icon::before {
    width: 67px;
    height: 67px;
  }

  .service-tile-advice .service-icon::before,
  .service-tile-maintenance .service-icon::before {
    width: 64px;
    height: 64px;
  }

  .home-tile:last-child .tile-top,
  .home-tile:last-child .tile-media {
    border-bottom: 0;
  }

  .services-preview {
    width: 100%;
    padding: var(--mobile-section-gap) 0 0;
    background: transparent;
  }

  .page-hero.compact {
    min-height: 500px;
    padding: 118px 14px 118px;
    background-position: 62% center;
  }

  .page-slogan {
    width: min(290px, 82vw);
    margin: 0 0 118px;
  }

  .page-slogan span:first-child {
    font-size: 2.1rem;
  }

  .copyright {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 12px 18px 14px;
    line-height: 1.3;
  }

  .copyright .social-links {
    display: flex;
    margin-left: 0;
    order: 2;
  }

  .copyright .policy-separator {
    display: none;
  }

  .copyright .policy-link {
    order: 3;
  }

  .page-intro {
    bottom: -120px;
    width: calc(100vw - (var(--mobile-gutter) * 2));
  }

  .page-intro strong {
    width: 100%;
    transform: none;
  }

  .page-intro p {
    padding: 18px;
    text-align: left;
  }

  .page-intro span {
    position: static;
    display: block;
  }

  .catalog-readable {
    width: calc(100% - (var(--mobile-gutter) * 2));
    margin-top: 142px;
    padding: 20px;
  }

  .catalog-layout {
    margin-top: 142px;
  }

  body[data-page="productos"] .catalog-layout {
    margin-top: var(--mobile-section-gap);
  }

  .catalog-readable + .catalog-layout {
    margin-top: var(--mobile-section-gap);
  }

  .contact-ribbon {
    width: min(360px, calc(100% - 28px));
    margin-left: auto;
    margin-right: auto;
  }

  .catalog-grid {
    gap: 8px;
  }

  .product-card h3 {
    font-size: .96rem;
  }

  .product-card p {
    font-size: .84rem;
  }

  body[data-page="productos"] .hero {
    min-height: 540px;
  }

  body[data-page="productos"] .hero-media {
    min-height: 540px;
    background-position: 58% center;
  }

  body[data-page="productos"] .hero-content {
    margin-top: 74px;
  }

  body[data-page="productos"] .intro-band {
    margin-top: 0;
  }

  body[data-page="productos"] .catalog-layout {
    width: calc(100% - (var(--mobile-gutter) * 2));
    gap: 0;
    background: var(--sand-2);
  }

  body[data-page="productos"] .catalog-sidebar {
    position: sticky;
    top: 92px;
    z-index: 6;
    padding: 12px;
  }

  body[data-page="productos"] .line-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0;
  }

  body[data-page="productos"] .line-filter-group {
    flex: 0 0 142px;
    padding: 0;
    border-bottom: 0;
  }

  body[data-page="productos"] .line-filter .filter-button {
    min-height: 98px;
    gap: 6px;
    padding: 10px;
    background: rgba(255,255,255,.12);
    font-size: .9rem;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    background: var(--yellow);
    color: var(--ink);
  }

  body[data-page="productos"] .line-filter .filter-button em {
    min-width: 50px;
    min-height: 26px;
    padding: 0 10px;
    font-size: .78rem;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 52px;
    height: 52px;
  }

  body[data-page="productos"] .catalog-main {
    gap: 18px;
    padding: 18px 12px 34px;
  }

  body[data-page="productos"] .search-box {
    justify-self: stretch;
    width: 100%;
  }

  body[data-page="productos"] .search-box input {
    min-height: 50px;
    padding-left: 46px;
  }

  body[data-page="productos"] .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body[data-page="productos"] .product-card img {
    width: calc(100% - 16px);
    margin-top: 8px;
    border-width: 5px;
  }

  body[data-page="productos"] .product-card div {
    width: calc(100% - 16px);
    padding: 10px 8px 12px;
  }
}

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

/* Product detail modal: mockup-faithful layout */
.product-modal {
  overflow: hidden;
}

.product-modal.open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  background: rgba(197, 185, 169, .68);
}

.modal-card {
  inset: auto;
  display: grid;
  grid-template-columns: minmax(430px, 590px) minmax(360px, 440px);
  gap: 15px;
  width: min(1060px, calc(100vw - 72px));
  height: min(780px, calc(100svh - 56px));
  max-height: none;
  overflow: visible;
  transform: none;
  padding: 15px;
  border: 0;
  background: #fff;
  box-shadow: 0 24px 70px rgba(45, 35, 31, .24);
}

.modal-gallery {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: 1fr;
  gap: 12px;
  min-height: 0;
  background: #fff;
  overflow: hidden;
}

.modal-image {
  grid-column: 2;
  width: 100%;
  min-height: 0;
  height: 100%;
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
  cursor: zoom-in;
}

.modal-watermark {
  left: 126px;
  bottom: 28px;
  width: min(300px, 36%);
  height: 94px;
  background: rgba(255,255,255,.98);
  filter:
    drop-shadow(0 2px 1px rgba(0,0,0,.78))
    drop-shadow(0 0 12px rgba(0,0,0,.56));
}

.modal-thumbs {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 48px 8px;
  overflow: hidden;
  background: #fff;
}

.modal-thumb {
  display: block;
  width: 100%;
  border: 3px solid transparent;
  padding: 0;
  background: transparent;
}

.modal-thumb.active {
  border-color: var(--yellow);
}

.modal-thumb:focus-visible {
  outline: 0;
  border-color: var(--yellow);
}

.modal-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.modal-arrow {
  left: 8px;
  right: auto;
  z-index: 10;
  width: 88px;
  height: 34px;
  transform: none;
  background: #b8afaa;
  color: #fff;
  font-size: 1rem;
}

.modal-arrow i {
  display: none;
}

.modal-arrow::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
}

.modal-arrow-prev::before {
  border-bottom: 16px solid #fff;
}

.modal-arrow-next::before {
  border-top: 16px solid #fff;
}

.modal-arrow-prev {
  top: 0;
}

.modal-arrow-next {
  top: auto;
  bottom: 0;
}

.modal-close {
  top: -21px;
  right: -21px;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: var(--red);
  font-size: 1.82rem;
  font-weight: 800;
}

.modal-content {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 0;
  padding: 15px 15px 140px 0;
  overflow: hidden;
}

.modal-kicker {
  display: none;
}

.modal-content h2 {
  margin: 0;
  color: #4f3f3b;
  font-size: clamp(1.24rem, 1.78vw, 1.67rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

.modal-content h2::first-letter {
  color: inherit;
}

.modal-content h2 span {
  color: var(--red);
}

.modal-content > p {
  margin: 8px 0 15px;
  color: #4f4641;
  font-size: clamp(.84rem, 1.09vw, 1.04rem);
  line-height: 1.35;
}

.modal-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  margin: 0 0 14px;
  border: 0;
  border-bottom: 1px solid #d8d0c7;
  background: transparent;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.modal-tabs::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.modal-tabs button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: max-content;
  border: 0;
  background: transparent;
  color: #66564f;
  font-size: clamp(.78rem, .9vw, .86rem);
  font-weight: 650;
  line-height: 1.1;
  min-height: 38px;
  padding: 0 12px;
  text-align: center;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.modal-tabs button.active {
  background: var(--sand-2);
  color: var(--red);
  box-shadow: inset 0 -2px 0 var(--red);
}

.modal-tabs button:hover {
  background: var(--red);
  color: var(--white);
}

.modal-tabs .modal-share {
  display: inline-grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  min-width: 46px;
  height: 38px;
  margin-left: auto;
  border: 0;
  border-radius: 0;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  font-weight: 400;
  padding: 0;
  text-align: center;
}

.modal-share-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transform: translateX(-5px);
}

.modal-tabs .modal-share:hover {
  background: var(--red);
  color: var(--white);
}

.modal-tags {
  order: 4;
  gap: 6px;
  margin: 0 0 16px;
}

.modal-tags span,
.modal-tags button,
.modal-tags a {
  border: 1px solid rgba(218, 37, 53, .52);
  border-radius: 999px;
  background: #fff;
  color: #8d504b;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  padding: 4px 10px;
  text-decoration: none;
}

.modal-panel {
  order: 5;
  flex: 1 1 auto;
  min-height: 0;
  color: #2f2c2b;
  font-size: clamp(.86rem, .97vw, .97rem);
  line-height: 1.45;
  overflow: hidden;
}

.modal-panel.active {
  display: block;
  max-height: none;
  overflow: hidden;
}

.modal-panel p + p {
  margin-top: .55em;
}

.modal-panel b,
.modal-panel strong {
  color: var(--brown);
}

.modal-cta {
  order: 8;
  position: absolute;
  left: 0;
  right: 15px;
  bottom: 0;
  margin: 0;
}

.modal-cta strong {
  background: var(--sand-2);
  color: #302c2a;
  font-size: clamp(1rem, 1.68vw, 1.6rem);
  font-weight: 500;
  line-height: 1.1;
  padding: 12px 14px;
}

.modal-whatsapp {
  gap: 8px;
  min-height: 100px;
  background: var(--brown);
  color: #fff;
  font-size: clamp(1rem, 1.55vw, 1.32rem);
  font-weight: 700;
  padding: 14px;
}

.modal-whatsapp svg {
  width: 50px;
  height: 50px;
  padding: 8px;
  border-radius: 50%;
  background: var(--sand-2);
  fill: var(--brown);
}

.modal-card,
.modal-content,
.modal-panel,
.modal-gallery,
.modal-thumbs {
  scrollbar-width: none;
}

.modal-card::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.modal-panel::-webkit-scrollbar,
.modal-gallery::-webkit-scrollbar,
.modal-thumbs::-webkit-scrollbar {
  width: 0;
  height: 0;
}

@media (max-width: 980px) {
  .modal-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(250px, 44svh) minmax(0, 1fr);
    width: min(760px, calc(100vw - 18px));
    height: min(940px, calc(100svh - 18px));
    gap: 15px;
    padding: 15px;
    overflow: hidden;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-image {
    grid-column: 1;
  }

  .modal-watermark {
    left: 18px;
    bottom: 18px;
    width: min(260px, 62%);
    height: 76px;
  }

  .modal-thumbs {
    display: none;
  }

  .modal-arrow {
    display: grid;
  }

  .modal-content {
    padding: 15px 15px 136px;
  }

  .modal-close {
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
  }

  .modal-tabs {
    margin-bottom: 12px;
  }
}

@media (max-width: 560px) {
  .modal-card {
    width: 100vw;
    height: 100svh;
    padding: 0;
    gap: 0;
    grid-template-rows: 38svh minmax(0, 1fr);
    overflow: hidden;
  }

  .modal-content {
    padding: 13px 15px 128px;
  }

  .modal-content h2 {
    padding-right: 54px;
    font-size: 1.45rem;
  }

  .modal-content > p {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .modal-tabs {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .modal-tabs button {
    font-size: .79rem;
    padding: 0 10px;
  }

  .modal-tags {
    gap: 5px;
    margin-bottom: 8px;
  }

  .modal-tags span,
  .modal-tags button,
  .modal-tags a {
    font-size: .66rem;
    padding: 2px 7px;
  }

  .modal-panel {
    font-size: .9rem;
    line-height: 1.38;
  }

  .modal-cta {
    left: 15px;
    right: 15px;
    bottom: 0;
  }

  .modal-cta strong {
    font-size: .94rem;
    padding: 9px 10px;
  }

  .modal-whatsapp {
    min-height: 78px;
    font-size: .98rem;
    padding: 10px;
  }

  .modal-whatsapp svg {
    width: 42px;
    height: 42px;
  }
}

/* Responsive QA polish */
@media (min-width: 521px) and (max-width: 1039px) {
  .hero,
  .product-lines,
  .services-preview,
  .contact-footer,
  .catalog-layout {
    transform: none !important;
  }

  .site-header {
    min-height: 78px;
  }

  .brand {
    width: 176px;
    height: 128px;
  }

  body[data-page="inicio"] .home-tile-grid,
  body[data-page="inicio"] .service-tile-grid {
    width: calc(100% - 28px);
    gap: 0;
  }

  body[data-page="inicio"] .home-tile {
    min-height: 0;
  }

  body[data-page="inicio"] .home-tile .tile-top {
    min-height: 190px;
    padding: 24px 14px 22px;
  }

  body[data-page="inicio"] .home-tile .tile-media {
    min-height: 230px;
    height: 230px;
  }

  body[data-page="inicio"] .home-tile img {
    object-fit: cover;
  }

  body[data-page="productos"] .catalog-layout {
    overflow: visible;
  }

  body[data-page="productos"] .catalog-main {
    padding-bottom: 44px;
  }

  body[data-page="productos"] .product-card img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
  }

  body[data-page="servicios"] .service-detail-card > div {
    padding: 34px 34px 40px;
  }

  body[data-page="servicios"] .service-detail-grid img {
    min-height: 360px;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 980px) {
  .product-modal.open {
    align-items: center;
    padding: 9px;
  }

  .modal-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, 45svh) minmax(0, 1fr);
    width: min(760px, calc(100vw - 18px));
    height: min(920px, calc(100svh - 18px));
    gap: 0;
    padding: 10px;
    overflow: hidden;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
    min-height: 0;
    background: #fff;
    justify-items: center;
  }

  .modal-image {
    grid-column: 1;
    width: min(100%, 360px);
    min-height: 0;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
  }

  .modal-watermark {
    left: 18px;
    bottom: 16px;
    width: min(230px, 54%);
    height: 68px;
  }

  .modal-thumbs {
    display: none;
  }

  .modal-arrow {
    top: 50%;
    bottom: auto;
    width: 42px;
    height: 52px;
    border-radius: 0;
    transform: translateY(-50%);
    background: rgba(85,64,59,.9);
  }

  .modal-arrow-prev {
    left: 10px;
    right: auto;
  }

  .modal-arrow-next {
    left: auto;
    right: 10px;
  }

  .modal-arrow i {
    display: block;
  }

  .modal-arrow::before {
    display: none;
  }

  .modal-close {
    top: -8px;
    right: -8px;
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }

  .modal-content {
    min-height: 0;
    padding: 16px 16px 130px;
    overflow-y: auto;
  }

  .modal-tabs {
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .modal-tabs::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .modal-tabs button {
    flex: 0 0 auto;
  }

  .modal-panel.active {
    max-height: none;
    overflow: visible;
  }

  .modal-cta {
    left: 16px;
    right: 16px;
    bottom: 0;
  }
}

@media (max-width: 520px) {
  .hero,
  .product-lines,
  .services-preview,
  .contact-footer,
  .catalog-layout {
    transform: none !important;
  }

  .site-header {
    min-height: 86px;
    padding-inline: 14px;
  }

  .brand {
    width: 158px;
    height: 116px;
  }

  .menu-button {
    top: 20px;
    right: 14px;
  }

  .site-nav {
    inset: 86px 14px auto auto;
    width: min(230px, calc(100vw - 28px));
  }

  .hero {
    min-height: 540px;
  }

  .hero-media {
    min-height: 540px;
  }

  .hero-content {
    margin-top: 52px;
  }

  .intro-band p {
    font-size: .98rem;
    line-height: 1.42;
  }

  body[data-page="inicio"] .home-tile-grid,
  body[data-page="inicio"] .service-tile-grid {
    gap: 10px;
  }

  body[data-page="inicio"] .home-tile {
    grid-template-columns: 42% 58%;
    min-height: 176px;
  }

  body[data-page="inicio"] .home-tile .tile-top {
    min-height: 176px;
    padding: 20px 10px;
  }

  body[data-page="inicio"] .home-tile .tile-media {
    min-height: 176px;
    height: 100%;
  }

  body[data-page="inicio"] .home-tile img {
    object-fit: cover;
    object-position: center;
  }

  body[data-page="productos"] .catalog-layout {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  body[data-page="productos"] .catalog-sidebar {
    top: 86px;
    padding: 10px;
  }

  body[data-page="productos"] .line-filter-group {
    flex-basis: 132px;
  }

  body[data-page="productos"] .line-filter .filter-button {
    min-height: 88px;
    font-size: .84rem;
  }

  body[data-page="productos"] .catalog-main {
    padding: 16px 10px 32px;
  }

  body[data-page="productos"] .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-page="productos"] .product-card {
    min-width: 0;
  }

  body[data-page="productos"] .product-card img {
    width: calc(100% - 12px);
    aspect-ratio: 3 / 4;
    margin: 6px auto 0;
    object-fit: cover;
    object-position: center;
  }

  body[data-page="productos"] .product-card div {
    width: calc(100% - 12px);
  }

  body[data-page="productos"] .product-card h3 {
    font-size: .92rem;
    line-height: 1.08;
  }

  body[data-page="productos"] .product-card p {
    font-size: .78rem;
    line-height: 1.18;
  }

  body[data-page="servicios"] .service-detail-card > div {
    padding: 28px 22px 34px;
  }

  body[data-page="servicios"] .service-detail-grid img {
    height: 285px;
    object-fit: cover;
    object-position: center;
  }

  .contact-grid {
    padding-bottom: 44px;
  }
}

@media (max-width: 560px) {
  .modal-card {
    width: calc(100vw - 14px);
    height: calc(100svh - 14px);
    grid-template-rows: minmax(300px, 42svh) minmax(0, 1fr);
    padding: 8px;
  }

  .modal-image {
    width: min(78vw, 310px);
  }

  .modal-content {
    padding: 13px 12px 120px;
  }

  .modal-content h2 {
    padding-right: 38px;
    font-size: 1.28rem;
  }

  .modal-content > p {
    font-size: .9rem;
    line-height: 1.3;
  }

  .modal-tabs {
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
  }

  .modal-tabs button {
    font-size: .78rem;
    padding: 0 10px;
  }

  .modal-tags {
    max-height: 48px;
    overflow: hidden;
  }

  .modal-panel {
    font-size: .88rem;
  }

  .modal-cta {
    left: 12px;
    right: 12px;
  }

  .product-modal.image-zoom-open .modal-card {
    width: 100vw;
    height: 100svh;
    padding: 12px;
  }

  .product-modal.image-zoom-open .modal-image {
    width: 100%;
  }
}

@media (max-width: 380px) {
  body[data-page="productos"] .catalog-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="productos"] .product-card img {
    aspect-ratio: 4 / 5;
  }

  .modal-card {
    width: 100vw;
    height: 100svh;
    padding: 0;
  }
}

/* Product modal image frame: keep the watermark locked to the rendered photo. */
.modal-image {
  border: 0;
  padding: 0;
  min-height: 0;
  height: 100%;
  background: #fff;
  background-image: none !important;
  cursor: zoom-in;
}

.modal-image-frame {
  position: relative;
  display: block;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.modal-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-image-frame img[hidden],
.product-modal.has-video .modal-image-frame > img {
  display: none;
}

.modal-video-frame {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 9 / 16;
  background: #171312;
}

.modal-video-frame[hidden] {
  display: none;
}

.modal-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.product-modal.has-video .modal-image {
  cursor: default;
}

.product-modal.has-video .modal-image-frame {
  display: grid;
  place-items: center;
  width: 100% !important;
  height: 100% !important;
}

.video-thumb {
  position: relative;
  background: var(--brown);
}

.video-thumb-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--brown);
  color: var(--white);
}

.video-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
}

.video-thumb-preview::after {
  content: "\f04b";
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(227,44,59,.92);
  color: #fff;
  font: 900 .82rem/1 "Font Awesome 6 Free";
  transform: translate(-50%, -50%);
}

.modal-image .modal-watermark {
  left: 18px;
  bottom: 18px;
  width: min(260px, 58%);
  height: 76px;
}

.product-modal.image-zoom-open .modal-image {
  cursor: zoom-out;
}

.product-modal.image-zoom-open .modal-image-frame {
  max-width: 100%;
  max-height: 100%;
}

.product-modal.image-zoom-open .modal-image .modal-watermark {
  left: 20px;
  bottom: 20px;
}

@media (min-width: 981px) {
  .modal-image {
    display: grid;
    place-items: center;
  }

  .modal-image-frame img {
    max-height: none;
  }
}

@media (max-width: 980px) {
  .modal-image {
    display: grid;
    place-items: center;
    width: 100%;
  }

  .modal-image-frame {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .modal-image {
    width: 100%;
  }

  .modal-image-frame {
    max-width: 100%;
  }

  .modal-image .modal-watermark {
    left: 10px;
    bottom: 10px;
    width: min(190px, 62%);
    height: 54px;
  }

  .product-modal.image-zoom-open .modal-image-frame {
    max-width: 100%;
    max-height: 100%;
  }
}

/* Product modal reading controls and highlighted quotes. */
.modal-panel.active {
  flex: 1 1 auto;
  max-height: none;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) rgba(198, 185, 169, .42);
}

.modal-panel.active::-webkit-scrollbar {
  width: 7px;
}

.modal-panel.active::-webkit-scrollbar-track {
  background: rgba(198, 185, 169, .28);
}

.modal-panel.active::-webkit-scrollbar-thumb {
  background: var(--red);
}

.modal-panel blockquote {
  margin: .85rem 0;
  padding: .6rem .85rem .6rem 1rem;
  border-left: 5px solid var(--red);
  background: rgba(227, 44, 59, .07);
  color: var(--brown);
  font-weight: 650;
}

.product-detail-body {
  background: var(--sand-2);
}

.product-detail-page {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  padding: 150px 0 44px;
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--brown);
  font-size: .92rem;
  font-weight: 700;
}

.product-breadcrumb a {
  color: var(--red);
  text-decoration: none;
}

.product-breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: rgba(85,64,59,.48);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.product-detail-gallery,
.product-detail-info,
.product-detail-content {
  background: #fff;
  border: 1px solid rgba(85,64,59,.12);
}

.product-detail-gallery {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.product-detail-main-image {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #f4f1eb;
}

.product-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
}

.product-detail-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f4f1eb;
}

.product-detail-info {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.product-detail-info h1 {
  margin: 0;
  color: var(--brown);
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: .96;
}

.product-detail-info h1 span {
  color: var(--red);
}

.product-detail-summary {
  margin: 0;
  color: rgba(85,64,59,.72);
  font-size: 1.1rem;
  line-height: 1.45;
}

.product-detail-tags {
  margin: 2px 0 4px;
}

.product-detail-whatsapp {
  justify-self: start;
  margin-top: 4px;
}

.product-detail-content {
  grid-column: 1 / -1;
  display: grid;
  gap: 0;
}

.product-detail-section {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-bottom: 1px solid rgba(85,64,59,.12);
}

.product-detail-section:last-child {
  border-bottom: 0;
}

.product-detail-section h2 {
  margin: 0;
  color: var(--red);
  font-size: 1.35rem;
}

.product-detail-copy {
  color: var(--brown);
  line-height: 1.62;
}

.product-detail-copy p,
.product-detail-copy ul,
.product-detail-copy ol,
.product-detail-copy blockquote {
  margin-top: 0;
}

.product-detail-copy b,
.product-detail-copy strong {
  color: var(--brown);
}

.product-detail-copy blockquote {
  padding: .75rem 1rem;
  border-left: 5px solid var(--red);
  background: rgba(227, 44, 59, .07);
  font-weight: 650;
}

@media (max-width: 860px) {
  .product-detail-page {
    padding-top: 118px;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-detail-info,
  .product-detail-section {
    padding: 20px;
  }
}

.modal-content {
  padding-bottom: 106px;
}

.modal-card {
  align-items: stretch;
}

.modal-content {
  padding-bottom: 0;
}

.modal-tabs {
  align-items: stretch;
  gap: 4px;
}

.modal-tabs button {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
}

.modal-gallery,
.modal-content {
  height: 100%;
  max-height: 100%;
}

.product-modal:not(.image-zoom-open):not(.has-video) .modal-image-frame {
  width: 100% !important;
  height: 100% !important;
}

.product-modal:not(.image-zoom-open):not(.has-video) .modal-image-frame img {
  object-fit: cover;
}

.product-modal.image-zoom-open .modal-image-frame img {
  object-fit: contain;
}

.modal-cta strong {
  padding: 6px 10px;
  font-size: clamp(.9rem, 1.25vw, 1.2rem);
}

.modal-cta {
  position: static;
  display: grid;
  gap: 0;
  margin-top: 10px;
  background: var(--brown);
  color: var(--white);
  text-align: left;
}

.modal-cta strong {
  background: var(--sand-2);
  color: #302c2a;
  padding: 7px 12px;
  text-align: center;
}

.modal-panel {
  flex: 1 1 auto;
  min-height: 0;
}

.modal-panel.active {
  overflow-y: auto;
}

.modal-whatsapp {
  min-height: 54px;
  gap: 3px;
  background: transparent;
  padding: 6px 12px 10px;
  font-size: clamp(.86rem, 1vw, .98rem);
}

.modal-whatsapp[aria-disabled="true"] {
  opacity: .72;
  pointer-events: none;
}

.modal-privacy-consent {
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px 4px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.88);
  font-size: .72rem;
  line-height: 1.18;
  text-align: left;
}

.modal-privacy-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--yellow);
}

.modal-privacy-consent a {
  color: var(--yellow);
  font-weight: 800;
}

.modal-form-status {
  margin: 0;
  padding: 0 14px;
  min-height: 12px;
  color: var(--yellow);
  font-size: .72rem;
  text-align: center;
}

.modal-form-status.success {
  color: var(--white);
}

.modal-whatsapp svg {
  width: 34px;
  height: 34px;
  padding: 5px;
}

@media (max-width: 980px) {
  .modal-panel.active {
    max-height: none;
    overflow-y: auto;
  }

  .modal-content {
    padding-bottom: 106px;
  }
}

@media (max-width: 560px) {
  .modal-panel.active {
    max-height: none;
  }

  .modal-content {
    padding-bottom: 0;
  }
}

@media (max-width: 980px) {
  .modal-content {
    padding-bottom: 0;
  }

  .modal-content h2 {
    font-size: 1.23rem;
  }

  .modal-cta {
    position: static;
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .modal-content h2 {
    font-size: 1.09rem;
  }
}

.product-modal:not(.image-zoom-open) .modal-card {
  align-items: stretch;
}

.product-modal:not(.image-zoom-open) .modal-gallery,
.product-modal:not(.image-zoom-open) .modal-content {
  align-self: stretch;
  min-height: 0;
  height: 100%;
}

.product-modal:not(.image-zoom-open) .modal-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-modal:not(.image-zoom-open) .modal-content h2 {
  order: 1;
}

.product-modal:not(.image-zoom-open) .modal-content > p {
  order: 2;
}

.product-modal:not(.image-zoom-open) .modal-tabs {
  order: 3;
  flex: 0 0 auto;
}

.product-modal:not(.image-zoom-open) .modal-tags {
  order: 4;
  flex: 0 0 auto;
}

.product-modal:not(.image-zoom-open) .modal-panel {
  order: 5;
  flex: 1 1 auto;
  min-height: 0;
}

.product-modal:not(.image-zoom-open) .modal-cta {
  order: 6;
  flex: 0 0 auto;
}

.modal-card,
.modal-gallery,
.modal-content,
.modal-tabs,
.modal-panel,
.modal-cta {
  max-width: 100%;
  min-width: 0;
}

.modal-panel {
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .product-modal.open {
    display: block !important;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 14px !important;
  }

  .product-modal:not(.image-zoom-open) .modal-card {
    position: relative;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 8px !important;
    overflow: visible;
  }

  .product-modal:not(.image-zoom-open) .modal-gallery {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    overflow: visible;
  }

  .product-modal:not(.image-zoom-open) .modal-image {
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    aspect-ratio: auto;
    background: #fff;
  }

  .product-modal:not(.image-zoom-open):not(.has-video) .modal-image-frame {
    display: block;
    width: 100% !important;
    height: auto !important;
  }

  .product-modal:not(.image-zoom-open):not(.has-video) .modal-image-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .product-modal:not(.image-zoom-open) .modal-content {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none;
    margin: 0 auto;
    padding: 12px 0 0;
    overflow: visible;
  }

  .product-modal:not(.image-zoom-open) .modal-tabs,
  .product-modal:not(.image-zoom-open) .modal-tags {
    max-width: 100%;
  }

  .product-modal:not(.image-zoom-open) .modal-content > p,
  .product-modal:not(.image-zoom-open) .modal-panel,
  .product-modal:not(.image-zoom-open) .modal-cta {
    width: 100%;
    max-width: 100%;
  }

  .product-modal:not(.image-zoom-open) .modal-panel,
  .product-modal:not(.image-zoom-open) .modal-panel.active {
    flex: 0 0 auto;
    padding-right: 0;
    overflow: visible;
  }

  .product-modal:not(.image-zoom-open) .modal-panel p {
    max-width: 100%;
  }

  .product-modal:not(.image-zoom-open) .modal-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .product-modal:not(.image-zoom-open) .modal-tags::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .product-modal:not(.image-zoom-open) .modal-tags span,
  .product-modal:not(.image-zoom-open) .modal-tags button,
  .product-modal:not(.image-zoom-open) .modal-tags a {
    flex: 0 0 auto;
  }

  .product-modal:not(.image-zoom-open) .modal-tabs {
    overflow-x: hidden;
  }

  .product-modal:not(.image-zoom-open) .modal-tabs button {
    min-height: 36px;
    padding: 0 5px;
    font-size: .7rem;
  }

  .product-modal:not(.image-zoom-open) .modal-tabs .modal-share {
    flex-basis: 34px;
    width: 34px;
    min-width: 34px;
    height: 36px;
    margin-left: 0;
  }

  .product-modal:not(.image-zoom-open) .modal-share-icon {
    width: 20px;
    height: 20px;
    transform: translateX(-3px);
  }

  .modal-privacy-consent {
    grid-template-columns: 16px 1fr;
    gap: 8px;
    padding: 7px 10px 4px;
    font-size: .71rem;
    line-height: 1.12;
  }

  .modal-privacy-consent span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .modal-privacy-consent input {
    width: 16px;
    height: 16px;
  }

  .modal-cta {
    width: 100%;
    justify-self: stretch;
  }
}

.modal-image .modal-watermark {
  background: rgba(255,255,255,.98);
  filter:
    drop-shadow(0 2px 1px rgba(0,0,0,.78))
    drop-shadow(0 0 12px rgba(0,0,0,.56));
}

/* Compact catalog filters for touch layouts. */
@media (min-width: 521px) and (max-width: 1039px) {
  body[data-page="productos"] .catalog-sidebar {
    box-shadow: 0 12px 24px rgba(85,64,59,.10);
  }

  body[data-page="productos"] .line-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  body[data-page="productos"] .line-filter-group {
    display: contents;
  }

  body[data-page="productos"] .line-filter .filter-button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    min-height: 58px;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: .95rem;
    line-height: 1.08;
    text-align: left;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    background: var(--sand-2);
    color: var(--brown);
  }

  body[data-page="productos"] .line-filter .filter-button em {
    display: none;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 38px;
    height: 38px;
  }

  body[data-page="productos"] .line-filter-group:nth-child(1) .filter-button {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-page="productos"] .line-filter-group:nth-child(2) .filter-button {
    grid-column: 2;
    grid-row: 1;
  }

  body[data-page="productos"] .line-filter-group:nth-child(3) .filter-button {
    grid-column: 3;
    grid-row: 1;
  }

  body[data-page="productos"] .sidebar-category-list {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
    gap: 8px;
    margin: 6px 0 0;
    padding: 10px;
    background: rgba(255,255,255,.08);
  }

  body[data-page="productos"] .sidebar-category-list button {
    min-height: 34px;
    width: 100%;
    border: 1px solid rgba(255,255,255,.40);
    padding: 0 12px;
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
  }

  body[data-page="productos"] .sidebar-category-list button::before {
    display: none;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    border-color: var(--sand-2);
    background: var(--sand-2);
    color: var(--brown);
  }
}

/* Integrated mobile/tablet product filters. */
@media (max-width: 1039px) {
  body[data-page="productos"] .line-filter .filter-button {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 5px !important;
    border: 1px solid rgba(255,255,255,.48) !important;
    background: transparent !important;
    color: #fff !important;
    overflow: hidden !important;
    text-align: center !important;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    border-color: #fff !important;
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.72) !important;
  }

  body[data-page="productos"] .line-filter .filter-button > span:last-of-type {
    display: block !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    height: 38px !important;
    background: transparent !important;
    overflow: visible !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
  }

  body[data-page="productos"] .sidebar-category-list {
    background: transparent !important;
  }

  body[data-page="productos"] .sidebar-category-list button {
    min-width: 0 !important;
    border-color: rgba(255,255,255,.48) !important;
    background: transparent !important;
    color: #fff !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    border-color: #fff !important;
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.72) !important;
  }
}

@media (min-width: 1040px) and (max-width: 1280px) {
  body[data-page="tratamiento-datos"] .legal-summary {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

@media (min-width: 521px) and (max-width: 1039px) {
  body[data-page="productos"] .line-filter .filter-button {
    min-height: 76px !important;
    padding: 9px 8px !important;
    font-size: .92rem !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .line-filter .filter-button {
    min-height: 70px !important;
    padding: 8px 5px !important;
    font-size: .72rem !important;
  }

  body[data-page="productos"] .sidebar-category-list {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)) !important;
  }
}

/* Absolute final product line filter finish. */
@media (max-width: 1039px) {
  body[data-page="productos"] .catalog-sidebar {
    padding: 18px 22px 0 !important;
    background: var(--red) !important;
  }

  body[data-page="productos"] .line-filter {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
  }

  body[data-page="productos"] .line-filter-group {
    display: contents !important;
  }

  body[data-page="productos"] .line-filter .filter-button,
  body[data-page="productos"] .line-filter .filter-button.active {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 10px !important;
    min-height: 132px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.34) !important;
    background: transparent !important;
    color: #fff !important;
    padding: 10px 16px 18px !important;
    box-shadow: none !important;
    text-align: center !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(3) .filter-button {
    border-right: 0 !important;
  }

  body[data-page="productos"] .line-filter .filter-button em {
    display: none !important;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    display: grid !important;
    place-items: center !important;
    width: 66px !important;
    height: 66px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 72px !important;
    height: 72px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 49px !important;
    height: 49px !important;
    object-fit: contain !important;
    filter: brightness(0) saturate(100%) invert(23%) sepia(98%) saturate(2105%) hue-rotate(336deg) brightness(88%) contrast(93%) !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(2) .catalog-line-icon img {
    width: 44px !important;
    height: 44px !important;
  }

  body[data-page="productos"] .line-filter .filter-button > span:last-of-type {
    margin: 0 !important;
    color: #fff !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
  }

  body[data-page="productos"] .sidebar-category-list {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0 24px !important;
    margin: 0 -22px !important;
    padding: 14px 18px 15px !important;
    border: 0 !important;
    background: var(--brown) !important;
  }

  body[data-page="productos"] .sidebar-category-list button,
  body[data-page="productos"] .sidebar-category-list button.active {
    position: relative !important;
    min-height: 32px !important;
    width: auto !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 0 0 18px !important;
    color: #fff !important;
    font-size: .98rem !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    color: var(--yellow) !important;
  }

  body[data-page="productos"] .sidebar-category-list button::before {
    display: none !important;
  }

  body[data-page="productos"] .sidebar-category-list button.active::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-left: 9px solid var(--yellow) !important;
    background: transparent !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-sidebar {
    padding: 13px 12px 0 !important;
  }

  body[data-page="productos"] .line-filter .filter-button,
  body[data-page="productos"] .line-filter .filter-button.active {
    min-height: 100px !important;
    gap: 7px !important;
    padding: 8px 6px 12px !important;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 50px !important;
    height: 50px !important;
  }

  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 54px !important;
    height: 54px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 37px !important;
    height: 37px !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(2) .catalog-line-icon img {
    width: 33px !important;
    height: 33px !important;
  }

  body[data-page="productos"] .line-filter .filter-button > span:last-of-type {
    font-size: .76rem !important;
  }

  body[data-page="productos"] .sidebar-category-list {
    justify-content: flex-start !important;
    gap: 6px 14px !important;
    margin: 0 -12px !important;
    padding: 11px 14px 12px !important;
  }

  body[data-page="productos"] .sidebar-category-list button,
  body[data-page="productos"] .sidebar-category-list button.active {
    min-height: 28px !important;
    padding-left: 14px !important;
    font-size: .76rem !important;
  }

  body[data-page="productos"] .sidebar-category-list button.active::before {
    border-top-width: 5px !important;
    border-bottom-width: 5px !important;
    border-left-width: 8px !important;
  }
}

/* Absolute final product line filter finish. */
@media (max-width: 1039px) {
  body[data-page="productos"] .catalog-sidebar {
    padding: 18px 22px 0 !important;
    background: var(--red) !important;
  }

  body[data-page="productos"] .line-filter {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
  }

  body[data-page="productos"] .line-filter-group {
    display: contents !important;
  }

  body[data-page="productos"] .line-filter .filter-button,
  body[data-page="productos"] .line-filter .filter-button.active {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 10px !important;
    min-height: 132px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.34) !important;
    background: transparent !important;
    color: #fff !important;
    padding: 10px 16px 18px !important;
    box-shadow: none !important;
    text-align: center !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(3) .filter-button {
    border-right: 0 !important;
  }

  body[data-page="productos"] .line-filter .filter-button em {
    display: none !important;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    display: grid !important;
    place-items: center !important;
    width: 66px !important;
    height: 66px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 72px !important;
    height: 72px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 49px !important;
    height: 49px !important;
    object-fit: contain !important;
    filter: brightness(0) saturate(100%) invert(23%) sepia(98%) saturate(2105%) hue-rotate(336deg) brightness(88%) contrast(93%) !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(2) .catalog-line-icon img {
    width: 44px !important;
    height: 44px !important;
  }

  body[data-page="productos"] .line-filter .filter-button > span:last-of-type {
    margin: 0 !important;
    color: #fff !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
  }

  body[data-page="productos"] .sidebar-category-list {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0 24px !important;
    margin: 0 -22px !important;
    padding: 14px 18px 15px !important;
    border: 0 !important;
    background: var(--brown) !important;
  }

  body[data-page="productos"] .sidebar-category-list button,
  body[data-page="productos"] .sidebar-category-list button.active {
    position: relative !important;
    min-height: 32px !important;
    width: auto !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 0 0 18px !important;
    color: #fff !important;
    font-size: .98rem !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    color: var(--yellow) !important;
  }

  body[data-page="productos"] .sidebar-category-list button::before {
    display: none !important;
  }

  body[data-page="productos"] .sidebar-category-list button.active::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-left: 9px solid var(--yellow) !important;
    background: transparent !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-sidebar {
    padding: 13px 12px 0 !important;
  }

  body[data-page="productos"] .line-filter .filter-button,
  body[data-page="productos"] .line-filter .filter-button.active {
    min-height: 100px !important;
    gap: 7px !important;
    padding: 8px 6px 12px !important;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 50px !important;
    height: 50px !important;
  }

  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 54px !important;
    height: 54px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 37px !important;
    height: 37px !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(2) .catalog-line-icon img {
    width: 33px !important;
    height: 33px !important;
  }

  body[data-page="productos"] .line-filter .filter-button > span:last-of-type {
    font-size: .76rem !important;
  }

  body[data-page="productos"] .sidebar-category-list {
    justify-content: flex-start !important;
    gap: 6px 14px !important;
    margin: 0 -12px !important;
    padding: 11px 14px 12px !important;
  }

  body[data-page="productos"] .sidebar-category-list button,
  body[data-page="productos"] .sidebar-category-list button.active {
    min-height: 28px !important;
    padding-left: 14px !important;
    font-size: .76rem !important;
  }

  body[data-page="productos"] .sidebar-category-list button.active::before {
    border-top-width: 5px !important;
    border-bottom-width: 5px !important;
    border-left-width: 8px !important;
  }
}

/* Product line filters: responsive version that stays closer to the desktop sidebar language. */
@media (max-width: 1039px) {
  body[data-page="productos"] .catalog-sidebar {
    padding: 20px 22px 22px !important;
    background: var(--red) !important;
  }

  body[data-page="productos"] .mobile-filter-title {
    display: none !important;
  }

  body[data-page="productos"] .line-filter {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  body[data-page="productos"] .line-filter-group {
    display: contents !important;
  }

  body[data-page="productos"] .line-filter .filter-button {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    justify-items: center !important;
    align-content: start !important;
    min-height: 136px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.34) !important;
    background: transparent !important;
    color: #fff !important;
    padding: 8px 16px 14px !important;
    text-align: center !important;
    box-shadow: none !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(3) .filter-button {
    border-right: 0 !important;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    display: grid !important;
    place-items: center !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.7) !important;
    background: rgba(255,255,255,.14) !important;
    overflow: hidden !important;
  }

  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 68px !important;
    height: 68px !important;
    background: rgba(255,255,255,.20) !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(2) .catalog-line-icon img {
    width: 43px !important;
    height: 43px !important;
  }

  body[data-page="productos"] .line-filter .filter-button > span:last-of-type {
    margin-top: 8px !important;
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    overflow-wrap: anywhere !important;
  }

  body[data-page="productos"] .line-filter .filter-button em {
    display: inline-grid !important;
    place-items: center !important;
    min-width: 58px !important;
    min-height: 24px !important;
    margin-top: 8px !important;
    padding: 0 10px !important;
    background: var(--yellow) !important;
    color: #2a231b !important;
    font-size: .72rem !important;
    font-style: normal !important;
    font-weight: 650 !important;
    line-height: 1 !important;
  }

  body[data-page="productos"] .sidebar-category-list {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px 18px !important;
    margin: 8px 0 0 !important;
    padding: 18px 10px 0 !important;
    border-top: 2px solid rgba(255,255,255,.34) !important;
    background: transparent !important;
  }

  body[data-page="productos"] .sidebar-category-list button {
    position: relative !important;
    min-height: 0 !important;
    width: auto !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    padding: 0 0 0 14px !important;
    font-size: .98rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    box-shadow: none !important;
  }

  body[data-page="productos"] .sidebar-category-list button::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: .45em !important;
    display: block !important;
    width: 5px !important;
    height: 5px !important;
    background: currentColor !important;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    background: transparent !important;
    color: var(--yellow) !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-sidebar {
    padding: 14px 12px 16px !important;
  }

  body[data-page="productos"] .line-filter .filter-button {
    min-height: 104px !important;
    padding: 6px 7px 10px !important;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 48px !important;
    height: 48px !important;
  }

  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 52px !important;
    height: 52px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 37px !important;
    height: 37px !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(2) .catalog-line-icon img {
    width: 33px !important;
    height: 33px !important;
  }

  body[data-page="productos"] .line-filter .filter-button > span:last-of-type {
    margin-top: 6px !important;
    font-size: .76rem !important;
    line-height: 1.04 !important;
  }

  body[data-page="productos"] .line-filter .filter-button em {
    min-width: 44px !important;
    min-height: 20px !important;
    margin-top: 6px !important;
    padding: 0 8px !important;
    font-size: .62rem !important;
  }

  body[data-page="productos"] .sidebar-category-list {
    justify-content: flex-start !important;
    gap: 9px 12px !important;
    padding-top: 13px !important;
  }

  body[data-page="productos"] .sidebar-category-list button {
    font-size: .78rem !important;
    padding-left: 11px !important;
  }

  body[data-page="productos"] .sidebar-category-list button::before {
    width: 4px !important;
    height: 4px !important;
  }
}

/* Wide tablet catalog: keep product cards compact enough for 1024px layouts. */
@media (min-width: 900px) and (max-width: 1039px) {
  body[data-page="productos"] .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px 18px !important;
  }

  body[data-page="productos"] .product-card img {
    width: calc(100% - 18px) !important;
    margin-top: 9px !important;
  }

  body[data-page="productos"] .product-card div {
    width: calc(100% - 18px) !important;
    padding: 10px 6px 15px !important;
  }
}

/* Final responsive line filter polish: no boxed line buttons, brown category strip, yellow active marker. */
@media (max-width: 1039px) {
  body[data-page="productos"] .catalog-sidebar {
    padding: 18px 22px 0 !important;
    background: var(--red) !important;
  }

  body[data-page="productos"] .line-filter {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  body[data-page="productos"] .line-filter-group {
    display: contents !important;
  }

  body[data-page="productos"] .line-filter .filter-button {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 10px !important;
    min-height: 132px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.34) !important;
    background: transparent !important;
    color: #fff !important;
    padding: 10px 16px 18px !important;
    box-shadow: none !important;
    text-align: center !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(3) .filter-button {
    border-right: 0 !important;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    background: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
  }

  body[data-page="productos"] .line-filter .filter-button em {
    display: none !important;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    display: grid !important;
    place-items: center !important;
    width: 64px !important;
    height: 64px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 70px !important;
    height: 70px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    filter: brightness(0) saturate(100%) invert(23%) sepia(98%) saturate(2105%) hue-rotate(336deg) brightness(88%) contrast(93%) !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(2) .catalog-line-icon img {
    width: 43px !important;
    height: 43px !important;
  }

  body[data-page="productos"] .line-filter .filter-button > span:last-of-type {
    margin: 0 !important;
    color: #fff !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere !important;
  }

  body[data-page="productos"] .sidebar-category-list {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0 22px !important;
    margin: 0 -22px !important;
    padding: 14px 18px 15px !important;
    border: 0 !important;
    background: var(--brown) !important;
  }

  body[data-page="productos"] .sidebar-category-list button {
    position: relative !important;
    min-height: 32px !important;
    width: auto !important;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    padding: 0 0 0 18px !important;
    font-size: .98rem !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  body[data-page="productos"] .sidebar-category-list button::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-left: 9px solid var(--yellow) !important;
    background: transparent !important;
    transform: translateY(-50%) scale(.72) !important;
    opacity: .36 !important;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    background: transparent !important;
    color: var(--yellow) !important;
  }

  body[data-page="productos"] .sidebar-category-list button.active::before {
    transform: translateY(-50%) scale(1) !important;
    opacity: 1 !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-sidebar {
    padding: 13px 12px 0 !important;
  }

  body[data-page="productos"] .line-filter .filter-button {
    min-height: 100px !important;
    gap: 7px !important;
    padding: 8px 6px 12px !important;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 50px !important;
    height: 50px !important;
  }

  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 54px !important;
    height: 54px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 37px !important;
    height: 37px !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(2) .catalog-line-icon img {
    width: 33px !important;
    height: 33px !important;
  }

  body[data-page="productos"] .line-filter .filter-button > span:last-of-type {
    font-size: .76rem !important;
  }

  body[data-page="productos"] .sidebar-category-list {
    justify-content: flex-start !important;
    gap: 6px 14px !important;
    margin: 0 -12px !important;
    padding: 11px 14px 12px !important;
  }

  body[data-page="productos"] .sidebar-category-list button {
    min-height: 28px !important;
    padding-left: 14px !important;
    font-size: .76rem !important;
  }

  body[data-page="productos"] .sidebar-category-list button::before {
    border-top-width: 5px !important;
    border-bottom-width: 5px !important;
    border-left-width: 8px !important;
  }
}

/* Wide tablet catalog: keep product cards compact enough for 1024px layouts. */
@media (min-width: 900px) and (max-width: 1039px) {
  body[data-page="productos"] .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px 18px !important;
  }

  body[data-page="productos"] .product-card img {
    width: calc(100% - 18px) !important;
    margin-top: 9px !important;
  }

  body[data-page="productos"] .product-card div {
    width: calc(100% - 18px) !important;
    padding: 10px 6px 15px !important;
  }
}

/* True final legal summary override. */
@media (min-width: 1040px) and (max-width: 1280px) {
  body[data-page="tratamiento-datos"] .legal-summary {
    grid-template-columns: 1fr !important;
    max-width: 560px !important;
  }
}

/* Must remain last: legal summary readability at medium widths. */
@media (min-width: 1040px) and (max-width: 1280px) {
  body[data-page="tratamiento-datos"] .legal-summary {
    grid-template-columns: 1fr !important;
    max-width: 560px !important;
  }
}

/* Must remain late: legal page responsive layout. */
@media (max-width: 1039px) {
  .legal-hero {
    grid-template-columns: 1fr;
    padding-top: 118px;
  }

  .legal-hero-copy {
    padding: 42px 20px 32px;
  }

  .legal-hero img {
    min-height: 280px;
    max-height: 360px;
  }

  .legal-summary {
    grid-template-columns: 1fr;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0;
    padding-top: 0;
  }

  .legal-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px;
  }

  .legal-index .eyebrow {
    grid-column: 1 / -1;
  }

  .legal-content.full {
    margin-bottom: 0;
  }

  .legal-content.full section {
    padding: 28px 20px;
  }

  .legal-inline-image img {
    height: 260px;
  }
}

@media (max-width: 520px) {
  .legal-index {
    grid-template-columns: 1fr;
  }
}

/* Must remain last: treatment data page refinements. */
body[data-page="tratamiento-datos"] main {
  background: var(--white) !important;
}

body[data-page="tratamiento-datos"] .legal-hero {
  padding-top: 0 !important;
  background: var(--sand-2);
}

body[data-page="tratamiento-datos"] .legal-hero-copy {
  padding-top: 185px;
}

body[data-page="tratamiento-datos"] .legal-summary {
  grid-template-columns: minmax(170px, .95fr) minmax(170px, .95fr) minmax(330px, 1.45fr);
}

body[data-page="tratamiento-datos"] .legal-summary dd,
body[data-page="tratamiento-datos"] .legal-summary a,
body[data-page="tratamiento-datos"] .legal-content a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body[data-page="tratamiento-datos"] .legal-summary a {
  display: inline-block;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: anywhere;
}

body[data-page="tratamiento-datos"] .legal-shell {
  background: var(--white);
  padding-bottom: 38px;
}

body[data-page="tratamiento-datos"] .legal-index {
  top: 220px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 18px 34px rgba(85,64,59,.13);
}

body[data-page="tratamiento-datos"] .legal-index .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page="tratamiento-datos"] .legal-index .eyebrow::before {
  content: "";
  width: 22px;
  height: 4px;
  background: var(--yellow);
}

body[data-page="tratamiento-datos"] .legal-content.full section {
  background: var(--sand-2);
}

body[data-page="tratamiento-datos"] .legal-content.full section:nth-of-type(even) {
  background: #f5f2ed;
}

body[data-page="tratamiento-datos"] .contact-ribbon {
  width: 650px;
  max-width: 72%;
  margin: 0 0 0 calc(50% - 325px - 162px);
  padding: 12px 18px;
  font-size: 1.34rem;
}

@media (max-width: 1039px) {
  body[data-page="tratamiento-datos"] .legal-hero {
    padding-top: 118px !important;
  }

  body[data-page="tratamiento-datos"] .legal-hero-copy {
    padding-top: 42px;
  }

  body[data-page="tratamiento-datos"] .legal-summary {
    grid-template-columns: 1fr;
  }

  body[data-page="tratamiento-datos"] .legal-index {
    top: auto;
    box-shadow: none;
  }

  body[data-page="tratamiento-datos"] .contact-ribbon {
    width: min(360px, calc(100% - 28px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1040px) and (max-width: 1280px) {
  body[data-page="tratamiento-datos"] .legal-summary {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

/* Must remain last: final polish for touch product filters and search. */
@media (max-width: 1039px) {
  body[data-page="productos"] .mobile-filter-title { font-weight: 650 !important; letter-spacing: 0 !important; }

  body[data-page="productos"] .search-box {
    position: relative !important;
    display: block !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  body[data-page="productos"] .search-box::before {
    content: "\f002" !important;
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    z-index: 1 !important;
    transform: translateY(-50%) !important;
    color: var(--red) !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: .98rem !important;
    pointer-events: none !important;
  }

  body[data-page="productos"] .search-box input {
    min-height: 54px !important;
    border: 2px solid rgba(198,185,169,.95) !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,.86) !important;
    padding: 0 16px 0 50px !important;
    color: var(--brown) !important;
    box-shadow: 0 12px 24px rgba(85,64,59,.08) !important;
    font-size: 1rem !important;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease !important;
  }

  body[data-page="productos"] .search-box input::placeholder { color: rgba(85,64,59,.66) !important; }

  body[data-page="productos"] .search-box input:focus {
    border-color: var(--sand) !important;
    background: var(--white) !important;
    box-shadow: 0 14px 30px rgba(85,64,59,.13) !important;
    outline: none !important;
  }
}

@media (min-width: 521px) and (max-width: 1039px) {
  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 42px !important;
    height: 42px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 42px !important;
    height: 42px !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 38px !important;
    height: 38px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 38px !important;
    height: 38px !important;
  }

  body[data-page="productos"] .search-box::before { left: 16px !important; }

  body[data-page="productos"] .search-box input {
    min-height: 52px !important;
    padding-left: 46px !important;
    font-size: .94rem !important;
  }
}

/* Absolute final polish for touch product filters and search. */
@media (max-width: 1039px) {
  body[data-page="productos"] .mobile-filter-title { font-weight: 650 !important; letter-spacing: 0 !important; }

  body[data-page="productos"] .search-box {
    position: relative !important;
    display: block !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  body[data-page="productos"] .search-box::before {
    content: "\f002" !important;
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    z-index: 1 !important;
    transform: translateY(-50%) !important;
    color: var(--red) !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: .98rem !important;
    pointer-events: none !important;
  }

  body[data-page="productos"] .search-box input {
    min-height: 54px !important;
    border: 2px solid rgba(198,185,169,.95) !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,.86) !important;
    padding: 0 16px 0 50px !important;
    color: var(--brown) !important;
    box-shadow: 0 12px 24px rgba(85,64,59,.08) !important;
    font-size: 1rem !important;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease !important;
  }

  body[data-page="productos"] .search-box input::placeholder { color: rgba(85,64,59,.66) !important; }

  body[data-page="productos"] .search-box input:focus {
    border-color: var(--sand) !important;
    background: var(--white) !important;
    box-shadow: 0 14px 30px rgba(85,64,59,.13) !important;
    outline: none !important;
  }
}

@media (min-width: 521px) and (max-width: 1039px) {
  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 42px !important;
    height: 42px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 42px !important;
    height: 42px !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 38px !important;
    height: 38px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 38px !important;
    height: 38px !important;
  }

  body[data-page="productos"] .search-box::before { left: 16px !important; }

  body[data-page="productos"] .search-box input {
    min-height: 52px !important;
    padding-left: 46px !important;
    font-size: .94rem !important;
  }
}

/* Absolute final polish for touch product filters and search. */
@media (max-width: 1039px) {
  body[data-page="productos"] .mobile-filter-title {
    font-weight: 650 !important;
    letter-spacing: 0 !important;
  }

  body[data-page="productos"] .search-box {
    position: relative !important;
    display: block !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  body[data-page="productos"] .search-box::before {
    content: "\f002" !important;
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    z-index: 1 !important;
    transform: translateY(-50%) !important;
    color: var(--red) !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: .98rem !important;
    pointer-events: none !important;
  }

  body[data-page="productos"] .search-box input {
    min-height: 54px !important;
    border: 2px solid rgba(198,185,169,.95) !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,.86) !important;
    padding: 0 16px 0 50px !important;
    color: var(--brown) !important;
    box-shadow: 0 12px 24px rgba(85,64,59,.08) !important;
    font-size: 1rem !important;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease !important;
  }

  body[data-page="productos"] .search-box input::placeholder {
    color: rgba(85,64,59,.66) !important;
  }

  body[data-page="productos"] .search-box input:focus {
    border-color: var(--sand) !important;
    background: var(--white) !important;
    box-shadow: 0 14px 30px rgba(85,64,59,.13) !important;
    outline: none !important;
  }
}

@media (min-width: 521px) and (max-width: 1039px) {
  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 42px !important;
    height: 42px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 42px !important;
    height: 42px !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 38px !important;
    height: 38px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 38px !important;
    height: 38px !important;
  }

  body[data-page="productos"] .search-box::before {
    left: 16px !important;
  }

  body[data-page="productos"] .search-box input {
    min-height: 52px !important;
    padding-left: 46px !important;
    font-size: .94rem !important;
  }
}

/* Final polish for touch product filters and search. */
@media (max-width: 1039px) {
  body[data-page="productos"] .mobile-filter-title {
    font-weight: 650 !important;
    letter-spacing: 0;
  }

  body[data-page="productos"] .search-box {
    position: relative !important;
    display: block !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  body[data-page="productos"] .search-box::before {
    content: "\f002" !important;
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    z-index: 1 !important;
    transform: translateY(-50%) !important;
    color: var(--red) !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: .98rem !important;
    pointer-events: none !important;
  }

  body[data-page="productos"] .search-box input {
    min-height: 54px !important;
    border: 2px solid rgba(198,185,169,.95) !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,.86) !important;
    padding: 0 16px 0 50px !important;
    color: var(--brown) !important;
    box-shadow: 0 12px 24px rgba(85,64,59,.08) !important;
    font-size: 1rem !important;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease !important;
  }

  body[data-page="productos"] .search-box input::placeholder {
    color: rgba(85,64,59,.66) !important;
  }

  body[data-page="productos"] .search-box input:focus {
    border-color: var(--sand) !important;
    background: var(--white) !important;
    box-shadow: 0 14px 30px rgba(85,64,59,.13) !important;
    outline: none !important;
  }
}

@media (min-width: 521px) and (max-width: 1039px) {
  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 42px !important;
    height: 42px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 42px !important;
    height: 42px !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 38px !important;
    height: 38px !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 38px !important;
    height: 38px !important;
  }

  body[data-page="productos"] .search-box::before {
    left: 16px !important;
  }

  body[data-page="productos"] .search-box input {
    min-height: 52px !important;
    padding-left: 46px !important;
    font-size: .94rem !important;
  }
}

/* Final mobile/tablet catalog filter override. */
@media (max-width: 1039px) {
  body[data-page="productos"] .line-filter .filter-button {
    border: 1px solid rgba(255,255,255,.38);
    background: transparent !important;
    color: #fff;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    border-color: rgba(255,255,255,.28);
    background: var(--brown) !important;
    color: #fff !important;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    background: transparent;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 112%;
    height: 112%;
    filter: brightness(0) invert(1);
  }

  body[data-page="productos"] .sidebar-category-list {
    background: transparent;
  }

  body[data-page="productos"] .sidebar-category-list button {
    border-color: rgba(255,255,255,.36);
    background: transparent;
    color: #fff;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    border-color: rgba(255,255,255,.28);
    background: var(--brown) !important;
    color: #fff !important;
  }
}

@media (min-width: 521px) and (max-width: 1039px) {
  body[data-page="productos"] .line-filter .filter-button {
    grid-template-columns: 34px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .line-filter .filter-button {
    grid-template-columns: 26px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
  }
}

/* Final touch-filter correction: same-color controls with visible icons. */
@media (max-width: 1039px) {
  body[data-page="productos"] .line-filter .filter-button {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: center;
    gap: 5px;
    min-width: 0;
    border: 1px solid rgba(255,255,255,.48);
    background: transparent !important;
    color: #fff !important;
    overflow: hidden;
    text-align: center;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    border-color: #fff;
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
  }

  body[data-page="productos"] .line-filter .filter-button > span:last-of-type {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: transparent;
    overflow: visible;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  body[data-page="productos"] .sidebar-category-list {
    background: transparent;
  }

  body[data-page="productos"] .sidebar-category-list button {
    min-width: 0;
    border-color: rgba(255,255,255,.48);
    background: transparent !important;
    color: #fff !important;
    overflow-wrap: anywhere;
    text-align: center;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    border-color: #fff;
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
  }
}

@media (min-width: 521px) and (max-width: 1039px) {
  body[data-page="productos"] .line-filter .filter-button {
    min-height: 76px;
    padding: 9px 8px;
    font-size: .92rem;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .line-filter .filter-button {
    min-height: 70px;
    padding: 8px 5px;
    font-size: .72rem;
  }

  body[data-page="productos"] .sidebar-category-list {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }
}

@media (max-width: 1039px) {
  body[data-page="productos"] .line-filter .filter-button {
    border: 1px solid rgba(255,255,255,.38);
    background: transparent;
    color: #fff;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    border-color: rgba(255,255,255,.28);
    background: var(--brown) !important;
    color: #fff !important;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    background: transparent;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 112%;
    height: 112%;
    filter: brightness(0) invert(1);
  }

  body[data-page="productos"] .sidebar-category-list {
    background: transparent;
  }

  body[data-page="productos"] .sidebar-category-list button {
    border-color: rgba(255,255,255,.36);
    background: transparent;
    color: #fff;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    border-color: rgba(255,255,255,.28);
    background: var(--brown) !important;
    color: #fff !important;
  }
}

@media (min-width: 521px) and (max-width: 1039px) {
  body[data-page="productos"] .line-filter .filter-button {
    grid-template-columns: 34px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .line-filter .filter-button {
    grid-template-columns: 26px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
  }
}

/* Refined touch filter style: outlined controls with inline icons. */
@media (min-width: 521px) and (max-width: 1039px) {
  body[data-page="productos"] .line-filter .filter-button {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 54px;
    border: 1px solid rgba(255,255,255,.38);
    background: transparent;
    color: #fff;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    border-color: rgba(255,255,255,.28);
    background: var(--brown);
    color: #fff;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 32px;
    height: 32px;
    background: transparent;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 112%;
    height: 112%;
    filter: brightness(0) invert(1);
  }

  body[data-page="productos"] .sidebar-category-list {
    background: transparent;
  }

  body[data-page="productos"] .sidebar-category-list button {
    border-color: rgba(255,255,255,.36);
    background: transparent !important;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    border-color: rgba(255,255,255,.28);
    background: var(--brown);
    color: #fff;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .line-filter .filter-button {
    grid-template-columns: 26px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    min-height: 52px;
    border: 1px solid rgba(255,255,255,.38);
    background: transparent !important;
    color: #fff;
    text-align: left;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    border-color: rgba(255,255,255,.28);
    background: var(--brown);
    color: #fff;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 25px;
    height: 25px;
    background: transparent;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 112%;
    height: 112%;
    filter: brightness(0) invert(1);
  }

  body[data-page="productos"] .sidebar-category-list {
    background: transparent;
  }

  body[data-page="productos"] .sidebar-category-list button {
    border-color: rgba(255,255,255,.36);
    background: transparent !important;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    border-color: rgba(255,255,255,.28);
    background: var(--brown);
    color: #fff;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-sidebar {
    box-shadow: 0 10px 22px rgba(85,64,59,.12);
  }

  body[data-page="productos"] .line-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding: 0;
  }

  body[data-page="productos"] .line-filter-group {
    display: contents;
  }

  body[data-page="productos"] .line-filter .filter-button {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 62px;
    gap: 5px;
    padding: 8px 6px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: .76rem;
    line-height: 1.05;
    text-align: center;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    background: var(--sand-2);
    color: var(--brown);
  }

  body[data-page="productos"] .line-filter .filter-button em {
    display: none;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    width: 30px;
    height: 30px;
  }

  body[data-page="productos"] .line-filter-group:nth-child(1) .filter-button {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-page="productos"] .line-filter-group:nth-child(2) .filter-button {
    grid-column: 2;
    grid-row: 1;
  }

  body[data-page="productos"] .line-filter-group:nth-child(3) .filter-button {
    grid-column: 3;
    grid-row: 1;
  }

  body[data-page="productos"] .sidebar-category-list {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 7px;
    margin: 4px 0 0;
    padding: 9px;
    background: rgba(255,255,255,.08);
  }

  body[data-page="productos"] .sidebar-category-list button {
    min-height: 32px;
    width: 100%;
    border: 1px solid rgba(255,255,255,.40);
    padding: 0 10px;
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
  }

  body[data-page="productos"] .sidebar-category-list button::before {
    display: none;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    border-color: var(--sand-2);
    background: var(--sand-2);
    color: var(--brown);
  }
}

/* Must remain last: integrated mobile/tablet product filters. */
@media (max-width: 1039px) {
  body[data-page="productos"] .mobile-filter-title {
    font-weight: 650 !important;
    letter-spacing: 0 !important;
  }

  body[data-page="productos"] .search-box {
    position: relative !important;
    display: block !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  body[data-page="productos"] .search-box::before {
    content: "\f002" !important;
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    z-index: 1 !important;
    transform: translateY(-50%) !important;
    color: var(--red) !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: .98rem !important;
    pointer-events: none !important;
  }

  body[data-page="productos"] .search-box input {
    min-height: 54px !important;
    border: 2px solid rgba(198,185,169,.95) !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,.86) !important;
    padding: 0 16px 0 50px !important;
    color: var(--brown) !important;
    box-shadow: 0 12px 24px rgba(85,64,59,.08) !important;
    font-size: 1rem !important;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease !important;
  }

  body[data-page="productos"] .search-box input::placeholder {
    color: rgba(85,64,59,.66) !important;
  }

  body[data-page="productos"] .search-box input:focus {
    border-color: var(--sand) !important;
    background: var(--white) !important;
    box-shadow: 0 14px 30px rgba(85,64,59,.13) !important;
    outline: none !important;
  }

  body[data-page="productos"] .line-filter .filter-button {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 5px !important;
    border: 1px solid rgba(255,255,255,.48) !important;
    background: transparent !important;
    color: #fff !important;
    overflow: hidden !important;
    text-align: center !important;
  }

  body[data-page="productos"] .line-filter .filter-button.active {
    border-color: #fff !important;
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.72) !important;
  }

  body[data-page="productos"] .line-filter .filter-button > span:last-of-type {
    display: block !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    display: grid !important;
    place-items: center !important;
    width: 46px !important;
    height: 42px !important;
    background: transparent !important;
    overflow: visible !important;
  }

  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    display: block !important;
    width: 46px !important;
    height: 42px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
  }

  body[data-page="productos"] .sidebar-category-list {
    background: transparent !important;
  }

  body[data-page="productos"] .sidebar-category-list button {
    min-width: 0 !important;
    border-color: rgba(255,255,255,.48) !important;
    background: transparent !important;
    color: #fff !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
  }

  body[data-page="productos"] .sidebar-category-list button.active {
    border-color: #fff !important;
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.72) !important;
  }
}

@media (min-width: 521px) and (max-width: 1039px) {
  body[data-page="productos"] .line-filter .filter-button {
    min-height: 76px !important;
    padding: 9px 8px !important;
    font-size: .92rem !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .line-filter .filter-button {
    min-height: 70px !important;
    padding: 8px 5px !important;
    font-size: .72rem !important;
  }

  body[data-page="productos"] .sidebar-category-list {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)) !important;
  }
}

/* ABSOLUTE LAST: clean tablet/mobile product line filters. */
@media (max-width: 1039px) {
  body[data-page="productos"] .catalog-sidebar { padding: 18px 22px 0 !important; background: var(--red) !important; }
  body[data-page="productos"] .line-filter { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0 !important; }
  body[data-page="productos"] .line-filter-group { display: contents !important; }
  body[data-page="productos"] .line-filter .filter-button,
  body[data-page="productos"] .line-filter .filter-button.active {
    display: grid !important; grid-template-columns: 1fr !important; grid-template-rows: auto auto !important;
    justify-items: center !important; align-content: center !important; gap: 10px !important;
    min-height: 132px !important; border: 0 !important; border-right: 1px solid rgba(255,255,255,.34) !important;
    background: transparent !important; color: #fff !important; padding: 10px 16px 18px !important;
    box-shadow: none !important; text-align: center !important;
  }
  body[data-page="productos"] .line-filter-group:nth-child(3) .filter-button { border-right: 0 !important; }
  body[data-page="productos"] .line-filter .filter-button em { display: none !important; }
  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon {
    display: grid !important; place-items: center !important; width: 66px !important; height: 66px !important;
    border: 0 !important; border-radius: 999px !important; background: #fff !important; overflow: hidden !important;
  }
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon { width: 72px !important; height: 72px !important; }
  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img {
    width: 49px !important; height: 49px !important; object-fit: contain !important;
    filter: brightness(0) saturate(100%) invert(23%) sepia(98%) saturate(2105%) hue-rotate(336deg) brightness(88%) contrast(93%) !important;
  }
  body[data-page="productos"] .line-filter-group:nth-child(2) .catalog-line-icon img { width: 44px !important; height: 44px !important; }
  body[data-page="productos"] .line-filter .filter-button > span:last-of-type {
    margin: 0 !important; color: #fff !important; font-size: 1.05rem !important; font-weight: 800 !important; line-height: 1.08 !important;
  }
  body[data-page="productos"] .sidebar-category-list {
    grid-column: 1 / -1 !important; display: flex !important; flex-wrap: wrap !important; justify-content: center !important;
    gap: 0 24px !important; margin: 0 -22px !important; padding: 14px 18px 15px !important;
    border: 0 !important; background: var(--brown) !important;
  }
  body[data-page="productos"] .sidebar-category-list button,
  body[data-page="productos"] .sidebar-category-list button.active {
    position: relative !important; min-height: 32px !important; width: auto !important; border: 0 !important;
    background: transparent !important; padding: 0 0 0 18px !important; color: #fff !important;
    font-size: .98rem !important; font-weight: 800 !important; line-height: 1.18 !important;
    box-shadow: none !important; text-align: left !important;
  }
  body[data-page="productos"] .sidebar-category-list button.active { color: var(--yellow) !important; }
  body[data-page="productos"] .sidebar-category-list button::before { display: none !important; }
  body[data-page="productos"] .sidebar-category-list button.active::before {
    content: "" !important; position: absolute !important; left: 0 !important; top: 50% !important; display: block !important;
    width: 0 !important; height: 0 !important; border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important; border-left: 9px solid var(--yellow) !important;
    background: transparent !important; transform: translateY(-50%) !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-sidebar { padding: 13px 12px 0 !important; }
  body[data-page="productos"] .line-filter .filter-button,
  body[data-page="productos"] .line-filter .filter-button.active {
    min-height: 100px !important; gap: 7px !important; padding: 8px 6px 12px !important;
  }
  body[data-page="productos"] .catalog-line-icon,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon { width: 50px !important; height: 50px !important; }
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon { width: 54px !important; height: 54px !important; }
  body[data-page="productos"] .catalog-line-icon img,
  body[data-page="productos"] .line-filter-group.active .catalog-line-icon img { width: 37px !important; height: 37px !important; }
  body[data-page="productos"] .line-filter-group:nth-child(2) .catalog-line-icon img { width: 33px !important; height: 33px !important; }
  body[data-page="productos"] .line-filter .filter-button > span:last-of-type { font-size: .76rem !important; }
  body[data-page="productos"] .sidebar-category-list {
    justify-content: flex-start !important; gap: 6px 14px !important; margin: 0 -12px !important; padding: 11px 14px 12px !important;
  }
  body[data-page="productos"] .sidebar-category-list button,
  body[data-page="productos"] .sidebar-category-list button.active {
    min-height: 28px !important; padding-left: 14px !important; font-size: .76rem !important;
  }
  body[data-page="productos"] .sidebar-category-list button.active::before {
    border-top-width: 5px !important; border-bottom-width: 5px !important; border-left-width: 8px !important;
  }
}

/* ABSOLUTE LAST: catalog strip joins intro block and line dividers are visible. */
@media (max-width: 1039px) {
  body[data-page="productos"] .catalog-layout {
    margin-top: 0 !important;
  }

  body[data-page="productos"] .line-filter .filter-button,
  body[data-page="productos"] .line-filter .filter-button.active {
    border-right: 3px solid rgba(255,255,255,.42) !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(3) .filter-button {
    border-right: 0 !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-layout {
    margin-top: 0 !important;
  }

  body[data-page="productos"] .line-filter .filter-button,
  body[data-page="productos"] .line-filter .filter-button.active {
    border-right-width: 2px !important;
  }
}

/* ABSOLUTE LAST: product filters layer, join and dividers refinement. */
@media (max-width: 1039px) {
  .site-header {
    z-index: 500 !important;
  }

  .brand {
    z-index: 501 !important;
  }

  body[data-page="productos"] .catalog-layout {
    position: relative !important;
    z-index: 1 !important;
    margin-top: -22px !important;
  }

  body[data-page="productos"] .catalog-sidebar {
    position: relative !important;
    z-index: 1 !important;
  }

  body[data-page="productos"] .line-filter .filter-button,
  body[data-page="productos"] .line-filter .filter-button.active {
    position: relative !important;
    border-right: 0 !important;
  }

  body[data-page="productos"] .line-filter .filter-button::after {
    content: "" !important;
    position: absolute !important;
    top: 22px !important;
    right: 0 !important;
    bottom: 22px !important;
    display: block !important;
    width: 3px !important;
    background: #fff !important;
    opacity: 1 !important;
  }

  body[data-page="productos"] .line-filter-group:nth-child(3) .filter-button::after {
    display: none !important;
  }

  body[data-page="productos"] .sidebar-category-list button,
  body[data-page="productos"] .sidebar-category-list button.active {
    font-weight: 650 !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-layout {
    margin-top: -10px !important;
  }

  body[data-page="productos"] .line-filter .filter-button::after {
    top: 16px !important;
    bottom: 16px !important;
    width: 2px !important;
  }

  body[data-page="productos"] .sidebar-category-list button,
  body[data-page="productos"] .sidebar-category-list button.active {
    font-weight: 650 !important;
  }
}

/* ABSOLUTE LAST: pull catalog into the intro and keep the search below filters. */
@media (max-width: 1039px) {
  body[data-page="productos"] .catalog-layout {
    margin-top: -64px !important;
  }

  body[data-page="productos"] .catalog-main {
    margin-top: 58px !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-layout {
    margin-top: -26px !important;
  }

  body[data-page="productos"] .catalog-main {
    margin-top: 32px !important;
  }
}

/* ABSOLUTE LAST: red filter panel starts at hero edge; intro floats above it. */
@media (max-width: 1039px) {
  body[data-page="productos"] .catalog-layout {
    margin-top: -131px !important;
  }

  body[data-page="productos"] .catalog-sidebar {
    top: 0 !important;
    padding-top: 170px !important;
  }

  body[data-page="productos"] .catalog-main {
    margin-top: 58px !important;
  }

  body[data-page="productos"] .line-filter .filter-button::after {
    background: #fff !important;
    opacity: 1 !important;
  }

  body[data-page="productos"] .sidebar-category-list button,
  body[data-page="productos"] .sidebar-category-list button.active {
    font-weight: 600 !important;
  }
}

@media (max-width: 520px) {
  body[data-page="productos"] .catalog-layout {
    margin-top: -266px !important;
  }

  body[data-page="productos"] .catalog-sidebar {
    top: 0 !important;
    padding-top: 282px !important;
  }

  body[data-page="productos"] .catalog-main {
    margin-top: 32px !important;
  }

  body[data-page="productos"] .sidebar-category-list button,
  body[data-page="productos"] .sidebar-category-list button.active {
    font-weight: 600 !important;
  }
}

/* ABSOLUTE LAST: keep product footer columns on one row for tablet widths. */
@media (min-width: 760px) and (max-width: 1039px) {
  body[data-page="productos"] .contact-grid.three {
    grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr) 2px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 22px !important;
  }

  body[data-page="productos"] .contact-divider {
    display: block !important;
    width: 2px !important;
    min-height: 100% !important;
  }
}

/* ABSOLUTE LAST: compact the product footer form on tablet so columns feel balanced. */
@media (min-width: 760px) and (max-width: 1039px) {
  body[data-page="productos"] .contact-form {
    gap: 5px !important;
    padding: 4px 0 0 !important;
  }

  body[data-page="productos"] .contact-form input,
  body[data-page="productos"] .contact-form textarea {
    padding: 7px 10px !important;
  }

  body[data-page="productos"] .contact-form textarea {
    min-height: 76px !important;
  }

  body[data-page="productos"] .privacy-consent {
    grid-template-columns: 16px 1fr !important;
    gap: 8px !important;
    margin-top: 2px !important;
    font-size: .74rem !important;
    line-height: 1.22 !important;
  }

  body[data-page="productos"] .privacy-consent input {
    width: 16px !important;
    height: 16px !important;
  }

  body[data-page="productos"] .form-status {
    min-height: .8em !important;
    font-size: .76rem !important;
    line-height: 1.15 !important;
  }

  body[data-page="productos"] .contact-form .button {
    min-height: 36px !important;
    margin-top: 0 !important;
  }
}

/* ABSOLUTE LAST: match home/services tablet hero and footer to products. */
@media (min-width: 521px) and (max-width: 1039px) {
  body[data-page="inicio"] .hero,
  body[data-page="servicios"] .hero {
    width: min(var(--max), calc(100% - 28px)) !important;
    min-height: 560px !important;
  }

  body[data-page="inicio"] .hero-content,
  body[data-page="servicios"] .hero-content {
    width: min(330px, 42vw) !important;
    margin: 230px 0 0 34px !important;
  }

  body[data-page="inicio"] .slogan::before,
  body[data-page="servicios"] .slogan::before {
    font-size: 16rem !important;
  }

  body[data-page="inicio"] .slogan span:first-child,
  body[data-page="servicios"] .slogan span:first-child {
    font-size: 2.55rem !important;
  }

  body[data-page="inicio"] .slogan span:nth-of-type(2),
  body[data-page="servicios"] .slogan span:nth-of-type(2) {
    font-size: 1.86rem !important;
  }

  body[data-page="inicio"] .intro-band,
  body[data-page="servicios"] .intro-band {
    width: min(720px, calc(100% - 64px)) !important;
    margin: -40px auto 0 !important;
  }

  body[data-page="inicio"] .intro-band strong,
  body[data-page="servicios"] .intro-band strong {
    width: min(560px, calc(100% - 52px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: translateY(-50%) !important;
  }

  body[data-page="inicio"] .intro-band span,
  body[data-page="servicios"] .intro-band span {
    left: 28px !important;
    right: 28px !important;
  }
}

@media (min-width: 760px) and (max-width: 1039px) {
  body[data-page="inicio"] .contact-footer,
  body[data-page="servicios"] .contact-footer {
    width: min(var(--max), 100%) !important;
    margin: 0 auto !important;
  }

  body[data-page="inicio"] .contact-ribbon,
  body[data-page="servicios"] .contact-ribbon {
    position: relative !important;
    z-index: 3 !important;
    width: 650px !important;
    max-width: 72% !important;
    margin-left: calc(50% - 325px - 162px) !important;
    margin-right: auto !important;
    padding: 12px 18px !important;
    font-size: 1.34rem !important;
  }

  body[data-page="inicio"] .contact-grid,
  body[data-page="servicios"] .contact-grid {
    width: calc(100% - 72px) !important;
    padding: 54px 0 44px !important;
    gap: 22px !important;
  }

  body[data-page="inicio"] .contact-grid.three,
  body[data-page="servicios"] .contact-grid.three {
    grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr) 2px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  body[data-page="inicio"] .contact-divider,
  body[data-page="servicios"] .contact-divider {
    display: block !important;
    width: 2px !important;
    min-height: 100% !important;
  }

  body[data-page="inicio"] .contact-form,
  body[data-page="servicios"] .contact-form {
    flex: initial !important;
    grid-template-rows: none !important;
    gap: 5px !important;
    padding: 4px 0 0 !important;
  }

  body[data-page="inicio"] .contact-form input,
  body[data-page="inicio"] .contact-form textarea,
  body[data-page="servicios"] .contact-form input,
  body[data-page="servicios"] .contact-form textarea {
    padding: 7px 10px !important;
  }

  body[data-page="inicio"] .contact-form textarea,
  body[data-page="servicios"] .contact-form textarea {
    min-height: 76px !important;
  }

  body[data-page="inicio"] .privacy-consent,
  body[data-page="servicios"] .privacy-consent {
    grid-template-columns: 16px 1fr !important;
    gap: 8px !important;
    margin-top: 2px !important;
    font-size: .74rem !important;
    line-height: 1.22 !important;
  }

  body[data-page="inicio"] .privacy-consent input,
  body[data-page="servicios"] .privacy-consent input {
    width: 16px !important;
    height: 16px !important;
  }

  body[data-page="inicio"] .form-status,
  body[data-page="servicios"] .form-status {
    min-height: .8em !important;
    font-size: .76rem !important;
    line-height: 1.15 !important;
  }

  body[data-page="inicio"] .contact-form .button,
  body[data-page="servicios"] .contact-form .button {
    min-height: 36px !important;
    margin-top: 0 !important;
  }

  body[data-page="inicio"] .map-embed,
  body[data-page="servicios"] .map-embed,
  body[data-page="inicio"] .contact-location .map-embed,
  body[data-page="servicios"] .contact-location .map-embed {
    height: 190px !important;
    min-height: 190px !important;
    flex: initial !important;
  }
}

/* Tablet home QA: keep the 1024px layout edge-to-edge and prevent service ribbon overlap. */
@media (min-width: 760px) and (max-width: 1039px) {
  body[data-page="inicio"] .hero,
  body[data-page="inicio"] .product-lines,
  body[data-page="inicio"] .services-preview {
    width: 100% !important;
    max-width: none !important;
  }

  body[data-page="inicio"] .hero {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body[data-page="inicio"] .home-tile-grid,
  body[data-page="inicio"] .service-tile-grid {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body[data-page="inicio"] .section-ribbon {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: min(650px, calc(100% - 56px)) !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  body[data-page="inicio"] .services-preview {
    padding-top: 0 !important;
  }

  body[data-page="inicio"] .services-preview .service-tile-grid {
    margin-top: 0 !important;
  }
}
