/* =========================================================================
   juliodessignerr — La Vitrina de Noche
   Una boti oscura con vitrinas iluminadas. Superficies 24/18 px, controles en píldora.
   ========================================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Grenze Gotisch";
  src: url("../fonts/grenze-gotisch-var.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

@property --angulo {
  syntax: "<angle>";
  inherits: false;
  initial-value: 20deg;
}

@property --brillo {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffffff;
}

:root {
  --noche: #0b0a0c;
  --noche-2: #131215;
  --noche-3: #1c1a1f;
  --linea: rgba(242, 240, 235, 0.09);
  --linea-2: rgba(242, 240, 235, 0.18);
  --hueso: #f2f0eb;
  --gris: #a8a3ab;
  --rojo: #d3202a;
  --rojo-vivo: #e8333c;
  --tinta: #141315;
  --papel: #f4f2ee;
  --error: #ff8a8f;

  --ease-salida: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-cajon: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-mov: cubic-bezier(0.77, 0, 0.175, 1);

  --r-sup: 24px;
  --r-int: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1400px;
  --cabecera: 60px;

  color-scheme: dark;
}

/* ------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #3a373d var(--noche);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  background: var(--noche);
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--noche);
  color: var(--hueso);
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 16px;
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* grano de película fijo, encima de todo y sin capturar clics */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button,
a,
[role="button"],
label {
  touch-action: manipulation;
}

button,
[role="button"],
.filtro,
.muestra {
  user-select: none;
  -webkit-user-select: none;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

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

[hidden] {
  display: none !important;
}

::selection {
  background: var(--rojo);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #f0cf5a;
  outline-offset: 3px;
  border-radius: 8px;
}

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

.saltar {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 110;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--hueso);
  color: var(--noche);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-salida);
}
.saltar:focus {
  top: 12px;
}

.ic {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  flex: none;
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* ------------------------------------------------------------ tipografía */

.titular,
.titulo-seccion {
  font-stretch: 118%;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-wrap: balance;
}

.titular {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
}

/* el título lo escribe el dueño en el panel: se parte en líneas si es largo */
.portada .titular {
  font-stretch: 106%;
  font-size: clamp(2.45rem, 4.9vw, 4.6rem);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.portada__texto {
  min-width: 0;
}

.titulo-seccion {
  font-size: clamp(2.3rem, 5.2vw, 4.5rem);
}

.punto {
  color: var(--rojo-vivo);
}

.voz {
  font-family: "Grenze Gotisch", serif;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.numero {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ botones */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease-salida),
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}
.boton:active {
  transform: scale(0.97);
}
.boton[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.boton--con-flecha {
  padding-right: 7px;
}

.boton__flecha {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 300ms var(--ease-salida);
}
.boton__flecha .ic {
  width: 18px;
  height: 18px;
}

.boton--primario {
  background: var(--rojo);
  color: #fff;
}

.boton--claro {
  background: var(--hueso);
  color: var(--noche);
}
.boton--claro .boton__flecha {
  background: rgba(11, 10, 12, 0.08);
}

.boton--contorno {
  border: 1px solid var(--linea-2);
  color: var(--hueso);
}

.boton--bloque {
  width: 100%;
}

.boton-icono {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--hueso);
  transition:
    transform 160ms var(--ease-salida),
    background-color 200ms ease;
}
.boton-icono:active {
  transform: scale(0.92);
}

.enlace {
  color: var(--hueso);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: var(--linea-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .boton--primario:hover {
    background: var(--rojo-vivo);
  }
  .boton--claro:hover {
    background: #fff;
  }
  .boton--contorno:hover {
    border-color: var(--hueso);
  }
  .boton:hover .boton__flecha {
    transform: translateX(3px);
  }
  .boton-icono:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .enlace:hover {
    text-decoration-color: var(--hueso);
  }
}

/* ------------------------------------------------------------ cabecera */

.cabecera {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 0;
  pointer-events: none;
}

.cabecera__isla {
  pointer-events: auto;
  max-width: var(--max);
  margin: 0 auto;
  height: var(--cabecera);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  background: rgba(17, 16, 19, 0.68);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--linea);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.7);
  transition: transform 450ms var(--ease-cajon);
}

.cabecera--oculta .cabecera__isla {
  transform: translateY(calc(-100% - 20px));
}

.marca {
  font-family: "Grenze Gotisch", serif;
  font-weight: 800;
  font-size: 27px;
  line-height: 1;
  color: var(--hueso);
  text-decoration: none;
  margin-right: auto;
  padding-bottom: 3px;
}

.cabecera__nav {
  display: none;
  gap: 2px;
}

.cabecera__nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gris);
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
  transition:
    color 200ms ease,
    background-color 200ms ease;
}

.boton-bolsa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: var(--hueso);
  color: var(--noche);
  font-size: 14px;
  font-weight: 650;
  transition: transform 160ms var(--ease-salida);
}
.boton-bolsa:active {
  transform: scale(0.96);
}
.boton-bolsa .ic {
  width: 20px;
  height: 20px;
}

.boton-bolsa__cuenta {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--rojo);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.boton-menu {
  display: inline-grid;
}

@media (max-width: 519px) {
  .boton-bolsa__texto {
    display: none;
  }
}

@media (min-width: 900px) {
  .cabecera__nav {
    display: flex;
  }
  .boton-menu {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .cabecera__nav a:hover {
    color: var(--hueso);
    background: rgba(255, 255, 255, 0.06);
  }
}

/* menú del celular */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 10, 12, 0.94);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.menu__cerrar {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top, 0px));
  right: calc(var(--gutter) + 8px);
}

.menu__lista a {
  display: block;
  padding: 10px 0;
  font-stretch: 118%;
  font-weight: 850;
  font-size: clamp(2.2rem, 11vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.menu__pie {
  margin-top: auto;
  color: var(--gris);
}

/* ------------------------------------------------------------ vitrina */

.vitrina {
  --brillo: #ffffff;
  position: relative;
  transition: --brillo 700ms var(--ease-mov);
}

/* marco metálico (bisel exterior) con luz en los cantos */
.vitrina__marco {
  padding: 5px;
  border-radius: var(--r-sup);
  background: linear-gradient(155deg, #5a5760 0%, #26242a 16%, #141316 52%, #1f1d22 80%, #45424b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

/* el cristal iluminado (núcleo) */
.vitrina__cristal {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: calc(var(--r-sup) - 5px);
  /* cono de luz desde la barra de arriba sobre un fondo gris claro */
  background:
    radial-gradient(78% 62% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0.86) 24%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(180deg, #e3e2df 0%, #d7d5d1 60%, #c8c6c1 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 14px 0 30px -22px rgba(0, 0, 0, 0.2),
    inset -14px 0 30px -22px rgba(0, 0, 0, 0.2),
    inset 0 -50px 70px -40px rgba(0, 0, 0, 0.18);
  isolation: isolate;
}

/* la barra de luz LED: carcasa oscura con la línea encendida debajo */
.vitrina__luz {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  background: linear-gradient(180deg, #2c2a30, #141316);
  box-shadow: 0 12px 30px 6px color-mix(in oklab, var(--brillo) 40%, white);
  z-index: 4;
}

/* el tubo encendido: línea blanca dentro de la carcasa oscura */
.vitrina__luz::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: #fffdf6;
  box-shadow:
    0 0 4px 1px rgba(255, 255, 255, 0.95),
    0 0 12px 3px color-mix(in oklab, var(--brillo) 55%, white);
}

.vitrina--apagada .vitrina__luz::after {
  background: #3a383e;
  box-shadow: none;
}

/* luz de color detrás de la gorra */
.vitrina__aura {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 95% at 50% 55%, transparent 58%, color-mix(in oklab, var(--brillo) 70%, transparent) 100%);
  mix-blend-mode: soft-light;
  opacity: 0.7;
  z-index: 3;
  pointer-events: none;
}

/* cono de luz desde la barra de arriba y viñeta de la caja, encima de la foto */
.vitrina__cristal::before,
.vitrina__cristal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.vitrina__cristal::before {
  background: radial-gradient(72% 46% at 50% 0%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 72%);
  mix-blend-mode: screen;
}
.vitrina__cristal::after {
  background: radial-gradient(125% 95% at 50% 52%, transparent 60%, rgba(20, 18, 22, 0.22) 100%);
  mix-blend-mode: multiply;
}

/* repisa de cristal */
.vitrina__repisa {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 30%), linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.09));
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  z-index: 0;
}

/* la foto de estudio llena el cristal */
.vitrina__escena {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.gorra {
  position: relative;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.gorra img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  user-select: none;
  -webkit-user-drag: none;
}

/* reflejo que cruza el cristal */
.gorra__brillo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
  background-size: 320% 100%;
  background-repeat: no-repeat;
  background-position: 130% 0;
  mix-blend-mode: screen;
  opacity: 0.85;
  animation: destello 7.5s var(--ease-mov) infinite;
  animation-delay: var(--retraso, 1.8s);
}

@keyframes destello {
  0% {
    background-position: 130% 0;
  }
  20%,
  100% {
    background-position: -30% 0;
  }
}

/* sticker dorado como el de la visera */
.sticker {
  --tam: 66px;
  position: absolute;
  top: 7%;
  right: 6%;
  z-index: 5;
  width: var(--tam);
  height: var(--tam);
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  color: #3a2a02;
  background: radial-gradient(circle at 32% 26%, #fff7cf 0%, #f2d566 26%, #cfa126 60%, #92700f 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.45),
    inset 0 -3px 7px rgba(80, 55, 0, 0.35),
    0 8px 14px -6px rgba(60, 40, 0, 0.55);
  transform: rotate(-12deg);
  line-height: 1;
}
.sticker::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(90, 64, 0, 0.35);
}
.sticker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from var(--angulo), rgba(255, 60, 180, 0.55), rgba(60, 220, 255, 0.5), rgba(255, 255, 140, 0.55), rgba(255, 60, 180, 0.55));
  mix-blend-mode: overlay;
  opacity: 0.85;
  animation: holograma 7s linear infinite;
}

@keyframes holograma {
  to {
    --angulo: 380deg;
  }
}
.sticker__precio {
  position: relative;
  z-index: 1;
  font-stretch: 88%;
  font-weight: 850;
  font-size: calc(var(--tam) * 0.34);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.sticker__cu {
  position: relative;
  z-index: 1;
  font-size: calc(var(--tam) * 0.15);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* etiqueta bajo la vitrina (nombre, colores, añadir) */
.etiqueta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: var(--noche-2);
  border: 1px solid var(--linea);
}

.etiqueta__texto {
  min-width: 0;
  margin-right: auto;
}

.etiqueta__nombre {
  font-stretch: 112%;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.etiqueta__variante {
  color: var(--gris);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* muestras de color */
.muestras {
  display: flex;
  align-items: center;
}

.muestra {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  border-radius: 50%;
}

.muestra__punto {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1) 50%, var(--c2, var(--c1)) 50%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 4px transparent;
  transition:
    box-shadow 200ms ease,
    transform 160ms var(--ease-salida);
}

.muestra[aria-checked="true"] .muestra__punto,
.muestra[aria-pressed="true"] .muestra__punto {
  box-shadow:
    0 0 0 2px var(--noche-2),
    0 0 0 4px var(--hueso);
}

.muestra:active .muestra__punto {
  transform: scale(0.88);
}

/* ------------------------------------------------------------ portada */

.portada {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--cabecera) + 40px + env(safe-area-inset-top, 0px)) var(--gutter) 48px;
}

.portada__rejilla {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.portada__bajada {
  margin-top: 20px;
  max-width: 38ch;
  color: var(--gris);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.55;
}

.portada__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
}

.portada__vitrina {
  width: 100%;
  max-width: 640px;
  justify-self: center;
}

.portada__vitrina .vitrina__cristal {
  aspect-ratio: 5 / 4;
}

.portada__vitrina .sticker {
  --tam: clamp(64px, 7vw, 92px);
}

.portada__etiqueta .boton {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

@media (min-width: 1024px) {
  .portada__rejilla {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }
  .portada__vitrina {
    justify-self: end;
  }
}

@media (max-width: 1023px) {
  .portada {
    align-items: start;
  }
}

@media (max-width: 520px) {
  .portada__etiqueta {
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 12px 12px 12px 18px;
  }
  .portada__etiqueta .muestras {
    order: 3;
    margin-left: -6px;
  }
  .portada__etiqueta .boton {
    order: 2;
  }
  .portada__etiqueta .etiqueta__texto {
    order: 1;
  }
}

/* ------------------------------------------------------------ cinta */

.cinta {
  overflow: hidden;
  border-block: 1px solid var(--linea);
  padding: 20px 0;
}

.cinta__pista {
  display: flex;
  width: max-content;
  will-change: transform;
}

.cinta__grupo {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding-right: 0.55em;
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(1.9rem, 5vw, 4.2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cinta__hueco {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--hueso);
}

.cinta__punto {
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: var(--rojo-vivo);
  flex: none;
}

/* ------------------------------------------------------------ secciones */

.seccion {
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}

.seccion__interior {
  max-width: var(--max);
  margin: 0 auto;
}

/* ------------------------------------------------------------ la pared (catálogo) */

.pared__cabeza {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 36px;
}

.pared__nota {
  margin-top: 14px;
  color: var(--gris);
}

.filtros {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--noche-2);
  border: 1px solid var(--linea);
}

.filtro {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--gris);
  font-size: 14px;
  font-weight: 650;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.filtro[aria-pressed="true"] {
  background: var(--hueso);
  color: var(--noche);
}

.filtro__n {
  font-size: 12px;
  font-weight: 550;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
  .filtro[aria-pressed="false"]:hover {
    color: var(--hueso);
  }
}

.pared__rejilla {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.tarjeta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.tarjeta--destacada {
  grid-column: 1 / -1;
}

.tarjeta__vitrina {
  display: block;
  text-decoration: none;
  border-radius: var(--r-sup);
  perspective: 1000px;
}

.tarjeta__vitrina .vitrina {
  transform-style: preserve-3d;
  will-change: transform;
}

.tarjeta .vitrina__cristal {
  aspect-ratio: 5 / 4;
}

.tarjeta--destacada .vitrina__cristal {
  aspect-ratio: 1 / 0.86;
}

.tarjeta .sticker {
  --tam: clamp(46px, 4.6vw, 62px);
}

.tarjeta--destacada .sticker {
  --tam: clamp(60px, 6.4vw, 86px);
}

.tarjeta__info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 0 6px;
}

.tarjeta__texto {
  min-width: 0;
  margin-right: auto;
}

.tarjeta__nombre {
  font-stretch: 112%;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.tarjeta__nombre a {
  text-decoration: none;
}

.tarjeta__variante {
  color: var(--gris);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boton-mas {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hueso);
  color: var(--noche);
  transition:
    transform 160ms var(--ease-salida),
    background-color 200ms ease;
}
.boton-mas .ic {
  width: 20px;
  height: 20px;
  transition: transform 300ms var(--ease-salida);
}
.boton-mas:active {
  transform: scale(0.92);
}

@media (hover: hover) and (pointer: fine) {
  .boton-mas:hover {
    background: #fff;
  }
  .boton-mas:hover .ic {
    transform: rotate(90deg);
  }
  .tarjeta__nombre a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

.pared__vacio {
  padding: 40px 0;
  color: var(--gris);
}

@media (min-width: 640px) {
  .pared__rejilla {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .tarjeta {
    grid-column: span 3;
  }
  .tarjeta--destacada {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .pared__rejilla {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .tarjeta {
    grid-column: span 3;
  }
  .tarjeta--destacada {
    grid-column: span 6;
    grid-row: span 2;
  }
  .tarjeta--destacada .tarjeta__vitrina {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .tarjeta--destacada .vitrina,
  .tarjeta--destacada .vitrina__marco {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .tarjeta--destacada .vitrina__cristal {
    flex: 1;
    aspect-ratio: auto;
    min-height: 420px;
  }
  /* última fila repartida (lo decide inicio.js) */
  .tarjeta--fin-4 {
    grid-column: span 4;
  }
  .tarjeta--fin-6 {
    grid-column: span 6;
  }
  .tarjeta--fin-6 .vitrina__cristal {
    aspect-ratio: 16 / 9;
  }
  .tarjeta--fin-12 {
    grid-column: 1 / -1;
  }
  .tarjeta--fin-12 .vitrina__cristal {
    aspect-ratio: 21 / 8;
  }
  /* vitrinas anchas: la foto queda al centro y se funde con el cristal */
  .tarjeta--fin-6 .vitrina__cristal,
  .tarjeta--fin-12 .vitrina__cristal {
    background: #ececec;
  }
  .tarjeta--fin-6 .vitrina__escena,
  .tarjeta--fin-12 .vitrina__escena {
    display: grid;
    place-items: center;
  }
  .tarjeta--fin-6 .gorra,
  .tarjeta--fin-12 .gorra {
    aspect-ratio: 5 / 4;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  }
}

@media (max-width: 639px) {
  /* celular: nombre arriba; colores a la izquierda y "+" a la derecha abajo */
  .tarjeta__info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    row-gap: 4px;
    padding: 0 2px;
  }
  .tarjeta__texto {
    grid-column: 1;
    grid-row: 1;
    margin-right: 0;
  }
  .tarjeta__info .boton-mas {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
  .tarjeta__variante {
    white-space: normal;
  }
  .tarjeta__info .muestras {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: -7px;
  }
  .tarjeta:not(.tarjeta--destacada) .tarjeta__nombre {
    font-size: 14px;
  }
  .tarjeta:not(.tarjeta--destacada) .boton-mas {
    width: 40px;
    height: 40px;
  }
}

/* ------------------------------------------------------------ mírala de cerca */

.cerca {
  padding: clamp(72px, 10vw, 120px) var(--gutter) 0;
}

.cerca__fijo {
  max-width: var(--max);
  margin: 0 auto;
}

.cerca__cabeza {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.cerca__bajada {
  color: var(--gris);
  max-width: 34ch;
}

.cerca__escena {
  position: relative;
}

.cerca__escena .vitrina__cristal {
  aspect-ratio: 16 / 10;
  background: #ececec;
}

/* la foto entera, centrada, y sus bordes se funden con el cristal */
.cerca__lente {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 5 / 4;
  will-change: transform;
  -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent);
  mask-image: radial-gradient(closest-side, #000 82%, transparent);
}

.cerca__lente .gorra {
  height: 100%;
}

.cerca__notas {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.nota {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--gris);
}

.nota strong {
  color: var(--hueso);
  font-stretch: 112%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* con animación: la sección se fija y las notas aparecen sobre el cristal */
.cerca--animada {
  padding-top: 0;
  padding-bottom: 0;
}
.cerca--animada .cerca__fijo {
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--cabecera) + 30px) 0 24px;
}
.cerca--animada .cerca__escena {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cerca--animada .cerca__escena .vitrina,
.cerca--animada .cerca__escena .vitrina__marco {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cerca--animada .cerca__escena .vitrina__cristal {
  flex: 1;
  aspect-ratio: auto;
}
.cerca--animada .cerca__notas {
  position: absolute;
  z-index: 4;
  left: clamp(14px, 3vw, 36px);
  bottom: clamp(14px, 3vw, 36px);
  margin: 0;
  display: block;
  width: min(420px, calc(100% - 28px));
  height: 120px;
}
.cerca--animada .nota {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  padding: 16px 18px;
  border-radius: var(--r-int);
  background: rgba(17, 16, 19, 0.92);
  color: var(--gris);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6);
  opacity: 0;
}
.cerca--animada .nota strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 4px;
}

/* ------------------------------------------------------------ cómo comprar */

.como__rejilla {
  display: grid;
  gap: 48px;
  align-items: center;
}

.como__bajada {
  margin-top: 18px;
  color: var(--gris);
  max-width: 40ch;
  font-size: 1.05rem;
}

.como__acciones {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 1024px) {
  .como__rejilla {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: 80px;
  }
}

/* ticket de papel (también se usa en el carrito) */
.ticket {
  position: relative;
  padding: 34px 28px 30px;
  background: var(--papel);
  color: var(--tinta);
  font-stretch: 82%;
  border-radius: 4px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.85);
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-repeat: repeat-x;
  background-size: 16px 10px;
}
.ticket::before {
  top: 0;
  background-image: radial-gradient(circle at 8px 0, var(--fondo-ticket, var(--noche)) 6px, transparent 6.5px);
}
.ticket::after {
  bottom: 0;
  background-image: radial-gradient(circle at 8px 10px, var(--fondo-ticket, var(--noche)) 6px, transparent 6.5px);
}

.como__ticket {
  transform: rotate(1.6deg);
}

.ticket__marca {
  font-family: "Grenze Gotisch", serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  text-align: center;
  font-stretch: 100%;
}

.ticket__lugar {
  margin-top: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #57535a;
}

.ticket__corte {
  border: 0;
  border-top: 1.5px dashed rgba(20, 19, 21, 0.35);
  margin: 18px 0;
}

.ticket__pasos {
  display: grid;
  gap: 14px;
  counter-reset: paso;
}

.ticket__pasos li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  counter-increment: paso;
}

.ticket__pasos li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--tinta);
  font-size: 13px;
  font-weight: 800;
}

.ticket__fila {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ticket__fila--suave {
  margin-top: 8px;
  font-weight: 500;
}

.ticket__fila--total {
  font-size: 20px;
  font-weight: 850;
}

.ticket__nota {
  margin-top: 16px;
  text-align: center;
  font-family: "Grenze Gotisch", serif;
  font-weight: 700;
  font-size: 22px;
  font-stretch: 100%;
}

/* ------------------------------------------------------------ pie */

.pie {
  padding: clamp(64px, 9vw, 110px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--linea);
  overflow: hidden;
}

.pie__interior {
  max-width: var(--max);
  margin: 0 auto;
}

.pie__lema {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.pie__marca {
  display: block;
  margin: 18px 0 0;
  font-family: "Grenze Gotisch", serif;
  font-weight: 800;
  font-size: min(16vw, 15rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--hueso);
}

.pie__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--linea);
  color: var(--gris);
  font-size: 14px;
}

.pie__enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.pie__enlaces a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hueso);
  text-decoration: none;
  min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
  .pie__enlaces a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
  }
}

/* ------------------------------------------------------------ ficha de producto */

.ficha {
  padding: calc(var(--cabecera) + 40px + env(safe-area-inset-top, 0px)) var(--gutter) clamp(64px, 8vw, 110px);
}

.ficha__rejilla {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.ficha__volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 8px;
  color: var(--gris);
  font-weight: 550;
  text-decoration: none;
}

.ficha__galeria .vitrina__cristal {
  aspect-ratio: 5 / 4;
}

.ficha__galeria .sticker {
  --tam: clamp(62px, 6.4vw, 88px);
}

.miniaturas {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.miniatura {
  width: 88px;
  aspect-ratio: 5 / 4;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7f7f5, #dad8d3);
  border: 2px solid transparent;
  transition: border-color 200ms ease;
}
.miniatura[aria-current="true"] {
  border-color: var(--hueso);
}
.miniatura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ficha__nombre {
  font-size: clamp(2.3rem, 4.4vw, 4rem);
}

.ficha__precio {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
}

.ficha__precio .boton-compartir {
  margin-left: auto;
  align-self: center;
}

.boton-compartir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--linea-2);
  color: var(--hueso);
  font-size: 14px;
  font-weight: 650;
  transition:
    border-color 200ms ease,
    transform 160ms var(--ease-salida);
}
.boton-compartir .ic {
  width: 19px;
  height: 19px;
}
.boton-compartir:active {
  transform: scale(0.96);
}
.boton-compartir[aria-expanded="true"] {
  border-color: var(--hueso);
}

/* menú de compartir (computadora) */
.compartir-menu {
  position: fixed;
  z-index: 85;
  min-width: 248px;
  padding: 6px;
  border-radius: 18px;
  background: var(--noche-2);
  border: 1px solid var(--linea-2);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85);
  transform-origin: top right;
  transition:
    opacity 180ms var(--ease-salida),
    transform 220ms var(--ease-salida);
}
@starting-style {
  .compartir-menu {
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
  }
}

.compartir-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--hueso);
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.compartir-menu__item .ic {
  color: #f0cf5a;
}
.compartir-menu__item:focus-visible {
  outline-offset: -2px;
}

@media (hover: hover) and (pointer: fine) {
  .boton-compartir:hover {
    border-color: var(--hueso);
  }
  .compartir-menu__item:hover {
    background: rgba(255, 255, 255, 0.07);
  }
}

.ficha__monto {
  font-stretch: 100%;
  font-weight: 800;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
}

.ficha__unidad {
  color: var(--gris);
}

.ficha__desc {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--gris);
  font-size: 1.05rem;
  line-height: 1.6;
}

.grupo {
  margin-top: 28px;
}

.grupo__titulo {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 650;
}

.grupo__valor {
  color: var(--gris);
  font-weight: 500;
}

.opciones-color {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opcion-color {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--linea-2);
  font-size: 14px;
  font-weight: 600;
  transition:
    border-color 200ms ease,
    background-color 200ms ease;
}
.opcion-color .muestra__punto {
  width: 26px;
  height: 26px;
}
.opcion-color[aria-checked="true"] {
  border-color: var(--hueso);
  background: rgba(255, 255, 255, 0.06);
}

/* tallas: mismo lenguaje que los colores */
.opciones-talla {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.opcion-talla {
  display: inline-grid;
  place-items: center;
  min-width: 56px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--linea-2);
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    color 200ms ease;
}
.opcion-talla[aria-checked="true"] {
  border-color: var(--hueso);
  background: var(--hueso);
  color: var(--noche);
}
.opcion-talla--agotada {
  color: var(--gris);
  border-style: dashed;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.opcion-talla--agotada[aria-checked="true"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gris);
}
/* "Escoge tu talla": el grupo avisa cuando falta */
.grupo--falta .grupo__valor {
  color: #f0cf5a;
  font-weight: 650;
}
.grupo--falta .opciones-talla {
  animation: falta-talla 420ms ease;
}
@keyframes falta-talla {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
@media (hover: hover) and (pointer: fine) {
  .opcion-talla:hover {
    border-color: var(--hueso);
  }
}

.contador {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid var(--linea-2);
}

.contador button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition:
    background-color 200ms ease,
    transform 160ms var(--ease-salida);
}
.contador button:active {
  transform: scale(0.9);
}
.contador button[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.contador__valor {
  position: relative;
  display: inline-block;
  min-width: 34px;
  height: 1.3em;
  overflow: hidden;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.contador__valor span {
  display: block;
}

.contador--chico {
  height: 42px;
}
.contador--chico button {
  width: 38px;
  height: 38px;
}

@media (hover: hover) and (pointer: fine) {
  .contador button:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .opcion-color:hover {
    border-color: var(--hueso);
  }
}

.ficha__acciones {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.ficha__acciones > a.boton {
  justify-self: start;
}

.ficha__lista {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--linea);
}

.ficha__lista li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--hueso);
}

.ficha__lista .ic {
  color: #f0cf5a;
}

.ficha__entrega {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--r-int);
  background: var(--noche-2);
  border: 1px solid var(--linea);
  color: var(--gris);
  font-size: 14.5px;
  line-height: 1.5;
}
.ficha__entrega strong {
  color: var(--hueso);
}

@media (min-width: 1024px) {
  .ficha__rejilla {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 64px;
    align-items: start;
  }
  .ficha__galeria {
    position: sticky;
    top: calc(var(--cabecera) + 28px);
  }
}

.relacionadas {
  max-width: var(--max);
  margin: clamp(64px, 8vw, 110px) auto 0;
}

.relacionadas__titulo {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin-bottom: 22px;
}

.relacionadas__pista .tarjeta {
  grid-column: auto;
  grid-row: auto;
}

.relacionadas__pista {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.relacionadas__pista::-webkit-scrollbar {
  display: none;
}
.relacionadas__pista .tarjeta {
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .relacionadas__pista {
    grid-auto-columns: 44%;
  }
}

@media (min-width: 1024px) {
  .relacionadas__pista {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 22px);
    overflow: visible;
  }
}

/* vitrina vacía y apagada (página no encontrada) */
.vitrina--apagada .vitrina__cristal {
  aspect-ratio: 1 / 0.88;
  filter: brightness(0.3) saturate(0.5);
}
.vitrina--apagada .vitrina__luz {
  box-shadow: none;
}

/* barra de compra fija en el celular */
.barra-compra {
  position: fixed;
  z-index: 45;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(19, 18, 21, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--linea-2);
  transform: translateY(160%);
  transition: transform 450ms var(--ease-cajon);
}
.barra-compra--visible {
  transform: translateY(0);
}
.barra-compra__texto {
  margin-right: auto;
  min-width: 0;
}
.barra-compra__nombre {
  font-weight: 750;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.barra-compra__precio {
  color: var(--gris);
  font-size: 13px;
}
.barra-compra .boton {
  min-height: 46px;
}
@media (min-width: 1024px) {
  .barra-compra {
    display: none;
  }
}

@media (max-width: 1023px) {
  .pagina-ficha .pie {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
}

/* ------------------------------------------------------------ carrito */

.carrito {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.carrito__fondo {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 6, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.carrito__panel:focus-visible {
  outline: none;
}

.carrito__panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: var(--noche-2);
  border: 1px solid var(--linea);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  --fondo-ticket: var(--noche-2);
}

@media (max-width: 767px) {
  .carrito__panel {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    border-bottom: 0;
  }
}

@media (min-width: 768px) {
  .carrito__panel {
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: min(460px, calc(100vw - 20px));
    border-radius: 26px;
  }
  .carrito__asa {
    display: none;
  }
}

.carrito__arrastre {
  touch-action: none;
  cursor: grab;
}
@media (min-width: 768px) {
  .carrito__arrastre {
    touch-action: auto;
    cursor: auto;
  }
}

.carrito__asa {
  width: 42px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 3px;
  background: var(--linea-2);
}

.carrito__cabeza {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 10px 22px;
}

.carrito__titulo {
  font-stretch: 116%;
  font-weight: 850;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 22px 14px;
}

.paso {
  display: grid;
  gap: 6px;
  color: var(--gris);
  font-size: 12px;
  font-weight: 600;
}

.paso::after {
  content: "";
  height: 3px;
  border-radius: 2px;
  background: var(--linea-2);
  transition: background-color 300ms ease;
}

.paso--hecho,
.paso--activo {
  color: var(--hueso);
}
.paso--hecho::after,
.paso--activo::after {
  background: var(--hueso);
}

.carrito__cuerpo {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 22px 22px;
}

.carrito__pie {
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--linea);
  background: var(--noche-2);
}

.totales {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.totales__monto {
  font-weight: 850;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.carrito__aviso-entrega {
  margin-bottom: 14px;
  color: var(--gris);
  font-size: 13.5px;
}

.carrito__acciones {
  display: grid;
  gap: 8px;
}

.carrito__atras {
  justify-self: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--gris);
  font-weight: 600;
}

/* líneas */
.linea {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--linea);
  overflow: hidden;
}

.linea__foto {
  display: block;
  width: 76px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background: #ececec;
}

.linea__foto img,
.aviso__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linea__nombre {
  font-weight: 750;
  font-size: 15px;
  line-height: 1.25;
}

.linea__variante {
  color: var(--gris);
  font-size: 13px;
}

.linea__controles {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.linea__lado {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.linea__precio {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.linea__quitar {
  color: var(--gris);
}

.carrito__vacio {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 48px 8px 24px;
  text-align: center;
}

.carrito__vacio-titulo {
  font-stretch: 116%;
  font-weight: 850;
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1;
}

.carrito__vacio p {
  color: var(--gris);
  max-width: 30ch;
}

/* formulario */
.formulario {
  display: grid;
  gap: 18px;
  padding-top: 6px;
}

.campo {
  display: grid;
  gap: 8px;
}

.campo label,
.campo legend,
.campo__titulo {
  font-size: 14px;
  font-weight: 650;
}

.campo__ayuda {
  color: var(--gris);
  font-weight: 450;
}

.campo input,
.campo textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--noche);
  border: 1px solid var(--linea-2);
  font-size: 16px;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.campo textarea {
  min-height: 92px;
  padding: 14px 16px;
  resize: vertical;
}

.campo input::placeholder,
.campo textarea::placeholder {
  color: #8d8891;
}

.campo input:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--hueso);
  box-shadow: 0 0 0 3px rgba(242, 240, 235, 0.14);
}

.campo [aria-invalid="true"] {
  border-color: var(--error);
}

.campo__error {
  color: var(--error);
  font-size: 13.5px;
}

fieldset.campo {
  border: 0;
  margin: 0;
  padding: 0;
}

.opcion {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--linea-2);
  cursor: pointer;
  transition:
    border-color 200ms ease,
    background-color 200ms ease;
}
.opcion + .opcion {
  margin-top: 8px;
}
.opcion:has(input:checked) {
  border-color: var(--hueso);
  background: rgba(255, 255, 255, 0.05);
}
.opcion input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 2px 0 0;
  accent-color: var(--rojo);
}
.opcion__texto strong {
  display: block;
  font-weight: 650;
}
.opcion__texto span {
  color: var(--gris);
  font-size: 13.5px;
}

.info-fija {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--linea);
}
.info-fija .ic {
  margin-top: 2px;
  color: #f0cf5a;
}

/* paso final: ticket que sale de la impresora */
.impresora {
  position: relative;
  padding-top: 14px;
}
.impresora::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: -6px;
  right: -6px;
  height: 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2b292f, #1a191d);
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.06);
}
.impresora__ranura {
  overflow: hidden;
  padding: 0 6px 30px;
  margin-top: -2px;
}
.impresora .ticket {
  padding-top: 30px;
}

.listo__titulo {
  margin: 22px 0 6px;
  font-stretch: 116%;
  font-weight: 850;
  font-size: 22px;
  text-transform: uppercase;
}

.listo__texto {
  color: var(--gris);
}

.listo__acciones {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.copiable {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
  background: var(--noche);
  border: 1px solid var(--linea-2);
}
.copiable__texto {
  margin-right: auto;
  min-width: 0;
}
.copiable__etiqueta {
  display: block;
  color: var(--gris);
  font-size: 12.5px;
}
.copiable__valor {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.copiable button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  font-weight: 650;
}

/* ------------------------------------------------------------ avisos */

.avisos {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(420px, calc(100vw - 24px));
  pointer-events: none;
}

@media (min-width: 768px) {
  .avisos {
    left: auto;
    right: 24px;
    bottom: 24px;
    transform: none;
  }
}

.aviso {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 8px;
  border-radius: 20px;
  background: var(--hueso);
  color: var(--noche);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.7);
  transition:
    opacity 300ms var(--ease-salida),
    transform 400ms var(--ease-salida);
}
@starting-style {
  .aviso {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}
.aviso--saliendo {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition-duration: 200ms;
}

.aviso__foto {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  overflow: hidden;
  border-radius: 14px;
  background: #ececec;
}

.aviso__foto--icono {
  background: var(--noche);
  color: var(--hueso);
}

.aviso__texto {
  margin-right: auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}
.aviso__texto strong {
  display: block;
  font-weight: 750;
}

.aviso__accion {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--noche);
  color: var(--hueso);
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
}

/* ------------------------------------------------------------ gorra voladora */

.vuelo {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  object-fit: cover;
  border-radius: 18px;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ------------------------------------------------------------ entrada (solo con JS) */

.js-intro .intro {
  visibility: hidden;
}

/* ------------------------------------------------------------ transiciones entre páginas */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
}

::view-transition-group(gorra-activa) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ------------------------------------------------------------ movimiento reducido */

@media (prefers-reduced-motion: reduce) {
  .sticker::after {
    animation: none;
  }
  .gorra__brillo {
    animation: none;
    display: none;
  }
  .vitrina,
  .cabecera__isla,
  .barra-compra {
    transition-duration: 0.01ms;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* SplitText: aire para los acentos de las mayúsculas dentro de la máscara */
.sl-mask {
  padding-block: 0.12em;
  margin-block: -0.12em;
}

.pie__lugar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

/* con la bolsa abierta, los avisos no tapan sus botones */
@media (min-width: 768px) {
  .carrito-abierto .avisos {
    right: calc(min(460px, 100vw - 20px) + 24px);
  }
}
@media (max-width: 767px) {
  .carrito-abierto .avisos {
    top: calc(12px + env(safe-area-inset-top, 0px));
    bottom: auto;
  }
}

/* ------------------------------------------------------------ existencias */

.tarjeta__aviso {
  color: #f0cf5a;
  font-weight: 650;
}

.boton-mas[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.opcion-color--agotada {
  color: var(--gris);
  border-style: dashed;
}
.opcion-color--agotada .muestra__punto {
  opacity: 0.45;
}

.ficha__unidad--agotado {
  color: #f0cf5a;
  font-weight: 650;
}

/* ------------------------------------------------------------ vista previa (panel) */

.aviso-vista-previa {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px));
  padding: 12px 18px;
  border-radius: 16px;
  background: #f0cf5a;
  color: #241a00;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.7);
}
.aviso-vista-previa a {
  color: inherit;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------ página de error */

.pagina-error {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px var(--gutter);
  color: var(--gris);
}
