:root {
  color-scheme: light;
  --ink: #211832;
  --muted: #5d526d;
  --paper: #fbfafc;
  --line: #ddd7e5;
  --plum: #302044;
  --accent: #dced9e;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.5 "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #8858bb; outline-offset: 4px; }
.wrap { width: min(100% - 4rem, 1320px); margin-inline: auto; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .6rem 1rem; background: white; }
.skip-link:not(:focus) { clip-path: inset(50%); }

.delivery-banner { padding: .48rem 1rem; background: var(--plum); color: #fff; text-align: center; font-size: .875rem; }
.delivery-banner a { text-decoration: none; }
.delivery-banner a:hover { text-decoration: underline; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner, .site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; font-size: 1.55rem; font-weight: 850; letter-spacing: -.065em; white-space: nowrap; }
.brand-domain { color: #6e488e; }
.brand-icon { display: grid; place-items: center; width: 2rem; height: 2rem; margin-right: .5rem; background: var(--accent); border-radius: .5rem; }
.brand-icon span { position: relative; width: .88rem; height: .77rem; margin-top: .18rem; border: 2px solid var(--ink); border-radius: .16rem; }
.brand-icon span::before { content: ""; position: absolute; left: .13rem; right: .13rem; top: -.38rem; height: .36rem; border: 2px solid var(--ink); border-bottom: 0; border-radius: .35rem .35rem 0 0; }
nav { display: flex; gap: clamp(.8rem, 3vw, 2.7rem); }
nav a, .site-footer a { text-decoration: none; font-weight: 650; }
nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .24em; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  margin-top: 1.15rem;
  background: var(--plum);
  color: white;
  overflow: hidden;
  border-radius: .7rem;
}
.hero-copy { align-self: center; padding: clamp(2rem, 6.5vw, 6rem); }
.eyebrow { font-size: .875rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: #eee0fc; }
.hero h1 {
  margin-block: .8rem 1.05rem;
  font-size: clamp(3.7rem, 7vw, 7rem);
  font-weight: 850;
  letter-spacing: -.09em;
  line-height: .94;
}
.hero em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 34ch; margin-bottom: 1.6rem; font-size: 1.1rem; color: #f0e6f8; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .65rem 1.15rem; border-radius: .35rem; font-weight: 750; text-decoration: none; }
.button-primary { background: var(--accent); color: var(--ink); }
.button-primary:hover { background: #eff8ce; }
.hero-image {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .85rem;
  min-width: 0;
  padding: 1.4rem;
  background: radial-gradient(ellipse at 54% 43%, #faeffc 0%, #e6d3f3 53%, #c2a8dd 100%);
  color: var(--ink);
}
.hero-image img { width: auto; height: clamp(310px, 34vw, 410px); object-fit: contain; mix-blend-mode: multiply; }
.hero-image figcaption { font-weight: 650; font-size: .9rem; }

.collections, .catalog { margin-block: clamp(2rem, 5vw, 4.6rem); scroll-margin-top: 1rem; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.055em; line-height: 1.05; }
.collections h2, .catalog h2 { margin-bottom: 1.2rem; }
.collection-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; }
.collection {
  display: grid;
  grid-template-rows: 146px 1fr;
  background: #eee8f5;
  border-radius: .55rem;
  overflow: hidden;
  text-decoration: none;
  font-weight: 750;
}
.collection img { width: 100%; height: 100%; object-fit: contain; padding: .6rem; background: #e8def0; mix-blend-mode: multiply; }
.collection:nth-child(2) img { background: #f6e6cc; }
.collection:nth-child(3) img { background: #f1dbe5; }
.collection:nth-child(4) img { background: #dbdfea; }
.collection:nth-child(5) img { background: #e6eacb; }
.collection span { padding: .7rem .65rem; }
.collection:hover span { text-decoration: underline; text-underline-offset: .2em; }

.catalog-controls { display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: .75rem; }
.catalog-controls label { display: grid; min-width: 0; gap: .35rem; font-weight: 650; }
.catalog-controls input, .catalog-controls select { width: 100%; min-height: 45px; border: 1px solid #9a90a7; border-radius: .35rem; padding: .55rem .65rem; color: var(--ink); background: white; }
.catalog-status { margin-block: .8rem 1rem; color: var(--muted); }
.catalog-status:empty { display: none; }
.catalog-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.catalog-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  min-width: 0;
  padding: 0 0 .8rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: .6rem;
  overflow: hidden;
}
.catalog-card > :not(.catalog-cover) { margin-inline: .8rem; }
.catalog-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(ellipse at 51% 42%, #f9f1fd 0%, #e9daf4 62%, #d6c5e8 100%);
}
.catalog-cover[data-collection="belleza"] { background: radial-gradient(ellipse at 50% 42%, #fff6f8, #edd6e5 80%); }
.catalog-cover[data-collection="tecnologia"] { background: radial-gradient(ellipse at 50% 42%, #f5f7fe, #d9dfed 80%); }
.catalog-cover[data-collection="coleccionables"] { background: radial-gradient(ellipse at 50% 42%, #fff9ec, #efe0c9 82%); }
.catalog-cover[data-collection="hogar"] { background: radial-gradient(ellipse at 50% 42%, #fbfaf0, #e9e6d1 82%); }
.catalog-cover img { width: 100%; height: 100%; object-fit: contain; }
.catalog-cover-studio::before {
  content: "";
  position: absolute;
  top: 87%;
  left: 28%;
  width: 44%;
  height: 6%;
  background: #292039;
  opacity: .14;
  filter: blur(9px);
  border-radius: 50%;
}
.catalog-cover-studio img {
  position: absolute;
  max-width: none;
  object-fit: fill;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.catalog-cover-framed { border-radius: .35rem; box-shadow: 0 6px 22px rgb(41 32 57 / 16%); }
.catalog-card h3 { font-size: 1.08rem; line-height: 1.26; overflow-wrap: anywhere; }
.catalog-condition { color: var(--muted); font-size: .88rem; }
.catalog-price { font-size: 1.13rem; font-weight: 800; }
.catalog-listing, .detail-close button { min-height: 44px; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: .3rem; background: #f0eaf6; color: var(--ink); font-weight: 750; cursor: pointer; }
.catalog-actions { display: grid; gap: .4rem; align-self: stretch; margin-top: auto; }
.whatsapp-action { background: #126342; color: white; text-align: center; }
.whatsapp-action:hover { background: #0b4a31; }
.catalog-actions .whatsapp-action { min-height: 44px; padding-inline: .45rem; font-size: .875rem; }
#detail-whatsapp { margin-top: 1rem; }
.catalog-listing:hover, .detail-close button:hover { background: #e1d5ee; }

.product-dialog { width: min(880px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border: 1px solid var(--line); border-radius: .8rem; padding: clamp(1rem, 3vw, 2rem); color: var(--ink); background: var(--paper); }
.product-dialog::backdrop { background: rgb(28 16 43 / 74%); }
.detail-close { display: flex; justify-content: end; margin-bottom: .9rem; }
.detail-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; }
.detail-content h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); margin-block: .45rem .7rem; }
.detail-content .catalog-price { margin-bottom: .55rem; }
.detail-photo { width: 100%; height: clamp(230px, 48vh, 440px); object-fit: contain; background: #f0edf3; border-radius: .6rem; }
.detail-photo-status { margin: .4rem 0; color: var(--muted); font-size: .9rem; }
.detail-thumbs { display: flex; flex-wrap: wrap; gap: .35rem; }
.detail-thumbs button { border: 2px solid transparent; border-radius: .4rem; background: #fff; padding: 2px; cursor: pointer; }
.detail-thumbs button[aria-pressed="true"] { border-color: #73449b; }
.detail-thumbs img { width: 42px; height: 42px; object-fit: cover; border-radius: .22rem; }

.delivery { margin-bottom: 3.5rem; padding: clamp(1.4rem, 4vw, 3.4rem); border-radius: .65rem; background: var(--plum); color: white; }
.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 1.4rem; }
.delivery-grid > div { border-top: 1px solid #836e9b; padding-top: .8rem; }
.delivery-grid h3 { font-size: 1.09rem; color: var(--accent); }
.delivery-grid p { max-width: 33ch; margin-top: .3rem; }
.site-footer { border-top: 1px solid var(--line); background: white; }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 2rem); }
  .catalog-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collection { grid-template-rows: 108px 1fr; }
}
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; margin-top: .75rem; }
  .hero-copy { padding: 1.6rem; }
  .hero-image { padding: .9rem; }
  .hero-image img { height: 260px; }
  .wordmark { font-size: 1.25rem; }
  .brand-icon { width: 1.6rem; height: 1.6rem; }
  nav { gap: .65rem; font-size: .89rem; }
  .header-inner { min-height: 59px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .collection { grid-template-rows: 105px 1fr; }
  .catalog-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-controls label:first-child { grid-column: 1 / -1; }
  .catalog-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .catalog-card > :not(.catalog-cover) { margin-inline: .55rem; }
  .catalog-card h3 { font-size: 1rem; }
  .catalog-listing { padding-inline: .55rem; }
  .detail-content { grid-template-columns: 1fr; }
  .detail-content > div:last-child { grid-row: 1; }
  .delivery-grid { grid-template-columns: 1fr; gap: .9rem; }
}
