/* Inner pages (catálogo, nosotros, dónde encontrarnos, contacto). Loaded after the base and component styles. */

html.subpage,
html.subpage body {
  overflow: visible;
  overscroll-behavior: auto;
}

html.subpage {
  background: var(--tone);
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 170px 5.3% 48px;
  background: var(--tone);
  isolation: isolate;
  overflow: hidden;
}

.page-main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
}

.page-main h1 {
  font-size: clamp(2.5rem, 5vw, 5.1rem);
}

.eyebrow {
  margin: 0 0 20px;
  font-size: .75rem;
  letter-spacing: .15em;
  color: #ffffffb3;
}

.lead {
  max-width: 520px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #fffffff0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.product-card {
  display: block;
  padding: 18px 18px 20px;
  border: 1px solid #ffffff2e;
  border-radius: 20px;
  background: #ffffff12;
  transition: background .2s;
}

.product-card:hover {
  background: #ffffff26;
}

.product-card figure {
  margin: 0 0 16px;
  filter: drop-shadow(0 14px 12px #0002);
}

.product-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .3s;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-card[data-color=green] img {
  filter: url(#green-cutout);
}

.product-card[data-color=red] img {
  filter: url(#red-cutout);
}

.product-card[data-color=yellow] img {
  filter: url(#yellow-cutout);
}

.product-card h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -.02em;
}

.product-price {
  margin: 0;
  font-size: 1rem;
}

.product-price s {
  margin-left: 8px;
  color: #ffffffa6;
}

.page-footer {
  margin-top: 64px;
}

.page-footer .socials {
  display: flex;
}

html.catalog-page,
.catalog-page body,
.catalog-page .page {
  background: #fff;
  color: #171717;
}

.catalog-page .eyebrow,
.catalog-page .product-price s {
  color: #666;
}

.catalog-page .lead {
  color: #444;
}

.catalog-page .product-card {
  background: #fff;
  border-color: #e5e5e5;
}

.catalog-page .product-card:hover {
  background: #f7f7f7;
}

.catalog-page a:focus-visible,
.catalog-page button:focus-visible {
  outline-color: #171717;
}

@media (max-width: 1050px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .page {
    padding: 130px 7% 32px;
  }

  .product-grid {
    gap: 12px;
    margin-top: 32px;
  }

  .product-card {
    padding: 12px 12px 14px;
    border-radius: 16px;
  }

  .product-card h2 {
    font-size: 1.05rem;
  }

  .product-price {
    font-size: .875rem;
  }

  .page-footer {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card img {
    transition: none;
  }
}
