: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;
}

.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 img {
  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;
}

.home-tile img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  border-right: 5px solid rgba(255,255,255,.88);
  transition: transform .35s ease;
}

.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-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-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);
  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 h3::first-letter {
  color: var(--red);
}

.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;
}

.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 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;
}

.modal-watermark {
  position: absolute;
  left: 22px;
  bottom: 26px;
  z-index: 6;
  width: min(300px, 58%);
  height: 82px;
  background: rgba(255,255,255,.82);
  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 8px rgba(0,0,0,.35));
  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 {
  background: var(--sand-2);
  color: var(--brown);
  font-size: .82rem;
  font-weight: 800;
  padding: 5px 8px;
}

.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-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 {
  display: grid;
  gap: 16px;
}

.service-detail-grid article {
  display: grid;
  background: var(--white);
  border: 1px solid #ded6cb;
}

.service-detail-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.service-detail-grid div {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.service-detail-grid a {
  color: var(--red);
  font-weight: 800;
}

.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);
}

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

.contact-ribbon {
  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;
}

.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: transparent;
  color: var(--white);
  font: inherit;
  padding: 10px 12px;
}

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

.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;
}

.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-grid article {
    grid-template-columns: 42% 1fr;
  }

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

  .service-detail-grid article:nth-child(even) img {
    order: 2;
  }

  .service-detail-grid img {
    height: 100%;
    min-height: 320px;
  }
}

@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 {
    width: min(var(--max), 100%);
    max-width: var(--max);
    min-height: 505px;
    margin: 0 auto;
    background: var(--sand);
  }

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

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

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

  body[data-page="inicio"] .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 {
    font-size: 3.12rem;
    line-height: .95;
  }

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

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

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

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

  body[data-page="inicio"] .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 {
    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 {
    max-width: 646px;
    padding: 0 40px 45px 44px;
    font-size: 1.02rem;
    line-height: 1.34;
  }

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

  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"] .line-icon::before,
  body[data-page="inicio"] .service-icon::before {
    transform: scale(1.25);
  }

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

  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 {
    width: min(var(--max), 100%);
    margin: 0 auto;
  }

  body[data-page="inicio"] .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 {
    width: calc(100% - 96px);
    padding: 56px 0 64px;
    gap: 34px;
  }

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

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

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

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

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

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

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

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

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

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

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

  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: 0 auto;
    align-items: stretch;
    background: var(--sand-2);
  }

  body[data-page="productos"] .catalog-sidebar {
    position: relative;
    top: auto;
    z-index: 1;
    min-height: 1110px;
    padding: 135px 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: 126%;
    height: 126%;
    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"] .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: 22px;
    min-width: 0;
    padding: 150px 36px 80px;
    background: var(--sand-2);
  }

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

  body[data-page="productos"] .search-box input {
    min-height: 48px;
    border: 1px solid #b9b0a7;
    background: rgba(255,255,255,.54);
    padding: 0 14px;
    font-size: .98rem;
  }

  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.15;
    border: 8px solid #fff;
    object-fit: cover;
  }

  body[data-page="productos"] .product-card div {
    gap: 1px;
    padding: 12px 10px 18px;
  }

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

  body[data-page="productos"] .product-card h3::first-letter {
    color: inherit;
  }

  body[data-page="productos"] .product-card strong {
    font-size: 1rem;
    font-weight: 400;
  }

  body[data-page="productos"] .product-card p {
    color: var(--brown);
    font-size: .9rem;
  }

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

  body[data-page="productos"] .contact-ribbon {
    width: 620px;
    max-width: 68%;
    padding: 8px 16px;
    font-size: 1.08rem;
  }

  body[data-page="productos"] .contact-grid {
    width: calc(100% - 72px);
    padding: 54px 0 58px;
    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 (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 img {
    height: 100%;
    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;
  }

  .home-tile:last-child .tile-top,
  .home-tile:last-child img {
    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-layout {
    margin-top: 142px;
  }

  .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;
  }
}

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