/* Printealo · Catálogo (usa los tokens y componentes de styles.css) */

.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--ink); color: #fff; }

/* ---------- portada ---------- */
.cat-hero { padding-top: clamp(32px, 5vw, 72px); }
.cat-hero__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(32px, 5vw, 80px); align-items: end; }
.cat-hero h1 { font-size: var(--s-hero); max-width: 11ch; }
.cat-hero__lead { margin-top: 28px; font-size: var(--s-lead); line-height: 1.42; max-width: 40ch; }
.cat-hero__cta { margin-top: 32px; }

.star { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.star__pic, .pz__pic {
  display: block; width: 100%; padding: 0; border: 0; background: #fff; overflow: hidden; cursor: zoom-in;
}
.star__pic img, .pz__pic img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .6s var(--ease), opacity .25s; }
.star__pic:hover img, .pz__pic:hover img { transform: scale(1.03); }
.is-loading img[data-pic] { opacity: .55; }
.star__pic img { max-height: calc(100svh - 150px); }
.star__h { font-size: var(--s-h2); }
.star__info > p:first-of-type { margin-top: 18px; font-size: var(--s-lead); line-height: 1.4; }
.star__now { margin-top: 20px; font-weight: 700; }
.star__sw { margin: 12px 0 28px; }

/* ---------- muestras de color ---------- */
.sw { display: flex; flex-wrap: wrap; gap: 8px; }
.sw button {
  width: var(--dot, 30px); height: var(--dot, 30px); padding: 0; border: 0; border-radius: 999px;
  background: var(--c) center / cover no-repeat, var(--ground-step);
  box-shadow: inset 0 0 0 1px rgba(35, 33, 65, .16); /* taste-skill-ignore: borde fino para que el blanco se vea sobre blanco */
  transition: transform .15s var(--ease);
}
.sw button:hover { transform: scale(1.12); }
.sw button[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 3px; }
.sw .sw__more {
  width: auto; min-width: var(--dot, 30px); padding: 0 8px; background: var(--ground-step);
  font-size: 13px; font-weight: 700; color: var(--ink);
}

/* ---------- categorías: la tira que se queda arriba ---------- */
.cats { position: sticky; top: 76px; z-index: 20; margin-top: clamp(56px, 7vw, 104px); background: var(--ground); }
.cats__in { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px; }
.cats a {
  flex: none; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--ink);
  font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .15s, color .15s;
}
.cats a:hover { background: var(--ground-step); }
.cats a.is-on { background: var(--ink); color: #fff; }

/* ---------- grupos ---------- */
.grp { padding-block: clamp(80px, 10vw, 152px); scroll-margin-top: 140px; }
.grp__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.grp__top p { font-size: var(--s-lead); line-height: 1.42; max-width: 40ch; }
.grp__grid { display: grid; gap: 48px 24px; align-items: start; }
.grp__grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grp__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grp__grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px 20px; }
.grp__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.grp__grid--7, .grp__grid--8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grp--sq .pz__pic img { aspect-ratio: 1; object-fit: contain; }

.grp--deep { background: var(--ground-deep); color: #fff; }
.grp--deep .pz__code, .grp--deep .pz__text { color: #d6d4e6; }
.grp--deep .pz__specs li { background: rgba(255, 255, 255, .1); color: #fff; }
.grp--deep .pz__wa { color: var(--lime); }
.grp--deep .sw button[aria-pressed="true"] { outline-color: #fff; }
.grp--deep .sw .sw__more { background: rgba(255, 255, 255, .14); color: #fff; }
.grp--sol .grp__grid--6 .pz__pic img { aspect-ratio: 4 / 5; }
.grp--paper { background: var(--paper); }
.grp--paper .pz__specs li { background: var(--paper-step); }
.grp--lime { background: var(--lime); color: var(--ink); }
.grp--lime .pz__code, .grp--lime .pz__text { color: var(--ink); }
.grp--lime .pz__specs li { background: rgba(35, 33, 65, .1); }

/* ---------- la pieza ---------- */
.pz { --dot: 24px; display: flex; flex-direction: column; min-width: 0; }
.pz .sw { gap: 6px; margin-top: 14px; min-height: var(--dot); }
.pz h3 { margin-top: 16px; font-size: clamp(24px, 2vw, 30px); line-height: .95; }
.pz__code { margin-top: 8px; font-size: var(--s-small); color: var(--text-soft); }
.pz__text { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--text); }
.pz__specs { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pz__specs li { background: var(--ground-step); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 500; }
.pz__wa {
  align-self: start; margin-top: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
  padding-block: 6px;
}
.pz__wa:hover { color: var(--pink); }

/* ---------- cierre ---------- */
.ask { background: var(--pink); color: #fff; padding-block: clamp(88px, 11vw, 160px); }
.ask__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px clamp(40px, 6vw, 112px); align-items: center; }
.ask__copy p { margin-top: 24px; font-size: var(--s-lead); line-height: 1.42; max-width: 40ch; }
.ask__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ask__steps {
  list-style: none; counter-reset: s; margin: 0; padding: 40px 36px; background: var(--paper); color: var(--ink);
  display: grid; gap: 28px; transform: rotate(1.6deg);
}
.ask__steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 4px; font-size: 17px; line-height: 1.45; }
.ask__steps li::before {
  content: counter(s); grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 48px; line-height: .9; color: var(--pink-press);
}
.ask__steps strong { display: block; font-size: var(--s-lead); }

/* ---------- ficha ---------- */
.pzd__pic { background: #fff; padding: 0; align-items: stretch; }
.pzd__pic img { width: 100%; height: 100%; max-height: calc(100svh - 48px); object-fit: cover; }
.pzd.is-sq .pzd__pic { align-items: center; }
.pzd.is-sq .pzd__pic img { height: auto; aspect-ratio: 1; object-fit: contain; }
.pzd .close__opts h2 { font-size: clamp(36px, 3.4vw, 52px); }
.pzd__code { margin-top: 10px; color: var(--ink-soft); }
.pzd .close__desc { margin-top: 18px; }
.pzd__now { margin-top: 24px; }
.pzd__sw { --dot: 30px; margin: 12px 0 28px; }
.pzd__ficha { margin-top: 20px; background: #fff; }
.pzd__ficha summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 48px; padding: 12px 16px; font-weight: 700;
}
.pzd__ficha summary::-webkit-details-marker { display: none; }
.pzd__ficha summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease);
}
.pzd__ficha[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.pzd__ficha summary:hover { color: var(--pink-press); }
.pzd__ficha ul { margin: 0; padding: 0 16px 16px 34px; display: grid; gap: 6px; font-size: 15px; line-height: 1.45; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .cat-hero__in { grid-template-columns: minmax(0, 1fr); }
  .star { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .grp__top { grid-template-columns: minmax(0, 1fr); }
  .grp__grid--4, .grp__grid--5, .grp__grid--7, .grp__grid--8 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ask__in { grid-template-columns: minmax(0, 1fr); }
  .ask__steps { max-width: 560px; }
}

/* ---------- teléfono ---------- */
@media (max-width: 680px) {
  .bar__nav a[href="/"] { display: none; }
  .cats { position: static; }
  .cats a { padding: 9px 14px; }
  .grp { scroll-margin-top: 72px; }
  .cat-hero h1 { font-size: 15vw; }
  .cat-hero__lead { font-size: var(--s-body); margin-top: 20px; }
  .star { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .star__pic img { aspect-ratio: 4 / 5; max-height: 70svh; }
  .star__info > p:first-of-type { font-size: var(--s-body); }
  .grp__grid--6, .grp__grid--4, .grp__grid--5, .grp__grid--3, .grp__grid--7, .grp__grid--8 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; }
  .grp--sol .grp__grid--6 .pz__pic img { aspect-ratio: 2 / 3; }
  .grp__top p { font-size: var(--s-body); }
  .pz { --dot: 22px; }
  .pz h3 { font-size: 21px; }
  .pz__text { display: none; }
  .pz__specs li { font-size: 13px; padding: 3px 8px; }
  .ask__steps { padding: 28px 22px; transform: none; }
  .pzd__pic img { max-height: 46svh; object-position: 50% 15%; }
}
