:root {
  --ink: #202421;
  --paper: #f7f8f5;
  --surface: #fff;
  --muted: #525b55;
  --line: #cbd1cb;
  --deep-green: #235947;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #286951; outline-offset: 3px; }
.sr, .skip:not(:focus) { width: 1px; height: 1px; overflow: hidden; position: absolute; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 9; left: .5rem; top: .5rem; background: white; padding: .65rem; }
.wrap { width: min(1220px, calc(100% - 72px)); margin-inline: auto; }
header { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; min-height: 76px; gap: clamp(24px, 5vw, 78px); }
.logo { display: inline-flex; align-items: center; }
.logo img { width: 142px; height: auto; }
nav { display: flex; gap: 27px; }
nav a, .bag, .text-btn { font-size: .94rem; font-weight: 650; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; }
.bag { margin-left: auto; display: inline-flex; align-items: center; gap: .52rem; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: white; white-space: nowrap; }
.bag b { min-width: 23px; padding-inline: 4px; line-height: 23px; text-align: center; background: var(--ink); color: white; border-radius: 5px; font-size: .8rem; }
.bag:hover, .secondary:hover { background: #e9eeea; }

.hero { display: grid; grid-template-columns: .93fr 1.07fr; margin-top: 22px; background: var(--ink); color: white; border-radius: 14px; overflow: hidden; }
.hero-copy { align-self: center; padding: clamp(25px, 3.4vw, 48px) clamp(25px, 4.4vw, 66px); }
.eyebrow { margin: 0 0 12px; font-weight: 750; font-size: .79rem; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: var(--amarillo); }
h1, h2, h3, .card strong { margin: 0; font-family: var(--sans); }
.hero h1 { font-size: clamp(3.6rem, 5.75vw, 5.6rem); line-height: .94; letter-spacing: -.066em; font-weight: 780; }
.hero h1 span { color: var(--menta); }
.hero-copy > p:not(.eyebrow) { max-width: 34ch; margin: 16px 0 21px; color: #e3e7e2; }
.hero-art { position: relative; display: grid; align-items: center; isolation: isolate; overflow: hidden; background: var(--menta); }
.hero-art::before { content: ""; z-index: -1; position: absolute; width: 83%; aspect-ratio: 1; right: -16%; top: -54%; border: 1px solid #23392e3b; border-radius: 50%; box-shadow: 0 0 0 36px #ffffff1f, 0 0 0 73px #ffffff13; }
.portada { width: 100%; height: 100%; max-height: 380px; object-fit: contain; }
.hero-mark { position: absolute; right: clamp(12px, 2vw, 26px); top: clamp(12px, 2vw, 23px); width: clamp(34px, 4vw, 54px); height: auto; }
.primary, .secondary { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; padding: 10px 18px; font-weight: 710; font-size: .95rem; border: 1px solid transparent; border-radius: 6px; text-decoration: none; }
.primary { color: white; background: var(--ink); }
.primary:hover { background: #36493e; }
.hero .primary { background: white; color: var(--ink); }
.hero .primary:hover { background: var(--menta); }
.secondary { border-color: #aab4ad; background: transparent; }

.collection { padding: 36px 0 48px; scroll-margin-top: 16px; }
.collection-head, .results { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
h2 { font-size: clamp(1.85rem, 2.85vw, 2.65rem); line-height: 1.08; letter-spacing: -.052em; font-weight: 750; }
.text-btn, .line button { color: var(--deep-green); text-decoration: underline; text-underline-offset: 3px; background: transparent; border: 0; padding: 7px 0; }
.text-btn:hover { color: var(--ink); }
.controls { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(192px, .34fr); gap: 12px; margin-top: 18px; }
.search { display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid #acb6af; border-radius: 6px; background: white; }
.lupa { display: inline-block; flex: 0 0 15px; height: 15px; border: 1.8px solid var(--muted); border-radius: 50%; position: relative; }
.lupa::after { content: ""; position: absolute; width: 6px; height: 1.8px; background: var(--muted); transform: rotate(45deg); right: -4px; bottom: -2px; }
.search input { width: 100%; min-width: 0; padding: 11px 0; background: transparent; border: 0; }
select, .options input { width: 100%; min-height: 45px; border: 1px solid #acb6af; border-radius: 6px; background-color: white; padding: 8px 12px; }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg,transparent 50%,#57615b 50%), linear-gradient(135deg,#57615b 50%,transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-repeat: no-repeat; background-size: 5px 5px; }
.results { min-height: 43px; color: var(--muted); font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px 18px; }
.card { display: block; width: 100%; padding: 0; text-align: left; border: 0; background: none; --category-color: var(--menta); }
.card[data-collection="BTS"] { --category-color: var(--lila); }
.card[data-collection="K-pop"] { --category-color: var(--fucsia); }
.card[data-collection="Cine"] { --category-color: var(--amarillo); }
.card[data-collection="Rock"] { --category-color: var(--menta); }
.card[data-collection="Pop y urbano"] { --category-color: var(--naranja); }
.card .photo { display: block; aspect-ratio: 1; background: #f4f2ef; border: 1px solid #dedfd9; border-radius: 9px; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: contain; }
.card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.card small { display: flex; align-items: center; gap: 6px; margin: 10px 0 3px; color: var(--muted); font-size: .85rem; }
.card small::before { content: ""; width: 9px; height: 9px; border-radius: 2px; flex: none; background: var(--category-color); }
.card strong { display: block; font-size: clamp(1.1rem, 1.65vw, 1.42rem); font-weight: 720; letter-spacing: -.036em; line-height: 1.18; }
.empty { background: #e7f1eb; padding: 24px; border-radius: 8px; }
.empty p { margin: 6px 0 12px; }
.empty a { font-weight: 650; }
footer.wrap { border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 23px 0 27px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
footer a { font-size: .95rem; }

dialog { color: var(--ink); background: var(--surface); border: 0; border-radius: 12px; padding: 0; max-width: min(94vw, 860px); max-height: 91dvh; overflow: auto; box-shadow: 0 24px 70px #131e1950; }
dialog::backdrop { background: #171f1cc4; }
.close { position: absolute; right: 10px; top: 10px; width: 41px; height: 41px; line-height: 1; border: 1px solid var(--line); border-radius: 50%; z-index: 1; background: white; font-size: 1.4rem; }
.detail { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(280px,.96fr); }
.detail-visual { padding: 16px; background: #eaf0eb; align-content: center; }
.detail-art { container-type: size; display: grid; place-items: center; height: clamp(255px,40vh,450px); }
.detail-body { padding: 46px 26px 24px; }
.detail-body .eyebrow, .panel .eyebrow { color: var(--deep-green); }
.detail-body > p:not(.eyebrow) { margin: 6px 0 16px; color: var(--muted); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.options label { display: grid; gap: 4px; font-size: .92rem; font-weight: 650; }
.options input, .options select { font-size: 1rem; font-weight: 400; }
.note { color: var(--muted); font-size: .9rem; margin: 14px 0 8px; }
.wide { width: 100%; margin: 4px 0; }
.detail .text-btn { margin-top: 7px; }
.panel { width: min(530px,90vw); padding: 35px 25px 24px; }
.panel h2 { margin-bottom: 18px; }
.line { display: grid; grid-template-columns: 55px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.line img { width: 55px; height: 60px; object-fit: contain; border-radius: 5px; }
.line p { color: var(--muted); margin: 2px 0; font-size: .9rem; }
.toast { position: fixed; z-index: 5; bottom: 17px; left: 50%; transform: translateX(-50%); max-width: 90vw; margin: 0; padding: 10px 16px; background: var(--ink); color: white; border-radius: 7px; text-align: center; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 36px); }
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .nav { min-height: 66px; }
  .hero h1 { font-size: clamp(2.8rem, 6.3vw, 3.7rem); }
  .hero-copy { padding: 26px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .nav { min-height: 60px; gap: 12px; }
  .logo img { width: clamp(85px, 27vw, 114px); }
  nav { margin-left: auto; }
  nav a { font-size: .85rem; }
  nav a:first-child { display: none; }
  .bag { margin-left: 0; gap: 6px; padding: 0 8px; font-size: .83rem; }
  .hero { grid-template-columns: 1fr; margin-top: 12px; border-radius: 9px; }
  .hero-copy { padding: 21px 21px 20px; }
  .hero h1 { font-size: clamp(2.05rem, 8.9vw, 3.1rem); line-height: 1.02; }
  .hero h1 br { display: none; }
  .hero h1 span::before { content: " "; }
  .hero .eyebrow { margin-bottom: 6px; font-size: .76rem; }
  .hero-copy > p:not(.eyebrow) { margin: 8px 0 12px; line-height: 1.35; font-size: .93rem; }
  .hero .primary { min-height: 40px; padding: 7px 12px; font-size: .87rem; }
  .hero-art { height: clamp(143px, 38vw, 200px); }
  .portada { max-height: 100%; height: 100%; }
  .hero-mark { width: 32px; right: 12px; top: 10px; }
  .collection { padding: 24px 0 35px; }
  .collection-head { gap: 10px; }
  .collection h2 { font-size: clamp(1.4rem,5.45vw,2rem); }
  .text-btn { font-size: .84rem; }
  .controls { grid-template-columns: 1fr; gap: 7px; margin-top: 13px; }
  .results { min-height: 34px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px 10px; }
  .card small { margin-top: 7px; }
  footer.wrap { align-items: flex-start; }
  footer a, .footer-brand { font-size: .84rem; }
  .footer-brand { gap: 6px; }
  .footer-brand img { width: 32px; height: 32px; }
  .detail { grid-template-columns: minmax(0,1fr); }
  .detail-visual { padding: 10px; }
  .detail-art { height: clamp(155px,27dvh,258px); }
  .detail-body { padding: 16px; }
  .detail-body .eyebrow { margin-bottom: 4px; }
  .detail-body > p:not(.eyebrow) { margin: 5px 0 10px; }
  .options { gap: 8px; }
  .panel { padding: 28px 17px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.promo { margin: 10px 0 0; color: var(--deep-green); font-size: .95rem; }
.colecciones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.colecciones button { min-height: 44px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 22px; background: white; font-size: .93rem; }
.colecciones button:hover { border-color: var(--deep-green); }
.colecciones button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); font-weight: 650; }
.precio-ficha { padding: 10px 13px; margin: 14px 0 7px; background: #edf4ef; border-left: 3px solid var(--menta); border-radius: 4px; }
.precio-ficha p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.precio-total { padding: 11px 13px; margin: 10px 0; border-top: 1px solid var(--line); background: #edf4ef; font-weight: 670; }


#zoom-foto {
  width: min(100cqw, calc(100cqh * var(--proporcion, 1)));
  aspect-ratio: var(--proporcion, 1);
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
#imagen-ficha { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
#zoom-foto[aria-pressed="true"] { cursor: zoom-out; touch-action: pinch-zoom; }
#zoom-foto[aria-pressed="true"] img { transform: scale(var(--aumento)); }
#zoom-ayuda { margin: 6px 0; text-align: center; color: var(--muted); font-size: .875rem; }
.ayuda-tactil { display: none; }
@media (hover: none), (pointer: coarse) {
  .ayuda-raton { display: none; }
  .ayuda-tactil { display: inline; }
}
