/* Componentes exclusivos de Taller → Estampados. Las fuentes y colores son los del admin. */
.est-filtros { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(140px, 1fr)); gap: 14px; }
.est-filtros .campo { margin: 0; min-width: 0; }
.est-resultados { margin: 0 0 12px; font-size: 13px; color: var(--texto-3); }
.est-rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.est-tarjeta { min-width: 0; overflow: hidden; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--papel); cursor: pointer; }
.est-preview, .est-detalle-preview, .est-carga-preview { background-color: #fff; background-image: linear-gradient(45deg, #F3F3F5 25%, transparent 25%), linear-gradient(-45deg, #F3F3F5 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #F3F3F5 75%), linear-gradient(-45deg, transparent 75%, #F3F3F5 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.est-preview { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 12px; border: 0; border-bottom: 1px solid var(--linea); cursor: pointer; }
.est-preview img { width: 100%; height: 100%; object-fit: contain; min-height: 0; position: absolute; inset: 0; padding: 12px; }
.est-img-falta { display: none; color: var(--texto-3); }
.est-sin-imagen .est-img-falta { display: grid; place-items: center; min-height: 80px; }
.est-info { padding: 12px; }
.est-nombre { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; height: 2.8em; line-height: 1.4; overflow: hidden; overflow-wrap: anywhere; width: 100%; text-align: left; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 500; cursor: pointer; }
.est-categoria { display: block; margin-top: 4px; color: var(--texto-2); font-size: 12.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-personajes { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; height: 2.8em; overflow: hidden; overflow-wrap: anywhere; margin-top: 4px; color: var(--texto-3); font-size: 12px; line-height: 1.4; }
.est-pie { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 10px; color: var(--texto-3); font-size: 11px; }
.est-pie .btn { color: var(--texto); font-size: 12px; padding: 5px 8px; }
.est-descarga-ico { transform: rotate(180deg); }
.est-paginacion { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 24px 0 0; font-size: 13px; }
.est-vacio { grid-column: 1 / -1; }
.est-detalle-preview { display: grid; place-items: center; min-height: 160px; border: 1px solid var(--linea); border-radius: var(--radio-sm); overflow: hidden; margin-bottom: 18px; }
.est-detalle-preview img { width: 100%; max-height: 460px; object-fit: contain; }
.est-datos { margin: 0; }
.est-datos > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linea); }
.est-datos dt { color: var(--texto-3); font-size: 13px; }
.est-datos dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.est-carga { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; margin-bottom: 18px; border: 1px dashed var(--linea-fuerte); border-radius: var(--radio-sm); cursor: pointer; }
.est-carga-preview { display: flex; align-items: center; justify-content: center; height: 160px; width: 100%; overflow: hidden; border-radius: var(--radio-sm); color: var(--texto-3); }
.est-carga-preview img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.est-control { display: flex; align-items: center; gap: 8px; min-width: 0; }
.est-control .entrada { min-width: 0; }
.est-control .btn { flex: none; }
.est-elegir-personajes { max-height: 180px; overflow-y: auto; padding: 8px 12px; border: 1px solid var(--linea); border-radius: var(--radio-sm); }
.est-elegir-personajes:has(> .tenue:only-child) { border: 0; padding: 4px 0; }
.est-elegir-personajes .casilla { font-size: 14px; }
.est-alta { display: flex; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--linea); }
.est-alta .campo { flex: 1; min-width: 0; margin: 0; }
.est-organizar .fila-titulo { overflow-wrap: anywhere; }
.est-reasignar-nombre { display: block; margin-bottom: 16px; font-weight: 500; }
.est-lote-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-size: 13px; color: var(--texto-3); }
.est-lote-lista { padding: 0; margin: 0; list-style: none; }
.est-lote-fila { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.est-lote-foto { width: 56px; height: 56px; object-fit: contain; padding: 3px; border: 1px solid var(--linea); border-radius: var(--radio-sm); background: var(--fondo); }
.est-lote-texto { min-width: 0; }
.est-lote-nombre { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-lote-meta { margin-top: 3px; font-size: 12px; color: var(--texto-3); overflow-wrap: anywhere; }
.est-lote-estado { margin-top: 5px; }
.est-lote-error { color: var(--rojo, #A83232); }
.est-lote-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; width: 100%; }
.est-lote-pie .cab-acciones { gap: 8px; }
@media (min-width: 1600px) { .est-rejilla { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .est-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .est-filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .est-filtros .campo:first-child { grid-column: 1 / -1; }
  .est-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .est-info { padding: 10px; }
  .est-pie { min-height: 58px; align-content: flex-end; }
  .est-pie .btn { font-size: 11px; }
}
