/* Estilos propios de las herramientas de imágenes (depende de /marca/base.css y /marca/herramienta.css). */

/* ---------- Vista previa de Rotar y voltear ---------- */

/* Las variables las pone herramientas-lote.js según el giro y los volteos elegidos. */
.lista-archivos--girar .archivo__miniatura {
  transform: rotate(var(--giro, 0deg)) scale(var(--voltear-x, 1), var(--voltear-y, 1));
  transition: transform 0.2s;
}

/* ---------- Recortar para redes ---------- */

.formatos-red {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

.formatos-red legend {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.formatos-red label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--borde);
  border-radius: 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.formatos-red label:has(input:checked) {
  border-color: var(--accion);
  background: var(--cumbre-100);
}

.formatos-red strong {
  display: block;
  font-weight: 500;
}

.escenario-redes {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  line-height: 0;
  user-select: none;
}

.escenario-redes__imagen {
  display: block;
  max-width: 100%;
  max-height: 520px;
}

/* Lo que queda fuera del marco se oscurece con una sombra gigante. */
.escenario-redes__marco {
  position: absolute;
  border: 2px solid #fff;
  outline: 1px dashed var(--cumbre-900);
  box-shadow: 0 0 0 9999px rgb(10 25 48 / 55%);
  cursor: move;
  touch-action: none;
}

.escenario-redes__marco:focus-visible {
  outline: 3px solid var(--cumbre-400);
}
