:root {
  --bg: #f7f4ee;
  --bg-soft: #efebe4;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-ink: #17384b;
  --text: #142432;
  --muted: #5f6770;
  --line: rgba(20, 36, 50, 0.12);
  --line-strong: rgba(20, 36, 50, 0.22);
  --accent: #143f57;
  --accent-strong: #0f3044;
  --accent-soft: #eef4f8;
  --shadow: 0 18px 50px rgba(24, 40, 59, 0.08);
  --shadow-soft: 0 10px 24px rgba(24, 40, 59, 0.06);
  --shadow-strong: 0 28px 70px rgba(24, 40, 59, 0.12);
  --radius-xl: 34px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shell: min(1320px, calc(100% - 3rem));
  --section-space: clamp(3.75rem, 7vw, 6.5rem);
  --section-tight-space: clamp(1.75rem, 3vw, 2.75rem);
  --card-padding: clamp(1.35rem, 2vw, 1.9rem);
  --header-height: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #faf8f4 0%, #f6f2eb 100%);
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  background: none;
}

address {
  font-style: normal;
}

.hidden,
[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header-inner > *,
.hero-copy,
.hero-visual,
.hero-note,
.section-heading > *,
.catalog-header > *,
.contact-layout > *,
.story-grid > *,
.footer-panel > * {
  min-width: 0;
}

.section {
  padding: var(--section-space) 0;
}

#categorias.section {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

#promociones.section {
  padding-top: 0;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

#nosotros.section {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

#contacto.section {
  padding-top: 0;
  padding-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.section-tight {
  padding: var(--section-tight-space) 0;
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.9rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0;
  line-height: 1.7;
}

.lead,
.hero-text,
.catalog-intro {
  font-size: 1.08rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible,
.nav-link:focus-visible,
.icon-link:focus-visible,
.filter-button:focus-visible,
.product-card-button:focus-visible,
.pagination-button:focus-visible,
.menu-toggle:focus-visible,
.search-field input:focus-visible,
.modal-close:focus-visible,
.text-link:focus-visible {
  outline: 3px solid rgba(165, 103, 46, 0.28);
  outline-offset: 2px;
}

.button-primary {
  background: #153f59;
  color: #fff;
  box-shadow: none;
}

.button-secondary {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--text);
}

.button-disabled,
.button[aria-disabled="true"] {
  background: #ddd4ca;
  color: #6a6158;
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
}

.text-link {
  color: #153f59;
  font-weight: 700;
}

.home-loading {
  padding: 0.5rem 0 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 0 0;
  background: transparent;
  border-bottom: 0;
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  min-height: 72px;
  padding: 0.75rem 1rem 0.75rem 1.2rem;
  border: 1px solid rgba(20, 36, 50, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(18, 36, 49, 0.08);
}

.brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  justify-self: start;
}

.brand img {
  width: auto;
  height: 34px;
  object-fit: contain;
}

.brand-wordmark {
  display: inline-block;
  color: #16120e;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  justify-self: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.9rem, 1.8vw, 1.55rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-link {
  padding: 0.62rem 0.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: transparent;
  border-bottom-color: var(--accent);
}

.header-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: end;
}

.nav-cta {
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-nav {
  display: none;
}

.hero {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  min-height: 0;
  height: clamp(400px, calc(100svh - 9.75rem), 590px);
  padding: clamp(1rem, 1.7vw, 1.45rem);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84) 0%, rgba(243, 236, 226, 0.95) 47%, rgba(232, 224, 214, 0.92) 100%);
  align-items: stretch;
  box-shadow: var(--shadow-strong);
}

.hero-grid::before,
.hero-grid::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-grid::before {
  top: -16%;
  right: -6%;
  width: clamp(260px, 34vw, 460px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(241, 192, 135, 0.48) 0%, rgba(241, 192, 135, 0.04) 52%, transparent 72%);
}

.hero-grid::after {
  left: -9%;
  bottom: -22%;
  width: clamp(260px, 32vw, 420px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(21, 63, 89, 0.14) 0%, rgba(21, 63, 89, 0.04) 46%, transparent 74%);
}

.hero-copy,
.hero-visual,
.story-panel,
.contact-card,
.contact-map-card,
.catalog-aside,
.insight-card,
.content-card {
  animation: rise 500ms ease both;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: clamp(0.8rem, 1.35vw, 1.65rem);
  max-width: 36rem;
}

.hero-text {
  width: min(100%, 31rem);
  margin-top: 0;
  font-size: clamp(0.95rem, 0.95vw, 1rem);
  line-height: 1.58;
}

.hero-copy h1 {
  width: min(100%, 12ch);
  font-size: clamp(2.2rem, 3.95vw, 4rem);
  line-height: 0.94;
  text-wrap: balance;
}

.hero-actions,
.contact-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.15rem;
}

.hero-actions .button {
  min-height: 2.8rem;
  padding-inline: 1.15rem;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.check-list li {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.hero-card,
.story-panel,
.contact-card,
.contact-map-card,
.catalog-aside,
.loading-card,
.empty-card,
.error-card,
.insight-card,
.content-card,
.legal-shell .content-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(20, 36, 50, 0.08);
  box-shadow: var(--shadow);
}

.hero-visual {
  display: grid;
  grid-template-rows: 1fr;
  align-content: center;
  align-items: center;
  min-height: 0;
  padding: clamp(0.25rem, 0.8vw, 0.55rem);
}

.hero-card,
.hero-note {
  display: block;
  grid-area: 1 / 1;
}

.hero-card {
  display: grid;
  width: 100%;
  height: auto;
  max-height: 100%;
  align-self: center;
  aspect-ratio: 1.08 / 0.92;
  overflow: hidden;
  padding: clamp(0.58rem, 0.8vw, 0.8rem);
  border-radius: 30px;
  background:
    linear-gradient(180deg, #d8cab8 0%, #e7ddd0 56%, #f4efe7 100%);
  border-color: rgba(20, 36, 50, 0.08);
  backdrop-filter: blur(10px);
}

.hero-card img {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 0;
  border-radius: 24px;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.16);
  transform-origin: center;
}

.hero-note {
  position: relative;
  align-self: end;
  justify-self: end;
  z-index: 2;
  margin: 0 clamp(1rem, 1.6vw, 1.4rem) clamp(1rem, 1.6vw, 1.4rem) 0;
  max-width: min(22rem, calc(100% - 2rem));
  padding: 0.85rem 1rem 0.9rem;
  border-radius: 22px;
  border: 1px solid rgba(20, 36, 50, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 32px rgba(24, 40, 59, 0.12);
}

.hero-note .eyebrow {
  display: block;
  margin-bottom: 0.3rem;
}

.hero-note p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.15rem 2rem;
  margin-bottom: clamp(1.9rem, 3.5vw, 2.8rem);
}

.section-heading > div:first-child {
  flex: 1 1 auto;
  max-width: min(100%, 64rem);
}

.section-heading .text-link {
  flex: 0 0 auto;
  padding-bottom: 0.35rem;
  transform: none;
}

.section-heading h2 {
  position: relative;
  padding-bottom: 0.6rem;
  font-size: clamp(2rem, 4vw, 3rem);
  width: auto;
  max-width: min(100%, 28ch);
  text-wrap: balance;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: #c66a53;
}

.section-heading-catalog {
  gap: 0.8rem;
}

.section-heading-catalog .section-heading-copy {
  max-width: min(100%, 56rem);
}

.section-heading-catalog h2::after {
  display: none;
}

.section-heading-catalog .section-heading-accent {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
}

.section-heading-catalog .section-heading-accent::before {
  content: "";
  flex: none;
  width: 34px;
  margin-right: auto;
  height: 2px;
  background: #c66a53;
  border-radius: 999px;
}

.section-heading-catalog .text-link {
  flex: 0 0 auto;
  color: #c66a53;
  padding-bottom: 0;
}

body[data-page="home"] .section-heading {
  align-items: start;
  flex-direction: column;
  gap: 0.7rem;
}

body[data-page="home"] .section-heading > div:first-child {
  max-width: min(100%, 56rem);
}

body[data-page="home"] .section-heading h2 {
  max-width: min(100%, 34ch);
}

body[data-page="home"] .section-heading .text-link {
  padding-bottom: 0;
}

.category-grid,
.promo-grid,
.content-grid {
  display: grid;
  gap: clamp(0.95rem, 2vw, 1.2rem);
  align-items: stretch;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.promo-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.content-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.category-card,
.promo-card,
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border-radius: 20px;
  border: 1px solid rgba(20, 36, 50, 0.1);
  background: #fff;
  box-shadow: 0 14px 28px rgba(24, 40, 59, 0.05);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.category-card:hover,
.promo-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 36, 50, 0.16);
  box-shadow: 0 22px 42px rgba(24, 40, 59, 0.08);
}

.category-card-link {
  text-decoration: none;
}

.promo-card-link {
  text-decoration: none;
}

.home-product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.category-grid .category-card {
  position: relative;
  min-height: clamp(290px, 34vw, 370px);
  padding: 0;
}

.category-grid .category-card img {
  height: 100%;
  min-height: clamp(290px, 34vw, 370px);
  aspect-ratio: 4 / 4.6;
}

.category-grid .category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(12, 28, 40, 0.72));
}

.category-grid .category-card-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 0.4rem;
  padding: 1.35rem;
}

.category-grid .category-card-body h3 {
  font-size: clamp(1.26rem, 1.8vw, 1.6rem);
}

.category-grid .category-card-body,
.category-grid .category-card-body p,
.category-grid .category-card-body h3,
.category-grid .category-card-body a {
  color: #fff;
}

.category-grid .category-card-body .text-link {
  color: #fff;
}

.promo-grid .promo-card {
  max-width: none;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(20, 36, 50, 0.08);
  background: #fff;
  border-radius: 20px;
}

.promo-grid .home-product-card {
  min-width: 0;
  padding: 0;
  border-radius: 20px;
}

.promo-card-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.promo-grid .promo-card:hover,
.promo-grid .promo-card:focus-visible {
  box-shadow: 0 8px 22px rgba(20, 36, 50, 0.08);
}

.promo-grid .promo-card img {
  aspect-ratio: 4 / 2.35;
}

.promo-grid .home-product-card img {
  aspect-ratio: 4 / 3.05;
}

.promo-grid .home-product-card .product-card-body {
  display: grid;
  grid-template-rows: auto minmax(3rem, auto) minmax(2.8rem, auto) auto;
  align-content: start;
  gap: 0.35rem;
  padding: 1rem 1rem 1.05rem;
}

.promo-grid .home-product-card .product-card-body h2 {
  font-size: 1.16rem;
  line-height: 1.22;
  margin: 0;
  min-height: 3rem;
}

.promo-grid .home-product-card .promo-description {
  display: -webkit-box;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.55em * 2);
}

.promo-grid .home-product-card .catalog-card-footer {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
}

.category-card img,
.promo-card img,
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}

.category-card-body,
.promo-card-body,
.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.95rem 1rem 1rem;
}

.promo-card-body {
  display: grid;
  grid-template-rows: 1.1rem minmax(2.7rem, auto) auto;
  min-height: 0;
  align-content: start;
  gap: 0.1rem;
  padding: 0.95rem 1rem 1rem;
}

.promo-card-body h3 {
  display: -webkit-box;
  font-size: 1rem;
  line-height: 1.28;
  margin: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-description {
  display: none;
}

.promo-footer {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.promo-card-cta {
  width: 100%;
  pointer-events: none;
  min-height: 2.2rem;
  font-size: 0.82rem;
}

.promo-card-body .eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 0.2rem;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}

.category-card-body p,
.promo-card-body p,
.product-card-body p,
.content-card p,
.insight-card p,
.modal-copy p,
.catalog-feedback,
.contact-card p,
.contact-map-card p {
  color: var(--muted);
}

.story-grid,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.15rem, 3vw, 2rem);
}

.story-panel,
.contact-card,
.contact-map-card,
.catalog-aside,
.insight-card,
.content-card,
.legal-shell .content-card {
  padding: var(--card-padding);
}

.story-list {
  display: grid;
  gap: 1rem;
}

.story-list article {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 1.2rem;
  margin-top: 1.5rem;
}

.contact-list div {
  display: grid;
  gap: 0.25rem;
}

.contact-list strong {
  font-size: 0.95rem;
}

.contact-card h2,
.story-copy h2,
.catalog-header h1 {
  width: min(100%, 20ch);
}

#contacto .contact-card h2 {
  width: 100%;
  max-width: none;
}

#contacto .contact-list {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1rem 1.5rem;
}

#contacto .contact-actions {
  margin-top: 1.5rem;
}

.map-link-card {
  display: block;
  margin-top: 1.2rem;
  overflow: hidden;
  border-radius: 6px;
}

.map-link-card img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

.site-footer {
  margin-top: clamp(1rem, 3vw, 1.75rem);
  padding: 0;
  background: linear-gradient(180deg, #ece8e1 0%, #e6dfd4 100%);
  border-top: 1px solid rgba(20, 36, 50, 0.08);
}

.footer-panel {
  display: block;
  padding: 0.9rem 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.footer-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1rem;
}

.footer-brand img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
}

.footer-brand p,
.footer-column p,
.footer-copy {
  color: var(--muted);
}

.footer-brand p {
  margin: 0;
  max-width: 42rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-column {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.footer-column h2 {
  font-size: 1.18rem;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(20, 36, 50, 0.12);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 36, 50, 0.16);
  color: var(--muted);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.catalog-main {
  padding-bottom: clamp(3rem, 5vw, 4.25rem);
}

.catalog-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  padding-top: clamp(0.9rem, 2vw, 1.6rem);
}

.catalog-header > div:first-child {
  display: grid;
  gap: 1rem;
}

.catalog-controls {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 36, 50, 0.08);
  box-shadow: var(--shadow-soft);
}

.catalog-controls > * {
  min-width: 0;
}

.catalog-aside {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.search-field input {
  width: 100%;
  min-height: 3.35rem;
  padding: 0 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(20, 36, 50, 0.12);
  background: #ffffff;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.filter-button {
  flex: 0 0 auto;
  max-width: 100%;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 36, 50, 0.06);
  background: rgba(20, 36, 50, 0.04);
  color: #373c42;
  font-weight: 600;
  white-space: nowrap;
}

.filter-button.is-active {
  background: linear-gradient(180deg, #1b4f6b 0%, #11384f 100%);
  border-color: transparent;
  color: #fff;
}

.catalog-feedback {
  margin-bottom: 1.2rem;
  min-height: 1.5rem;
}

.loading-card,
.empty-card,
.error-card {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 2rem;
  text-align: center;
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 3px solid rgba(165, 103, 46, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(0.95rem, 2vw, 1.2rem);
}

.product-card {
  position: relative;
  border: 1px solid rgba(20, 36, 50, 0.08);
  border-radius: 20px;
  background: #fff;
  padding: 0;
  height: 100%;
}

.product-card-button {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  padding: 0;
  text-align: left;
  height: 100%;
}

.product-card-figure {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  margin: 0;
}

.product-card-figure img,
.promo-card img,
.category-card img,
.map-link-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 2.35;
  object-fit: cover;
  transition: transform 250ms ease;
}

.product-card-body {
  display: grid;
  grid-template-rows: 1.1rem minmax(2.4rem, auto) auto;
  align-content: start;
  row-gap: 0.35rem;
  padding: 0.95rem 1rem 1rem;
}

body[data-page="catalogo"] .product-card-body {
  grid-template-rows: 1.1rem minmax(2.65rem, auto) auto;
  row-gap: 0.3rem;
  padding: 0.95rem 1rem 1rem;
}

body[data-page="catalogo"] .catalog-card-footer {
  margin-top: auto;
  gap: 0.55rem;
}

body[data-page="catalogo"] .product-card-body h2 {
  min-height: 2.65rem;
  font-size: 1rem;
}

body[data-page="catalogo"] .product-grid {
  align-items: stretch;
}

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

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

body[data-page="catalogo"] .catalog-card-cta {
  min-height: 2.45rem;
}

.product-card-button:hover img,
.product-card-button:focus-visible img,
.promo-card:hover img,
.category-card:hover img,
.map-link-card:hover img,
.map-link-card:focus-visible img {
  transform: scale(1.03);
}

.product-tag,
.discount-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #b75535;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  justify-self: start;
}

.product-tag + .product-tag {
  display: none !important;
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  width: fit-content;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #b75535;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.promo-card-figure .promo-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
}

.promo-tag-secondary {
  display: none;
}

.product-tag {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
}

.product-price-row,
.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.price-current {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.price-original {
  color: var(--muted);
  text-decoration: line-through;
}

.product-card-footer {
  display: none;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.product-card-body .eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 0.2rem;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}

.product-card-body h2 {
  display: -webkit-box;
  font-size: 1rem;
  line-height: 1.28;
  margin-bottom: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card-description {
  display: none;
}

.catalog-card-footer {
  display: grid;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0;
}

.catalog-discount {
  color: #b75535;
  font-size: 0.78rem;
  font-weight: 700;
}

.catalog-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  width: 100%;
  border: 1px solid rgba(20, 36, 50, 0.22);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
}

.pagination-button {
  min-width: 2.8rem;
  min-height: 2.8rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.pagination-button[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, #2f2417 0%, #603a18 100%);
  border-color: transparent;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem 0.75rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 11, 6, 0.55);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(930px, calc(100vw - 3rem));
  height: min(500px, calc(100vh - 4rem));
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 1;
  width: 2.85rem;
  height: 2.85rem;
  overflow: visible;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: 3px solid #111111;
  appearance: none;
  font-size: 0;
  padding: 0;
}

.modal-close span,
.modal-close-icon {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
  color: transparent;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.12rem;
  height: 0.24rem;
  border-radius: 999px;
  background: #111111;
  z-index: 2;
  transform-origin: center;
  pointer-events: none;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  height: 100%;
}

.modal-media {
  height: 100%;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-copy {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.9rem;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}

.modal-description,
.modal-note {
  margin-top: 1rem;
}

.modal-copy .eyebrow {
  margin: 0 0 1.15rem;
  min-height: 0.9rem;
  flex: 0 0 auto;
}

.modal-copy h2 {
  display: -webkit-box;
  font-size: clamp(2.1rem, 3vw, 3.1rem);
  line-height: 0.98;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  min-height: 6.7rem;
  max-height: 6.7rem;
  flex: 0 0 6.7rem;
}

.modal-description {
  display: -webkit-box;
  margin: 1.15rem 0 0;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.7rem;
  max-height: 4.7rem;
  flex: 0 0 4.7rem;
}

.modal-price-group {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0 0.8rem 0 0.55rem;
  flex: 0 0 auto;
}

.modal-price-group .price-row {
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.modal-price-group .price-row > div,
.modal-price-group .price-row > .modal-price-inline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.modal-meta {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
  max-height: 6.4rem;
  overflow: hidden;
  flex: 0 0 auto;
}

.modal-meta li {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: #f7f1e8;
  color: var(--muted);
}

.modal-actions .button {
  flex: 1 1 100%;
}

.modal-actions {
  margin-top: 1rem;
  justify-content: stretch;
  padding-top: 0;
  padding-bottom: 0;
  flex: 0 0 auto;
}

.modal-note {
  display: none;
}

.content-main {
  min-height: calc(100vh - 220px);
}

.content-shell,
.legal-shell {
  display: grid;
  gap: 1.5rem;
}

.legal-stack {
  display: grid;
  gap: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .site-header-inner {
    padding-inline: 1rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    height: clamp(390px, calc(100svh - 8.9rem), 540px);
  }

  .hero-copy {
    padding: clamp(0.72rem, 1.2vw, 1.3rem);
  }

  .hero-copy h1 {
    width: min(100%, 11.2ch);
    font-size: clamp(2.05rem, 3.55vw, 3.35rem);
  }

  .hero-card {
    aspect-ratio: 1.02 / 0.94;
  }
}

@media (max-width: 1100px) {
  .category-grid,
  .promo-grid,
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header-inner {
    grid-template-columns: auto auto;
    min-height: 64px;
    padding: 0.6rem 0.8rem 0.6rem 0.95rem;
    border-radius: 24px;
  }

  .main-nav,
  .header-actions .button {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .menu-toggle[aria-expanded="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  .mobile-nav {
    position: fixed;
    inset: 5.25rem 1.5rem auto;
    display: grid;
    gap: 0.75rem;
    max-width: min(420px, calc(100vw - 3rem));
    margin-left: auto;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 251, 246, 0.97);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .mobile-nav a,
  .mobile-nav button {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    text-align: left;
    font-weight: 700;
  }

  .story-grid,
  .contact-layout,
  .catalog-header,
  .footer-panel,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 0.95rem;
    height: clamp(390px, calc(100svh - 7.8rem), 510px);
    padding: 0.95rem;
  }

  .hero-copy {
    max-width: 100%;
    padding: 0.65rem 0.25rem 0.1rem;
  }

  .hero-copy h1 {
    width: min(100%, 10.1ch);
    font-size: clamp(2rem, 5.2vw, 3.05rem);
  }

  .hero-text {
    width: min(100%, 24rem);
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .hero-visual {
    padding: 0;
  }

  .hero-card {
    padding: 0.6rem;
    aspect-ratio: 1 / 0.98;
  }

  .hero-note {
    margin: 0 0 0.75rem 0.75rem;
    max-width: none;
    width: calc(100% - 1.5rem);
    padding: 0.85rem 0.95rem 0.9rem;
  }

  .hero-note p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-aside {
    display: none;
  }

  .catalog-controls {
    gap: 0.85rem;
  }

  .filter-group {
    flex-wrap: wrap;
    gap: 0.65rem;
    overflow: visible;
    padding-bottom: 0;
  }

  body[data-page="catalogo"] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-panel {
    width: min(760px, calc(100vw - 1.25rem));
    height: auto;
    max-height: calc(100dvh - 1.25rem);
    overflow: auto;
    border-radius: 24px;
  }

  .modal-media,
  .modal-media img {
    max-height: 42dvh;
  }

  .modal-copy {
    height: auto;
  }

  .modal-copy .eyebrow {
    min-height: 0;
  }

  .modal-copy h2,
  .modal-description,
  .modal-meta {
    overflow: visible;
  }

  .modal-copy h2,
  .modal-description {
    min-height: auto;
    max-height: none;
    flex: 0 0 auto;
  }

  .modal-description,
  .modal-price-group,
  .modal-meta {
    margin-top: 1rem;
  }

  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 840px) {
  .hero {
    padding-top: 0.35rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 1rem;
    padding: 1rem;
    padding-top: 0.6rem;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    padding: 0 0.35rem 0;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(2.6rem, 8vw, 3.95rem);
  }

  .hero-text {
    width: 100%;
    max-width: none;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-visual {
    min-height: 0;
    padding: 0;
  }

  .hero-card {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    padding: 0.72rem;
  }

  .hero-card img {
    height: auto;
    object-fit: cover;
    object-position: center 62%;
    aspect-ratio: 4 / 3;
  }

  .hero-note {
    position: static;
    width: auto;
    margin: 0.9rem 0 0;
    padding: 1rem 1.05rem;
  }
}

@media (max-height: 760px) and (min-width: 720px) {
  .hero-grid {
    height: clamp(390px, calc(100svh - 7.15rem), 520px);
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 4.7vw, 3.7rem);
  }

  .hero-card {
    aspect-ratio: 1 / 0.9;
  }
}

@media (max-width: 680px) {
  .section {
    padding: clamp(3rem, 10vw, 4rem) 0;
  }

  .section-tight {
    padding: clamp(1.4rem, 4vw, 2rem) 0;
  }

  .shell {
    width: min(1320px, calc(100% - 1.4rem));
  }

  .filter-group {
    justify-content: center;
  }

  .site-header {
    padding: 0.4rem 0 0;
  }

  .site-header-inner {
    min-height: 56px;
    padding: 0.45rem 0.65rem 0.45rem 0.8rem;
    border-radius: 22px;
  }

  .brand img {
    height: 30px;
  }

  .brand-wordmark {
    font-size: 1.28rem;
    letter-spacing: 0.07em;
  }

  .mobile-nav {
    inset: 4.45rem 0.7rem auto;
    max-width: calc(100vw - 1.4rem);
    padding: 0.85rem;
  }

  .hero {
    padding-top: calc(0.1rem + 16px);
  }

  .category-grid,
  .promo-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 0.85rem;
    padding: 0.85rem;
    padding-top: 0.2rem;
    border-radius: 28px;
  }

  .hero-copy {
    gap: 1rem;
    padding: 0 0 0;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .hero-text,
  .catalog-intro,
  .lead {
    max-width: none;
    font-size: 0.97rem;
    line-height: 1.65;
  }

  .hero-card img {
    min-height: 310px;
    aspect-ratio: 4 / 3.25;
  }

  .hero-actions,
  .contact-actions,
  .modal-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  #contacto .contact-list {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  body[data-page="catalogo"] .product-grid {
    gap: 0.75rem 0.65rem;
  }

  body[data-page="catalogo"] .product-card-body {
    padding: 0.82rem 0.82rem 0.9rem;
  }

  body[data-page="catalogo"] .product-card-body h2 {
    min-height: 2.45rem;
    font-size: 0.95rem;
  }

  body[data-page="catalogo"] .catalog-card-cta {
    min-height: 2.3rem;
    font-size: 0.8rem;
  }

  body[data-page="catalogo"] .pagination {
    gap: 0.5rem;
    margin-top: 2rem;
  }

  body[data-page="catalogo"] .pagination-button {
    min-width: 2.45rem;
    min-height: 2.45rem;
    padding: 0 0.7rem;
    font-size: 0.88rem;
  }

  .modal {
    padding: 0.5rem;
  }

  .modal-panel {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 22px;
  }

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

  .modal-media,
  .modal-media img {
    max-height: 31dvh;
  }

  .modal-copy {
    padding: 0.95rem 0.95rem 0.9rem;
  }

  .modal-copy .eyebrow {
    margin-bottom: 0.65rem;
  }

  .modal-copy h2 {
    font-size: clamp(1.72rem, 8vw, 2.35rem);
    line-height: 0.98;
  }

  .modal-price-group {
    padding: 0 0.2rem;
  }

  .modal-description {
    margin-top: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .modal-price-group,
  .modal-meta,
  .modal-actions {
    margin-top: 0.8rem;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .modal-actions .button {
    min-height: 2.65rem;
    padding-inline: 0.7rem;
    font-size: 0.78rem;
    line-height: 1.15;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(1320px, calc(100% - 1rem));
  }

  .site-header {
    padding-top: 0.25rem;
  }

  .site-header-inner {
    min-height: 54px;
    padding: 0.4rem 0.6rem 0.4rem 0.72rem;
  }

  .mobile-nav {
    inset: 4.2rem 0.5rem auto;
    max-width: calc(100vw - 1rem);
  }

  .hero {
    padding-top: 16px;
  }

  #contacto .contact-card {
    padding: 1.45rem 1.15rem 1.2rem;
  }

  #contacto .contact-list {
    margin-top: 1.35rem;
    gap: 1rem;
  }

  #contacto .contact-list div {
    gap: 0.32rem;
  }

  #contacto .contact-actions {
    gap: 0.8rem;
    margin-top: 1.15rem;
  }

  .hero-grid {
    padding: 0.75rem;
    padding-top: 0.12rem;
  }

  .footer-brand {
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
  }

  .footer-brand p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(1.95rem, 12vw, 2.8rem);
  }

  .hero-card img {
    min-height: 270px;
  }

  .section-heading-catalog .section-heading-accent {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .section-heading-catalog .section-heading-accent::before {
    flex: none;
    width: 34px;
    margin-right: 0;
  }

  .section-heading h2,
  .catalog-header h1,
  .contact-card h2,
  .story-copy h2 {
    max-width: none;
  }

  .section-heading > div:first-child {
    max-width: none;
  }

  body[data-page="catalogo"] .product-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="catalogo"] .filter-button {
    padding: 0.72rem 0.95rem;
    font-size: 0.9rem;
  }

  .modal-copy {
    padding-top: 0.95rem;
  }
}
