:root {
  --negro: #0b0b0c;
  --carbon: #151517;
  --gris: #26262a;
  --linea: #34343a;
  --texto: #f4f1ea;
  --suave: #a3a09a;
  --oro: #fad02c;      /* amarillo del logo */
  --oro-claro: #ffe066;
  --wa: #25d366;
  --radio: 14px;
  --alto-barra: 69px;  /* alto de la barra superior fija */
  --titulo: "Bebas Neue", Impact, sans-serif;
  --cuerpo: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--negro);
  color: var(--texto);
  font-family: var(--cuerpo);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.bloqueado { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* ---------- Barra superior ---------- */
.barra {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(11, 11, 12, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gris);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 34px; height: auto; }
.hero-logo { width: 96px; height: auto; margin: 0 auto 18px; filter: drop-shadow(0 6px 24px rgba(250, 208, 44, .25)); }
.pie-img { width: 48px; height: auto; margin: 0 auto; }
img.sin-foto {
  object-fit: contain !important; padding: 32%;
  background: linear-gradient(135deg, #232327, var(--negro));
  opacity: .5;
}
.logo span { font-family: var(--titulo); font-size: 26px; letter-spacing: 2px; }
.btn-bolsa { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.btn-bolsa:hover { background: var(--gris); }
.btn-bolsa svg { width: 24px; height: 24px; fill: none; stroke: var(--texto); stroke-width: 1.8; stroke-linejoin: round; }
.contador-bolsa {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--oro); color: var(--negro);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

.aviso {
  text-align: center; font-size: 13px; padding: 8px 16px;
  background: linear-gradient(90deg, #d9a90f, var(--oro), #d9a90f);
  color: var(--negro); font-weight: 600;
}

/* ---------- Video de portada ---------- */
.video-portada {
  position: relative; overflow: hidden; background: var(--negro);
  height: calc(100vh - 105px); height: calc(100svh - 105px); min-height: 420px;
}
.video-portada video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-portada::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(11, 11, 12, .75));
}
.video-bajar {
  position: absolute; left: 50%; bottom: 16px; z-index: 2; transform: translateX(-50%);
  width: 48px; height: 48px; display: grid; place-items: center;
  color: var(--oro); animation: bajar 2s ease-in-out infinite;
}
.video-bajar svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bajar { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
/* Aviso que se va con el primer toque (ahí parte el sonido) */
.video-tocar {
  position: absolute; left: 16px; bottom: 22px; z-index: 2; pointer-events: none;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(11, 11, 12, .62); border: 1px solid var(--linea);
  font-size: 13px; font-weight: 600; animation: latir 1.8s ease-in-out infinite;
}
@keyframes latir { 50% { opacity: .55; } }
@media (max-width: 480px) { .video-tocar { bottom: 74px; left: 50%; transform: translateX(-50%); white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .video-bajar { animation: none; transform: translateX(-50%); } .video-tocar { animation: none; } }

/* ---------- Portada ---------- */
.hero {
  scroll-margin-top: var(--alto-barra);
  text-align: center;
  padding: 36px 16px 28px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(250, 208, 44, .18), transparent 60%),
    linear-gradient(180deg, var(--carbon), var(--negro));
  border-bottom: 1px solid var(--gris);
}
.hero-sub { color: var(--oro); text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 600; }
.hero-titulo { display: flex; flex-direction: column; align-items: center; margin: 14px 0 10px; font-weight: 400; }
.hero-grande {
  font-family: var(--titulo); font-size: clamp(64px, 17vw, 140px);
  line-height: .9; letter-spacing: clamp(4px, 1.2vw, 12px);
  padding-left: clamp(4px, 1.2vw, 12px); /* compensa el espaciado para que quede centrado */
}
.hero-abajo {
  display: flex; align-items: center; gap: 14px;
  margin-top: 12px;
  font-family: var(--cuerpo); font-size: clamp(12px, 3.2vw, 16px); font-weight: 500;
  text-transform: uppercase; letter-spacing: clamp(4px, 1.4vw, 8px);
  color: var(--texto);
}
.hero-abajo::before, .hero-abajo::after { content: ""; width: clamp(24px, 7vw, 56px); height: 1.5px; background: var(--oro); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform .15s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-oro { background: var(--oro); color: var(--negro); }
.btn-borde { border: 1.5px solid var(--oro); color: var(--oro); }
.btn-wa { background: var(--wa); color: #06301a; width: 100%; }

/* ---------- Catálogo ---------- */
.catalogo { padding: 24px 0 56px; scroll-margin-top: var(--alto-barra); }
.buscador { max-width: 1200px; margin: 0 auto 6px; padding: 0 16px; }
/* Las categorías quedan pegadas bajo la barra superior mientras se baja */
.categorias {
  position: sticky; top: var(--alto-barra); z-index: 12;
  background: rgba(11, 11, 12, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gris);
}
.categorias-in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; flex-direction: column; gap: 10px; }
#buscar {
  width: 100%; padding: 13px 18px; border-radius: 999px;
  background: var(--carbon); border: 1px solid var(--linea); color: var(--texto); font: inherit;
}
#buscar:focus { outline: 2px solid var(--oro); outline-offset: 1px; }
.filtros { position: relative; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--linea); color: var(--suave); font-size: 14px; font-weight: 500;
}
/* Botones de categoría en relieve 3D (con espacio abajo para que no se corte la sombra) */
#filtros { gap: 10px; padding: 3px 2px 11px; }
#filtros .chip {
  padding: 8px 17px; color: #dcd8d0; font-weight: 600;
  background: linear-gradient(180deg, #3b3b42 0%, #232327 52%, #18181b 100%);
  border-color: #4c4c55 #3a3a41 #0e0e10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -2px 3px rgba(0, 0, 0, .45), 0 3px 0 #060607, 0 5px 9px rgba(0, 0, 0, .55);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .7);
  transition: transform .12s ease, box-shadow .12s ease, color .2s;
}
#filtros .chip:hover { color: #fff; }
#filtros .chip:active, .ed-btn:active, .ed-grande:active .ed-btn {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -1px 2px rgba(0, 0, 0, .35), 0 0 0 transparent, 0 1px 3px rgba(0, 0, 0, .5);
}
/* La categoría donde estás y los botones "Ver todo": amarillos, en relieve y con brillo */
#filtros .chip[aria-selected="true"], .ed-btn {
  color: var(--negro); font-weight: 800;
  background: linear-gradient(180deg, #fff3b0 0%, var(--oro-claro) 20%, var(--oro) 58%, #d8aa10 100%);
  border: 1px solid; border-color: #fff4bd #f0c52a #8f6b00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 4px rgba(140, 100, 0, .45), 0 3px 0 #866400, 0 6px 16px rgba(250, 208, 44, .4);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}
.filtros-tallas { align-items: center; gap: 6px; }
.filtros-tallas .etiqueta-talla { flex: none; font-size: 12px; font-weight: 600; color: var(--suave); text-transform: uppercase; letter-spacing: 1px; margin-right: 4px; }
.filtros-tallas .chip { padding: 6px 12px; font-size: 13px; border-radius: 8px; min-width: 40px; }
.filtros-tallas .chip[aria-pressed="true"] { border-color: var(--oro); color: var(--oro); background: rgba(250, 208, 44, .12); font-weight: 700; }
.chip[aria-selected="true"] { background: var(--oro); border-color: var(--oro); color: var(--negro); font-weight: 700; }

/* ---------- Inicio por categorías (1 foto grande + 2 chicas, estilo McQueen) ---------- */
.editorial { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 4px; }
.ed-bloque { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ed-grande { position: relative; display: block; overflow: hidden; background: var(--carbon); color: var(--texto); text-decoration: none; }
.ed-grande img { width: 100%; aspect-ratio: 16 / 9; max-height: 86vh; object-fit: cover; transition: transform .8s ease; }
.ed-grande img.sin-foto { padding: 12%; }
.ed-grande:hover img { transform: scale(1.02); }
.ed-grande-texto {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 90px 16px 34px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.ed-grande-texto h2 { font-family: var(--titulo); font-weight: 400; font-size: clamp(48px, 8vw, 104px); line-height: .9; letter-spacing: 3px; text-transform: uppercase; }
.ed-btn { padding: 11px 26px; border-radius: 999px; font-size: 14px; transition: transform .12s ease, box-shadow .12s ease; }
@media (hover: hover) { .ed-btn:hover, .ed-grande:hover .ed-btn { transform: translateY(-1px); } }
/* Las fotos chicas llevan separación al medio y el mismo margen a los lados, para que queden centradas */
.ed-chicas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; max-width: 768px; margin: 0 auto; padding: 0 24px; }
.ed-cab { display: grid; justify-items: center; padding: 0 16px; text-align: center; }
.ed-cab h2 { font-family: var(--titulo); font-weight: 400; font-size: clamp(44px, 7vw, 76px); line-height: .95; letter-spacing: 3px; text-transform: uppercase; }
.ed-btn-solo { justify-self: center; margin-top: 6px; text-decoration: none; }
/* Recién llegados: carrusel 3D, la foto del medio siempre grande y las de los lados más chicas y giradas.
   El margen a los lados deja que cualquier foto pueda quedar al medio. */
.carrusel { position: relative; width: 100%; max-width: 1008px; margin: 0 auto; container-type: inline-size; }
.carrusel-pista {
  --ancho: calc((100cqw - 48px) / 3);
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--ancho); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px calc((100cqw - var(--ancho)) / 2) 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carrusel-pista::-webkit-scrollbar { display: none; }
.carrusel-pista > * {
  scroll-snap-align: center;
  transform: perspective(900px) rotateY(calc(var(--d, 0) * -16deg)) scale(calc(1 - var(--a, 0) * .17));
  opacity: calc(1 - var(--a, 0) * .45);
}
.carrusel .card-media { transition: box-shadow .3s; }
.carrusel .centro .card-media { box-shadow: 0 0 0 2px var(--oro), 0 14px 32px rgba(250, 208, 44, .22); }
@media (max-width: 700px) { .carrusel-pista { --ancho: 42cqw; gap: 12px; } }
.carrusel .flecha { top: 38%; z-index: 3; }
.carrusel .flecha.izq { left: 32px; }
.carrusel .flecha.der { right: 32px; }
@media (hover: none) { .carrusel .flecha { display: none; } }
.carrusel-barra { position: relative; height: 2px; margin: 18px 24px 0; background: var(--gris); border-radius: 2px; overflow: hidden; }
.carrusel-barra span { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--oro); border-radius: 2px; transition: left .15s linear; }
.carrusel.quieto .flecha, .carrusel.quieto .carrusel-barra { display: none; }
.ed-prod { display: block; color: var(--texto); text-decoration: none; }
.ed-prod-info { display: block; padding: 12px 12px 0; }
.ed-prod-nombre { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.ed-prod .precio { display: block; }

/* ---------- El Perchero de Lobo: ropa colgada en un riel sobre una pared clara de showroom ----------
   La pared toma el mismo gris de las fotos (lo calcula app.js) para que los recortes calcen perfecto. */
.perchero {
  --pared: #ececec; --riel: 74px; --slot: 92px; --relleno: 40%;
  position: relative; isolation: isolate; width: 100%; height: 560px; overflow: hidden; color: #141414;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .5), transparent 62%), var(--pared);
  transition: height .55s cubic-bezier(.3, .7, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.perchero-defs { position: absolute; width: 0; height: 0; }
.perchero-logo { position: absolute; top: 14px; left: 50%; z-index: 1; width: 36px; height: auto; transform: translateX(-50%); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .15)); transition: opacity .4s; }
.perchero.abierto .perchero-logo { opacity: 0; }
/* Al acercar una prenda el riel sube (como si la cámara se acercara) y vuelve al cerrar.
   Va detrás de la ropa: los ganchos pasan por encima de él, como en un perchero de verdad. */
.perchero-riel {
  position: absolute; left: 3%; right: 3%; top: calc(var(--riel) - 3.5px); z-index: 0; height: 7px; border-radius: 4px; pointer-events: none;
  background: linear-gradient(180deg, #fdfdfd 0%, #d6d6d8 34%, #8e8e94 62%, #cbcbce 100%);
  box-shadow: 0 5px 9px rgba(0, 0, 0, .14);
  transition: top .55s cubic-bezier(.3, .7, .2, 1);
}
/* Sombra suave en el piso, como en una foto de estudio */
.perchero-suelo {
  position: absolute; left: 6%; right: 6%; top: calc(var(--suelo, 400px) - 22px); height: 44px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .26), rgba(0, 0, 0, .1) 55%, transparent 75%);
  filter: blur(8px); transition: opacity .4s;
}
.perchero.abierto .perchero-suelo { opacity: 0; }
/* Soportes del riel en la pared */
.perchero-riel::before, .perchero-riel::after {
  content: ""; position: absolute; top: -22px; width: 6px; height: 26px; border-radius: 3px;
  background: linear-gradient(90deg, #8e8e94, #ebebed, #8e8e94);
}
.perchero-riel::before { left: 8px; }
.perchero-riel::after { right: 8px; }
/* Las prendas se ven dentro de la "foto" central (en el celular es todo el ancho) */
.perchero-pista {
  position: absolute; top: 0; bottom: 0; left: var(--escena-x, 0); right: var(--escena-x, 0); z-index: 1; display: flex;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.perchero-pista::-webkit-scrollbar { display: none; }
.perchero-pista::before, .perchero-pista::after { content: ""; flex: none; width: var(--relleno); }
.colgado { position: relative; flex: none; width: var(--slot); height: 100%; scroll-snap-align: center; }
.colgado:focus-visible { outline: none; }
.colgado:focus-visible .prenda { outline: 2px solid var(--oro); outline-offset: 6px; border-radius: 6px; }
/* El punto (0,0) es donde el gancho toca el riel: desde ahí se mece y se acerca */
.colgado-mueve { position: absolute; left: 50%; top: var(--riel); width: 0; height: 0; transform-origin: 0 0; transition: top .55s cubic-bezier(.3, .7, .2, 1); }
.colgado-llega { position: absolute; left: 0; top: 0; transition: opacity .5s, filter .5s; }
.perchero.esperando .colgado-llega { opacity: 0; }
/* La percha va dentro de la prenda (detrás de la tela): solo asoman el gancho y la madera sobre el cuello.
   La de pinzas toma la pretina por delante. */
.gancho { position: absolute; left: 0; top: 0; z-index: 0; }
.gancho.delante { z-index: 2; }
.gancho svg { display: block; overflow: visible; }
/* Cada prenda tiene su foto de lado y la de frente (una encima de la otra; app.js las da vuelta) */
.prenda { position: absolute; z-index: 1; display: block; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .14)); }
.prenda:empty { display: none; }
.prenda canvas { display: block; width: 100%; height: 100%; }
/* Prenda acercada: el resto del perchero queda desenfocado atrás */
.perchero.abierto .colgado:not(.elegido) .colgado-llega { opacity: .45; filter: blur(6px); }
.perchero.abierto .perchero-pista { overflow-x: hidden; }
.perchero.cargando .perchero-pista { visibility: hidden; }
.perchero .flecha { top: var(--flecha-y, 50%); z-index: 305; background: rgba(20, 20, 20, .78); color: #fff; transition: opacity .3s; }
/* Justo afuera de la "foto" cuando hay espacio (computador), si no, en su borde */
.perchero .flecha.izq { left: max(8px, calc(var(--escena-x, 0px) - 54px)); }
.perchero .flecha.der { right: max(8px, calc(var(--escena-x, 0px) - 54px)); }
.perchero.abierto .flecha, .perchero.cargando .flecha { opacity: 0; pointer-events: none; }
/* Las flechas solo salen con mouse y cuando hay más prendas de las que caben */
.perchero:not(.desborda) .flecha { display: none; }
@media (hover: none) { .perchero .flecha { display: none; } }
.perchero-cerrar {
  position: absolute; top: 12px; right: 12px; z-index: 320; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(20, 20, 20, .85); color: #fff; font-size: 26px; line-height: 1;
  opacity: 0; pointer-events: none; transform: scale(.8); transition: opacity .3s, transform .3s;
}
.perchero.abierto .perchero-cerrar { opacity: 1; pointer-events: auto; transform: none; }
.perchero-info {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 310;
  display: grid; justify-items: center; gap: 4px; padding: 0 16px; text-align: center; pointer-events: none;
}
.perchero-info > * { pointer-events: auto; }
.pi-nombre { max-width: 34ch; font-size: 12px; font-weight: 800; line-height: 1.35; letter-spacing: .14em; text-transform: uppercase; }
.perchero .pi-precio { margin-top: 0; color: #141414; font-size: 15px; }
.perchero .pi-precio s { color: rgba(20, 20, 20, .5); }
.pi-pista { margin-top: 4px; font-size: 12px; color: rgba(20, 20, 20, .55); }
.pi-lados { display: inline-flex; gap: 2px; margin-top: 6px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .08); }
.pi-lados button { padding: 6px 16px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(20, 20, 20, .6); transition: background .2s, color .2s; }
.pi-lados button[aria-pressed="true"] { background: #141414; color: #fff; }
.pi-comprar { margin-top: 8px; }
/* Etiqueta de cartón con las tallas colgando del gancho, delante de la prenda (se mece con ella) */
.etiquetas { position: absolute; left: 0; z-index: 3; width: 0; height: 0; opacity: 0; transform-origin: 0 0; transition: opacity .35s; pointer-events: none; }
.etiquetas.visible { opacity: 1; }
.etiquetas::before { content: ""; position: absolute; left: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #1c1c1e; }
/* Cada etiqueta gira desde la punta de su hilo */
.etiqueta { position: absolute; left: -22px; top: 0; width: 44px; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; }
.etiqueta > i { display: block; width: 1px; height: 18px; background: rgba(20, 20, 20, .6); }
.etiqueta.kraft { left: -20px; width: 40px; }
.etiqueta.kraft > i { height: 32px; }
.etiqueta .carton {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 3px;
  width: 100%; min-height: 64px; padding: 13px 4px 7px; border-radius: 3px;
  box-shadow: 0 3px 7px rgba(0, 0, 0, .2);
}
/* Ojal de la etiqueta */
.etiqueta .carton::before {
  content: ""; position: absolute; top: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: var(--pared); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .35);
}
.etiqueta.kraft .carton { min-height: 58px; background: linear-gradient(160deg, #ddc59f, #c8a97b); color: #3b2d1c; }
.etiqueta.kraft small { font-size: 6.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.etiqueta.kraft b { font-size: 8px; line-height: 1.3; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .perchero, .colgado-llega, .colgado-mueve, .perchero-riel { transition: none; }
}

/* ---------- La Vitrina de Lobo (accesorios girando): estudio claro y cálido, como el video de referencia ----------
   Los accesorios flotan en círculo sobre su propia sombra; app.js los mueve y los acerca. */
.vitrina {
  --tinta: #161616;
  position: relative; isolation: isolate; width: 100%; height: 520px; overflow: hidden; color: var(--tinta);
  background:
    radial-gradient(70% 55% at 50% 36%, rgba(255, 255, 255, .8), transparent 70%),
    linear-gradient(180deg, #f0ece6 0%, #e9e4dc 58%, #ddd7cd 100%);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
/* Nombre de la categoría en letras gigantes y casi invisibles detrás del accesorio acercado */
.vitrina-palabra {
  position: absolute; left: 50%; top: 44%; z-index: 0; white-space: nowrap; pointer-events: none;
  font-family: var(--titulo); font-size: clamp(130px, 30vw, 340px); line-height: .8; letter-spacing: .02em; text-transform: uppercase;
  color: rgba(22, 22, 22, .06); opacity: 0; transform: translate(-50%, -38%);
  transition: opacity .6s, transform .9s cubic-bezier(.2, .7, .2, 1);
}
.vitrina.abierto .vitrina-palabra { opacity: 1; transform: translate(-50%, -50%); }
/* Sombra grande y difusa bajo todo el círculo (además de la de cada accesorio) */
.vitrina-piso {
  position: absolute; left: calc(50% - var(--piso-w, 600px) / 2); top: calc(var(--piso-y, 380px) - 45px); z-index: 0;
  width: var(--piso-w, 600px); height: 90px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(60, 45, 30, .13), transparent 72%); filter: blur(12px);
  transition: opacity .5s;
}
.vitrina.abierto .vitrina-piso { opacity: 0; }
.vitrina-sombras, .vitrina-escena { position: absolute; inset: 0; }
.vitrina-sombras { z-index: 1; pointer-events: none; }
.vitrina-escena { z-index: 2; cursor: grab; }
.vitrina.arrastrando .vitrina-escena { cursor: grabbing; }
.vitrina.abierto .vitrina-escena { cursor: default; }
.vitrina.cargando .vitrina-escena, .vitrina.cargando .vitrina-sombras { visibility: hidden; }
/* Sombra de contacto de cada accesorio en el piso */
.giro-sombra {
  position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform, opacity;
  background: radial-gradient(50% 50% at 50% 50%, rgba(40, 30, 20, .42), rgba(40, 30, 20, .16) 52%, transparent 74%);
  filter: blur(3px);
}
/* Cada accesorio: el toque lo calcula app.js con la forma real de la foto, por eso la caja no recibe el dedo */
.giro { position: absolute; left: 0; top: 0; padding: 0; transform-origin: 50% 100%; will-change: transform, opacity; pointer-events: none; }
.giro-foto {
  display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 16px 18px rgba(40, 30, 20, .16)) drop-shadow(0 3px 4px rgba(40, 30, 20, .12));
  transition: filter .5s;
}
.giro.lejos .giro-foto { filter: drop-shadow(0 16px 18px rgba(40, 30, 20, .12)) blur(1.2px) brightness(.95); }
.giro:focus-visible { outline: none; }
.giro:focus-visible .giro-foto { outline: 2px solid var(--oro); outline-offset: 10px; border-radius: 10px; }
/* Abajo: número del que está adelante, puntitos y cómo se usa */
.vitrina-pie {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  gap: 12px; padding: 0 20px 18px; pointer-events: none; transition: opacity .4s;
}
.vitrina-pie > * { pointer-events: auto; }
.vitrina.abierto .vitrina-pie, .vitrina.cargando .vitrina-cuenta, .vitrina.cargando .vitrina-puntos { opacity: 0; }
.vitrina.abierto .vitrina-pie > * { pointer-events: none; }
.vitrina-cuenta { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 4px; justify-self: start; min-width: 0; }
.vitrina-cuenta b { font-size: 30px; font-weight: 300; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vitrina-cuenta small { font-size: 11px; color: rgba(22, 22, 22, .5); }
.vitrina-cuenta span {
  grid-column: 1 / -1; max-width: 26ch; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.vitrina-puntos { display: flex; gap: 8px; justify-self: center; padding-bottom: 6px; }
.vitrina-puntos button { position: relative; width: 6px; height: 6px; padding: 0; border-radius: 50%; background: rgba(22, 22, 22, .22); transition: background .3s, transform .3s; }
.vitrina-puntos button::after { content: ""; position: absolute; inset: -9px -5px; }
.vitrina-puntos button[aria-current="true"] { background: var(--tinta); transform: scale(1.4); }
.vitrina-pista { justify-self: end; max-width: 20ch; font-size: 11px; line-height: 1.35; text-align: right; color: rgba(22, 22, 22, .55); }
.vitrina.solo .vitrina-puntos, .vitrina.solo .vitrina-cuenta small { visibility: hidden; }
.vitrina .flecha { top: 46%; z-index: 3; background: rgba(20, 20, 20, .78); color: #fff; transition: opacity .3s; }
.vitrina .flecha.izq { left: max(10px, calc(50% - 470px)); }
.vitrina .flecha.der { right: max(10px, calc(50% - 470px)); }
.vitrina.abierto .flecha, .vitrina.cargando .flecha, .vitrina.solo .flecha { opacity: 0; pointer-events: none; }
@media (hover: none) { .vitrina .flecha { display: none; } }
/* Ficha del accesorio acercado: a la derecha en el computador, abajo en el celular */
.vitrina-ficha {
  position: absolute; left: 57%; right: 5%; top: 0; bottom: 0; z-index: 4; display: grid; align-content: center; justify-items: start; gap: 6px;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .35s, transform .5s cubic-bezier(.2, .7, .2, 1);
}
.vitrina.abierto .vitrina-ficha { opacity: 1; transform: none; pointer-events: auto; transition-delay: .15s; }
.vf-cat { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(22, 22, 22, .5); }
.vf-nombre { font-weight: 300; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.01em; }
.vitrina .vf-precio { margin-top: 2px; color: var(--tinta); font-size: 18px; }
.vitrina .vf-precio s { color: rgba(22, 22, 22, .45); }
.vf-colores { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; list-style: none; font-size: 12px; color: rgba(22, 22, 22, .72); }
.vf-colores li { display: inline-flex; align-items: center; gap: 6px; }
.vf-colores i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 1px 3px rgba(0, 0, 0, .18); }
.vf-tallas { font-size: 12px; color: rgba(22, 22, 22, .6); }
.vf-comprar { margin-top: 12px; }
.vitrina-cerrar {
  position: absolute; top: 12px; right: 12px; z-index: 5; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(20, 20, 20, .85); color: #fff; font-size: 26px; line-height: 1;
  opacity: 0; pointer-events: none; transform: scale(.8); transition: opacity .3s, transform .3s;
}
.vitrina.abierto .vitrina-cerrar { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 699px) {
  .vitrina-pie { padding: 0 16px 16px; gap: 8px; }
  .vitrina-cuenta b { font-size: 26px; }
  .vitrina-cuenta span { max-width: 16ch; }
  .vitrina-pista { max-width: 15ch; font-size: 10px; }
  .vitrina-ficha { left: 16px; right: 16px; top: auto; bottom: 20px; align-content: end; justify-items: center; gap: 4px; text-align: center; }
  .vf-nombre { font-size: 24px; }
  .vf-colores { justify-content: center; }
  .vf-comprar { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .vitrina-palabra, .vitrina-ficha, .vitrina-pie, .giro-foto { transition: none; }
}

/* Onda tipo burbuja al tocar una foto: la dibuja app.js sobre la misma foto */
.burbuja { position: absolute; z-index: 1; pointer-events: none; }
/* Burbuja simple para teléfonos sin WebGL: vidrio con brillo y borde de pompa */
.onda {
  position: absolute; z-index: 1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, transparent 62%, rgba(255, 255, 255, .08) 75%, rgba(255, 255, 255, .28) 92%, rgba(255, 255, 255, .55) 98%, transparent 100%);
  box-shadow: 0 0 18px rgba(0, 0, 0, .18);
  animation: onda .8s cubic-bezier(.2, .7, .3, 1) both;
}
/* Borde tornasol de pompa */
.onda::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: .9;
  background: conic-gradient(from 200deg, #ff7ad9, #7ad7ff, #a8ff9e, #ffe27a, #ff9a7a, #ff7ad9);
  -webkit-mask: radial-gradient(circle, transparent 78%, #000 93%, transparent 100%);
  mask: radial-gradient(circle, transparent 78%, #000 93%, transparent 100%);
}
/* Reflejo curvo de vidrio arriba a la izquierda */
.onda::after {
  content: ""; position: absolute; inset: 10%; border-radius: 50%;
  border: 3px solid transparent; border-top-color: rgba(255, 255, 255, .75); border-left-color: rgba(255, 255, 255, .4);
  transform: rotate(-10deg); filter: blur(1.5px);
}
@keyframes onda { 0% { transform: scale(.05); opacity: 0; } 12% { opacity: 1; } 60% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } }

/* Títulos que aparecen desde el desenfoque al bajar */
.por-entrar { opacity: 0; }
.entra { animation: entra-titulo .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes entra-titulo {
  from { opacity: 0; filter: blur(16px); transform: translateY(26px) scale(1.08); letter-spacing: .22em; }
  to { opacity: 1; filter: blur(0); transform: none; }
}
@media (prefers-reduced-motion: reduce) { .por-entrar { opacity: 1; } .entra { animation: none; } }
@media (max-width: 700px) {
  .editorial { gap: 44px; }
  .ed-grande img { aspect-ratio: 4 / 5; max-height: none; }
  .ed-grande-texto { padding: 80px 16px 26px; }
  .ed-prod-info { padding: 10px 2px 0; }
  .ed-prod-nombre { font-size: 13px; }
  .carrusel .ed-prod-info { padding-top: 8px; }
  .carrusel .ed-prod-nombre { font-size: 12px; }
  .carrusel .precio { font-size: 13px; }
  .carrusel .precio s { display: block; margin-left: 0; }
  .carrusel .badge { top: 6px; left: 6px; padding: 3px 7px; font-size: 9px; }
}

/* ---------- Grilla al elegir una categoría o buscar ---------- */
.vista { max-width: 1200px; margin: 0 auto; padding: 24px 16px 0; }
.vista-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.vista-cab h2 { font-family: var(--titulo); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: 1px; text-transform: uppercase; }
.vista-cab p { flex: none; color: var(--suave); font-size: 13px; }

.grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .grilla { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .grilla { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--carbon); border-radius: var(--radio); overflow: hidden; border: 1px solid var(--gris); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--oro); transform: translateY(-2px); }
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--gris); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.card-media .b { opacity: 0; }
@media (hover: hover) { .card:hover .card-media .b, .ed-prod:hover .card-media .b { opacity: 1; } }
.card.agotado .card-media img, .ed-prod.agotado .card-media img { filter: grayscale(1) brightness(.6); }
.card-info { padding: 12px 12px 14px; text-align: left; width: 100%; display: block; }
.card-info h3 { font-size: 14px; font-weight: 600; line-height: 1.3; }
.card-fotos { font-size: 11px; color: var(--suave); margin-top: 2px; }

.precio { margin-top: 6px; font-weight: 700; color: var(--oro); font-size: 15px; }
.precio s { color: var(--suave); font-weight: 400; font-size: 12px; margin-left: 6px; }

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  background: var(--oro); color: var(--negro);
}
.badge.gris { background: var(--texto); }
.badge.rojo { background: #e2483d; color: #fff; }

.vacio { text-align: center; color: var(--suave); padding: 40px 0; }

/* ---------- Cómo comprar ---------- */
.pasos { background: var(--carbon); border-top: 1px solid var(--gris); padding: 48px 16px; overflow: hidden; }
.pasos h2 { font-family: var(--titulo); font-size: 40px; letter-spacing: 1px; text-align: center; margin-bottom: 24px; }
.pasos ol { list-style: none; max-width: 980px; margin: 0 auto; display: grid; gap: 12px; }
@media (min-width: 720px) { .pasos ol { grid-template-columns: repeat(4, 1fr); } }
.pasos li {
  display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--linea); border-radius: var(--radio);
  transition: border-color .35s, box-shadow .35s, transform .35s;
}
.pasos b { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--oro); color: var(--negro); font-family: var(--titulo); font-size: 20px; }
.pasos li > span { font-size: 14px; color: var(--suave); }
/* La tarjeta donde está la moto se ilumina; las que ya pasó quedan marcadas */
.pasos li.hecho { border-color: rgba(250, 208, 44, .4); }
.pasos li.activo { border-color: var(--oro); transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(250, 208, 44, .35), 0 12px 28px rgba(250, 208, 44, .14); }
.pasos li.activo > span { color: var(--texto); }
.pasos li.activo b { animation: latido-paso .9s ease-in-out infinite; }
@keyframes latido-paso { 50% { box-shadow: 0 0 0 7px rgba(250, 208, 44, .22); } }

/* Lobo en moto que recorre los 4 pasos: camino, paradas alineadas con las tarjetas y la moto encima */
.ruta { --moto: 150px; position: relative; max-width: 980px; margin: 0 auto 22px; padding-top: calc(var(--moto) + 2px); }
.ruta-camino {
  position: relative; height: 12px; border-radius: 6px;
  background: linear-gradient(180deg, #2e2e34, #1c1c20); border: 1px solid #3a3a41;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .5);
}
.ruta-camino::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(250, 208, 44, .7) 0 14px, transparent 14px 26px);
}
.ruta-paradas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.ruta-paradas span {
  justify-self: center; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font: 400 14px/1 var(--titulo); color: var(--suave); background: var(--negro); border: 1px solid var(--linea);
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s, transform .3s;
}
.ruta-paradas span.hecha { background: var(--oro); border-color: var(--oro); color: var(--negro); }
.ruta-paradas span.actual { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(250, 208, 44, .2); }
.ruta-moto { position: absolute; left: 0; bottom: 40px; width: var(--moto); transform: translateX(-200vw); will-change: transform; }
.moto-cuerpo { transform-origin: 50% 94%; transition: transform .3s ease; }
.moto-cuerpo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); animation: motor .12s linear infinite alternate; }
/* Al acelerar levanta un poco la rueda de adelante; al frenar se inclina hacia adelante */
.ruta-moto.acelera .moto-cuerpo { transform: rotate(-4deg); }
.ruta-moto.frena .moto-cuerpo { transform: rotate(2.5deg); }
.ruta-moto.andando img { animation: rebote .22s ease-in-out infinite alternate; }
@keyframes motor { to { transform: translateY(.6px); } }
@keyframes rebote { to { transform: translateY(-2px); } }
/* Líneas de velocidad detrás de la moto y sombra en el piso */
.ruta-moto::before {
  content: ""; position: absolute; right: 96%; top: 40%; width: 46%; height: 30%; opacity: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 255, 255, .55) 7px 9px);
  -webkit-mask: linear-gradient(90deg, transparent, #000); mask: linear-gradient(90deg, transparent, #000);
  transition: opacity .25s;
}
.ruta-moto.andando::before { opacity: .7; animation: viento .3s linear infinite; }
@keyframes viento { from { transform: translateX(14px); } to { transform: translateX(-14px); } }
.ruta-moto::after {
  content: ""; position: absolute; left: 10%; right: 8%; bottom: -3px; height: 9px; z-index: -1; border-radius: 50%;
  background: radial-gradient(rgba(0, 0, 0, .6), transparent 70%);
}
/* Paquete que deja en el último paso */
.paquete {
  position: absolute; left: 0; bottom: 40px; width: 20px; height: 16px; border-radius: 3px;
  background: linear-gradient(180deg, #e3b37d, #b8834f); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15), 0 3px 6px rgba(0, 0, 0, .45);
}
.paquete::before { content: ""; position: absolute; left: 44%; width: 12%; top: 0; bottom: 0; background: rgba(255, 255, 255, .35); }
@media (max-width: 719px) {
  /* En el teléfono las paradas se separan de los bordes para que la moto quepa entera */
  .ruta { --moto: 104px; margin-bottom: 18px; }
  .ruta-paradas { padding: 0 34px; }
}
@media (prefers-reduced-motion: reduce) { .moto-cuerpo img, .ruta-moto.andando img { animation: none; } }

.pie { text-align: center; padding: 40px 16px 100px; color: var(--suave); font-size: 14px; display: grid; gap: 8px; }
.pie-logo { font-family: var(--titulo); font-size: 28px; letter-spacing: 2px; color: var(--texto); }
.pie a { color: var(--oro); }
.pie-copy { font-size: 12px; margin-top: 8px; }

.wa-flotante {
  position: fixed; right: 16px; bottom: 16px; z-index: 15;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.wa-flotante svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Ficha de producto ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 0; }
.modal[hidden] { display: none; }
.modal-fondo { position: absolute; inset: 0; background: rgba(0, 0, 0, .78); }
.modal-caja {
  position: relative; width: 100%; height: 100%;
  background: var(--carbon); overflow-y: auto;
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .modal { padding: 24px; }
  .modal-caja { max-width: 1040px; height: auto; max-height: 92vh; border-radius: 18px; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--linea); }
}
.cerrar {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 26px; line-height: 1; background: rgba(11, 11, 12, .75);
}
.cerrar:hover { background: var(--gris); }

.galeria { background: var(--negro); }
.galeria-principal { position: relative; aspect-ratio: 4 / 5; overflow: hidden; touch-action: pan-y; }
.galeria-principal img { width: 100%; height: 100%; object-fit: cover; }
.flecha {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(11, 11, 12, .65); font-size: 28px; line-height: 1;
}
.flecha:hover { background: var(--oro); color: var(--negro); }
.flecha.izq { left: 10px; }
.flecha.der { right: 10px; }
.g-contador {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  padding: 3px 12px; border-radius: 999px; font-size: 12px; background: rgba(11, 11, 12, .7);
}
.miniaturas { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.miniaturas button { flex: none; width: 62px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .55; }
.miniaturas button[aria-current="true"] { border-color: var(--oro); opacity: 1; }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }

/* Botón y cursor para abrir la foto en grande */
#g-img { cursor: zoom-in; }
.g-ampliar {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(11, 11, 12, .65);
}
.g-ampliar:hover { background: var(--oro); }
.g-ampliar svg { width: 18px; height: 18px; fill: none; stroke: var(--texto); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-ampliar:hover svg { stroke: var(--negro); }

/* ---------- Visor a pantalla completa con zoom (estilo tiendas de lujo) ---------- */
.visor {
  position: fixed; inset: 0; z-index: 55;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  background: #f3f3f2; color: #111;
}
.visor-escena {
  position: relative; overflow: hidden; min-height: 0;
  touch-action: none; cursor: zoom-in; user-select: none;
}
.visor.con-zoom .visor-escena { cursor: zoom-out; }
.visor-escena img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform .3s ease; -webkit-user-drag: none;
}
.visor-escena img.sin-foto { object-fit: contain; padding: 30%; }
.visor-ayuda {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px; background: rgba(17, 17, 17, .72); color: #fff;
  font-size: 12px; white-space: nowrap; pointer-events: none; transition: opacity .3s;
}
.visor-contador {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .85);
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
}
.visor-cerrar, .visor-flecha {
  position: absolute; z-index: 2; border-radius: 50%;
  background: #fff; color: #111; line-height: 1; box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}
.visor-cerrar { top: 14px; right: 14px; width: 46px; height: 46px; font-size: 30px; }
.visor-flecha { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 32px; }
.visor-flecha.izq { left: 18px; }
.visor-flecha.der { right: 18px; }
.visor-cerrar:hover, .visor-flecha:hover { background: #111; color: #fff; }
.visor.con-zoom .visor-flecha, .visor.con-zoom .visor-ayuda, .visor.con-zoom .visor-minis { opacity: 0; pointer-events: none; }
.visor-minis {
  display: flex; gap: 8px; justify-content: center; overflow-x: auto;
  padding: 10px 12px 16px; transition: opacity .3s;
}
.visor-minis button { flex: none; width: 54px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; border: 2px solid transparent; opacity: .5; }
.visor-minis button[aria-current="true"] { border-color: #111; opacity: 1; }
.visor-minis img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .visor-flecha { display: none; } }

.detalle { padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 18px; }
.detalle .cat { color: var(--oro); text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 600; }
.detalle h2 { font-family: var(--titulo); font-size: 40px; line-height: 1; letter-spacing: 1px; font-weight: 400; }
.detalle .precio { font-size: 22px; margin-top: 0; }
.detalle .desc { color: var(--suave); }
.opcion h4 { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--suave); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.opcion h4 b { color: var(--texto); }
/* Botón de la foto de medidas de cada prenda, al lado de "Talla" */
.ver-medidas { flex: none; padding: 6px 12px; border: 1px solid rgba(250, 208, 44, .45); border-radius: 999px; color: var(--oro); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: background .2s; }
.ver-medidas:hover, .ver-medidas:focus-visible { background: rgba(250, 208, 44, .12); }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones button { min-width: 48px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--linea); font-size: 14px; }
.opciones button[aria-pressed="true"] { border-color: var(--oro); background: rgba(250, 208, 44, .14); color: var(--oro); font-weight: 700; }
.cantidad { display: inline-flex; align-items: center; border: 1px solid var(--linea); border-radius: 10px; }
.cantidad button { width: 42px; height: 42px; font-size: 20px; }
.cantidad span { min-width: 32px; text-align: center; font-weight: 700; }
.acciones { display: grid; gap: 10px; }
.acciones .btn { width: 100%; }
.compartir { font-size: 13px; color: var(--suave); text-decoration: underline; justify-self: center; }
.aviso-opcion { color: #e2483d; font-size: 13px; min-height: 1em; }

/* ---------- Carrito ---------- */
.bolsa-fondo { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .6); }
.bolsa {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 35;
  width: min(420px, 100%); background: var(--carbon);
  border-left: 1px solid var(--linea);
  display: flex; flex-direction: column;
}
.bolsa[hidden], .bolsa-fondo[hidden] { display: none; }
.bolsa-cab { position: relative; padding: 18px 20px; border-bottom: 1px solid var(--gris); }
.bolsa-cab h2 { font-family: var(--titulo); font-size: 30px; letter-spacing: 1px; font-weight: 400; }
.bolsa-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gris); align-items: center; }
.item img { width: 64px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.item h4 { font-size: 14px; font-weight: 600; }
.item p { font-size: 12px; color: var(--suave); }
.item .precio { font-size: 14px; margin-top: 2px; }
.item-ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.item-ctrl .cantidad button { width: 30px; height: 30px; font-size: 16px; }
.item-ctrl .cantidad span { min-width: 22px; font-size: 13px; }
.quitar { font-size: 12px; color: var(--suave); text-decoration: underline; }
.bolsa-vacia { text-align: center; color: var(--suave); padding: 48px 0; }
.bolsa-pie { padding: 18px 20px 22px; border-top: 1px solid var(--gris); display: grid; gap: 10px; }
.bolsa-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.bolsa-total strong { color: var(--oro); font-size: 22px; }
.bolsa-nota { font-size: 12px; color: var(--suave); }

.elegir-wa { position: fixed; inset: 0; z-index: 45; display: grid; place-items: end center; }
@media (min-width: 600px) { .elegir-wa { place-items: center; } }
.elegir-caja {
  position: relative; width: min(420px, 100%);
  background: var(--carbon); border: 1px solid var(--linea);
  border-radius: 18px 18px 0 0; padding: 24px 20px 28px;
  display: grid; gap: 12px;
}
@media (min-width: 600px) { .elegir-caja { border-radius: 18px; } }
.elegir-caja h3 { font-family: var(--titulo); font-size: 30px; font-weight: 400; letter-spacing: 1px; text-align: center; }
.wa-opciones { display: grid; gap: 10px; }

.toast {
  position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 50;
  padding: 12px 20px; border-radius: 999px; background: var(--texto); color: var(--negro);
  font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  max-width: calc(100% - 32px); text-align: center;
}

/* ---------- Favoritos ---------- */
.barra-botones { display: flex; align-items: center; gap: 2px; }
.card { position: relative; }
.fav {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(11, 11, 12, .5); backdrop-filter: blur(6px); transition: transform .15s;
}
.fav svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.fav[aria-pressed="true"] svg { fill: var(--oro); stroke: var(--oro); }
.fav:active { transform: scale(.86); }
.cat-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fav-ficha { position: static; flex: none; width: 42px; height: 42px; background: var(--gris); backdrop-filter: none; }

/* ---------- Descripción de la prenda en lista (un detalle por línea) ---------- */
.desc-lista { list-style: none; padding: 0; display: grid; gap: 7px; }
.desc-lista li { position: relative; padding-left: 18px; }
.desc-lista li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--oro); }

/* ---------- Instalar como app ---------- */
.instalar { color: var(--oro); text-decoration: underline; font-size: 14px; }/* En el PC la X de cerrar la ficha queda arriba a la derecha: el corazón se corre para no quedar debajo */
@media (min-width: 860px) { .cat-fila { padding-right: 48px; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { padding: 48px 16px; border-top: 1px solid var(--gris); scroll-margin-top: 70px; }
.faq h2 { font-family: var(--titulo); font-weight: 400; font-size: 40px; letter-spacing: 1px; text-align: center; text-transform: uppercase; margin-bottom: 24px; }
.faq-lista { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--linea); border-radius: var(--radio); background: var(--carbon); transition: border-color .25s; }
.faq-item[open] { border-color: var(--oro); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative;
  font-weight: 600; font-size: 15px; line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--oro); font-size: 24px; font-weight: 400; line-height: 1; transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 18px 18px; color: var(--suave); font-size: 14.5px; line-height: 1.6; }
/* ---------- Línea de envío y cambios en la ficha ---------- */
.ficha-info { list-style: none; padding: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 0; border-top: 1px solid var(--linea); font-size: 12.5px; color: var(--suave); }
.ficha-info li { display: flex; align-items: center; }
.ficha-info li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--oro); margin-right: 8px; }
.ficha-info li:not(:last-child) { margin-right: 14px; }