:root {
  --negro: #0B0B0F;
  --blanco: #fff;
  --gris: #F2F3F5;
  --azul: #1F5BD8;
  --verde: #1FA855;
  --tinta-suave: #4b4d57;
  --vidrio: rgba(255, 255, 255, .62);
  --borde-vidrio: rgba(255, 255, 255, .75);
  --sombra: 0 18px 50px rgba(11, 11, 15, .18);
  --font: 'Archivo', 'Arial', sans-serif;
  --tarjeta: clamp(150px, 15.5vw, 250px);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--negro);
  /* Tono del piso, por si la foto tarda en cargar. */
  background: #b9b7b2;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { text-decoration: none; }
h1, h2, p, ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }

.escena { position: fixed; inset: 0; overflow: hidden; }

/* ---------- Foto y cambio de look ---------- */
.foto { position: absolute; inset: 0; transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
/* Calzado: la foto se acerca a los pies, que normalmente quedan detrás del dock. */
@media (min-width: 761px) {
  .escena.pies .foto { transform: scale(1.8); }
  .escena.pies .capa { object-position: 50% 100%; }
}
/* En pantallas anchas la foto se recorta por arriba y por abajo: se recorta casi todo por abajo (ahí
   está el dock) para que la cabeza y los gorros queden libres bajo el menú. */
.capa { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.capa-nueva { clip-path: inset(0 0 100% 0); visibility: hidden; }
.capa-nueva.revelando { visibility: visible; animation: revelar 1s cubic-bezier(.6, .05, .3, 1) forwards; }
.banda {
  position: absolute; left: 0; right: 0; top: 0; height: 22vh; opacity: 0; pointer-events: none;
  transform: translateY(-100%);
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.55) 70%, rgba(255,255,255,.9) 92%, rgba(255,255,255,0));
  filter: blur(6px);
}
.banda.pasando { animation: banda 1s cubic-bezier(.6, .05, .3, 1) forwards; }
@keyframes revelar { to { clip-path: inset(0 0 0 0); } }
/* La banda va justo encima del borde que revela: su base coincide con el corte. */
@keyframes banda {
  0% { transform: translateY(-100%); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(calc(100vh - 100%)); opacity: 0; }
}

/* ---------- Piezas comunes ---------- */
.vidrio {
  background: var(--vidrio);
  border: 1px solid var(--borde-vidrio);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--sombra);
}
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 14px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}
.boton:hover { filter: brightness(1.08); }
.boton:active { transform: scale(.97); }
.boton.azul { background: var(--azul); color: var(--blanco); }
.boton.negro { background: var(--negro); color: var(--blanco); }
.boton.verde { background: var(--verde); color: var(--blanco); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sello {
  display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 7px;
  border-radius: 5px; background: var(--azul); color: var(--blanco);
  font-weight: 800; font-size: 13px; line-height: 1; letter-spacing: 0;
}

/* ---------- Arriba ---------- */
/* Placa de vidrio: el logo negro cae sobre una columna negra de la foto. */
.marca {
  position: absolute; top: 20px; left: 34px; z-index: 6; padding: 10px 13px 9px; border-radius: 16px;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--borde-vidrio);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.marca img { display: block; height: 38px; width: auto; }
.marca p {
  display: flex; align-items: center; margin-top: 7px; white-space: nowrap;
  font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave);
}
.pildora {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
}
.pildora button {
  height: 42px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-suave);
  transition: background .25s ease, color .25s ease;
}
.pildora button[aria-selected="true"] { background: var(--blanco); color: var(--negro); box-shadow: 0 4px 14px rgba(11,11,15,.12); }
/* Interruptor Hombre / Mujer, debajo de la placa del logo. */
.modelos { position: absolute; top: 106px; left: 34px; z-index: 6; display: flex; gap: 3px; padding: 4px; border-radius: 999px; }
.modelos button {
  height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 12.500px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave);
  transition: background .25s ease, color .25s ease;
}
.modelos button[aria-pressed="true"] { background: var(--negro); color: var(--blanco); }
.acciones { position: absolute; top: 26px; right: 40px; z-index: 7; display: flex; gap: 12px; align-items: center; }
.bolsa { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.contador {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--azul); color: var(--blanco);
  font-size: 12px; font-weight: 800; line-height: 22px; text-align: center;
}
.pedido {
  position: absolute; top: 90px; right: 40px; z-index: 8; width: min(340px, calc(100vw - 32px));
  padding: 18px; border-radius: 20px; background: rgba(255,255,255,.86);
}
.pedido h2 { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.pedido ul { list-style: none; max-height: 40vh; overflow: auto; }
.pedido li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(11,11,15,.08); font-size: 14px; }
.pedido li span { display: flex; flex-direction: column; min-width: 0; }
.pedido li b { font-weight: 700; }
.pedido li small { font-size: 12px; color: var(--tinta-suave); margin-top: 2px; }
.pedido .total { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(11,11,15,.12); font-size: 14px; font-weight: 800; }
.pedido li button { color: var(--tinta-suave); font-size: 13px; text-decoration: underline; flex: none; }
.pedido .vacio { font-size: 14px; color: var(--tinta-suave); }
.pedido .boton { width: 100%; margin-top: 12px; }

/* ---------- Riel y flechas ---------- */
.riel {
  position: absolute; left: 34px; top: 50%; transform: translateY(-50%); z-index: 6;
  display: flex; flex-direction: column; gap: 6px; padding: 7px; border-radius: 999px;
}
.riel button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
.riel button:hover { background: rgba(255,255,255,.7); }
.riel button[aria-pressed="true"] { background: var(--blanco); color: var(--azul); }
.riel #guardar[aria-pressed="true"] svg { fill: currentColor; }
.flecha { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.flecha.izq { left: 112px; }
.flecha.der { right: 40px; }
.flecha:active { transform: translateY(-50%) scale(.94); }

/* ---------- Carrusel 3D ---------- */
.carrusel { position: absolute; inset: 0; z-index: 3; perspective: 1400px; pointer-events: none; }
.tarjeta {
  position: absolute; left: 50%; top: 50%;
  width: var(--tarjeta); aspect-ratio: 3 / 4; margin: calc(var(--tarjeta) * -0.667) 0 0 calc(var(--tarjeta) * -0.5);
  display: flex; flex-direction: column; padding: 12px 14px 14px; border-radius: 22px; text-align: left;
  pointer-events: auto; will-change: transform, opacity, filter;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s ease, filter .5s ease;
}
.tarjeta img { flex: 1; min-height: 0; width: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(11,11,15,.2)); }
.tarjeta strong { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: .03em; }
.tarjeta span { font-size: 13px; color: var(--tinta-suave); margin-top: 2px; }
.tarjeta .sello { position: absolute; top: 12px; right: 12px; margin: 0; }
.tarjeta[data-oculta] { pointer-events: none; }

/* ---------- Dock ---------- */
.dock {
  /* Centrado con márgenes (no con left:50%) para que el ancho no quede limitado a media pantalla. */
  position: absolute; left: 24px; right: 24px; bottom: 30px; margin-inline: auto; width: fit-content; z-index: 6;
  display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 10px; border-radius: 24px;
}
.mini { width: 64px; height: 64px; border-radius: 16px; background: var(--gris); object-fit: contain; padding: 6px; flex: none; }
.quien { min-width: 0; max-width: 250px; }
/* Un conjunto lista sus prendas: necesita más ancho. */
.dock.conjunto .quien { max-width: 430px; }
.quien h2 { font-size: 16px; font-weight: 800; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.quien p { font-size: 13px; color: var(--tinta-suave); margin-top: 3px; }
.precios { display: flex; gap: 16px; flex: none; }
.precios p { display: flex; flex-direction: column; font-weight: 800; font-size: 18px; line-height: 1.1; }
.precios small { font-size: 11px; font-weight: 500; color: var(--tinta-suave); margin-top: 3px; }
.precios .mayor { color: var(--azul); padding-left: 16px; border-left: 1px solid rgba(11,11,15,.12); }
.opciones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 460px; }
/* Cantidad y avisos comparten línea; los avisos bajan si no caben. */
.nota { flex: 1 1 220px; font-size: 12px; line-height: 1.35; color: var(--azul); }
.nota:empty { display: none; }
.nota.error { color: #C62828; font-weight: 700; }
.tallas, .colores { display: flex; gap: 6px; flex-wrap: wrap; }
/* Hay prendas con 12 o 14 colores: van en una sola fila que se desliza, para que la ficha no tape al modelo. */
.colores { flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.colores button { flex: none; }
.colores button {
  height: 34px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid rgba(11,11,15,.12);
  font-size: 12.5px; font-weight: 600; transition: background .2s ease, color .2s ease;
}
.colores button[aria-checked="true"] { background: var(--negro); color: var(--blanco); border-color: var(--negro); }
/* Muestra de color: punto con el tono; borde fino para que el blanco se vea sobre el vidrio. */
.punto { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(11,11,15,.22); }
.colores button { display: inline-flex; align-items: center; gap: 6px; padding-left: 8px; }
.colores button[aria-checked="true"] .punto { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 0 0 2px var(--negro); }
/* Fila de puntos bajo el nombre: solo donde la ficha se recoge (celular y pantallas medianas). */
.muestras { display: none; align-items: center; gap: 4px; margin-top: 5px; text-align: left; }
.muestras .punto { width: 13px; height: 13px; }
.muestras .punto.elegido { box-shadow: inset 0 0 0 1px rgba(11,11,15,.22), 0 0 0 2px var(--blanco), 0 0 0 3px var(--negro); margin: 0 2px; }
.muestras small { margin-left: 4px; font-size: 11.5px; font-weight: 600; color: var(--tinta-suave); text-decoration: underline; text-underline-offset: 2px; }
.cantidad { display: flex; align-items: center; height: 40px; border-radius: 11px; background: rgba(255,255,255,.8); overflow: hidden; }
.cantidad button { width: 36px; height: 100%; font-size: 18px; font-weight: 700; }
.cantidad input { width: 44px; height: 100%; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 700; font-size: 15px; -moz-appearance: textfield; }
.cantidad input::-webkit-inner-spin-button, .cantidad input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tallas button {
  min-width: 40px; height: 40px; padding: 0 9px; border-radius: 11px; background: rgba(255,255,255,.8);
  font-size: 14px; font-weight: 600; transition: background .2s ease, color .2s ease;
}
.tallas button[aria-checked="true"] { background: var(--negro); color: var(--blanco); }
.botones { display: flex; gap: 8px; flex: none; }

.abrir, .pista { display: none; }

/* ---------- Lista de todas las prendas (enlaces a sus fichas; también la leen Google y las IA) ---------- */
.lista {
  position: absolute; top: 16px; right: 16px; bottom: 16px; z-index: 9; width: min(440px, calc(100vw - 32px));
  overflow-y: auto; padding: 22px 22px 28px; border-radius: 22px; background: rgba(255,255,255,.96);
  box-shadow: var(--sombra); -webkit-overflow-scrolling: touch;
}
.lista .cerrar { position: sticky; top: 0; float: right; width: 40px; height: 40px; border-radius: 50%; background: var(--gris); font-size: 22px; line-height: 40px; text-align: center; }
.lista h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin: 4px 0 10px; }
.lista > p { font-size: 13.5px; line-height: 1.5; color: var(--tinta-suave); margin-bottom: 8px; }
.lista h3 { margin: 18px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); }
.lista ul { list-style: none; }
/* Nombre arriba en toda la fila; debajo, referencia y precio a la izquierda y "Ver puesto" a la derecha. */
.lista li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3px 12px; padding: 9px 0; border-top: 1px solid rgba(11,11,15,.08); font-size: 14px; }
.lista li > a:first-child { grid-column: 1 / -1; }
.lista li > span:first-child { grid-column: 1; font-size: 13.5px; color: var(--negro); line-height: 1.45; }
.lista li a:first-child { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(11,11,15,.25); }
.lista li > span { font-size: 12.5px; color: var(--tinta-suave); }
.lista li .ver { font-size: 12.5px; font-weight: 700; color: var(--azul); white-space: nowrap; }
.lista li > span:first-child a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(11,11,15,.25); }
.pie { position: absolute; right: 40px; bottom: 8px; z-index: 5; font-size: 11px; color: rgba(11,11,15,.6); text-align: right; }
.aviso { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); z-index: 9; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.9); }

/* ---------- Con ocho categorías la píldora casi toca "Cotizar dotación": botones más compactos ---------- */
@media (max-width: 1600px) and (min-width: 1401px) {
  .pildora button { padding: 0 13px; font-size: 12.5px; letter-spacing: .04em; }
}

/* ---------- Pantallas medianas: el dock (con talla, color y cantidad) no cabe en una línea ---------- */
@media (max-width: 1400px) and (min-width: 761px) {
  .dock { flex-wrap: wrap; justify-content: center; row-gap: 10px; max-width: 760px; }
  /* Como en el celular: recogida muestra nombre, precios y "Pedir"; abierta, talla, color, cantidad y botones. */
  .abrir { display: inline-flex; height: 44px; }
  .dock.abierta .abrir { background: rgba(11, 11, 15, .08); color: var(--negro); }
  .dock:not(.abierta) .opciones, .dock:not(.abierta) .botones { display: none; }
  .dock.abierta { background: rgba(255, 255, 255, .92); }
  .dock:not(.abierta) .muestras { display: flex; }
  .pildora button { padding: 0 14px; font-size: 13px; }
  .aviso { bottom: 180px; }
}

/* ---------- Pantallas angostas: las ocho categorías no caben arriba entre el logo y los botones ---------- */
@media (max-width: 1400px) and (min-width: 761px) {
  .pildora { top: auto; bottom: calc(30px + var(--alto-dock, 150px) + 10px); }
  /* La ficha y las categorías ocupan la parte de abajo: las tarjetas flotantes suben para no quedar debajo. */
  .tarjeta { top: 40%; }
}

/* ---------- Celular: el modelo es lo principal ----------
   De abajo hacia arriba: ficha (dock), tarjetas y categorías. La foto llena el resto y se acerca al
   modelo para que se vea de cuerpo completo y grande; a sus lados van Hombre/Mujer y las herramientas. */
@media (max-width: 760px) {
  body { background: #a5a39e; }
  .escena {
    --pie: 16px; --tarjetas: 80px; --categorias: 40px;
    --abajo: calc(var(--pie) + var(--alto-dock, 150px) + 8px + var(--tarjetas) + 8px + var(--categorias));
  }
  .foto { bottom: calc(var(--abajo) - 10px); }
  .foto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(to bottom, rgba(165,163,158,0), #a5a39e); }
  /* La foto es apaisada (3:2) y el modelo va del 17 % al 94 % de su alto. Se dibuja más alta que su
     recuadro (113 %), centrada y subida, para que la cabeza quede bajo la barra de arriba y los pies
     sobre las categorías. Los lados de la foto quedan fuera. */
  .capa {
    inset: calc(52px - 19.5%) auto auto 50%; height: 113%; width: auto; max-width: none; aspect-ratio: 3 / 2;
    transform: translateX(-50%); object-fit: cover;
  }

  /* Arriba: barra delgada que no tapa el letrero de la pared. */
  .marca { top: 10px; left: 10px; padding: 6px 9px; border-radius: 12px; }
  .marca img { height: 24px; }
  .marca p { display: none; }
  .acciones { top: 10px; right: 10px; gap: 6px; }
  .acciones .boton { height: 36px; padding: 0 12px; font-size: 12.5px; border-radius: 11px; }
  .bolsa { width: 36px; height: 36px; }
  .bolsa svg { width: 19px; height: 19px; }
  .pedido { top: 56px; right: 10px; }
  .aviso { bottom: auto; top: 56px; }

  /* A los lados del modelo, a media altura de la foto: Hombre/Mujer a la izquierda, herramientas a la derecha. */
  .modelos, .riel { top: calc((100% - var(--abajo)) / 2); transform: translateY(-50%); }
  .modelos { left: 8px; flex-direction: column; padding: 3px; border-radius: 16px; }
  .modelos button { height: 32px; padding: 0 9px; border-radius: 13px; font-size: 10px; letter-spacing: .05em; }
  .riel { left: auto; right: 8px; padding: 3px; gap: 2px; }
  .riel button { width: 36px; height: 36px; }
  .riel svg { width: 19px; height: 19px; }
  .flecha { display: none; }

  /* Categorías, encima de las tarjetas. */
  .pildora {
    top: auto; bottom: calc(var(--pie) + var(--alto-dock, 150px) + 8px + var(--tarjetas) + 8px);
    left: 10px; right: 10px; transform: none; height: var(--categorias);
    justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 4px;
  }
  .pildora::-webkit-scrollbar { display: none; }
  .pildora button { flex: none; height: 32px; padding: 0 11px; font-size: 10.5px; letter-spacing: .03em; }

  .carrusel {
    inset: auto 0 calc(var(--pie) + var(--alto-dock, 150px) + 8px) 0; height: var(--tarjetas); perspective: none;
    display: flex; gap: 7px; padding: 0 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    pointer-events: auto;
  }
  .carrusel::-webkit-scrollbar, .tallas::-webkit-scrollbar, .colores::-webkit-scrollbar { display: none; }
  .tarjeta {
    position: relative; left: auto; top: auto; margin: 0; flex: none; width: 66px; height: var(--tarjetas); aspect-ratio: auto;
    padding: 6px; border-radius: 14px; scroll-snap-align: center;
    transform: none !important; opacity: 1 !important; filter: none !important;
    transition: border-color .2s ease, background .2s ease;
  }
  .tarjeta strong, .tarjeta .sello { display: none; }
  .tarjeta span { font-size: 10.5px; font-weight: 700; color: var(--negro); text-align: center; margin-top: 2px; }
  .tarjeta[aria-current="true"] { background: rgba(255,255,255,.95); border-color: var(--azul); box-shadow: 0 0 0 2px var(--azul), var(--sombra); }
  .tarjeta[data-oculta] { pointer-events: auto; }

  /* Ficha recogida: nombre, precios y "Pedir" (sin miniatura: la tarjeta elegida ya la muestra).
     Abierta: suben tallas y botones de pedido por encima de la foto, que no cambia de tamaño. */
  .dock {
    left: 10px; right: 10px; bottom: var(--pie); width: auto;
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px 10px; padding: 10px 12px; border-radius: 18px;
    transition: box-shadow .3s ease;
  }
  .quien, .opciones, .botones { grid-column: 1 / -1; }
  .abrir { display: inline-flex; height: 38px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
  .dock.abierta .abrir { background: rgba(11, 11, 15, .08); color: var(--negro); }
  .dock:not(.abierta) .opciones, .dock:not(.abierta) .botones { display: none; }
  .dock.abierta { background: rgba(255, 255, 255, .9); box-shadow: 0 -12px 40px rgba(11, 11, 15, .22); }
  .dock:not(.abierta) .muestras { display: flex; }
  .dock.abierta .opciones, .dock.abierta .botones { animation: subir .28s cubic-bezier(.2, .8, .2, 1); }
  @keyframes subir { from { opacity: 0; transform: translateY(8px); } }

  /* Pista de deslizar, sobre la foto a la altura de las rodillas del modelo. */
  .pista {
    display: flex; align-items: center; gap: 10px; position: absolute; left: 50%; z-index: 7;
    top: calc((100% - var(--abajo)) * .72); transform: translateX(-50%); padding: 10px 16px; border-radius: 999px;
    background: rgba(11, 11, 15, .72); color: var(--blanco); font-size: 13px; font-weight: 600; white-space: nowrap;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: aparecer .4s ease;
  }
  .pista .mano { font-size: 20px; line-height: 1; animation: vaiven 1.1s ease-in-out infinite; }
  .pista .mano:first-child { animation-direction: reverse; }
  @keyframes vaiven { 50% { transform: translateX(5px); } }
  @keyframes aparecer { from { opacity: 0; } }
  .mini { display: none; }
  .quien { max-width: none; }
  .dock.conjunto .quien { max-width: none; }
  /* Nombre hasta en dos líneas; el detalle (ref. o piezas del conjunto) en una. */
  .quien h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13.5px; }
  .quien p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .quien p { font-size: 11.5px; margin-top: 1px; }
  .precios { gap: 10px; min-width: 0; }
  .precios .unidad .etq { display: none; }
  .precios .unidad .desde { font-size: 10.5px; font-weight: 500; color: var(--tinta-suave); }
  .precios small { white-space: nowrap; }
  .precios p { font-size: 15px; flex-direction: row; align-items: baseline; gap: 5px; }
  .precios small { font-size: 10.5px; margin-top: 0; }
  .precios .mayor { padding-left: 10px; }
  .opciones { max-width: none; gap: 8px; }
  .tallas, .colores { flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 5px; }
  .colores button { flex: none; height: 32px; font-size: 12px; }
  .cantidad { height: 36px; }
  .tallas button { min-width: 36px; height: 32px; flex: none; font-size: 13px; border-radius: 10px; }
  .botones .boton { flex: 1; height: 42px; padding: 0 8px; font-size: 13.5px; border-radius: 12px; }

  .pie { left: 10px; right: 10px; bottom: 3px; font-size: 8.5px; text-align: center; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
