/* ════════════════════════════════════════════════════════════════════
   vitrina.css — LA VITRINA en el lobby (js/vitrina.js, 2026-11-01)
   El mueble de la sala y su hoja. El mueble es la pieza pintada
   (docs/LOBBY-ARTE.md), con su lugar y su tamaño en lobby-arte.css
   (.lb-mueble): en la computadora contra la pared derecha; en el teléfono,
   a la derecha, a la altura de tus alas. Sin letrero ni brillo: el lobby
   enseña como mucho un número y un brillo a la vez (docs/FRICCION-Y-DINERO.md §6).
   ════════════════════════════════════════════════════════════════════ */
.lb-vitrina { animation: lb-vitrina-llega .6s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes lb-vitrina-llega { from { opacity: 0; } }
/* Las piezas en sus repisas, solas: sin el Pío gris de maniquí (la sombra
   de casilla.js). Un tono es el pájaro entero: ese se queda. */
.lb-vitrina-p { position: absolute; width: 28%; aspect-ratio: 1; pointer-events: none; }
.lb-vitrina-p > svg { display: block; width: 100%; height: 100%; color: rgba(255, 255, 255, .34); overflow: visible; }
.lb-vitrina-p .vst-sombra { display: none; }
/* Antes de que abra, un listón de regalo cruza el cristal (se ve, todavía no se compra). */
.lb-vitrina-liston { position: absolute; left: 17%; right: 17%; top: 20%; bottom: 13%; pointer-events: none; }
.lb-vitrina-liston i { position: absolute; background: linear-gradient(90deg, #E86F00, #FF9A2E 50%, #E86F00); }
.lb-vitrina-liston i:first-child { left: 44%; width: 12%; top: 0; bottom: 0; }
.lb-vitrina-liston i:nth-child(2) { top: 44%; height: 6%; left: 0; right: 0; background: linear-gradient(180deg, #E86F00, #FF9A2E 50%, #E86F00); }
.lb-vitrina-liston b { position: absolute; left: 50%; top: 47%; width: 46%; aspect-ratio: 2; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side at 25% 50%, #FFB347 60%, transparent 62%), radial-gradient(closest-side at 75% 50%, #FFB347 60%, transparent 62%); }

/* ══ La hoja: un mueble de vidrio ══ (Edgar 2026-11-01: «¿esto te parece
   una vitrina?»). El mueble de madera con su copete, el vidrio alumbrado,
   dos repisas y cada pieza sola en su peana con su luz; un reflejo
   diagonal quieto encima. Junto al mueble, tu Pío en su peana se prueba
   la que tocas. Precio, «Pro» o «Tuya» en una etiqueta chica bajo la
   peana: nada de tarjetas de tienda. */
.vt-hoja { width: min(940px, 100%); }
.vt-sobre { margin: 0 0 2px; font-size: 11px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: #FFB35C; }
.dr-cab .vt-fechas { margin: 4px 0 0; font-size: 13px; font-weight: 800; color: var(--hoy-sub); }
.dr-cab .vt-fechas[hidden] { display: none; }
/* La historia de la colección: la oye el lector de pantalla (aria-describedby); a la vista, pocas palabras. */
.dr-cab .vt-hist { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vt-tabs { display: flex; gap: 8px; margin: -6px 0 14px; overflow-x: auto; }
.vt-tab { flex: 0 0 auto; display: grid; justify-items: start; min-height: 44px; padding: 6px 14px; border-radius: 14px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 900; color: #F6EEFF; background: var(--hoy-tarjeta); border: 1.5px solid var(--hoy-linea); }
.vt-tab small { font-size: 11px; font-weight: 800; color: #FDE68A; }
.vt-tab.is-on { border-color: #FF8A00; background: rgba(255, 138, 0, .12); }
.vt { display: grid; gap: 16px; }

/* Tu Pío, en su peana, junto al mueble. */
.vt-lado { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
.vt-probador { position: relative; display: grid; justify-items: center; width: 118px; padding-bottom: 6px; }
/* Pío más chico que su caja: las alas abiertas caben sin recortarse (docs/PIO-RECORTES.md). */
.vt-pio { position: relative; z-index: 1; width: 104px; height: 104px; margin-bottom: -12px; }
.vt-info { display: grid; gap: 10px; min-width: 0; }
.vt-elegida { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 17px; }
.vt-elegida b { font-weight: 900; }
.vt-rz { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .4px; }
.vt-rz--raro { color: #0B2540; background: #7DD3FC; }
.vt-rz--epico { color: #FFFFFF; background: #A855F7; }
.vt-rz--legendario { color: #2A1E00; background: #F5B62B; }
.vt-acciones { display: grid; gap: 8px; width: min(340px, 100%); }
.vt-accion { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 16px; border-radius: 16px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 900; text-decoration: none; text-align: center; }
.vt-accion--pri { color: var(--pri-tinta, #2A1300); background: var(--pri-fondo, #FF8A00); box-shadow: 0 4px 0 #B35A00; }
.vt-accion--pri:active:not(:disabled) { transform: translateY(4px); box-shadow: none; }
.vt-accion--pri:disabled { opacity: .6; cursor: default; }
.vt-accion--sec { color: #F6EEFF; background: rgba(255, 255, 255, .1); }
.vt-accion--pro { color: #2A1E00; background: #FDE047; box-shadow: 0 4px 0 #A68A00; }
.vt-accion--quieta { cursor: default; color: rgba(246, 238, 255, .78); background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .2); }
.vt-pro { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 900; color: #FDE68A; background: none; }
.vt-aviso { margin: 0; font-size: 13.5px; font-weight: 800; color: #B9F5D8; }

/* La peana: un disco oscuro con su filo (la tuya y la de cada pieza). */
.vt-peana { display: block; width: 74%; height: 16px; border-radius: 50%; position: relative; z-index: 0;
  background: radial-gradient(120% 100% at 50% 18%, #4D3D86, #2C2050 60%, #1A1234); border: 2px solid #1A0E2B; box-shadow: 0 4px 0 #120B24; }
.vt-peana--yo { width: 92px; height: 18px; }

/* El mueble: madera con su copete, el vidrio y la placa. */
.vt-mueble { position: relative; padding: 18px 10px 10px; border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, var(--ld-nido-luz, #C98B57) 0 3px, var(--ld-nido, #7A4A30) 3px calc(100% - 4px), var(--ld-nido-2, #4A2A1B) calc(100% - 4px));
  border: 2.4px solid #1A0E2B; box-shadow: 4px 4px 0 #0E0719; }
.vt-copete { position: absolute; left: 50%; top: -11px; width: 64px; height: 20px; transform: translateX(-50%); border-radius: 32px 32px 4px 4px;
  background: var(--ld-nido, #7A4A30); border: 2.4px solid #1A0E2B; border-bottom: 0; }
.vt-copete::after { content: ''; position: absolute; left: 50%; top: 5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #FF8A00; box-shadow: 0 0 0 2px #1A0E2B; }
.vt-vidrio { position: relative; overflow: hidden; display: grid; padding: 6px 8px 0; border-radius: 8px; border: 2px solid #1A0E2B;
  background: linear-gradient(180deg, rgba(241, 230, 255, .1), rgba(241, 230, 255, .03)), #241A42; }
/* Cada repisa: una tira de luz arriba y la tabla de cristal abajo. */
.vt-repisa { position: relative; list-style: none; margin: 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vt-repisa::before { content: ''; position: absolute; left: 6%; right: 6%; top: 3px; height: 3px; border-radius: 3px; background: #FFE0B8; box-shadow: 0 0 0 1px rgba(255, 138, 0, .7); opacity: .9; }
.vt-repisa::after { content: ''; grid-column: 1 / -1; height: 8px; margin: 0 -8px; background: rgba(241, 230, 255, .32); border-top: 1.5px solid rgba(241, 230, 255, .7); border-bottom: 2px solid #1A0E2B; }
.vt-repisa li { min-width: 0; animation: dr-sube .45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.vt-repisa li:nth-child(2) { animation-delay: .05s; }
.vt-repisa li:nth-child(3) { animation-delay: .1s; }
.vt-repisa + .vt-repisa li { animation-delay: .15s; }
.vt-repisa + .vt-repisa li:nth-child(2) { animation-delay: .2s; }
.vt-repisa + .vt-repisa li:nth-child(3) { animation-delay: .25s; }
/* El reflejo del vidrio: dos franjas diagonales, quietas, encima de todo. */
.vt-reflejo { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, .07) 18% 24%, transparent 24% 30%, rgba(255, 255, 255, .045) 30% 33%, transparent 33%); }
.vt-placa { margin: 8px auto 0; width: fit-content; max-width: 100%; padding: 3px 12px; border-radius: 6px; text-align: center;
  font-size: 11.5px; font-weight: 800; color: #FFE7C2; background: var(--ld-nido-2, #4A2A1B); border: 1.5px solid #1A0E2B; }

/* Una pieza: su luz, el dibujo, la peana y la etiqueta. Toda la columna es la tecla (44 px o más). */
.vt-pieza { position: relative; display: grid; justify-items: center; align-content: end; width: 100%; min-height: 128px; padding: 6px 4px; border: 0; border-radius: 12px; cursor: pointer;
  font-family: inherit; color: #F6EEFF; background: none; -webkit-tap-highlight-color: transparent; }
.vt-luz { position: absolute; left: 50%; top: -14px; width: 92%; height: 100%; transform: translateX(-50%); pointer-events: none; opacity: .5;
  background: radial-gradient(50% 60% at 50% 0%, rgba(255, 224, 184, .34), rgba(255, 224, 184, 0)); transition: opacity .2s ease; }
.vt-arte { position: relative; z-index: 1; display: grid; place-items: end center; width: 72px; height: 72px; margin-bottom: -14px; transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.vt-arte .vt-mini { width: 100%; height: 100%; display: block; }
.vt-arte .vst-sombra { display: none; }
.vt-pieza .vt-peana { width: 68%; height: 12px; }
/* El filo de la peana dice la rareza (los colores del vestidor, rareza.js MARCO). */
.vt-r--raro .vt-peana { border-color: #3B82F6; }
.vt-r--epico .vt-peana { border-color: #A855F7; }
.vt-r--legendario .vt-peana { border-color: #F5B62B; }
.vt-pieza.is-elegida .vt-luz { opacity: 1; }
.vt-pieza.is-elegida .vt-arte { transform: translateY(-4px) scale(1.06); }
.vt-pieza.is-elegida .vt-peana { box-shadow: 0 4px 0 #120B24, 0 0 0 3px rgba(255, 138, 0, .55); }
.vt-pieza:focus-visible { outline: 2px solid #F6EEFF; outline-offset: -2px; }
.vt-precio { margin-top: 6px; display: inline-flex; align-items: baseline; gap: 3px; padding: 1px 7px; border-radius: 6px; font-size: 12.5px; font-weight: 900;
  color: var(--mon-pluma-noche, #FFB35C); background: rgba(11, 8, 20, .55); font-variant-numeric: tabular-nums; flex-wrap: wrap; justify-content: center; }
.vt-precio i { font-size: 11px; }
.vt-precio small { flex-basis: 100%; text-align: center; font-size: 10.5px; font-weight: 800; color: var(--hoy-sub); }
.vt-precio--tuya { color: #5BE39C; }
.vt-precio--pro { color: #FDE047; }
.vt-vuela { position: fixed; z-index: 3000; width: 56px; height: 56px; pointer-events: none; }
.vt-vuela svg { width: 100%; height: 100%; }
.vt-vuela .vst-sombra { display: none; }
@media (hover: hover) and (pointer: fine) {
  .vt-pieza:hover .vt-luz { opacity: .85; }
  .vt-accion--pri:hover:not(:disabled) { background: var(--pri-fondo-hover, #FFA333); }
  .vt-accion--sec:hover, .vt-tab:hover { background: rgba(255, 255, 255, .14); }
}
/* En la computadora se usan los lados: tu Pío y la acción a la izquierda,
   el mueble a la derecha. */
@media (min-width: 900px) {
  .vt { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: center; }
  .vt-lado { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .vt-info { justify-items: center; }
  .vt-elegida { justify-content: center; }
  .vt-probador { width: 200px; }
  .vt-pio { width: 170px; height: 170px; margin-bottom: -18px; }
  .vt-peana--yo { width: 150px; height: 26px; }
  .vt-mueble { padding: 22px 14px 12px; }
  .vt-vidrio { padding: 8px 14px 0; }
  .vt-repisa { padding-top: 18px; }
  .vt-repisa::after { margin: 0 -14px; }
  .vt-pieza { min-height: 150px; }
  .vt-arte { width: 92px; height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-vitrina, .vt-repisa li { animation: none !important; }
  .lb-vitrina, .vt-pieza, .vt-arte, .vt-luz { transition: none !important; }
  .vt-pieza.is-elegida .vt-arte { transform: none; }
}
