:root {
  color-scheme: light;
  --paper: #fcf8f4;
  --ink: #361f23;
  --wine: #652e3a;
  --line: #d7c6bf;
  --muted: #69545a;
  --blush: #efdcd6;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; line-height: 1.55 }
a { color: inherit }
img { display: block; width: 100%; height: 100%; object-fit: cover }
button, input, select { font: inherit }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px }
.skip { position: fixed; z-index: 2; top: 1rem; left: 1rem; background: white; padding: .5rem 1rem; transform: translateY(-200%) }
.skip:focus { transform: none }
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 5vw, 5rem) }
.site-header { padding-block: .5rem; row-gap: .35rem; border-bottom: 1px solid var(--line) }
.site-header nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem) }
.site-header nav a, .site-footer a { text-underline-offset: .3rem }
.site-header nav a {
  position: relative;
  z-index: 0;
  border-radius: .3rem;
  text-decoration: none;
  transition: color .18s ease;
}
.site-header nav a::before {
  position: absolute;
  z-index: -1;
  inset: -.2rem -.28rem;
  border-radius: .4rem;
  background: #f0e1dc;
  box-shadow: 0 2px 6px #652e3a24;
  opacity: 0;
  pointer-events: none;
  content: '';
  transition: opacity .18s ease;
}
.site-header nav a:is(:hover, :focus-visible) { color: var(--wine) }
.site-header nav a:is(:hover, :focus-visible)::before { opacity: 1 }
.wordmark { font-family: Georgia, serif; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: bold; letter-spacing: -.035em; text-decoration: none }
.site-header .wordmark img { width: clamp(4.725rem, 9.1vw, 6.3rem); height: auto; object-fit: contain }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.17fr); min-height: 33rem; background: var(--blush) }
.hero-copy { align-self: center; padding: clamp(2rem, 7vw, 7rem) }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.08; font-weight: 400; margin: 0; letter-spacing: -.035em }
h1 { font-size: clamp(3.2rem, 6.8vw, 7.4rem) }
h2 { font-size: clamp(2.3rem, 4.5vw, 4.3rem) }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.85rem) }
.eyebrow { margin: 0 0 1.2rem; font-size: .875rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase }
.hero-copy > p:not(.eyebrow) { margin: 1.25rem 0 1.8rem; max-width: 28ch; font-size: 1.1rem }
.hero-image { min-width: 0; position: relative; background: radial-gradient(ellipse at 55% 40%, #e2a292, #8a4254 90%) }
.hero-image img { position: absolute; inset: 0; object-position: center 48% }
.hero-navidad { background: #263a31; color: #fff6e8 }
.hero-navidad .hero-image { background: #7d6656 }
.hero-navidad :focus-visible { outline-color: #fff6e8 }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.3rem }
.hero-navidad .button { background: #fff6e8; color: #263a31 }
.hero-navidad .button:hover { background: #f0ddbd }
.hero-secondary { text-underline-offset: .25rem }
.button { display: inline-flex; justify-content: center; padding: .75rem 1.45rem; background: var(--wine); color: white; text-decoration: none; border-radius: .2rem }
.button:hover { background: var(--ink) }
.section { padding: clamp(2.5rem, 6vw, 6rem) clamp(1rem, 5vw, 5rem); max-width: 100rem; margin: auto }
.collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1.7rem }
.collection { display: grid; grid-template-columns: 4.25rem 1fr; align-items: center; gap: .85rem; min-height: 5.5rem; background: #f6ece7; border: 1px solid var(--line); text-decoration: none; padding: .5rem .75rem .5rem .5rem }
.collection:hover { border-color: var(--wine) }
.collection-photo { aspect-ratio: 1; overflow: hidden; background: var(--blush) }
.collection span { font-family: Georgia, serif; font-size: 1.22rem }
.catalog { border-top: 1px solid var(--line) }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.25rem; flex-wrap: wrap }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem 1rem }
.filters label { display: grid; gap: .2rem; font-size: .875rem; color: var(--muted) }
.filters input, .filters select { min-width: 0; max-width: 100%; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .2rem; color: var(--ink); background: white; font-size: 1rem }
.filters input { width: min(12rem, 100%) }
.filters select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg, transparent 48%, var(--ink) 51%) right .85rem center / .35rem .35rem no-repeat, white }
.reset-filters { padding: .55rem .85rem; border: 1px solid var(--wine); border-radius: .2rem; color: var(--wine); background: transparent; cursor: pointer }
.reset-filters:hover { color: white; background: var(--wine) }
.result-count, .price { color: var(--muted) }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem) }
.product button { width: 100%; text-align: left; border: 0; background: transparent; padding: 0; color: inherit; cursor: pointer }
.product button:hover h3 { text-decoration: underline; text-underline-offset: .2rem }
.product-photo { aspect-ratio: 4 / 5; overflow: hidden; background: #f0e0d8 }
.product h3 { margin-top: .85rem }
.price { margin: .4rem 0 0 }
.contact { border-top: 1px solid var(--line) }
.contact .button { margin-top: 1.2rem }
.site-footer { background: var(--ink); color: var(--paper) }
.site-footer :focus-visible { outline-color: white }
dialog { width: min(48rem, calc(100% - 2rem)); max-height: 90dvh; padding: 0; border: 0; color: var(--ink); background: var(--paper) }
dialog::backdrop { background: #2f1b20a8 }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center }
.detail-layout > div:last-child { padding: 3.25rem 1.6rem 1.6rem }
.detail-layout h2 { font-size: clamp(2rem, 4vw, 3rem) }
.close { position: absolute; top: .5rem; right: .5rem; border: 1px solid var(--line); border-radius: 50%; width: 2.5rem; height: 2.5rem; background: var(--paper); color: var(--ink); font-size: 1.4rem; cursor: pointer }
@media (max-width: 54rem) {
  .collections { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 38rem) {
  .site-header { flex-wrap: wrap }
  .hero { grid-template-columns: 1fr; min-height: auto }
  .hero-image { aspect-ratio: 5 / 4 }
  .hero-copy { padding: 2.75rem 1rem }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .collection { grid-template-columns: 2.7rem 1fr; min-height: 3.9rem; gap: .5rem }
  .collection span { font-size: 1.05rem }
  .detail-layout { grid-template-columns: 1fr }
  .detail-layout .product-photo { aspect-ratio: 5 / 3 }
  .detail-layout > div:last-child { padding: 1.25rem }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto }
  .site-header nav a, .site-header nav a::before { transition: none }
}
