/* ==========================================================================
   3Pixeles — plantilla de catálogo
   CSS mobile-first · Variables, componentes y utilidades
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --brand-50: #f4f1ff;
  --brand-100: #e9e2ff;
  --brand-200: #d5c9ff;
  --brand-300: #b9a6ff;
  --brand-500: #6c5ce7;
  --brand-600: #5b45e0;
  --brand-700: #4632b4;

  --accent: #ff8a5b;
  --accent-soft: #ffe4d8;
  --accent-ink: #8a3410;

  --ink: #171329;
  --ink-soft: #3d3752;
  --muted: #6e6880;
  --muted-2: #8b859c;

  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f4f0fb;
  --surface-3: #efe9f9;
  --line: #e9e4f2;
  --line-strong: #d9d1e9;

  --wa: #0e7a41;
  --wa-strong: #0b6135;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(23, 19, 41, 0.05), 0 6px 18px -10px rgba(23, 19, 41, 0.14);
  --shadow-md: 0 18px 40px -24px rgba(41, 25, 96, 0.4);
  --shadow-lg: 0 32px 70px -32px rgba(23, 19, 41, 0.5);

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --header-h: 62px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* 2. Reset ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 100% -10%, rgba(108, 92, 231, 0.07), transparent 60%),
    radial-gradient(40rem 30rem at -10% 10%, rgba(255, 138, 91, 0.08), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

[hidden] {
  display: none !important;
}

.top-sensor,
.scroll-sensor {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--brand-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brand-200);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 6px;
}

/* 3. Utilidades ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1rem;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.eyebrow--onDark {
  color: var(--brand-200);
}

.section {
  padding-block: 3rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 2.4rem);
  line-height: 1.08;
  margin-top: 0.35rem;
}

.section-head p {
  color: var(--muted);
  max-width: 46ch;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.section-head--sub {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.section-head h2.h-sm {
  font-size: 1.35rem;
}

.section-head h2.h-md {
  font-size: 1.5rem;
}

.credits-text {
  color: var(--muted);
  font-size: 0.86rem;
  max-width: 70ch;
}

/* 4. Botones --------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn i {
  font-size: 1em;
}

.btn:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 14px 28px -16px rgba(91, 69, 224, 0.9);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
}

.btn-accent {
  --btn-bg: var(--accent);
  --btn-fg: #3a1a0b;
  box-shadow: 0 14px 28px -16px rgba(255, 138, 91, 0.9);
}

.btn-accent:hover {
  background: #ff9d76;
}

.btn-wa {
  --btn-bg: var(--wa);
  min-height: 44px;
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
}

.btn-wa:hover {
  background: var(--wa-strong);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--brand-300);
}

.btn-quiet {
  background: transparent;
  color: var(--brand-700);
  padding-inline: 0.4rem;
}

.btn-quiet:hover {
  background: var(--brand-50);
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--brand-300);
  transform: translateY(-1px);
}

.icon-btn--dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.icon-btn--dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

/* 5. Barra de avisos ------------------------------------------------------- */
.announce {
  background: linear-gradient(100deg, var(--brand-700), var(--brand-500) 55%, #a44ac0);
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 36px;
  padding-block: 0.4rem;
  text-align: center;
}

.announce__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.announce__item i {
  color: var(--accent);
  font-size: 0.8em;
}

.announce__item + .announce__item {
  display: none;
}

/* 6. Cabecera -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 245, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -34px rgba(23, 19, 41, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 12px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(70, 50, 180, 0.9);
}

.brand__mark svg {
  width: 27px;
  height: 27px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand__tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}

.site-nav a[aria-current="page"] {
  color: var(--brand-700);
  background: var(--brand-50);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cta {
  display: none;
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle:hover {
  background: var(--surface-2);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 59;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 0.9rem 1rem 1.25rem;
  display: none;
}

.mobile-nav.is-open {
  display: block;
  animation: navIn 0.22s var(--ease) both;
}

.mobile-nav ul {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.9rem;
}

.mobile-nav a.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-xs);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav a.mobile-nav__link:hover,
.mobile-nav a.mobile-nav__link[aria-current="page"] {
  background: var(--brand-50);
  color: var(--brand-700);
}

.mobile-nav a.mobile-nav__link i {
  font-size: 0.75rem;
  color: var(--muted-2);
}

.mobile-nav .btn {
  width: 100%;
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 7. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 2.25rem 2.75rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(91, 69, 224, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 62% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 62% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 2rem;
}

.hero__copy {
  max-width: 40rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero__badge b {
  color: var(--brand-700);
  font-weight: 800;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 8.4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: italic;
  color: var(--brand-600);
}

.hero h1 .scribble {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.hero h1 .scribble svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.32em;
  width: 100%;
  height: 0.34em;
  color: var(--accent);
}

.hero__lead {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__trust i {
  color: var(--brand-500);
  font-size: 0.72rem;
}

/* Collage del hero */
.hero__art {
  position: relative;
  width: min(100%, 430px);
  margin-inline: auto;
  aspect-ratio: 1 / 0.92;
}

.hero__art::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  border: 1.5px dashed rgba(91, 69, 224, 0.35);
  transform: rotate(-18deg);
}

.art-card {
  position: absolute;
  border-radius: 22px;
  overflow: hidden;
  border: 5px solid #fff;
  background: var(--surface-2);
  box-shadow: 0 30px 60px -30px rgba(40, 25, 90, 0.55);
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-card--1 {
  width: 56%;
  left: 0;
  top: 14%;
  transform: rotate(-7deg);
  aspect-ratio: 1;
  z-index: 2;
}

.art-card--2 {
  width: 47%;
  right: 0;
  top: 0;
  transform: rotate(6deg);
  aspect-ratio: 1;
  z-index: 1;
}

.art-card--3 {
  width: 45%;
  right: 6%;
  bottom: 0;
  transform: rotate(-2deg);
  aspect-ratio: 1;
  z-index: 3;
}

.art-tag {
  position: absolute;
  left: 0;
  bottom: 8%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
}

.art-tag i {
  color: var(--accent);
}

.art-spark {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #3a1a0b;
  font-size: 1rem;
  right: 2%;
  top: 46%;
  transform: rotate(8deg);
  box-shadow: 0 12px 24px -12px rgba(255, 138, 91, 0.9);
}

/* 8. Catálogo: barra de herramientas -------------------------------------- */
.catalog {
  padding-bottom: 3.5rem;
  scroll-margin-top: var(--header-h);
}

.catalog-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  padding-block: 0.8rem;
  margin-bottom: 1.25rem;
  background: rgba(250, 248, 245, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.toolbar__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 0.35rem 0.4rem 0.35rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search:focus-within {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.14);
}

.search > i {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 1rem; /* evita el zoom automático en iOS */
  outline: none;
  padding-block: 0.45rem;
}

.search input::placeholder {
  color: var(--muted-2);
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search__clear {
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.72rem;
}

.search__clear.is-visible {
  display: grid;
}

.search__clear:hover {
  background: var(--brand-100);
  color: var(--ink);
}

.search__kbd {
  display: none;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
}

.sort {
  position: relative;
  display: none;
  flex: 0 0 auto;
}

.sort select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 46px;
  padding: 0.5rem 2.2rem 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.sort > i {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  color: var(--muted);
  pointer-events: none;
}

.toolbar__sort {
  display: none;
  flex: 0 0 auto;
}

.chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 2px 1rem 4px;
  margin-inline: -1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.catalog-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-top: 0.55rem;
  padding-inline: 0.1rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.catalog-cats span {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

.catalog-cats a {
  color: var(--brand-700);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}

.catalog-cats a:hover {
  text-decoration: underline;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  scroll-snap-align: start;
  touch-action: manipulation;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.chip i {
  font-size: 0.78em;
  color: var(--brand-500);
}

.chip .chip__count {
  font-size: 0.7rem;
  opacity: 0.62;
  font-variant-numeric: tabular-nums;
}

.chip:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip[aria-pressed="true"] i {
  color: var(--accent);
}

.chip[aria-pressed="true"] .chip__count {
  opacity: 0.7;
}

.results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 1rem;
}

.results__count {
  flex: 1 1 12rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.results__count b {
  color: var(--ink);
  font-weight: 700;
}

.results__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.results__sort .sort {
  display: block;
}

.results__sort select {
  min-height: 40px;
  font-size: 0.78rem;
}

/* 9. Tarjetas de producto -------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: var(--surface-2);
  overflow: hidden;
  cursor: zoom-in;
  touch-action: manipulation;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
}

.card-media img.is-loaded {
  opacity: 1;
}

.badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px -6px rgba(23, 19, 41, 0.4);
}

.badge--new {
  color: var(--brand-700);
}

.badge--best {
  background: var(--accent);
  color: #3a1a0b;
}

.badge--last {
  background: var(--ink);
  color: #fff;
}

.media-zoom {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.55rem;
  border: 0;
  background: linear-gradient(to top, rgba(23, 19, 41, 0.28), transparent 38%);
  opacity: 1;
  transition: opacity 0.25s var(--ease);
}

.zoom-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px -8px rgba(23, 19, 41, 0.5);
}

.zoom-text {
  display: none;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex: 1 1 auto;
  padding: 0.7rem 0.7rem 0.8rem;
  container-type: inline-size;
}

.card-eyebrow {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.05rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.card-meta code {
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}

.card-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.card-actions .btn {
  min-height: 42px;
  padding: 0.5rem 0.65rem;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.8rem;
}

.card-actions__add {
  flex: 1 1 100%;
}

.card-actions__wa,
.card-actions__view {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 0.4rem;
}

.card-actions__label {
  display: none;
}

/* CTA corto en tarjetas angostas. */
.card-actions__add-label--short {
  display: none;
}

@container (max-width: 149px) {
  .card-actions__add-label {
    display: none;
  }

  .card-actions__add-label--short {
    display: inline;
  }
}

/* Con espacio suficiente, los secundarios muestran su texto. */
@container (min-width: 190px) {
  .card-actions__label {
    display: inline;
  }
}

/* 10. Estados vacíos y paginación ----------------------------------------- */
.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 3rem 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 1.25rem;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.empty-state p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 34ch;
}

.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.75rem;
}

.load-more-wrap p {
  font-size: 0.78rem;
  color: var(--muted);
}

/* 11. Banda CTA ------------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #221a4d, var(--brand-700) 55%, #7a4cc9);
  color: #fff;
  padding: 2rem 1.25rem;
  isolation: isolate;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.cta-band::before {
  width: 22rem;
  height: 22rem;
  right: -8rem;
  top: -10rem;
  background: radial-gradient(circle, rgba(255, 138, 91, 0.55), transparent 65%);
}

.cta-band::after {
  width: 18rem;
  height: 18rem;
  left: -6rem;
  bottom: -12rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-band .eyebrow {
  color: var(--accent);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-top: 0.4rem;
  max-width: 18ch;
}

.cta-band p {
  color: #ded6ff;
  margin-top: 0.7rem;
  max-width: 46ch;
  font-size: 0.95rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* 12. Cabecera de páginas internas ---------------------------------------- */
.page-hero {
  padding-block: 1.75rem 1.5rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.crumbs i {
  font-size: 0.5rem;
  opacity: 0.7;
}

.page-hero .eyebrow {
  margin-top: 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 6.5vw, 3.4rem);
  margin-top: 0.7rem;
  letter-spacing: -0.03em;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--brand-600);
}

.page-hero__lead {
  margin-top: 0.65rem;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pill i {
  color: var(--brand-500);
  font-size: 0.72em;
}

/* 13. Populares ------------------------------------------------------------ */
.popular-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 1rem 0.75rem;
  margin-inline: -1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.popular-strip::-webkit-scrollbar {
  display: none;
}

.popular-card {
  flex: 0 0 108px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
}

.popular-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #fff;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.popular-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.popular-card:hover .popular-card__media img {
  transform: scale(1.06);
}

.popular-card span:last-child {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-inline: 0.15rem;
}

/* 14. Álbumes (colecciones) ------------------------------------------------ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 0.9rem;
}

.album-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
}

.album-stack {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.94;
}

.album-photo {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid #fff;
  background: var(--surface-2);
  box-shadow: 0 18px 30px -20px rgba(23, 19, 41, 0.55);
  transition: transform 0.45s var(--ease);
}

.album-photo:nth-child(1) {
  transform: rotate(-7deg) translate(-9%, 4%) scale(0.9);
}

.album-photo:nth-child(2) {
  transform: rotate(6deg) translate(9%, 3%) scale(0.94);
}

.album-photo:nth-child(3) {
  transform: translateY(-1%);
}

.album-count {
  position: absolute;
  left: 50%;
  bottom: 1%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.24rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 8px 16px -10px rgba(23, 19, 41, 0.8);
}

.album-info {
  text-align: center;
  padding-inline: 0.15rem;
}

.album-info h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.album-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.album-tags span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.album-tags a {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-700);
  text-decoration: none;
  text-underline-offset: 3px;
}

.album-tags a:hover {
  text-decoration: underline;
}

.album-tags span + span::before {
  content: "·";
  margin-right: 0.3rem;
  color: var(--line-strong);
}

.album-tags--start {
  justify-content: flex-start;
  margin-top: 0.5rem;
}

/* 15. Detalle de colección ------------------------------------------------- */
.album-hero {
  padding-block: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.album-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.album-head h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.02;
  flex: 1 1 auto;
  min-width: 0;
}

.album-head__actions {
  display: flex;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.album-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.album-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.album-meta i {
  color: var(--brand-500);
  font-size: 0.75em;
}

.album-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.4rem 1rem;
}

.album-toolbar h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.album-toolbar p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* 16. Guía ----------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 0.9rem;
}

.step {
  position: relative;
  padding: 1.4rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.step__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brand-500);
  font-weight: 600;
}

.step__icon {
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-600);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.step p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.size-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

.size-table caption {
  caption-side: bottom;
  padding: 0.8rem 1rem;
  font-size: 0.74rem;
  color: var(--muted);
  text-align: left;
}

.size-table th,
.size-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.size-table thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.size-table tbody th {
  font-weight: 700;
}

.size-table tbody tr:last-child th,
.size-table tbody tr:last-child td {
  border-bottom: 0;
}

.faq {
  display: grid;
  gap: 0.6rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.2rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq details[open] {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 54px;
  padding-block: 0.7rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "\2b";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.faq details[open] summary::after {
  content: "\2212";
  background: var(--brand-600);
  color: #fff;
}

.faq details p {
  padding-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 64ch;
}

/* 17. Pie de página -------------------------------------------------------- */
.site-footer {
  margin-top: 2rem;
  background: #141026;
  color: #cfc9e2;
  padding-block: 2.5rem 1.25rem;
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand__mark {
  background: linear-gradient(140deg, var(--brand-500), #8a4bc4);
}

.footer-brand .brand__tag {
  color: #928ba8;
}

.footer-brand p {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: #a9a2bd;
  max-width: 30ch;
}

.socials {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #e7e2f5;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.footer-col h2 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d85a3;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  display: grid;
  gap: 0.5rem;
}

.footer-col a,
.footer-col p {
  color: #cfc9e2;
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 28px;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col a i {
  color: var(--accent);
  font-size: 0.8em;
  width: 1em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  color: #8d85a3;
}

.footer-bottom p {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-bottom a {
  color: #cfc9e2;
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom i {
  color: var(--accent);
}

/* 18. Botón volver arriba / aviso ----------------------------------------- */
.to-top {
  position: fixed;
  right: 0.9rem;
  bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 16px 30px -16px rgba(23, 19, 41, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s var(--ease), background-color 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--brand-700);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 140;
  transform: translate(-50%, 1rem);
  max-width: calc(100vw - 2rem);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* 19. Lightbox (vista rápida) --------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  background: rgba(13, 10, 24, 0.84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__panel {
  position: relative;
  width: min(100%, 940px);
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.25s var(--ease);
}

.lightbox.is-open .lightbox__panel {
  transform: none;
  opacity: 1;
}

.lb-grid {
  display: grid;
}

.lb-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0.85rem;
  background: var(--surface-2);
}

.lb-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.88rem;
  box-shadow: 0 8px 20px -10px rgba(23, 19, 41, 0.6);
  transform: translateY(-50%);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.lb-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.lb-nav[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.lb-prev {
  left: 0.55rem;
}

.lb-next {
  right: 0.55rem;
}

.lb-counter {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(23, 19, 41, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.lb-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.lb-close:hover {
  background: #fff;
}

.lb-info {
  padding: 1.25rem 1.15rem 1.4rem;
}

.lb-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 600;
  margin-top: 0.25rem;
}

.lb-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.lb-price small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.lb-desc {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.lb-sku {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.lb-sku span {
  color: var(--ink);
  font-weight: 700;
}

.lb-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.lb-hint {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  color: var(--muted-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

kbd {
  display: inline-block;
  padding: 0.05rem 0.3rem;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface-2);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* 20. Animación de aparición ---------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 21. Breakpoints ---------------------------------------------------------- */
@media (min-width: 480px) {
  .announce__item:nth-child(2) {
    display: inline-flex;
  }

  .card-title {
    font-size: 1.12rem;
  }

  .card-body {
    padding: 0.8rem 0.85rem 0.9rem;
  }

  .card-meta {
    font-size: 0.72rem;
  }

  .card-price {
    font-size: 0.88rem;
  }
}

@media (min-width: 600px) {
  :root {
    --header-h: 70px;
  }

  .container {
    padding-inline: 1.5rem;
  }

  .announce__item:nth-child(3) {
    display: inline-flex;
  }

  .announce__inner {
    gap: 2.25rem;
  }

  .hero {
    padding-block: 3rem 4rem;
  }

  .hero__lead {
    font-size: 1.08rem;
  }

  .hero__actions .btn {
    min-height: 50px;
    padding-inline: 1.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .card-body {
    padding: 0.85rem 0.9rem 1rem;
  }

  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.2rem;
  }

  .album-card {
    gap: 0.85rem;
  }

  .album-photo {
    border-width: 5px;
  }

  .section {
    padding-block: 3.75rem;
  }

  .cta-band {
    padding: 2.75rem 2.25rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .lb-media {
    padding: 1.5rem;
  }

  .lightbox {
    padding: 1.25rem;
  }

  .lb-info {
    padding: 1.5rem 1.6rem 1.75rem;
  }

  .lb-actions {
    flex-direction: row;
  }

  .lb-actions .btn {
    flex: 1 1 0;
  }
}

@media (min-width: 860px) {
  .announce {
    font-size: 0.78rem;
  }

  .announce__inner {
    justify-content: space-between;
    gap: 1rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    gap: 3rem;
  }

  .hero__art {
    width: 100%;
    max-width: 470px;
    justify-self: end;
  }

  .site-nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .sort {
    display: block;
  }

  .toolbar__sort {
    display: block;
  }

  .search__kbd {
    display: inline-flex;
  }

  .toolbar__top {
    margin-bottom: 0.75rem;
  }

  .chips {
    padding-bottom: 2px;
  }

  .results__sort {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .zoom-text {
    display: inline;
  }

  .media-zoom {
    align-items: flex-start;
    justify-content: flex-end;
    background: transparent;
    opacity: 1;
  }

  .zoom-pill {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      background-color 0.25s var(--ease), color 0.25s var(--ease);
  }

  .media-zoom:hover .zoom-pill,
  .media-zoom:focus-visible .zoom-pill {
    opacity: 1;
    transform: none;
    background: var(--ink);
    color: #fff;
  }

  @media (hover: hover) {
    .product-card:hover {
      transform: translateY(-5px);
      border-color: var(--line-strong);
      box-shadow: var(--shadow-md);
    }

    .product-card:hover .card-media img,
    .card-media:focus-visible img {
      transform: scale(1.045);
    }

    .album-card:hover .album-photo:nth-child(1) {
      transform: rotate(-11deg) translate(-13%, 6%) scale(0.92);
    }

    .album-card:hover .album-photo:nth-child(2) {
      transform: rotate(10deg) translate(13%, 5%) scale(0.96);
    }

    .album-card:hover .album-photo:nth-child(3) {
      transform: translateY(-3%) scale(1.02);
    }
  }

  .page-hero {
    padding-block: 2.25rem 2rem;
  }

  .album-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.25rem 1.4rem;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .lb-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .lb-media {
    aspect-ratio: auto;
    min-height: 460px;
    padding: 2rem;
  }

  .lb-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.25rem 2rem 2rem;
  }

  .lb-hint {
    margin-top: auto;
    padding-top: 1rem;
  }

  .lb-nav {
    width: 46px;
    height: 46px;
  }

  .lb-prev {
    left: 0.85rem;
  }

  .lb-next {
    right: 0.85rem;
  }
}

@media (min-width: 1080px) {
  .container {
    padding-inline: 2rem;
  }

  .hero {
    padding-block: 3.5rem 4.5rem;
  }

  .hero__art {
    max-width: 520px;
  }

  .search {
    max-width: 520px;
  }

  .toolbar__top {
    justify-content: space-between;
  }

  .chips {
    gap: 0.5rem;
  }

  .chip {
    min-height: 42px;
    padding-inline: 0.95rem;
    font-size: 0.85rem;
  }

  .section {
    padding-block: 4.5rem;
  }
}

/* 22. Preferencias de movimiento y contraste ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .product-card:hover,
  .album-card:hover .album-photo,
  .popular-card:hover .popular-card__media img {
    transform: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #b9b1cc;
    --line-strong: #8f86a8;
    --muted: #4f4962;
  }

  .badge {
    border: 1px solid var(--ink);
  }
}

@media print {
  .site-header,
  .announce,
  .to-top,
  .lightbox,
  .site-footer,
  .catalog-toolbar {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 20. Carrito ------------------------------------------------------------- */
.header-cart {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.header-cart:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.header-cart__count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--bg);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #3a1a0b;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
}

.header-cart__count[hidden] {
  display: none;
}

.mobile-nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mobile-nav__cart [data-cart-count] {
  min-width: 20px;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #3a1a0b;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.mobile-nav__cart [data-cart-count][hidden] {
  display: none;
}

.cart-page {
  padding-block: 1.25rem 3.5rem;
}

.cart-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.cart-lines {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.cart-line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  grid-template-areas:
    "image info subtotal"
    "image info remove";
  gap: 0.65rem 0.9rem;
  align-items: center;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line__image {
  grid-area: image;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background: var(--surface-2);
}

.cart-line__info {
  grid-area: info;
  min-width: 0;
}

.cart-line__title {
  display: inline-block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.cart-line__title:hover {
  color: var(--brand-700);
}

.cart-line__meta,
.cart-line__price {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.cart-line__subtotal {
  grid-area: subtotal;
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.cart-line__remove {
  grid-area: remove;
  justify-self: end;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.cart-line__remove:hover {
  color: var(--accent-ink);
}

.qty--small {
  width: fit-content;
  max-width: 100%;
  margin-top: 0.35rem;
  justify-self: start;
}

.qty--small button {
  width: 34px;
  height: 34px;
  font-size: 1rem;
}

.qty--small input {
  width: 44px;
  height: 34px;
  font-size: 0.82rem;
}

.cart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.cart-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.cart-clear {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.cart-clear:hover {
  color: var(--accent-ink);
}

.cart-shipping {
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.65);
}

.cart-shipping p {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.shipping-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  overflow: hidden;
}

.shipping-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-500), var(--accent));
  transition: width 0.35s var(--ease);
}

.order-form {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.order-form h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-field {
  display: grid;
  gap: 0.3rem;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.form-field textarea {
  min-height: 84px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.form-field input[aria-invalid="true"] {
  border-color: var(--accent-ink);
}

.form-error {
  margin: 0;
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.cart-summary {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cart-summary h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.cart-summary dl {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
}

.cart-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
}

.cart-summary dt {
  color: var(--muted);
}

.cart-summary dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.cart-summary__total {
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: 1rem !important;
}

.cart-order-id {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.cart-summary .btn {
  width: 100%;
  margin-top: 0.45rem;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.cart-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.cart-empty {
  padding: 2.5rem 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
}

.cart-empty h2 {
  margin: 0.3rem 0 0.5rem;
}

.cart-empty p {
  color: var(--muted);
}

.cart-status {
  margin-top: 0.6rem;
  min-height: 1.2em;
  color: var(--brand-700);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (min-width: 860px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
  }

  .cart-summary {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }

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

  .form-field--full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .cart-line {
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-areas:
      "image info"
      "image subtotal";
  }

  .cart-line__image {
    width: 68px;
    height: 68px;
  }

  .cart-line__subtotal {
    text-align: left;
  }

  .cart-line__remove {
    grid-column: 2;
    justify-self: start;
  }
}
.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--brand-700);
}
/* 21. Controles de variante y carrito lateral ---------------------------- */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.qty button {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.qty button:hover {
  background: var(--brand-50);
}

.qty button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty input {
  width: 56px;
  height: 44px;
  border: 0;
  border-inline: 1px solid var(--line);
  text-align: center;
  font: inherit;
  font-weight: 700;
  background: var(--surface);
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.swatches,
.lb-colors__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.swatch:has(input:checked) {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 2px var(--brand-100);
}

.swatch:has(input:focus-visible) {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.swatch__dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid rgba(23, 19, 41, 0.2);
}

.product-stock {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.product-stock[data-state="low"],
.product-stock[data-state="out"] {
  color: var(--accent-ink);
}

.lb-options {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.lb-option {
  display: grid;
  gap: 0.3rem;
}

.lb-option > label,
.lb-option > legend,
.lb-option__label {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lb-option select {
  width: 100%;
  min-height: 42px;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.lb-colors {
  border: 0;
  margin: 0;
  padding: 0;
}

.lb-options .btn {
  width: 100%;
  margin-top: 0.1rem;
}

.cart-dialog {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  background: transparent;
}

.cart-dialog[open] {
  display: block;
}

.cart-dialog::backdrop {
  background: rgba(23, 19, 41, 0.42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.cart-dialog__panel {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100%;
  background: var(--surface);
  box-shadow: -24px 0 60px -30px rgba(23, 19, 41, 0.55);
}

.cart-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.cart-dialog__head .eyebrow {
  margin-bottom: 0.15rem;
}

.cart-dialog__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.cart-dialog__head h2 span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
}

.cart-dialog__close {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.cart-dialog__close:hover {
  background: var(--brand-50);
}

.cart-dialog__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
}

.cart-drawer-lines {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-drawer-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cart-drawer-line__image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background: var(--surface-2);
}

.cart-drawer-line__info {
  min-width: 0;
}

.cart-drawer-line__title {
  display: inline-block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.cart-drawer-line__title:hover {
  color: var(--brand-700);
}

.cart-drawer-line__meta {
  margin: 0.2rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.cart-drawer-line__side {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
}

.cart-drawer-line__subtotal {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.cart-drawer-line__remove {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.cart-drawer-line__remove:hover {
  color: var(--accent-ink);
}

.cart-dialog__foot {
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.cart-drawer-shipping p {
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-drawer-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.8rem 0 0.3rem;
  font-size: 0.9rem;
}

.cart-drawer-total strong {
  font-size: 1.15rem;
}

.cart-dialog__foot .btn {
  width: 100%;
  margin-top: 0.45rem;
}

.cart-dialog__privacy {
  margin: 0;
  padding: 0 1rem 0.8rem;
  text-align: center;
}

.cart-drawer-empty {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 2rem 1rem;
  text-align: center;
}

.cart-drawer-empty h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.cart-drawer-empty p {
  margin: 0;
  color: var(--muted);
}

.chip--soon {
  border-style: dashed;
  color: var(--muted);
}

.chip--soon .chip__count {
  background: transparent;
  color: var(--accent-ink);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* 22. Selector de tallas y guía de colores ------------------------------- */
.product-sizes {
  border: 0;
  margin: 0;
  padding: 0;
}

.size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.size-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 48px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.size-btn:hover {
  border-color: var(--brand-400);
  background: var(--brand-50);
}

.size-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-btn:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.size-btn:has(input:focus-visible) {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.product-color-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.product-color-note a {
  color: var(--brand-700);
  font-weight: 700;
}
/* 23. Guía de tallas en diálogo ------------------------------------------ */
.size-dialog {
  width: min(920px, calc(100% - 2rem));
  max-width: 920px;
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.size-dialog[open] {
  display: block;
}

.size-dialog::backdrop {
  background: rgba(23, 19, 41, 0.48);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.size-dialog__panel {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.size-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.size-dialog__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.size-dialog__close {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}

.size-dialog__close:hover {
  background: var(--brand-50);
}

.size-dialog__tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}

.size-dialog__tab {
  min-height: 38px;
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.size-dialog__tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--brand-700);
  box-shadow: var(--shadow-sm);
}

.size-dialog__tab:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.size-dialog__recommendation {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.size-dialog__recommendation i {
  margin-top: 0.15rem;
  color: var(--brand-600);
}

.size-dialog__recommendation p {
  margin: 0;
}

.size-dialog__grid {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.size-schematic-wrap {
  display: grid;
  place-items: center;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.size-schematic {
  width: 100%;
  max-width: 190px;
  height: auto;
  color: var(--ink-soft);
}

.size-dialog__table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.size-dialog__table caption {
  caption-side: bottom;
  padding-top: 0.5rem;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: left;
}

.size-dialog__table th,
.size-dialog__table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
}

.size-dialog__table thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.size-dialog__table tbody th {
  font-weight: 800;
}

.size-dialog__table tbody tr:last-child th,
.size-dialog__table tbody tr:last-child td {
  border-bottom: 0;
}

.size-dialog__legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.size-dialog__legend strong {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 0.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #3a1a0b;
  font-size: 0.66rem;
}

.size-dialog__note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.size-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
  .size-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .size-dialog__panel {
    max-height: calc(100vh - 1rem);
    padding: 0.9rem;
  }

  .size-dialog__grid {
    grid-template-columns: 1fr;
  }

  .size-schematic {
    max-width: 160px;
  }

  .size-dialog__legend {
    grid-template-columns: 1fr;
  }
}
/* 24. Acordeones informativos ------------------------------------------- */
.info-accordions {
  margin-top: 1.5rem;
}

.info-accordions__head {
  margin-bottom: 0.8rem;
}

.info-accordions__head h2 {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.info-accordions__note {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

.info-accordion {
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.info-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.info-accordion summary::-webkit-details-marker {
  display: none;
}

.info-accordion summary:hover {
  background: var(--brand-50);
}

.info-accordion summary > i {
  color: var(--brand-700);
  transition: transform 0.2s var(--ease);
}

.info-accordion[open] summary > i {
  transform: rotate(180deg);
}

.info-accordion__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-summary-icon {
  width: 1.1em;
  color: var(--brand-600);
  text-align: center;
}

.info-accordion__body {
  padding: 0 1rem 1rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.65;
}

.info-accordion__body p {
  margin: 0.55rem 0;
}

.info-accordion__body ul {
  margin: 0.45rem 0;
  padding-left: 1.1rem;
}

.info-accordion__body a {
  color: var(--brand-700);
  font-weight: 700;
}

.info-accordion__body .info-list {
  margin: 0.45rem 0;
  padding: 0;
  list-style: none;
}

.info-accordion__body .info-list li,
.info-accordion__body .info-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.5rem 0;
}

.info-icon {
  flex: 0 0 auto;
  width: 1.15em;
  margin-top: 0.28em;
  color: var(--brand-600);
  text-align: center;
}

.info-accordion__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.info-accordion__actions .btn {
  width: auto;
}

.info-accordions--compact {
  margin-top: 0;
}
.size-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.size-guide-actions .btn {
  width: auto;
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  font-size: 0.76rem;
}
/* 25. Ajustes de tallas y colores --------------------------------------- */
.size-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 0.5rem;
}

.size-btn {
  width: 100%;
  min-width: 58px;
  min-height: 50px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.size-btn:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
}

.size-btn:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 20px -16px rgba(23, 19, 41, 0.8);
}

.color-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.4rem 0.75rem 0.4rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.color-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-btn__chip {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid rgba(23, 19, 41, 0.18);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.color-btn__check {
  margin-left: auto;
  color: var(--brand-700);
  font-size: 0.65rem;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.color-btn:has(input:checked) {
  border-color: var(--ink);
  background: var(--brand-50);
  box-shadow: 0 0 0 2px var(--brand-100);
}

.color-btn:has(input:checked) .color-btn__check {
  opacity: 1;
}

.color-btn:has(input:focus-visible) {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.color-more {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.color-more a {
  color: var(--brand-700);
  font-weight: 700;
}
.cart-drawer-total--discount {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-drawer-total--discount strong {
  font-size: 0.9rem;
  color: var(--brand-700);
}

.cart-drawer-total--final {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}
/* 26. Mayoreo -------------------------------------------------------------- */
.announce__item a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wholesale-summary {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 91, 0.14), transparent 42%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.wholesale-summary__body h2 {
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.1;
}

.wholesale-summary__body p {
  margin-top: 0.7rem;
  color: var(--muted);
  max-width: 58ch;
}

.wholesale-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
  padding: 0;
  list-style: none;
}

.wholesale-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.wholesale-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brand-600);
  font-weight: 800;
}

.wholesale-summary__body .btn {
  margin-top: 1.1rem;
}

.wholesale-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  align-content: start;
}

.wholesale-stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0.9rem;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-sm);
}

.wholesale-stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  line-height: 1;
  color: var(--brand-700);
}

.wholesale-stat span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.wholesale-row--active th,
.wholesale-row--active td {
  background: var(--brand-50);
  font-weight: 700;
}

.wholesale-footnote {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.wholesale-footnote i {
  margin-top: 0.15rem;
  color: var(--brand-600);
}

.wholesale-footnote a {
  color: var(--brand-700);
  font-weight: 700;
}

.steps--four {
  grid-template-columns: 1fr;
}

.wholesale-grid {
  display: grid;
  gap: 0.85rem;
}

.wholesale-card {
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.wholesale-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.95rem;
}

.wholesale-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.wholesale-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.wholesale-columns {
  display: grid;
  gap: 0.8rem;
}

.wholesale-panel {
  padding: 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.wholesale-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.wholesale-panel--included {
  border-color: var(--brand-200);
  background: var(--brand-50);
}

.wholesale-panel--included h3 i {
  color: var(--brand-700);
}

.wholesale-panel--excluded h3 i {
  color: var(--muted);
}

.wholesale-panel ul {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  list-style: none;
}

.wholesale-panel li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.wholesale-panel li i {
  margin-top: 0.2rem;
  font-size: 0.68rem;
}

.wholesale-panel--included li i {
  color: var(--brand-600);
}

.wholesale-panel--excluded li i {
  color: var(--muted);
}

.wholesale-callout,
.wholesale-cta {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border-radius: var(--radius);
  border: 1px solid var(--brand-200);
  background:
    linear-gradient(120deg, var(--brand-50), rgba(255, 255, 255, 0.65));
}

.wholesale-callout h2,
.wholesale-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin-top: 0.25rem;
}

.wholesale-callout p,
.wholesale-cta p {
  margin-top: 0.5rem;
  color: var(--muted);
  max-width: 58ch;
}

.wholesale-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.wholesale-cta {
  border-color: var(--line);
  background: var(--ink);
  color: #fff;
}

.wholesale-cta h2,
.wholesale-cta .eyebrow {
  color: #fff;
}

.wholesale-cta p {
  color: rgba(255, 255, 255, 0.72);
}

.wholesale-back {
  margin: 0;
}

.wholesale-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-700);
  font-size: 0.86rem;
  font-weight: 700;
}

@media (min-width: 720px) {
  .wholesale-summary {
    grid-template-columns: 1.55fr 1fr;
    align-items: center;
  }

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

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

  .wholesale-callout,
  .wholesale-cta {
    grid-template-columns: 1.5fr auto;
    align-items: center;
  }

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

@media (min-width: 980px) {
  .wholesale-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* 27. Compartir ------------------------------------------------------------ */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.share-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}

.share-btn:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-700);
  transform: translateY(-1px);
}

.share-btn:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.share-btn--wa {
  color: #128c7e;
}

.share-btn--wa:hover {
  background: #e8f7f2;
  border-color: #a9dccf;
  color: #0b6b60;
}

.share-buttons--product {
  align-self: center;
}

.lb-actions .share-buttons {
  justify-content: center;
}

@media (min-width: 720px) {
  .lb-actions .share-buttons {
    flex: 0 0 auto;
  }
}